From a0307ce4740e69fc9668b7fc584a89a5829bf7c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dylan=20A=C3=AFssi?= <dylan.aissi@collabora.com>
Date: Mon, 10 Mar 2025 11:20:11 +0100
Subject: [PATCH] analyse-rebases.py: also retry pipelines with failed 'upload'
 job
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

It's quite common that "upload" jobs fail when OBS is heavily busy.
Most of the time, it's enough to restart the pipeline to make the
build successful.

Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
---
 rebase-scripts/analyse-rebases.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rebase-scripts/analyse-rebases.py b/rebase-scripts/analyse-rebases.py
index 1c8ccd1..3205b12 100755
--- a/rebase-scripts/analyse-rebases.py
+++ b/rebase-scripts/analyse-rebases.py
@@ -210,5 +210,5 @@ if __name__ == "__main__":
             a.merge(mr)
 
     if args.retry_obs:
-        for mr in filter(lambda m: m.pipeline_status == 'failed' and len(m.failed_jobs) > 0 and m.failed_jobs[0].startswith('obs'), merges):
+        for mr in filter(lambda m: m.pipeline_status == 'failed' and len(m.failed_jobs) > 0 and m.failed_jobs[0].startswith(('obs','upload')), merges):
             a.retry_pipeline(mr)
-- 
GitLab