Skip to content

test(#1132): smoke Rust feature matrix - #1138

Merged
joelteply merged 1 commit into
canaryfrom
test/canary-rust-feature-smoke
May 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
test/canary-rust-feature-smoke

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • adds a canary smoke script for the Rust feature matrix and host-appropriate cargo checks
  • validates continuum-core/llama/inference-grpc feature contracts from cargo metadata
  • skips impossible GPU slices by host instead of failing noisy unsupported checks

Proof

  • bash -n scripts/ci/canary-smoke-rust-features.sh
  • RUN_CARGO_CHECK=0 scripts/ci/canary-smoke-rust-features.sh -> 4 passed, 1 skipped, 0 failed
  • scripts/ci/canary-smoke-rust-features.sh -> 6 passed, 1 skipped, 0 failed on macOS; default llama check intentionally skipped because macOS rejects CPU-only llama builds
  • precommit: TypeScript compilation passed; browser tests skipped because local system was not responsive to ./jtag ping
  • pre-push: TypeScript clean; ESLint 5530 errors vs baseline 6310; no Rust-relevant changes for hook cargo phases

Part of #1132.

@joelteply
joelteply merged commit b197281 into canary May 14, 2026
2 checks passed
@joelteply
joelteply deleted the test/canary-rust-feature-smoke branch May 14, 2026 00:22
joelteply added a commit that referenced this pull request May 14, 2026
* test(#1132): canary smoke for jtag CLI + screenshot path

Continuation of the canary smoke matrix (continuum#1132). Sibling tab
#1 shipped the AIRC+queue slice (#1135), ts-rs ratchet (#1137), and
Rust feature smoke (#1138). This PR adds the JTAG ping + screenshot
slice — covers the user-facing CLI surface that Carl interacts with.

What this catches
-----------------

scripts/ci/canary-smoke-jtag.sh — three checks against the running
Continuum stack:

  1. Stack presence: pgrep for continuum-core/widget-server. Skips
     gracefully when stack is down (operator runs npm start to enable);
     hard-fails when STACK_REQUIRED=1 for CI gates that mandate stack.
  2. jtag ping reaches stack: round-trip CLI → WebSocket → core → back.
     Catches: dangling-shim regression (#91-#93) where the global
     ~/.local/bin/jtag symlinks into a deleted temp dir and fails
     ERR_MODULE_NOT_FOUND on every invocation; UnixSocket missing
     despite running process; widget-server crashed. Includes specific
     recovery hints for the dangling-shim and ENOENT-socket patterns.
  3. Screenshot writes valid PNG: jtag interface/screenshot --filename
     TMP.png produces a >1KB file with PNG magic bytes (89 50 4E 47).
     Catches the silent-blank-screenshot pattern where screenshot
     returns 200 but body is empty/HTML-error/non-PNG.

Design notes
------------

  - File-system check only for CLI presence — JTAG CLI requires the
    running stack for ANY command (including --help), so an
    invocation-based liveness probe is indistinguishable from a stack-
    down skip. Discovered while validating: ./src/jtag --help fails
    with `connect ENOENT continuum-core.sock` when stack is down.
  - Per-step pass/skip/fail with the failure detail inlined so
    operators don't grep through the full jtag output.
  - PNG magic-bytes detection validated against
    papers/example-of-collaboration.png locally (529KB, magic
    89504e47 OK).

Validated locally
-----------------

  - bash -n clean
  - Stack-down (default): 0 passed, 2 skipped, 0 failed → exit 0
  - Stack-down (STACK_REQUIRED=1): 0 passed, 0 skipped, 3 failed → exit 2
  - Magic-bytes detection works on a real PNG fixture

Stack-UP path is NOT validated locally — local Mac stack happens to be
down, and `npm start` (90+ sec) wasn't justified for this scope. The
logic is straightforward (run command, check exit + magic bytes) and
will surface any defect when sibling or Joel runs it against a live
stack. Soft skip + clear recovery hints means a wrong-path failure is
diagnostic, not silent.

Remaining #1132 lanes
---------------------

After this lands: only persona/chat path proof + Docker/Carl gates
(blocked on amd64 image cards) remain. Card stays open with status
log noting which slices are landed.

* fix(#1132): harden jtag smoke stack detection

---------

Co-authored-by: Test <[email protected]>
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