You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Catch release-container-only failures in ordinary CI #365
The 0.4.3 candidate build failed in the release container (fatal: detected dubious ownership in repository at '/source' from git ls-files, #351 and #284; fixed in #363). Ordinary CI did not catch it because the runner owns its checkout, while the candidate container mounts the source under another owner.
Add a cheap guard so this class of failure shows up before a release: run the check scripts (npm run check, release:check) with GIT_TEST_ASSUME_DIFFERENT_OWNER=1, which makes git treat the repo as foreign-owned, as a test or a small CI step. Keep required checks unchanged and CI cost measured. A heavier alternative is running the candidate's container steps on pull requests that touch scripts/ or the workflows, which is costly.
Also worth considering: a release rehearsal that runs the candidate container steps on main on a schedule, so a broken release path is found between releases.
Done in #382. test/release-rehearsal.test.ts (part of npm test, about 1.5 s per matrix leg, no new CI job, required checks unchanged) runs the git-touching check scripts under simulated foreign ownership, checks that every commit in scripts/ uses the shared release identity and that a commit with no git identity fails without it, and rehearses the publisher's peer-floor preflight for every package against the real manifests as release:prepare would leave them. Run against the old commits it catches the git-ownership failure (#363), the core peer-floor bug (#370) and the missing starter commit identity (#376); it does not catch the slow-runner timing failure (#372), and it cannot reach registry or GitHub API steps, the protected release environment, or a runner's real user and hostname. .github/workflows/release-rehearsal.yml runs the candidate container steps on demand only (workflow_dispatch, contents: read, pinned actions, no signing, upload, tag or publish); the maintainer chose to keep it manual, with no nightly schedule.
Activity
jimhoyd commentedon Sep 21, 2026
Progress: an agent has started on this; a PR will be linked here when it opens.
Ignore global git config in the foreign-owner rehearsal
Rehearse release-only failure classes in npm test and a manual workfl…
Ignore global git config in the foreign-owner rehearsal
Rehearse release-only failure classes in CI (refs #365) (#382)
jimhoyd commentedon Sep 21, 2026
Done in #382. test/release-rehearsal.test.ts (part of npm test, about 1.5 s per matrix leg, no new CI job, required checks unchanged) runs the git-touching check scripts under simulated foreign ownership, checks that every commit in scripts/ uses the shared release identity and that a commit with no git identity fails without it, and rehearses the publisher's peer-floor preflight for every package against the real manifests as release:prepare would leave them. Run against the old commits it catches the git-ownership failure (#363), the core peer-floor bug (#370) and the missing starter commit identity (#376); it does not catch the slow-runner timing failure (#372), and it cannot reach registry or GitHub API steps, the protected release environment, or a runner's real user and hostname. .github/workflows/release-rehearsal.yml runs the candidate container steps on demand only (workflow_dispatch, contents: read, pinned actions, no signing, upload, tag or publish); the maintainer chose to keep it manual, with no nightly schedule.