Repository navigation
package-release: the gate once; a tag whose tree passed its PR's verify runs only the cast guard (merge after callers) - #17
Merged
Conversation
…s pull request's verify runs only the cast guard Error log row 112: every v* tag re-ran the full package gate (~17 runner-minutes) on a tree its pull request had already passed; eight releases waited up to 2 h 15 min on the two free runners. Now the tag job looks up the merged pull request whose merge commit is the tag's commit, and whether its head passed verify / verify with the same tree. If so, only the cast guard runs (required, on the tagged zip); otherwise the full gate runs as before. Callers must grant pull-requests: read and checks: read (release.yml); merge this after they do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns the full gate Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Error-log row 112: every
v*tag re-ran the full package gate (about 17 runner-minutes) on a tree its pull request had already passed. Eight releases waited up to 2 h 15 min on the two free runners.The gate runs once. The
tagjob:PKG_VERSION, as before;merge_commit_shais the tag's commit;verify / verifycheck run.Then:
guardruns. That is the cast guard, required, on the tagged zip, the one thing the PR gate does not enforce. It takes seconds, thenrelease.gate, the fullpackage-ci.ymlwithrequire-cast-guard: true, as today. That covers no such PR, another tree, a red or missing verify, or an unreadable API. The job summary says which case applied and why.releaseis unchanged (gh release createwith the zip, the handbook title and--generate-notes). It needstagto pass and eithergateorguard.Merge order matters. The
tagjob now asks forpull-requests: readandchecks: read, and a reusable workflow cannot get more than its caller grants: GitHub refuses to start the run otherwise. So each package'srelease.ymlmust first add:Merge this PR only after all nine callers grant them.
🤖 Generated with Claude Code