Repository navigation
fix(install): native install no longer aborts on retired build:ts/build:cli (FATAL, install-audit #1/#2) - #1857
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A parallel install audit found the fresh-native-install killer: tools/scripts/install.sh (the
npm run install:continuumpath) callednpm run build:ts+npm run build:cli— scripts that left with theretired Node shell (moved to legacy/src, #1840) and no longer exist in the root package.json. Under this
script's
set -eo pipefail,npm runexits non-zero ("Missing script") → pipefail propagates →set -eABORTS the whole install. A fresh native install could never finish.
npm run build:clients(the current TS deliverable — SDK + web,which DO exist in root package.json), wrapped in an
ifso a client-build failure can never abort aheadless-core install (the Rust core is the deliverable) and the
ifcondition shields the pipeline fromset -e.bash scripts/setup-rust.sh→bash "$SCRIPT_DIR/setup-rust.sh"(absolute viathe 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 -nOK; 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