Skip to content

ci: stop losing verification to cancelled runs on main - #95

Merged
arminazimi merged 2 commits into
mainfrom
ci/53-stop-cancelled-main-runs
Nov 14, 2026
Merged

arminazimi merged 2 commits into
mainfrom
ci/53-stop-cancelled-main-runs

Conversation

@arminazimi

@arminazimi arminazimi commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Closes #53

What changed

CI no longer cancels (or replaces while pending) a main or 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

  • Reason: cancel-in-progress was true for every event except merge_group, and all main pushes shared one group keyed on github.ref, so a burst of merges cancelled earlier main runs 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.
  • Budget effect: none

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

  • Tests added or updated for changed behavior (workflow-only concurrency; exercised on main after merge)
  • Changelog fragment not needed (ci change)

Verification

  • npm ci
  • npm run check
  • Cancelled share of recent main CI 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 main CI runs for different SHAs can overlap; that is intentional so history stays covered. Once the merge queue is enforced and main stops re-proving the full gate, this transitional parallelism shrinks with a later main-lane task.

arminazimi and others added 2 commits November 14, 2026 20:59
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>
@arminazimi
arminazimi merged commit fd060ad into main Nov 14, 2026
17 checks passed
@arminazimi
arminazimi deleted the ci/53-stop-cancelled-main-runs branch November 15, 2026 18:15
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.

Stop losing verification to cancelled runs on main

1 participant