Skip to content

ci: key main-push concurrency group on SHA to stop run eviction#1124

Merged
wpfleger96 merged 1 commit into
mainfrom
alia/ci-concurrency-main-sha
Jun 18, 2026
Merged

ci: key main-push concurrency group on SHA to stop run eviction#1124
wpfleger96 merged 1 commit into
mainfrom
alia/ci-concurrency-main-sha

Conversation

@wpfleger96

Copy link
Copy Markdown
Collaborator

Pushes to main all shared one concurrency group keyed on github.ref — the literal string refs/heads/main for every push. Under a tightly-clustered merge cadence, each new push entered the shared group and evicted the previously-queued CI run, surfacing as red cancelled runs (the "27/29 succeeded" pattern), not real test failures.

Keys the push path on github.sha so each main push gets its own group and no run ever evicts another. PRs are unchanged: the pull_request branch of the ternary keeps github.ref (refs/pull/<n>/merge), preserving per-PR grouping plus cancel-in-progress: true cancel-on-new-push.

cancel-in-progress is untouched. Sprig/Docker have no concurrency block and are unaffected.

Pushes to main all shared one concurrency group keyed on github.ref
(the literal refs/heads/main), so a tightly-clustered merge cadence
evicted previously-queued CI runs, surfacing as red cancelled runs.
Key the push path on github.sha so no main run evicts another; PRs
keep per-ref grouping plus cancel-on-new-push.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
@wpfleger96 wpfleger96 merged commit e99105e into main Jun 18, 2026
20 of 21 checks passed
@wpfleger96 wpfleger96 deleted the alia/ci-concurrency-main-sha branch June 18, 2026 23: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.

1 participant