Repository navigation
fix(ci): binding-gen skips cargo on non-macOS — fixes carl-install-smoke (C8) - #1632
Merged
Merged
Conversation
…oke (C8) The committed ts-rs bindings moved to protocol/typescript (637 files), but generate-rust-bindings.ts still checked GENERATED_DIR=shared/generated (0 committed files) for its "Linux uses committed bindings, skip cargo" guard. On a fresh Linux clone that dir reads empty -> guard false -> Linux fell through to `cargo test`, which crashes there (LiveKit protobuf descriptor conflict) and times out on a cold continuum-core + llama.cpp compile -> install.sh's `npm run build` died "Some bindings failed to generate" = the carl-install-smoke failure (C8). That smoke is path-triggered on any setup/install change, so C8 blocked #1630 (and would block #1612). Gate the skip on the PLATFORM (process.platform === 'darwin') instead of a dir that moved: only macOS regenerates + commits bindings; Linux/WSL/CI use the committed protocol/typescript bindings and never run cargo. macOS dev path unchanged (--force still regenerates). Validated by carl-install-smoke on this PR (the failing check itself — the Linux container can't be reproduced locally on macOS). Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Problem (C8)
carl-install-smoke (linux/amd64)fails:install.sh→npm run build→generate-rust-bindings.tsrunscargoand dies ("Some bindings failed to generate",exit=null signal=null). It's path-triggered on any setup/install change, so it blocks #1630 (and would block #1612).Root cause
The committed ts-rs bindings moved to
protocol/typescript/(637 files), butgenerate-rust-bindings.tsstill checkedGENERATED_DIR = shared/generated/(0 committed files) for its "Linux uses committed bindings, skip cargo" guard. On a fresh Linux clone that dir reads empty → guard false → Linux fell through tocargo test, which crashes on Linux (LiveKit protobuf descriptor conflict) and times out on a cold continuum-core + llama.cpp compile.Fix
Gate the skip on the platform (
process.platform === 'darwin') instead of a directory that moved: only macOS regenerates + commits bindings; Linux/WSL/CI use the committed bindings and never run cargo. macOS dev path unchanged (--forcestill regenerates).Validation
The
carl-install-smokerun on this PR is the test (the failing check itself). Once merged, #1630's smoke re-run goes green too. (Can't repro the Linux container locally on macOS.)Follow-up (separate)
generate-rust-bindings.tsstill references stale paths (WORKERS_DIR = ROOT/workers,GENERATED_DIR = shared/generated) from before thesrc/workers → core/continuum-core+shared/generated → protocol/typescriptmoves. Harmless on Linux now (cargo skipped) but the macOS regen path + barrels should be re-pointed in a follow-up.