Skip to content

[CI] Give push events a unique concurrency group - #1920

Merged
vgvassilev merged 1 commit into
masterfrom
ci-per-push-concurrency
Jul 22, 2026
Merged

[CI] Give push events a unique concurrency group#1920
vgvassilev merged 1 commit into
masterfrom
ci-per-push-concurrency

Conversation

@vgvassilev

Copy link
Copy Markdown
Owner

The concurrency group keys on github.event.pull_request.number, which is set only for pull_request events. On a push to master that expression is empty, so every master push collapses into one group and, with cancel-in-progress, each new push cancels the previous run mid-flight.

The concurrency group keys on github.event.pull_request.number, which is
set only for pull_request events. On a push to master that expression is
empty, so every master push collapses into one group and, with
cancel-in-progress, each new push cancels the previous run mid-flight.

The self-hosted coverage row (wake-on-lan, then a CUDA + Enzyme +
sanitizer build) is by far the slowest job, so on master it is almost
always cancelled before the codecov upload step runs. Master never gets a
base coverage report, and every PR's codecov/project status -- which uses
`target: auto` and needs the base coverage -- stalls at "Expected --
Waiting" indefinitely. codecov/patch is unaffected: it needs only the
PR's own report.

Fall back to github.sha when there is no PR number, so each pushed commit
gets its own group and push runs stop cancelling each other.
@vgvassilev
vgvassilev merged commit d79b3cd into master Jul 22, 2026
37 checks passed
@vgvassilev
vgvassilev deleted the ci-per-push-concurrency branch July 22, 2026 18:14
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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