Repository navigation
Rehearse release-only failure classes in CI (refs #365) - #382
Merged
Merged
Conversation
…ow (refs #365) Foreign-owner git, no git identity and the publisher peer-floor preflight now run in test/release-rehearsal.test.ts; a workflow_dispatch-only release rehearsal runs the candidate container steps without signing or publishing. Release scripts commit through a shared releaseIdentity. Co-Authored-By: Claude Sonnet 5 <[email protected]>
actions/checkout marks the workspace a global safe.directory, which hid the simulated foreign owner on runners (refs #365). Co-Authored-By: Claude Sonnet 5 <[email protected]>
…ows) Co-Authored-By: Claude Sonnet 5 <[email protected]>
jimhoyd
force-pushed
the
ci/release-rehearsal-365
branch
from
September 21, 2026 14:46
aef3a28 to
f616cba
Compare
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.
Refs #365 (does not close it).
Problem and change
Releases 0.4.3-0.4.7 failed at steps ordinary CI never runs. This adds the cheapest guards:
test/release-rehearsal.test.ts(part ofnpm test, alsonpm run rehearse:release; no new job, required checks inscripts/ci-plan.tsunchanged):release:check, release-tag and workspace-link checks) underGIT_TEST_ASSUME_DIFFERENT_OWNER=1, with a control proving git still refuses the checkout;/dev/nullglobal and system config, author/committer env stripped,user.useConfigOnly), after proving a plain commit fails there, and statically requires everycommit -minscripts/to use the newreleaseIdentity(scripts/release-identity.ts, now shared byrelease-run.tsandrelease-template.ts);assertPeerFloorCoversApi) for every directory indirectoriesagainst the real manifests in the staterelease:preparewould leave (raisedCorePeer), so it does not fail ordinary main; on aPrepare releasecommit (main just before tagging) it checks the raw manifests unadjusted..github/workflows/release-rehearsal.yml:workflow_dispatchonly,contents: read, SHA-pinned actions, runs the test and thenscripts/prepare-core-release.sh(candidate channel). No signing, artifact, tag or publish.docs/DEVELOPMENT-PIPELINE.md"Release rehearsal": what it covers and cannot;llms-full.txtregenerated.Verification
npm run verifypasses locally;npm run check:docspasses.1408c1bfails the foreign-owner step withdubious ownership;6a098b1fails the peer-floor rehearsal (authoring since 0.4.3vs core floornone);23c41f6fails the commit-identity static check.Compatibility and security
No runtime or package change. The rehearsal workflow has no id-token, attestation or write permissions and cannot publish.
🤖 Generated with Claude Code