Skip to content

Rehearse release-only failure classes in CI (refs #365) - #382

Merged
jimhoyd merged 3 commits into
mainfrom
ci/release-rehearsal-365
Sep 21, 2026
Merged

jimhoyd merged 3 commits into
mainfrom
ci/release-rehearsal-365

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

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 of npm test, also npm run rehearse:release; no new job, required checks in scripts/ci-plan.ts unchanged):
    • runs the git-touching check scripts (NUL scan, release:check, release-tag and workspace-link checks) under GIT_TEST_ASSUME_DIFFERENT_OWNER=1, with a control proving git still refuses the checkout;
    • commits in a repository with no identity (empty HOME, /dev/null global and system config, author/committer env stripped, user.useConfigOnly), after proving a plain commit fails there, and statically requires every commit -m in scripts/ to use the new releaseIdentity (scripts/release-identity.ts, now shared by release-run.ts and release-template.ts);
    • rehearses the publisher preflight (assertPeerFloorCoversApi) for every directory in directories against the real manifests in the state release:prepare would leave (raisedCorePeer), so it does not fail ordinary main; on a Prepare release commit (main just before tagging) it checks the raw manifests unadjusted.
  • .github/workflows/release-rehearsal.yml: workflow_dispatch only, contents: read, SHA-pinned actions, runs the test and then scripts/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.txt regenerated.

Verification

  • npm run verify passes locally; npm run check:docs passes.
  • Checked against pre-fix commits (guard copied into worktrees): 1408c1b fails the foreign-owner step with dubious ownership; 6a098b1 fails the peer-floor rehearsal (authoring since 0.4.3 vs core floor none); 23c41f6 fails the commit-identity static check.
  • Cost: about 1.5 s of test time per matrix leg (about 0.75 s of it the foreign-owner subprocesses); the workflow costs nothing unless dispatched (a candidate run is roughly 8-10 minutes on one Linux runner).

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

jimhoyd and others added 3 commits September 21, 2026 09:43
…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]>
@jimhoyd
jimhoyd force-pushed the ci/release-rehearsal-365 branch from aef3a28 to f616cba Compare September 21, 2026 14:46
@jimhoyd
jimhoyd merged commit 281f549 into main Sep 21, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the ci/release-rehearsal-365 branch September 21, 2026 14:54
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.

1 participant