Skip to content

chore: cancel superseded ci runs on the same branch - #18

Merged
ashwin153 merged 2 commits into
mainfrom
claude/features-ci-concurrency
Aug 18, 2026
Merged

chore: cancel superseded ci runs on the same branch#18
ashwin153 merged 2 commits into
mainfrom
claude/features-ci-concurrency

Conversation

@ashwin153

@ashwin153 ashwin153 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Softlight Overview

UX Score: 5/5

Softlight reviewed this change and found no issues.

To run Softlight again, click here or comment @softlight.

Why

Each push to a pull request starts another full ci run while the runs for the previous commits keep going — #17 accumulated three parallel runs from three pushes. The workflow has no concurrency block, unlike the devcontainer repo's ci.yaml, which already cancels superseded runs.

What

Adds the same concurrency group the devcontainer repo uses: runs group by github.head_ref so a new push to a branch cancels the in-flight run it supersedes. Pushes to main have no head_ref and fall back to the unique run_id, so feature-publish runs on main are never cancelled mid-publish.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fjd3JvBzVEfk9iiJ2JeoJh


Generated by Claude Code


Note

Cursor Bugbot is generating a summary for commit 116f86f. Configure here.

Each push to a pull request started another full run alongside the ones
already going. Group runs by head ref, as the devcontainer repo's ci
does, so a new push cancels the run it supersedes; pushes to main keep
their unique group and never cancel each other's feature publishes.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fjd3JvBzVEfk9iiJ2JeoJh
@ashwin153
ashwin153 enabled auto-merge (squash) August 18, 2026 15:28
Two forks with identically named branches would share a cancellation
group and cancel each other's runs.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fjd3JvBzVEfk9iiJ2JeoJh
@ashwin153
ashwin153 disabled auto-merge August 18, 2026 15:29
@ashwin153
ashwin153 merged commit a1cd756 into main Aug 18, 2026
3 checks passed
@ashwin153
ashwin153 deleted the claude/features-ci-concurrency branch August 18, 2026 15:33
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