Skip to content

feat(downstream): cancel the downstream run when the merge-queue entry is gone - #212

Merged
Florian Ruppel (fruppel) merged 1 commit into
mainfrom
feat/downstream-cancel-on-dequeue
Nov 19, 2026
Merged

Florian Ruppel (fruppel) merged 1 commit into
mainfrom
feat/downstream-cancel-on-dequeue

Conversation

@fruppel

Copy link
Copy Markdown
Contributor

When a merge-queue entry is ejected, GitHub deletes its gh-readonly-queue/* branch. SwagCommercial/Rufus Downstream jobs that start afterwards fail with couldn't find remote ref. That was about a third of the red CI jobs in a 3-day sample.

wait.bash now checks on each poll whether the upstream queue branch still exists. On a 404 it cancels the downstream run, and the existing cancellation handoff then cancels the upstream run as well. Any other API error never cancels. Tests cover deleted, existing, API error and non-queue refs.

Part of shopware/shopware#23085.

@fruppel
Florian Ruppel (fruppel) merged commit 8e9ec53 into main Nov 19, 2026
11 checks passed
@fruppel
Florian Ruppel (fruppel) deleted the feat/downstream-cancel-on-dequeue branch November 19, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant