From 3d1fa8e26317ef0e5b419d879f0aac4a68657e25 Mon Sep 17 00:00:00 2001 From: Liv Dywan Date: Wed, 10 Jun 2026 15:39:09 +0200 Subject: [PATCH] feat: Fail submission if packages have not been cleaned up for days Currently there's only INFO messages and even though this will break things Jenkins pipelines are successful when there are old packages. --- trigger-openqa_in_openqa | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trigger-openqa_in_openqa b/trigger-openqa_in_openqa index 60fef40b..b34cbd81 100755 --- a/trigger-openqa_in_openqa +++ b/trigger-openqa_in_openqa @@ -122,6 +122,11 @@ create_devel_openqa_snapshot() { if [[ $staged_packages ]]; then echo "+++ NOTE+++ Only triggering tests from $src_project (not overriding $staging_project and doing a submission) because $staging_project still contains packages. You might need to do a manual cleanup if no other pipeline is running. Packages: $staged_packages" \ | tee job_post_skip_submission + local staging_project_url="https://build.opensuse.org/project/show/$staging_project" + if curl -sL "$staging_project_url" | grep -q Days; then + echo "Stale packages have not been cleaned up in 1+ days. Check $staging_project_url" + return 1 + fi staging_project=$src_project return elif [[ -e job_post_skip_submission ]]; then