Skip to content

ci: cancel stale in-progress runs on PR pushes - #4296

Merged
MarshallOfSound merged 2 commits into
mainfrom
ci-cancel-stale-pr-runs
Jun 29, 2026
Merged

MarshallOfSound merged 2 commits into
mainfrom
ci-cancel-stale-pr-runs

Conversation

@claude

@claude claude Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Requested by Erik Moura · Slack thread

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

Before: pushing a new commit to a PR branch left the previous commit's CI run going, so a PR could have several redundant in-flight runs eating runners.

After: a new push to a PR branch cancels the in-progress run for the older commit. Only PR runs are cancelled; pushes to main, version tags, and merge-queue runs are never cancelled.

How: adds a workflow-level concurrency group to ci.yml and semantic.yml, keyed on ${{ github.workflow }}-${{ github.head_ref || github.ref }}. In ci.yml, cancel-in-progress is gated on ${{ github.event_name == 'pull_request' }} so non-PR runs are unaffected; semantic.yml only runs on pull_request so it uses cancel-in-progress: true.


Generated by Claude Code

Adds workflow-level concurrency groups with cancel-in-progress scoped to
pull_request events for ci.yml and semantic.yml, so a new push to a PR
branch cancels the older commit's in-progress run.
@erikian
erikian marked this pull request as ready for review June 28, 2026 01:04
@erikian
erikian requested a review from a team as a code owner June 28, 2026 01:04
@claude claude Bot mentioned this pull request Jun 28, 2026
3 of 5 tasks
@MarshallOfSound
MarshallOfSound added this pull request to the merge queue Jun 29, 2026
Merged via the queue into main with commit bd623d1 Jun 29, 2026
14 checks passed
@MarshallOfSound
MarshallOfSound deleted the ci-cancel-stale-pr-runs branch June 29, 2026 18:27
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.

4 participants