Skip to content

fix(install): native install no longer aborts on retired build:ts/build:cli (FATAL, install-audit #1/#2) - #1857

Merged
joelteply merged 1 commit into
canaryfrom
fix/install-native-build-fatal-missing-scripts
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/install-native-build-fatal-missing-scripts

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

A parallel install audit found the fresh-native-install killer: tools/scripts/install.sh (the
npm run install:continuum path) called npm run build:ts + npm run build:cli — scripts that left with the
retired Node shell (moved to legacy/src, #1840) and no longer exist in the root package.json. Under this
script's set -eo pipefail, npm run exits non-zero ("Missing script") → pipefail propagates → set -e
ABORTS the whole install. A fresh native install could never finish.

  • Replace both dead calls with a BEST-EFFORT npm run build:clients (the current TS deliverable — SDK + web,
    which DO exist in root package.json), wrapped in an if so a client-build failure can never abort a
    headless-core install (the Rust core is the deliverable) and the if condition shields the pipeline from
    set -e.
  • Harden the Rust build call: bash scripts/setup-rust.sh → bash "$SCRIPT_DIR/setup-rust.sh" (absolute via
    the script's own dir) so it no longer depends on the fragile PROJECT_DIR/cwd resolution (audit Build(deps): Bump actions/stale from 8 to 9 #3).

Verified: bash -n OK; zero build:ts/build:cli call sites remain; build:clients exists in root package.json;
the guard makes it non-fatal either way. Reliability spine #1 (install). Credit: parallel install-audit agent.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ld:cli (FATAL, install-audit #1/#2)

A parallel install audit found the fresh-native-install killer: tools/scripts/install.sh (the
`npm run install:continuum` path) called `npm run build:ts` + `npm run build:cli` — scripts that left with the
retired Node shell (moved to legacy/src, #1840) and no longer exist in the root package.json. Under this
script's `set -eo pipefail`, `npm run` exits non-zero ("Missing script") → pipefail propagates → `set -e`
ABORTS the whole install. A fresh native install could never finish.

- Replace both dead calls with a BEST-EFFORT `npm run build:clients` (the current TS deliverable — SDK + web,
  which DO exist in root package.json), wrapped in an `if` so a client-build failure can never abort a
  headless-core install (the Rust core is the deliverable) and the `if` condition shields the pipeline from
  `set -e`.
- Harden the Rust build call: `bash scripts/setup-rust.sh` → `bash "$SCRIPT_DIR/setup-rust.sh"` (absolute via
  the script's own dir) so it no longer depends on the fragile PROJECT_DIR/cwd resolution (audit #3).

Verified: `bash -n` OK; zero build:ts/build:cli call sites remain; build:clients exists in root package.json;
the guard makes it non-fatal either way. Reliability spine #1 (install). Credit: parallel install-audit agent.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit d9cd959 into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/install-native-build-fatal-missing-scripts branch July 6, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant