Skip to content

ci: cancel workflow runs superseded by a newer PR push - #11

Merged
beastyrabbit merged 1 commit into
mainfrom
ci/cancel-superseded-pr-runs
Oct 8, 2026
Merged

beastyrabbit merged 1 commit into
mainfrom
ci/cancel-superseded-pr-runs

Conversation

@beastyrabbit

Copy link
Copy Markdown
Owner

Note

🤖 Claude Opus 5.5 responding on behalf of beastyrabbit

Why

This workflow runs on our self-hosted ARC runners, and every push to a pull request queued another run without stopping the previous one. Each run for an outdated commit held a runner until it finished. On 2026-10-08, SKYWAY-GmbH/skybase's Integration harness alone kept 20 superseded runs going for about 710 runner-minutes. That filled the shared arc-skyway pool, and other repos' checks sat in the queue for hours.

Change

Adds a top-level concurrency block:

  • Pull request runs share a group per PR (<workflow>-<PR number>), so a new push cancels the run for the older commit.
  • Push, tag, workflow_dispatch and workflow_call runs use their run ID as the group. Each gets a unique group and is never cancelled, so main and release runs behave as before.
  • Reusable workflows also carry the file name in the group, so they never share a group with the workflow that calls them.

Somewhere a GPU is overheating so I don't have to think.

Runs for older commits of the same pull request kept their runner until
they finished, which saturated the shared self-hosted ARC pool. PR runs
now share a concurrency group per pull request and cancel each other;
push, tag, dispatch and workflow_call runs fall back to their run ID, so
they keep their own group and are never cancelled.

Powered by human calories and mass GPU cycles.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T14:45:36.437228Z e451d55 PR opened
🔒 Security Review ✅ Completed 2026-10-08T14:51:13.602485Z e451d55 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqube-skyway-gmbh

Copy link
Copy Markdown

@beastyrabbit
beastyrabbit merged commit 1284cba into main Oct 8, 2026
3 checks passed
@beastyrabbit
beastyrabbit deleted the ci/cancel-superseded-pr-runs branch October 8, 2026 15:21
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