From e6c2b4e4023d61dff8c8bb1783f6237c1a57d78e Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Fri, 24 Apr 2026 13:15:34 +0300 Subject: [PATCH] fix(ci): prevent poll-upstream from cancelling in-progress builds Poll was firing every minute, dispatching new builds that cancelled the running one. Restore 15-minute cron interval and add shared concurrency group across both workflows so new polls queue instead of re-dispatching. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build-release.yml | 9 ++++----- .gitea/workflows/poll-upstream.yml | 6 +++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-release.yml b/.gitea/workflows/build-release.yml index d84804d..98ed424 100644 --- a/.gitea/workflows/build-release.yml +++ b/.gitea/workflows/build-release.yml @@ -8,6 +8,10 @@ on: required: true type: string +concurrency: + group: poll-and-build + cancel-in-progress: false + jobs: build: strategy: @@ -106,11 +110,6 @@ jobs: publish: needs: package runs-on: fedora - # concurrency ensures only one publish runs at a time — repo metadata - # corruption is a nightmare if two createrepo_c processes race. - concurrency: - group: rpm-publish - cancel-in-progress: false steps: - uses: actions/checkout@v4 diff --git a/.gitea/workflows/poll-upstream.yml b/.gitea/workflows/poll-upstream.yml index 108f978..f149197 100644 --- a/.gitea/workflows/poll-upstream.yml +++ b/.gitea/workflows/poll-upstream.yml @@ -2,9 +2,13 @@ name: poll-upstream on: schedule: - - cron: "*/1 * * * *" + - cron: "*/15 * * * *" workflow_dispatch: {} +concurrency: + group: poll-and-build + cancel-in-progress: false + jobs: check: runs-on: fedora