ci/ci_run_n_monitor: keep monitoring if a job is still running

When running multiple targets, the script was returning if any of the
targets failed.
But sometimes some of the targets are still running and we want to
monitor it until it finishes, even if some of the targets failed.

So check if any targeted jobs are in pending or running before deciding
to finish.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25826>
This commit is contained in:
Helen Koike
2023-10-20 08:52:12 -03:00
committed by Marge Bot
parent 59ee87b606
commit 9f4f52f4f3

View File

@@ -146,7 +146,10 @@ def monitor_pipeline(
):
return target_id, None
if {"failed"}.intersection(target_statuses.values()):
if (
{"failed"}.intersection(target_statuses.values())
and not set(["running", "pending"]).intersection(target_statuses.values())
):
return None, 1
if {"success", "manual"}.issuperset(target_statuses.values()):