Skip to content

fix(ci): binding-gen skips cargo on non-macOS — fixes carl-install-smoke (C8) - #1632

Merged
joelteply merged 1 commit into
canaryfrom
fix/c8-binding-gen-skip-nonmac
Jun 15, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/c8-binding-gen-skip-nonmac

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Problem (C8)

carl-install-smoke (linux/amd64) fails: install.sh → npm run build → generate-rust-bindings.ts runs cargo and 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), 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 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 (--force still regenerates).

Validation

The carl-install-smoke run 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.ts still references stale paths (WORKERS_DIR = ROOT/workers, GENERATED_DIR = shared/generated) from before the src/workers → core/continuum-core + shared/generated → protocol/typescript moves. Harmless on Linux now (cargo skipped) but the macOS regen path + barrels should be re-pointed in a follow-up.

…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]>
@joelteply
joelteply merged commit f49623b into canary Jun 15, 2026
2 checks passed
@joelteply
joelteply deleted the fix/c8-binding-gen-skip-nonmac branch June 15, 2026 20:52
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