Repository navigation
ci: cancel superseded PR runs without canceling releases - #674
Merged
Merged
Conversation
- Use unique groups for non-PR events to preserve every deployment and release run. - Prepared locally only; push and PR remain held during the production restore.
- Isolate main/tag/manual runs in the existing PR concurrency groups.
- Preserve release.yml with allow-dirty=["ci"]. - Document that future dist upgrades require manual workflow updates.
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.
Authorization and scope
Sam's decision, 2026-11-20 15:21:24Z via Holden: “do the free fixes. yes tot he cache limte. and yes to the mac/ios changes. no blacksmith please”. Alex confirmed the production restore was over before these workflows were pushed.
Same design as js-sdk #1103, whose exact head
5bb19d6f1d07aa7df8c6112c3d7bef48872c219dpassed applicable CI. No runner/vendor migration, retries, skips, continue-on-error, path gating, job changes, or reduced checks.Change and non-cancellation proof
github.ref;cancel-in-progressis true only forpull_request. New heads of one PR supersede that PR's old runs; different PR refs remain isolated.github.run_id, and cancellation is false. Main pushes, tag pushes, releases, merge_group and manual events therefore cannot cancel one another or replace another pending run.cancel-in-progress: falsealone would not protect pending runs sharing a group.cargo-dist preservation and upgrade tradeoff
release.ymlis generated by cargo-dist 0.32.0. Added[workspace.metadata.dist] allow-dirty = ["ci"]to preserve the custom concurrency block during normal generation. Dist no longer regenerates release.yml on upgrades: future dist bumps require a manual workflow update. To regenerate CI explicitly, temporarily remove"ci", regenerate, reapply the PR-only concurrency block, and review the result. This maintenance requirement is also recorded in Cargo.toml and agent.changelog.md.Observed before:
dist generate --checkexited 255 because regeneration would delete the concurrency block. After:dist generate --checkand normaldist generatepassed; release.yml SHA-256 stayed identical. Existing warnings: no PowerShell target and no Homebrew homepage.Verification
-shellcheck= -pyflakes=passed all seven changed workflows.@actions/expressionsevaluator passed all seven changed blocks: same-PR group/cancellation, distinct-PR isolation, unique non-canceling groups for main/tag/release/merge_group/manual events.Week-later measurement
Historical Nov 14–20 memo: node obsolete-head PR wall-minute share 8%; cache 10.01 GB / 225 entries. This overlaps earlier fixes, not a controlled baseline. No saved-minutes claim yet.
One week after merge, use a full seven-day interval after this change lands. Ordinary-priority GETs only; repeat each date to avoid GitHub's 1,000-result search ceiling:
Deduplicate run IDs/attempts; pair older/newer runs by workflow ID and PR number (fallback head repo + branch); exclude same-SHA reruns. Identify older runs active when a new-head run was created. Compute success/failure obsolete-head wall minutes divided by all success/failure PR wall minutes; separately report canceled runs and actual job minutes after supersession. Use job completed_at for end times, not mutable run updated_at. This is an explicit estimator, not an exact reproduction of the memo's unavailable weighting implementation.
No merges or manual deploys. No Sam click needed to open/test this PR; normal review/merge remains with maintainers.