Repository navigation
Cancel superseded CI runs of a pull request - #73
Merged
Merged
Conversation
zienag
force-pushed
the
ci-concurrency
branch
from
October 27, 2026 13:37
ab1e1f5 to
7de43df
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
1 open issue
What changed in this PR
Adds GitHub Actions concurrency controls to ensure newer pushes to a pull request cancel any older in-progress/queued CI runs, reducing queue backlog on shared runners.
Changes:
- Introduces a
concurrencygroup keyed by workflow name + PR head branch (or run ID formainpushes). - Enables
cancel-in-progressso superseded PR runs are cancelled automatically.
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds workflow-level concurrency grouping and cancellation behavior for superseded PR runs. |
Review effort: Lite
| branches: [main] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
zienag
force-pushed
the
ci-concurrency
branch
from
October 27, 2026 13:56
7de43df to
102f824
Compare
zienag
enabled auto-merge (squash)
October 27, 2026 14:35
Copilot stopped reviewing on behalf of
zienag due to an error
October 27, 2026 21:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Every push to a pull request queued a new CI run while the runs for its earlier commits kept waiting for a runner and then ran to the end. With the organization's shared runners, the run for the latest commit waited behind them.
Changes
ci.ymlputs the runs of one pull request in a concurrency group keyed by its number, withcancel-in-progress, so a new push cancels the run of the previous commit. A push tomainhas no pull request number, so its group is the run's own ID and runs onmainare never cancelled. The workflow name in the group keeps it apart from other workflows' groups.Test plan