bin/ci: Ensure that all jobs have nodes in DAG
authorGuilherme Gallo <guilherme.gallo@collabora.com>
Mon, 17 Jul 2023 04:30:59 +0000 (01:30 -0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 15:34:11 +0000 (15:34 +0000)
commit701b035179b61bf2d21a912132ec8408655bb1e8
tree6aaa2b10dc57e012ad77dc2b71dbb828085668fe
parent5e4029bfe5accb0ce78345b9111bb69318ee2ae2
bin/ci: Ensure that all jobs have nodes in DAG

Some automatic jobs, such as 'rustfmt' and 'clang-format', are skipped
during the graph sweep because their parents are already included in the
node set.

This commit ensures all visited jobs are in DAG and fixes iteration
modification using deepcopy.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9376

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Acked-by: David Heidelberg <david.heidelberg@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24176>
bin/ci/gitlab_gql.py