Skip to content

ci: cancel stale runs on same-branch pushes#20

Merged
skansal-rome merged 1 commit into
masterfrom
fix-ci-concurrency
Apr 25, 2026
Merged

ci: cancel stale runs on same-branch pushes#20
skansal-rome merged 1 commit into
masterfrom
fix-ci-concurrency

Conversation

@skansal-rome
Copy link
Copy Markdown
Contributor

Summary

Adds a branch-scoped concurrency block to .github/workflows/ci.yml so rapid pushes to the same ref cancel in-flight runs. Only same-branch reruns are cancelled — pushes to other branches never affect each other.

Why

From the cross-repo CI audit (rome-ops#45): no concurrency cancellation means rapid pushes pile up runs. This is a pure cargo build/test workflow with no shared external state, so cancellation is safe.

Test plan

  • Push this branch — a single run starts.
  • Push an empty commit on this branch — the previous run is cancelled and a new one starts.

Related: rome-ops#45.

🤖 This response was generated by Claude Code.

Adds a branch-scoped concurrency group so rapid pushes to the same
ref cancel previous in-flight runs. Does not affect other branches —
main/master runs never get cancelled by feature-branch pushes.

Pure cargo build/test workflow with no shared external state, so
cancellation is safe.
@skansal-rome skansal-rome merged commit b89340d into master Apr 25, 2026
6 checks passed
@skansal-rome skansal-rome deleted the fix-ci-concurrency branch April 25, 2026 00:23
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