Skip to content

[Request]: Catch release-container-only failures in ordinary CI #365

Closed

Description

@jimhoyd

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.

Activity

  1. added
    enhancement
    important
    in-progress
    on Sep 21, 2026
  2. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. removed
    in-progress
    on Sep 21, 2026
  4. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementimportant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions