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:
@@ -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()):
|
||||
|
Reference in New Issue
Block a user