Repository navigation
ci: stop losing verification to cancelled runs on main - #95
Merged
Merged
Conversation
Key push and merge-queue runs by SHA and only cancel superseded pull-request runs, so a burst of merges no longer leaves holes in main history. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Closes #53
What changed
CI no longer cancels (or replaces while pending) a
mainor merge-queue run when another commit lands. Pull-request runs still cancel when superseded. Concurrency groups for non-PR events key on the commit SHA so each commit keeps its own verification.Workflow changes
cancel-in-progresswas true for every event exceptmerge_group, and allmainpushes shared one group keyed ongithub.ref, so a burst of merges cancelled earliermainruns and left those commits with no completed check (4 of 33 recent push-to-main CI runs cancelled = 12.1%, all without a same-SHA success). Target is under 5% cancelled and every commit covered.Quality bar
Read docs/QUALITY.md before you change code, data, or docs. CI enforces its nine criteria: add no new debt, and allowlist existing debt only with an expiry.
Checks CI cannot make
Verification
npm cinpm run checkmainCI push runs before this change: 12.1% (4/33 completed), none of the cancelled SHAs had a later successful CI for the same commit.Notes for reviewers
After merge, concurrent
mainCI runs for different SHAs can overlap; that is intentional so history stays covered. Once the merge queue is enforced andmainstops re-proving the full gate, this transitional parallelism shrinks with a later main-lane task.