ci: fix run_n_monitor single execution

When there is a single job as a target and, when it is triggered, it takes
more than one loop time in pending status, it confuses the script to fall in
a wrong return of the pipeline monitoring.

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

Signed-off-by: Sergi Blanch Torne <sergi.blanch.torne@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30219>
This commit is contained in:
Sergi Blanch Torne 2024-07-17 11:01:45 +02:00 committed by Marge Bot
parent 15461dc62f
commit e6de8e2533

View File

@ -191,7 +191,7 @@ def monitor_pipeline(
print("---------------------------------", flush=False)
if len(target_statuses) == 1 and {"running"}.intersection(
if len(target_statuses) == 1 and RUNNING_STATUSES.intersection(
target_statuses.values()
):
return target_id, None, execution_times