Skip to content

Release 0.3.0 failed — automatic rollback #90

Closed

Description

@vig-os-release-app

Release 0.3.0 failed during the automated release workflow.

Workflow Run: View logs
Release PR: #78

Automatic rollback attempted:

  • Release branch reset to pre-finalization state (best-effort)

Tag status (forward-fix policy):

  • Release tags are not deleted by automation (workflow choice; GitHub immutable-release lock-in applies only after a release is published when that setting is enabled). If a tag was pushed before the failure, it remains on the remote.
  • Use a new release candidate to validate fixes, then re-run the final release when ready.
  • If a draft GitHub Release exists, manage it from the Releases UI; publishing locks the linked tag and assets when immutable releases are enabled.

Activity

  1. added
    bug
    on Jul 15, 2026
  2. c-vigo commented on Jul 15, 2026

    @c-vigo
    Contributor

    Root cause analysis

    Failing job: Release Core / Finalize Release Core → step Build release artifact → exit 127 (command not found).

    Chain:

    just bundle  →  npm run bundle  →  ncc build src/commit-runner.ts -o dist
                                        sh: line 1: ncc: command not found
    error: recipe `bundle` failed on line 85 with exit code 127
    

    Root cause: ncc (@vercel/ncc) is a devDependency — it only exists at node_modules/.bin/ncc after npm ci. The finalize job installs the toolchain via Set up devkit toolchain (Nix dev-shell: provides node/npm, uv, git, just, …) but never installs the repo's node deps. So npm run bundle launches, prints > [email protected] bundle, then cannot find ncc and exits 127. The rollback job then fired.

    Why it slipped through: the Build release artifact step (just bundle) was introduced on this branch by the devkit scaffold work in vig-os/devkit#1029 (opt-in dist/ rebuild for JS-Action consumers). CI (ci.yml) runs just sync (which is npm ci for Node repos) before any build, so ncc is present there; the scaffolded release finalize step omitted the equivalent install, so it only surfaces during a real final release.

    Fix (this repo, stopgap so 0.3.0 can proceed): run just sync before just bundle in the Build release artifact step of release-core.yml. just sync is language-neutral (uv sync for Python, npm ci for Node) and the step is already gated on has_bundle == 'true', so it only runs for repos that need the artifact build.

    Upstream: release-core.yml is a devkit-scaffolded file (.vig-os → DEVKIT_VERSION=1.1.0); the local fix is a divergence that will be clobbered on the next re-scaffold. The durable fix belongs in the devkit scaffold template as a follow-up to vig-os/devkit#1029 — tracked in a new devkit issue.

  3. c-vigo commented on Jul 15, 2026

    @c-vigo
    Contributor

    Upstream (durable) fix tracked in vig-os/devkit#1130 — release-core.yml is devkit-scaffolded, so the local fix below is a stopgap that a re-scaffold will supersede once #1130 lands.

  4. c-vigo commented on Jul 15, 2026

    @c-vigo
    Contributor

    Stopgap fix up as #91 (into release/0.3.0). Upstream durable fix vig-os/devkit#1131 has green CI and is ready to merge into devkit dev. Once #91 lands, re-run the release on release/0.3.0.

  5. c-vigo commented on Jul 15, 2026

    @c-vigo
    Contributor

    Resolved

    Root cause: the Finalize Release Core → Build release artifact step ran just bundle (→ npm run bundle → ncc) without a preceding just sync, so ncc (a devDependency) was absent from PATH → exit 127 → rollback.

    Fixes merged:

    Next step: re-run the release on release/0.3.0 (workflow_dispatch). When commit-action later bumps DEVKIT_VERSION to an image carrying #1131, the local stopgap in release-core.yml will be superseded by the re-scaffold and can be dropped.

    Closing as fixed.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions