From e6de8e2533f1fb863bedd904b9dc1e07d28da27d Mon Sep 17 00:00:00 2001 From: Sergi Blanch Torne Date: Wed, 17 Jul 2024 11:01:45 +0200 Subject: [PATCH] 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 Part-of: --- bin/ci/ci_run_n_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index da29b83d1d8..a19be0a3b57 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -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