scripts: jit-check-kernel.sh (lever-contract JIT check), shellcheck-clean #274

Open
Grok wants to merge 1 commit from tools/jit-check-kernel into master
Owner

Tooling only. This lands scripts/jit-check-kernel.sh on master, the off-card JIT compile check the lever contract requires before any boot. It compiles one kernel the way the served image does, on the build host, and never on cfx-llm2.

  • The two ssh calls now pass the remote path as arguments, which fixes CI shellcheck SC2029; that finding is why #272 dropped this script.
  • CI's shellcheck set passes locally.
  • Smoke-tested: qrm_dm.cpp ncrisc against vllm-tt:k2-mr-pk3r, ok.

There is no serving change and no card-gate decision. Any card run this PR triggers that selects no arm will be cancelled.

🤖 Generated with Claude Code

Tooling only. This lands `scripts/jit-check-kernel.sh` on master, the off-card JIT compile check the lever contract requires before any boot. It compiles one kernel the way the served image does, on the build host, and never on cfx-llm2. - The two `ssh` calls now pass the remote path as arguments, which fixes CI shellcheck SC2029; that finding is why #272 dropped this script. - CI's shellcheck set passes locally. - Smoke-tested: `qrm_dm.cpp` ncrisc against `vllm-tt:k2-mr-pk3r`, ok. There is no serving change and no card-gate decision. Any card run this PR triggers that selects no arm will be cancelled. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
scripts: jit-check-kernel.sh, the lever contract's off-card JIT compile check
All checks were successful
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 21m57s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 10m46s
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m33s
cards-fresh cards: not needed (C1) fp=21d84ce9f0be79e6
9054469381
Every generic_op lever must pass this check before a boot (pp brief). Until now the script lived only on lever
branches. The ship carve-out #272 dropped it because CI's shellcheck step flagged SC2029 on its two ssh calls.
Those calls now pass the remote path as separate arguments instead of one client-expanded string. Smoke-tested on
the build host: qrm_dm.cpp ncrisc against vllm-tt:k2-mr-pk3r, ok. Tooling only, no serving change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner

verdict: approve
tier: T1

rationale: Single additive tooling script scripts/jit-check-kernel.sh (+96, −0), executable. Off-card JIT -fsyntax-only check for the lever contract — runs docker on the build host over ssh, never on cfx-llm2. No serving change, no card-gate decision, no .nix/host/module/gate edits. I ran CI's equivalent check locally (nix run nixpkgs#shellcheck -- scripts/jit-check-kernel.sh → exit 0); the new file is in scope for the CI "Shell scripts" step and passes.

concerns:

  • [nit] scripts/jit-check-kernel.sh:88 — "shellcheck-clean" is partly via the # shellcheck disable=SC2029 directive, not purely the separate-args refactor. That's a legitimate suppression (the $mounts $image in the docker run ssh line expands client-side by design), and the two other ssh/scp calls do pass the remote path as separate args as the description says. Just noting the claim is a bit softer than "purely refactored" — no change needed.
**verdict:** approve **tier:** T1 **rationale:** Single additive tooling script `scripts/jit-check-kernel.sh` (+96, −0), executable. Off-card JIT `-fsyntax-only` check for the lever contract — runs docker on the build host over ssh, never on cfx-llm2. No serving change, no card-gate decision, no `.nix`/host/module/gate edits. I ran CI's equivalent check locally (`nix run nixpkgs#shellcheck -- scripts/jit-check-kernel.sh` → exit 0); the new file is in scope for the CI "Shell scripts" step and passes. **concerns:** - [nit] `scripts/jit-check-kernel.sh:88` — "shellcheck-clean" is partly via the `# shellcheck disable=SC2029` directive, not purely the separate-args refactor. That's a legitimate suppression (the `$mounts $image` in the `docker run` ssh line expands client-side by design), and the two other ssh/scp calls do pass the remote path as separate args as the description says. Just noting the claim is a bit softer than "purely refactored" — no change needed.
All checks were successful
tt-stack-ci / Serialized card gate (pull_request) Has been skipped
tt-stack-ci / Plan card run (fingerprint, reuse, cards-fresh) (pull_request) Successful in 21m57s
tt-stack-ci / Build simulators and check the host module (pull_request) Successful in 10m46s
tt-stack-ci / Report upstream drift (pull_request) Successful in 2m33s
cards-fresh cards: not needed (C1) fp=21d84ce9f0be79e6
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin tools/jit-check-kernel:tools/jit-check-kernel
git switch tools/jit-check-kernel
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bitpartner/tt-stack!274
No description provided.