chat template (prompt bytes): ChatTemplate.render (#843) drops completed empty assistant turns (no text after strip, no picture, no tool calls; the final message is kept; STRATA_KEEP_EMPTY_TURNS=1 keeps them) before the template runs. prompt.rs now does the same in Renderer::render and in the typed render_with_images path. diff_chat_template: 136/3000 -> 0 (also 2 x 12000). chat_template_oracle.json regenerated from the Original; one responses.rs test asserted the old behaviour. gguf: block_geometry knows the APR trellis types 143-146 (PTQ1_0, TQ2_T, TQK6, TQK7); gguf_headers.json regenerated. diff_gguf_header: 188/400 -> 0. native pack: NATIVE_PLE_KEY gained IQ3_XXS/IQ4_XS (#381); NVFP4 expert tails and prism.hadamard experts are refused (not ported, the runtime reads neither). diff_native_pack f16_nan uses a quiet NaN (numpy's widening of a signaling NaN differs between builds). The live differential still needs one run on Linux. smoke-mtp-pack.py reads the Q8_0 names from required[]/wq(); Dockerfile.systemd-smoke drops its apt version pins. docs/ci-audit.md findings 14, 15, 16, 18 updated in place. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
357 lines
43 KiB
Markdown
357 lines
43 KiB
Markdown
# CI and build audit (2026-11-02)
|
|
|
|
Measured on local `main` at `f9003b7ce` (sections 3.1 and 3.2), then rebased onto `main` at `44fb442f5` (observability, unattended
|
|
and expert-profile merges) and re-verified (section 3.3). Branch `claude/ci-audit` (worktree `.git/wt/ci-audit`). Question from the owner: do the CI
|
|
files and scripts prove that the code builds and that the checks pass? Every CI step was run one at a time on the laptop
|
|
(x86_64, Windows 11 and WSL2 Ubuntu 24.04, Rust 1.99.0 on both, 16 cores, 39 GiB in WSL). Nothing here used a GPU, a model, the
|
|
5090 server or a system change (no apt, no Docker start, no settings). Raw logs and `results.tsv` (command, exit code, seconds
|
|
per step) are in the worktree under `artifacts/ci-audit/` (ignored by Git, as the logs rule requires).
|
|
|
|
**Verdict.** Before this branch the answer was no, for three independent reasons:
|
|
|
|
1. the shipped product was not built or tested by any CI step (the gap, section 2);
|
|
2. the existing gates were red on `main`: `check-local.sh --fast`, `check-local.sh --full` (control-plane format and Clippy),
|
|
`desktop.yml` (format, Clippy, hardware smoke), and nothing in the repository shows that any of them ran since 2026-10-14
|
|
(section 1);
|
|
3. several tests depend on the machine they run on instead of the code (section 4, findings 6 to 8).
|
|
|
|
After this branch `check-local.sh --fast`, `--port` and the new `--product` pass on Linux (WSL in a real-filesystem namespace,
|
|
section 3) and `--fast` on Windows, with the remaining debt reported by name. `--full` passes up to the steps that need tools
|
|
this laptop does not have (numpy, Docker, cmake, musl-gcc); those are listed as SKIPPED with what to install. A green run proves the product compiles, links, and passes its CPU-side tests; it does not prove
|
|
any GPU kernel, model quality or speed (section 6).
|
|
|
|
**Follow-up (branch `claude/ci-audit2`, section 3.4).** The steps skipped for lack of Docker or tools were then run inside containers on the
|
|
laptop (Docker Desktop started for the purpose and stopped afterwards). That found what the first pass could not see: on a real Linux checkout
|
|
**every workflow job died at its first step** (`scripts/install-pinned-rustup.sh: Permission denied`, the executable bit was lost in the 2026-10-14
|
|
import), and the **static musl CLI did not compile** (`MADV_COLLAPSE`). Both are fixed on that branch.
|
|
|
|
## 1. Can the workflows run for this repository?
|
|
|
|
| Question | Answer and evidence |
|
|
| --- | --- |
|
|
| Which CI system | Gitea Actions. `linux.yml` uses `gitea.event_name`, `gitea.event.inputs.*`, `gitea.event.repository.private`, posts releases to `https://git.vezha.io/api/v1`, and `docs/build-validation.md` documents triggering it with `tea api ... /repos/para/leleka/actions/workflows/linux.yml/dispatches`. `.github/workflows/` is a directory Gitea Actions reads. `origin` is `git@vezha.io:para/leleka.git`. |
|
|
| Runners the workflows need | `ubuntu-latest` (a label the Gitea runner maps to an image, "runner configuration, not an immutable pin": `docs/build-validation.md`), root inside the job (they call `apt-get` without `sudo`), a reachable Docker daemon (`docker.io` is installed inside jobs; `check-local.sh --full` runs `test-cuda-driver-bootstrap.sh`, `test-cuda-fixed-ptx.sh` and the container smoke tests), network to `static.rust-lang.org`, `developer.download.nvidia.com`, Docker Hub and Hugging Face, and a self-hosted GPU runner labelled `[self-hosted, linux, x64, strata-gpu]` for the three manual GPU jobs. |
|
|
| Is there evidence that they ran | Only for the older Strata-Next jobs: fix commits "fix(ci): ..." (2026-10-05 to 2026-10-08) and the note in `docs/build-validation.md` that two hosted attempts "received runner shutdown". Nothing in the repository records a green or red run of `port.yml` (added 2026-10-14) or of any workflow after the Rust port (2026-10-15 onward). `docs/roadmap.md` still says "Hosted Actions still needs a GitHub repository and runner". The last edit of `.github/` before this branch was 2026-10-14, while default-members, the deploy tool, the memory governor and the runtime client all came later. I did not query the Gitea instance (private, and out of scope: no network call to it was made), so whether a runner is registered is **unverified**. The owner can see it in the repository's Actions tab. |
|
|
| Would they pass today | No. See section 3: on `f9003b7ce` the first step of `verify` (`check-local.sh`) fails at rustfmt, and `desktop.yml` fails at three steps. |
|
|
|
|
## 2. The gap: what the CI did and did not build (confirmed)
|
|
|
|
`default-members` has 30 crates, including `crates/deploy` (package `leleka-deploy`, the `leleka` binary). `grep` over
|
|
`.github/workflows/*.yml` and `scripts/check-local.sh` found no mention of `leleka-deploy`, `leleka-memory` or
|
|
`leleka-runtime-client` before this branch.
|
|
|
|
| Shipped artifact (docs/deploy.md section 8) | Built by CI before | Tested by CI before | Now |
|
|
| --- | --- | --- | --- |
|
|
| `leleka` (leleka-deploy: 126 unit, 18 end-to-end, 6 recipe tests) | no | no | release build and tests in `check-local.sh --product` / `product.yml` |
|
|
| `strata-next` (strata-control) | musl release build (`linux-static-cli`, `release-cli`), debug in `verify` | `cargo test` via `--manifest-path control-plane` (416 tests) and 29 smoke scripts | unchanged, plus release glibc build and `-p strata-control` tests in the product job |
|
|
| `leleka-inference`, `leleka-daemon`, `leleka-cli`, `leleka-seal-exec` (strata-desktop-core, `--features sm86`) | debug build inside `desktop.yml` only (not `sm86`, not release) | desktop-core tests (161) | release build with `--features sm86` of exactly those four binaries |
|
|
| leleka-runtime (the engine) | `cargo check` only | no (631 tests, 60 ignored) | `cargo check --all-targets` and `cargo test` |
|
|
| leleka-cuda-driver | `cargo check --features cuda-driver`; **`cargo test` without the feature, which does not compile** | no | tests with `--features cuda-driver` |
|
|
| leleka-memory, leleka-runtime-client | built as dependencies only | no | tests, Clippy and (runtime-client) rustfmt as hard gates |
|
|
| leleka-native-cpu-expert | rustfmt report only | no | tests |
|
|
| 17 CPU/iGPU/NPU default-members (`cpu-kernels`, `cpu-sys`, `cpu-worker`, `gguf`, `gptoss*`, `harmony`, `igpu*`, `kar-codec`, `shm`, `openvino`, `npu-*`, `gpu-npu-worker`) | no | no | built by `cargo build --locked`, tested |
|
|
| A new crate added to the workspace | silently uncovered | silently untested | `scripts/check-ci-coverage.py` fails the job unless `scripts/ci-coverage.json` lists it (negative test done: removing `leleka-deploy` from the list fails with `UNCOVERED`) |
|
|
|
|
So the green CI of `linux.yml` + `port.yml` + `desktop.yml` could never have shown that the product builds.
|
|
|
|
## 3. Results (every step, in order)
|
|
|
|
Legend: PASS, FAIL (real defect), FAIL-ENV (the host, not the code), SKIPPED (why). "WSL" means the worktree on `/mnt/c`
|
|
(9p: no `chmod`, FIFO, symlink or ownership semantics, ports shared with other agents' services). "WSL-ns" means the same
|
|
commands run in a private user, mount and network namespace (`unshare -rmn`) with `tmpfs` on `/tmp` and on the two fixture
|
|
directories the tests write to, capabilities dropped after mounting, loopback up and nothing else: a real Linux filesystem and
|
|
free ports, and nothing written outside the worktree (the mounts vanish with the namespace). Seconds are wall time, warm cache,
|
|
two builds sharing the CPU.
|
|
|
|
### 3.1 Baseline on `f9003b7ce` (before any change)
|
|
|
|
| Step | Platform | Result | Why |
|
|
| --- | --- | --- | --- |
|
|
| `cargo metadata --locked` | Win | PASS 1 s | lock file consistent |
|
|
| `cargo build --locked` (all 30 default-members) | Win | PASS 198 s | |
|
|
| `cargo build --locked` | WSL | PASS 835 s (crate download + `/mnt/c`) | |
|
|
| `cargo build --locked --release -p leleka-deploy` (`leleka`) | Win / WSL | PASS 39 s / 45 s | `target/release/leleka(.exe)` produced |
|
|
| release set of `docs/deploy.md` §8 (`strata-next` + 4 desktop-core binaries, `--features sm86`) | Win / WSL | PASS 287 s / 330 s | all six binaries present |
|
|
| `check-local.sh --fast` | Win / WSL | **FAIL** 1 s / 3 s | rustfmt diff in "strict" crates `leleka-backend-api` (3 hunks) and `leleka-context` (5); behind it, Clippy `type_complexity` in `leleka-tokenizer`, and `literal_port` in `leleka-experimental-ref` |
|
|
| `check-local.sh --port`, `--full` (also with `STRICT_DEBT=1`) | WSL | **FAIL** 2 to 3 s | stop at the same fast-path failure (`set -e`) |
|
|
| `cargo test -p leleka-cuda-driver` (the `--full` line) | Win / WSL | **FAIL** 8 s / 17 s | 32 compile errors: modules such as `original_expert_stager` and `native_head` exist only with feature `cuda-driver`; `leleka-runtime` always enables it, so nothing noticed |
|
|
| `cargo test -p leleka-cuda-driver --features cuda-driver` | Win / WSL | PASS 71 s / 86 s | |
|
|
| `cargo test -p leleka-memory` / `-p leleka-runtime-client` | Win, WSL | PASS | 80 / 84 and 12 tests |
|
|
| `cargo test -p strata-control` | Win / WSL | PASS 189 s / 475 s | 359 / 416 tests |
|
|
| `cargo test -p strata-desktop-core` | Win / WSL | PASS 148 s / 341 s | 152 / 161 tests |
|
|
| `cargo test -p leleka-runtime` | Win | PASS 113 s | 592 tests |
|
|
| `cargo test -p leleka-runtime` | WSL | FAIL-ENV 143 s | 2 tests (`failed_cleanup_or_replaced_inode_never_deletes_unowned_file`, `frozen_same_fd_hash_owner_and_source_independence`): fixtures under `../../target/` on 9p. PASS in WSL-ns, 631 tests |
|
|
| `cargo test -p leleka-native-cpu-expert` | WSL | PASS 122 s | |
|
|
| `cargo test -p leleka-deploy --features test-fakes` | Win | FAIL-ENV 40 s | `the_supervisor_starts_serves_status_and_reconfigure_...` refuses a 12 GiB budget: the laptop's real GPU has 1769 MiB free (another agent's engine holds VRAM) |
|
|
| `cargo test -p leleka-deploy --features test-fakes` | WSL | FAIL 53 s, 6 tests | 1 real (stale `8192` context assertion; the laptop profile is 262144), 4 FAIL-ENV (read the real GPU's free VRAM), 1 host-dependent (`dry_run_...`, section 4 finding 7) |
|
|
| tests of the other 25 default-members, `--no-fail-fast` | Win / WSL | FAIL 254 s / 322 s | Win: only `leleka-experimental-ref` `literal_port` (4 tests, real). WSL adds 3 `leleka-model-format` tests (FAIL-ENV, 9p; PASS on Windows and in WSL-ns, 143 tests) |
|
|
| `cargo clippy -D warnings --no-deps` per product crate | Win / WSL | FAIL except `leleka-runtime-client` | counts in section 4 finding 9 |
|
|
| `cargo fmt --check` on the shipped crates | Win | FAIL | per-crate hunks in finding 9 |
|
|
| `control-plane` format (`--full`) | WSL | FAIL | 290 hunks |
|
|
| `control-plane` Clippy (`--full`, no `--no-deps`) | WSL | FAIL | it lints path dependency `leleka-model-format` (known debt) |
|
|
| `desktop.yml`: Format / Lints / Hardware smoke | Win, WSL | FAIL / FAIL / FAIL | 22 hunks; same path-dependency Clippy failure; `cargo run` "could not determine which binary" (six binaries, no `default-run`) |
|
|
| `desktop.yml`: Tests | WSL | PASS | 161 tests |
|
|
| `smoke-*.py` of `linux-static-cli` against the glibc `strata-next` | WSL | mostly FAIL-ENV | 9p lacks `chmod` (key-file mode checks), numpy missing, one script hangs without a timeout (`smoke-wait-ready`, killed after 21 min) |
|
|
| python `test-*.py` of `--full` | WSL | 8 FAIL-ENV, 1 numpy | `chmod`, FIFO, symlink on 9p; `numpy` missing for `test-keyless-routing`; all PASS in WSL-ns except numpy |
|
|
|
|
### 3.2 After this branch, on the `f9003b7ce` base
|
|
|
|
| Step | Platform | Result | Notes |
|
|
| --- | --- | --- | --- |
|
|
| `check-local.sh --fast` | Win | PASS 173 s | the debt lines print `WARNING: known debt` (section 4 finding 9) |
|
|
| `check-local.sh --fast` | WSL-ns | PASS 183 s | |
|
|
| `check-local.sh --port` (type-check `x86_64-unknown-linux-gnu`, sampler host shim) | WSL-ns | PASS 168 s | live Python differentials SKIPPED (need a venv with numpy, PyYAML, tqdm, Jinja2, regex and a network fetch of llama.cpp `gguf-py`) |
|
|
| sampler host shim alone | Win | PASS 9 s | needed a `cygpath` line for Git Bash |
|
|
| `check-local.sh --product` | WSL-ns | **PASS** 541 s | coverage gate, PTX LF check, build, six release binaries, `cargo check` of the CUDA crates, 2250 tests passed / 0 failed / 170 ignored, fmt and Clippy hard gates; 4 debt warnings (the two host-dependent deploy tests, rustfmt of 5 crates, Clippy of `leleka-cuda-driver` and `leleka-runtime`) |
|
|
| `check-local.sh --full` (`STRICT_DEBT=0`) | WSL-ns | PASS up to the Python tests, then FAIL-ENV 227 s | stops at `test-keyless-routing.py`: `python3-numpy` is not installed in this WSL (the workflow installs it). Everything before it passed: fast path, type-check, shim, `py_compile`, 12 of 13 Python test scripts |
|
|
| the rest of `--full`: control-plane format / Clippy `--no-deps` / tests (416) / replay | WSL-ns | PASS | 4 s / 9 s / 278 s / 81 s |
|
|
| the rest of `--full`: `test-cuda-driver-bootstrap.sh`, `test-cuda-fixed-ptx.sh` | WSL | SKIPPED (run in section 3.4) | the Docker daemon is not running (Docker Desktop stopped); starting it is a system change. `test-cuda-fixed-ptx.sh` also downloads ptxas (26.7 MB) and nvdisasm (4.1 MB) from `developer.download.nvidia.com`, which I did not do without the owner's go-ahead. Its offline half (source dataflow assertions on `matvec.ptx`) PASS |
|
|
| the rest of `--full`: `cuda-stubs/check-cu.py` | | SKIPPED | `clang++` not installed (the script skips itself) |
|
|
| the rest of `--full`: `build-cpu.sh` | WSL | FAIL-ENV | "CMake 3.24 or newer is required"; `cmake` is not installed on either side |
|
|
| `STRICT_DEBT=1 check-local.sh --fast` | WSL-ns | FAIL 131 s, as designed | first debt: rustfmt of `leleka-model-format` |
|
|
| `desktop.yml`: Format / Tests / Lints (`--no-deps`) / Hardware smoke (`--bin strata-desktop`) | WSL-ns | PASS / PASS (161) / PASS / PASS | |
|
|
| `desktop.yml`: `dotnet restore/build`, `--self-check`, `reconnect.py`, `lifecycle.py` | | SKIPPED | .NET SDK 9.0.320 only; the project targets `net10.0` and the tests drive the dotnet app |
|
|
| `linux-static-cli`: musl build | WSL | SKIPPED | `aws-lc-sys` needs a musl C compiler (`x86_64-linux-musl-gcc`, package `musl-tools`); the musl target itself was added in a worktree-local copy of the toolchain and works. Everything else in the job was run against the glibc build, next row |
|
|
| `linux-static-cli`: 29 `smoke-*.py` against the glibc `strata-next` | WSL-ns | 23 PASS, 5 FAIL-ENV, **1 FAIL** | FAIL-ENV: `smoke-native-pack`, `smoke-native-bootstrap`, `smoke-mtp-pack`, `smoke-runtime-profile` (numpy), `smoke-systemd-manager` (builds a Docker image). FAIL: `smoke-messages.py` (finding 3) |
|
|
| `linux-static-cli`: combined-package fixture, runtime image, `linux-cli-container` | | SKIPPED | need `musl-gcc` and Docker |
|
|
| `keyless-cuda`, `static-cuda-package`, `hosted-cuda-package` (manual dispatch) | | SKIPPED | self-hosted GPU runner / CUDA toolkit download / Docker |
|
|
| `port.yml`: port-fast, port-typecheck, port-oracles (shim), port-linux-tests | | PASS / PASS / PASS (live differentials SKIPPED) / absent script, stays green | |
|
|
| `cargo build --locked` (30 default-members) | Win, after | PASS 28 s | |
|
|
| `cargo build --locked --release -p leleka-deploy` | Win, after | PASS | `leleka.exe` produced |
|
|
| YAML parse of the four workflows, `test-gitea-release.py` | WSL-ns | PASS | the contract test only reads `linux.yml`; adding `product.yml` does not touch it |
|
|
|
|
### 3.3 After the rebase onto `44fb442f5` (the tree that would be merged; final commits)
|
|
|
|
The rebase brought a new workspace member and new code, and the gates found problems in it at once.
|
|
|
|
| Step | Platform | Result | Notes |
|
|
| --- | --- | --- | --- |
|
|
| `scripts/check-ci-coverage.py` | Win / WSL | **FAIL, then PASS** | `leleka-obs: workspace default-member with no CI coverage entry`: the gate did its job; one line in `scripts/ci-coverage.json` and `-p leleka-obs` in the product test list |
|
|
| `check-local.sh --product` (first run) | WSL-ns | FAIL 1468 s, 2 steps | (a) `control-plane/tests/log_failure_sse.rs` `no_panicking_log_macros_in_the_serving_crate` is red on `main` itself: the observability merge added two test-only `eprintln!` samples (`prometheus.rs`, `request_log.rs`) that this source-scanning test forbids; (b) Clippy `items_after_test_module` in `crates/deploy/src/facts.rs` (`lab_holder_running` sits after `mod tests`) |
|
|
| the same two fixed (a non-panicking `write_fmt` to stderr with the same output; the function moved above `mod tests`) | | | no behaviour change |
|
|
| `check-local.sh --product` | WSL-ns | **PASS** 1106 s | 2337 tests passed, 0 failed, 172 ignored; the same 4 debt warnings as 3.2 |
|
|
| `check-local.sh --fast` / `--port` | WSL-ns | **PASS** 160 s / 193 s | |
|
|
| `desktop.yml` Lints (`--no-deps`) / control-plane format and Clippy | WSL-ns | **PASS** 12 s / 10 s | |
|
|
| `cargo test` control-plane (425) / desktop-core (161) | WSL-ns | **PASS** 267 s / 46 s | |
|
|
| `cargo build --locked`, release `leleka`, `check-local.sh --fast`, coverage gate, format hard gates | Win | **PASS** 102 s / 25 s / 204 s / 0 s / 1 s | |
|
|
|
|
### 3.4 The Docker- and tool-dependent steps, run in containers (branch `claude/ci-audit2`, base `main` at `55562fff7`)
|
|
|
|
How: Docker Desktop 4.42.1 (engine 28.2.2) on the laptop; a builder image `leleka-ci-audit2-builder` made from the CI's own pinned Ubuntu base
|
|
(`ubuntu@sha256:f610ab94...`) with the packages the workflows `apt-get install` (build-essential, cmake, ninja, clang, musl-tools, python3-numpy,
|
|
docker CLI and buildx, systemd), rustup 1.29.0 and Rust 1.99.0 with the musl target. The source was a `git -c core.autocrlf=false archive` of the
|
|
branch in a Docker volume (a real Linux filesystem with the git modes of the index, which is what a runner checkout is; the Windows and `/mnt/c`
|
|
runs of section 3.1 show every file as executable and could not see the mode problem). The host's Docker socket was mounted so the scripts that
|
|
call `docker` ran as they do on a runner. The musl build used a bind-mounted `CARGO_TARGET_DIR` inside the worktree (`target/musl-ci`).
|
|
Nothing was installed on Windows or in the Ubuntu WSL distro. Logs: `artifacts/ci-audit2/` in the worktree (ignored by Git).
|
|
|
|
| Step | Result | Notes |
|
|
| --- | --- | --- |
|
|
| any workflow job's first step, `scripts/install-pinned-rustup.sh`, and `scripts/test-cuda-fixed-ptx.sh` / `test-cuda-driver-bootstrap.sh` / `build-cpu.sh`, run by path from a git checkout | **FAIL, fixed** | `Permission denied`: the 2026-10-14 import commit `7f896a8bb` changed 100755 to 100644 on 16 scripts. Modes restored (`engine/strata` untouched) |
|
|
| `scripts/test-cuda-fixed-ptx.sh` (verify job; pinned ptxas/nvdisasm in a GPU-less container) | **FAIL, fixed, PASS** 24 s | asserted the CUDA 13.0 pins; the lock moved to 13.2.2 on 2026-10-14. Pins updated to 13.2.86 from the official manifest (checked against the lock's `manifest_sha256`); the SASS dataflow assertions hold for the new ptxas |
|
|
| `scripts/test-cuda-driver-bootstrap.sh` | **FAIL** (stale), now debt in `--full` | builds a synthetic workspace of `crates/cuda-driver` alone; the crate gained path dependencies (`leleka-context`, `-model-format`, `-experimental-ref`) so `cargo metadata` fails, and the script also runs `cargo fmt --check` and Clippy `-D warnings` on the crate (finding 9). The same mock-ELF gates run on the real tree in the next row |
|
|
| `scripts/linux-tests/run.sh` (the `port-linux-tests` job) | **PASS** 441 s | `leleka-cuda-driver` 437 passed / 104 ignored, `leleka-runtime` 631 / 60, `leleka-native-cpu-expert` 30 / 4; 0 failed |
|
|
| `scripts/linux-tests/run.sh --mocks` (fake `libcuda.so.1` protocol gates) | **FAIL, fixed, PASS** | the fake lacked `cuStreamSynchronize`, which `Driver::load` now resolves eagerly (load-only stub added to `mock_cuda.c`); `port.yml` now runs the gates |
|
|
| musl static CLI build (`control-plane`, `--release --target x86_64-unknown-linux-musl`) | **FAIL, fixed, PASS** 353 s | `leleka-model-format` used `libc::MADV_COLLAPSE`, which libc 0.2.190 does not define for musl; spelled out locally (25, glibc's value). ELF: no `INTERP`, no `NEEDED`; `strata-next 0.1.0`, sha256 `f6d6cb85ad1a26d8cec804e3dd8eb1ad0b20f8c4b1d422bc366b7583c838d875` |
|
|
| `linux-static-cli`: 29 `smoke-*.py` against that binary | 26 PASS, **3 FAIL** | `smoke-messages` (finding 3, now confirmed on a clean filesystem); `smoke-mtp-pack` (finding 14); `smoke-systemd-manager` (finding 15). `smoke-service-unit` needs `systemd-analyze`, added to that job's apt list |
|
|
| `linux-static-cli`: embedded CPU worker packaging, controller deployment, runtime image build and probe | **PASS** | `build-linux-package.py --cpu-fixture`, `smoke-embedded-engine`, `smoke-controller-deployment`, `build-runtime-image.py --cpu-fixture`, `smoke-runtime-image`; the owned fixture image is removed. Needs BuildKit: Ubuntu's `docker.io` has no `buildx`, and `COPY --chmod` fails on the legacy builder, so `docker-buildx` is added to that job's apt list |
|
|
| `linux-cli-container` (`deploy/Dockerfile.static-cli` build, `smoke-cli-container.py`) | **FAIL, fixed, PASS** 118 s | the Dockerfile added the musl target before copying `rust-toolchain.toml`; the floating `rust:1.99` tag is 1.99.1 and the pin is 1.99.0, so the target went to the wrong toolchain ("can't find crate for `core`"). Now after the COPY. "CLI OCI passed: actual image, exact upstream license, no embedded engine/model, non-root read-only health200/ready503, graceful stop" |
|
|
| `build-cpu.sh` (cmake, 16 ctest targets) | **PASS** 150 s | 16/16 |
|
|
| `scripts/cuda-stubs/check-cu.py` (clang) | **FAIL (advisory), partly fixed** | on glibc/libstdc++ all 104 files failed on name clashes with libm (1236 errors); stub definitions skipped under `__GLIBC__`, a missing include directory for `s26_tsum.cuh` added, and `check-local.sh` now runs the C++-only `--plain` pass off macOS: 101/104 pass. The 3 failures are `static_assert(sizeof(FusedGrArgs)==112)` / `GrMulti==912` in `chain_window.cu`, `mtp_original_full_fused_gr.cu`, `mtp_original_scalar_gr.cu`: the stub types give 168 / 1360, so either the stub types differ from the CUDA ones or the ABI drifted; not resolved here. Clang's CUDA frontend mode passes 22/104 on Linux (it needs macOS-only stub overloads) |
|
|
| `check-local.sh --full` (CI `verify` job environment, includes `test-keyless-routing.py` with numpy) | **PASS** 437 s | exit 0: fast path, type-check, shim, 13 Python test scripts (146 unittest cases), Linux-only block, control-plane gates, replay, `build-cpu.sh`; 1402 Rust tests passed, 104 ignored; reported debt: `literal_port` (4), rustfmt/Clippy debt, `test-cuda-driver-bootstrap.sh`, the 3 stub files |
|
|
| `port.yml` port-oracles: live differentials against the unmodified Python (numpy 2.5.4, PyYAML 6.0.3, tqdm 4.70.1, Jinja2 3.1.6, regex 2026.9.10; llama.cpp `gguf-py` at the pinned commit) | **4 PASS, 3 FAIL** | PASS: `tokenizer` (14,456,832 pre-tokenizer strings, 0 real mismatches), `dequant` (69 fixtures, 23 types, bit-exact), `tools` (5 tools byte-identical), `mtp_fetch` (10 scenarios). **FAIL**: `native_pack` 60 of 2755 cases, `gguf_header` 188 of 400, `chat_template` 136 of 3000 (finding 16); fixed on `claude/offline-diff`) |
|
|
| `desktop.yml` with .NET 10.0.403 | **PASS** 91 s | `dotnet restore --locked-mode`, build (0 warnings, 0 errors), `--self-check` (C# to gRPC to the Rust node), `reconnect.py`, `lifecycle.py`; the two macOS-only SSH tests do not apply |
|
|
| workflow YAML parse, `test-gitea-release.py` (26 tests) after the edits | **PASS** | |
|
|
| `hosted-cuda-package` (manual dispatch) | SKIPPED | builds the Original engine with a downloaded CUDA 13 toolkit (several GB, hours of compile) on an isolated CPU runner; no model or GPU is needed but it is a release build, not a check |
|
|
| `keyless-cuda`, `static-cuda-package` (manual dispatch) | SKIPPED | need the self-hosted GPU runner |
|
|
| `release-cli` publish, `linux-static-cli` publish | SKIPPED | publish through the Gitea API with a token; the build and verify steps before them are the rows above |
|
|
|
|
## 4. Findings, ranked
|
|
|
|
1. **The product was not built or tested by CI** (section 2). Fixed by `product.yml` + `check-local.sh --product` +
|
|
the coverage gate.
|
|
2. **`main` was red in the gates that exist**: rustfmt in two "strict" crates, a Clippy lint in `leleka-tokenizer`, the
|
|
`cargo test -p leleka-cuda-driver` line that cannot compile, control-plane and desktop-core format, the Clippy lines that
|
|
lint dependencies' debt, the desktop hardware smoke, a stale `8192` assertion. Fixed (section 5), except the debt below.
|
|
3. **`smoke-messages.py` fails against the current `strata-next`, and the cause may be a prompt change.** For a Messages
|
|
`tool_result` with `is_error: true`, the control plane builds `json!({"is_error":true,"content":text})` (`control-plane/src/messages.rs:268`).
|
|
Since 2026-10-27 `leleka-harmony` enables `serde_json/preserve_order` (commit `3bedec610`), which feature unification applies to the
|
|
`strata-next` build, so the object is now serialized `is_error` first; before, `serde_json` sorted the keys (`content` first). The
|
|
Rust unit test (`messages.rs:643`) expects the new order, the Python smoke expects the old one and also expects the Messages
|
|
path to match the Responses path byte for byte. Either the smoke is stale or the prompt text of error results changed for
|
|
Claude Code clients. This is an owner decision (tool-call integrity, AGENTS.md priority 2); I did not change it.
|
|
4. **The Oct-25 upstream sync left the experimental CUDA ports behind**: `leleka-experimental-ref` `literal_port` failed 4 of 6
|
|
tests (`kv_stream`, `kv_q4`, `kv_q8`, `qsa_attn`: 1, 5, 20 and 197 Original kernel-body lines missing from
|
|
`crates/cuda-driver/src/experimental_*.cu`). **Closed** on `claude/experimental-resync` (2026-11-03): the four `.cu` were re-synced,
|
|
`literal_port` passes and is a hard gate again; what drifted and what still needs a server-side PTX reseal is in
|
|
`docs/experiments/2026-10-14-experimental-modes-port.md` ("Re-sync").
|
|
5. **`main` itself has red tests the CI would have shown**: `log_failure_sse::no_panicking_log_macros_in_the_serving_crate` since the
|
|
observability merge, and `literal_port` (finding 4). The first is fixed here; the second is fixed on `claude/experimental-resync`.
|
|
6. **Tests that depend on the host instead of the code.** The `leleka-deploy` end-to-end tests read the real GPU through
|
|
`nvidia-smi` (free VRAM) and the default loopback ports 18766/18080. On this laptop, with another agent's engine running,
|
|
5 of 6 failures were of this kind; `docs/deploy.md` ("all passing in WSL") was true only on an idle GPU. A CI host has no
|
|
GPU at all. `scripts/ci/nvidia-smi` is a stand-in that makes all but two of the 18 pass anywhere.
|
|
7. **Two deploy tests cannot both pass on one machine**: `dry_run_prints_the_plan_and_changes_nothing` needs a 5090-class host
|
|
with at least 141.7 GiB free disk and free default ports; `a_failing_preflight_stops_before_any_change_and_says_how_to_fix_it`
|
|
needs a host that cannot hold the 5090 profile. They are reported as debt in the product job. Fix: each test writes its own
|
|
stand-in `nvidia-smi` into its fixture and passes it through `PATH` (the facts reader already honours `PATH` first).
|
|
8. **Filesystem-dependent tests**: 2 `leleka-runtime`, 3 `leleka-model-format` and 8 Python test scripts need chmod, FIFO,
|
|
symlink or ownership semantics. They fail on `/mnt/c` and pass on a real Linux filesystem. Run Linux checks from ext4
|
|
(`~/work/leleka` on the server), never from `/mnt/c`.
|
|
9. **Format and Clippy debt, by crate** (reported by `debt`; `STRICT_DEBT=1` makes it fatal). rustfmt hunks before this branch:
|
|
`leleka-runtime` 2833, `leleka-cuda-driver` 1970, `leleka-native-cpu-expert` 396, `leleka-deploy` 281,
|
|
`leleka-experimental-ref` 226, `leleka-memory` 224, `leleka-model-format` 143, `leleka-libc-shim` 34; now clean:
|
|
`strata-control` (290), `strata-desktop-core` (22), `leleka-runtime-client` (8), `leleka-backend-api`, `leleka-context`.
|
|
Clippy errors on Linux (`-D warnings`, lib target): `leleka-cuda-driver` 372, `leleka-runtime` 196, `leleka-model-format` 4.
|
|
`leleka-memory` also has 3 Windows-only Clippy errors (unused imports, dead code) and `leleka-deploy` 2 (`layout.rs`, `winsys.rs`);
|
|
the Linux gate does not see them. Other agents own those sources, so they were not mass-reformatted.
|
|
10. **Stale lock files.** `control-plane/Cargo.lock` and `desktop-core/Cargo.lock` (2026-10-05) are ignored by Cargo because both
|
|
crates are workspace members; `--locked` uses the root `Cargo.lock`. They disagree with it (tokio 1.53.1 vs 1.53.2) and give a false
|
|
impression of what is locked. Recommend `git rm` (not done: no deletes).
|
|
11. **`smoke-wait-ready.py` has no timeout** and hung for 21 minutes when the engine mock could not start (9p run). A runner would
|
|
wait until its job timeout.
|
|
12. **Worktree pitfall.** The owner's global `core.autocrlf=true` makes `git worktree add` write CRLF into all 4434 text files
|
|
including the sealed `.ptx`, which makes the binary refuse to start. `scripts/dev/worktree.sh` now passes `-c core.autocrlf=false` (the same hazard was found independently on the release branch,
|
|
whose `*.ptx -text` line in `.gitattributes` is on `main`; the first commit of this branch also carried one and lost it in the rebase), and the product
|
|
job fails if a CR is found in a sealed PTX.
|
|
13. **No timing or stability data**: nothing here is flaky-tested; each step was run once (twice for the fixed ones).
|
|
|
|
14. **`smoke-mtp-pack.py` is stale after the upstream sync.** It discovers the MTP tensor names with a regex over
|
|
`engine/strata/src/core/mtp.cpp`; in engine 0.1.50 that file lists them in a `required[]` array and reads them through `wq(...)`, so
|
|
`self_attn.q_proj.weight` is not generated and `assert bad_index != good_index` fails. **Fixed on `claude/offline-diff`**: the nine Q8_0
|
|
names are now read from `required[]` and `wq("...")` (all 26 names resolve in the pinned manifest; an assertion fails if the count changes).
|
|
Not run end to end there (the smoke needs a Linux `strata-next`, a POSIX shell worker and Python 3.11).
|
|
15. **`deploy/Dockerfile.systemd-smoke` pins apt package versions that no longer exist** (`systemd=255.4-1ubuntu8.17`,
|
|
`ca-certificates=20260601~24.04.1`; apt answers "Version ... was not found"), so `smoke-systemd-manager.py` cannot build its image. Version pins
|
|
rot against a rolling archive. **Fixed on `claude/offline-diff`**: the version pins are gone, the base-image digest stays. The image build was
|
|
not re-run (Docker Desktop could not start again, see 18).
|
|
16. **The offline-port differentials against the updated Original fail in three places** (found in 3.4; root causes and fixes on
|
|
`claude/offline-diff`, 2026-11-03):
|
|
* `chat_template` (136 of 3000): a **real port drift in the prompt bytes**. The sync to Strata 41cf05a0 (2026-10-25) brought `ChatTemplate.render`
|
|
a filter (#843) that removes completed empty assistant turns before the template runs (assistant message, no text after `str.strip()`, no
|
|
picture, no tool calls; the final message is always kept; `STRATA_KEEP_EMPTY_TURNS=1` turns it off; a reasoning content does not keep a turn;
|
|
a content Python cannot iterate, such as a number, fails the render). `control-plane/src/prompt.rs` did not have it, so an assistant message with
|
|
`content: null`, `""` or a reasoning-only turn rendered as `<|im_start|>assistant
|
|
<think>
|
|
|
|
</think>
|
|
|
|
<|im_end|>
|
|
` in Rust and not at all in
|
|
Python. Ported literally in `Renderer::render` and in the typed `render_with_images` path (native renderer included); 0 failures in
|
|
3000, 2 x 12000 further cases. Real sessions: only a conversation that carries such a turn is affected, i.e. an empty assistant output item or a
|
|
replayed `reasoning` item followed by a user turn (an interrupted or cancelled turn); turns with tool calls and any turn with text render as
|
|
before (no captured session was replayed for this: the captures are not in Git). Since 2026-10-25 the Rust prompt differed from the Original for
|
|
those conversations. `responses.rs` had one test that asserted the old behaviour (unfinished reasoning kept before the next user turn); it now asserts the Original's.
|
|
`chat_template_oracle.json` was regenerated from the Original (it encoded the old behaviour: 11 of 112 shared requests changed).
|
|
* `gguf_header` (188 of 400): the Original's `gguf_reader.py/.hpp` gained the APR trellis types 143 to 146 (`PTQ1_0`, `TQ2_T`, `TQK6`, `TQK7`,
|
|
128-value blocks of 28/34/26/30 bytes); `leleka_model_format::gguf::block_geometry` did not know them. Added; `gguf_headers.json` regenerated (it now covers them); 0 failures in 400.
|
|
* `native_pack` (60 of 2755): (a) `iq_pack.py` `NATIVE_PLE_KEY` gained IQ3_XXS and IQ4_XS (#381, the runtime side `native_dense_plan.rs` already had them), so
|
|
`native_pack.rs` converted such a PLE key to BF16 or refused it: fixed (`native_ple_key`). (b) the `f16_nan` cases used the signaling NaN
|
|
0x7D55, whose numpy widening to F32 differs between numpy builds (2.0.2 keeps it, the 2.5.4 run of 3.4 did not); that is the oracle disagreeing with itself,
|
|
not the port, so the case now uses a quiet NaN (0x7F55). (c) **Not ported, now refused**: the Original's NVFP4 expert tail (16 bytes of scales per blob, forced
|
|
`experts.bin`) and `prism.hadamard.*` experts (`hadamard.txt`, `native_experts.txt` v5, resumable `experts.bin`); the runtime here reads neither, so a pack
|
|
without them would be silently wrong. The Rust packer returns an error naming the feature. The live `native_pack` differential could not be re-run on the laptop
|
|
(on Windows the Rust packer ends in "Access is denied" after verifying the input, probably its directory fsync, and Docker Desktop did not start): its unit tests and the (a) and (c) paths are covered by
|
|
`native_pack` unit tests; the 2755-case run needs one pass in a container.
|
|
The other four differentials (tokenizer, dequant, tools, mtp_fetch) were re-run against the fixed binary and still match.
|
|
Also found, not fixed (stale goldens, not differentials): regenerating `reasoning_budget_oracle.json` from the Original changes 59 of 400 `Service.run` cases
|
|
(every pre-cancelled run, and 25 thinking runs whose completion token count differs; `server.py` gained the answer-room and `#984` budget clamp), and
|
|
`setup_policy_oracle.json` changes in 1204 places (a new 204800 context step in `setup.py`). Both ports (`reasoning_budget.rs`, `leleka-context` setup policy)
|
|
are behind 41cf05a0; the committed goldens still pass because they are the old Original's.
|
|
17. **Every workflow job failed at the first script on a real Linux checkout** (mode loss, see section 3.4) and **the static musl CLI did not
|
|
compile** since the huge-page work (2026-11-01), so `linux-static-cli`, `release-cli` and `linux-cli-container` were red as well. Fixed.
|
|
18. **Docker Desktop on this laptop could not start**: `%LOCALAPPDATA%\Docker\run\dockerInference` was a stale 0-byte socket file from 2025-06-20 that
|
|
nothing (Docker, `del`, `icacls`) could remove ("The file cannot be accessed by the system", error 1920). The directory `run` was renamed to
|
|
`run.stale-before-ci-audit-20260625`, Docker created a fresh one; the renamed directory can be deleted. It happened again on 2026-11-03: the
|
|
`dockerInference` socket file the audit run left behind (the app was not quit cleanly) blocked the next start with the same error. Docker Desktop
|
|
stays unusable until `run` is renamed again, and each unclean quit recreates the problem; nothing outside the repository folder was touched to work around it.
|
|
|
|
## 5. What changed on this branch
|
|
|
|
Commit "ci: build and test what ships ..." (CI and repairs):
|
|
|
|
* `.github/workflows/product.yml` (new, Gitea conventions of `linux.yml`): runs `scripts/check-local.sh --product` on `ubuntu-latest`.
|
|
* `scripts/check-local.sh --product`: coverage gate; PTX LF check; `cargo build --locked`; release build of `leleka`, `strata-next`
|
|
and the four desktop-core binaries with `--features sm86`, and a check that all six exist; `cargo check --all-targets` of
|
|
`leleka-cuda-driver --features cuda-driver` and `leleka-runtime`; tests of all the crates that ship (and of the 17 CPU/iGPU/NPU
|
|
default-members); rustfmt and Clippy as hard gates where clean, `debt` where not. A failing step is recorded and the rest still
|
|
runs, so one red run lists everything.
|
|
* `scripts/check-ci-coverage.py` + `scripts/ci-coverage.json`: fails when a workspace member is not listed, when a default-member is
|
|
exempt, when an entry is stale, or when no workflow or `check-local.sh` step names a "tested" crate.
|
|
* `scripts/ci/nvidia-smi`: stand-in used by the product job for the deploy tests.
|
|
* `check-local.sh`: `-p leleka-cuda-driver --features cuda-driver`; `literal_port` split out as debt (re-synced and made a hard gate again by `claude/experimental-resync`); control-plane Clippy `--no-deps`.
|
|
* `desktop.yml`: hardware smoke with `--bin strata-desktop` (first commit); Lints with `--no-deps` (the "docs: ci-audit" commit).
|
|
* Formatting of `leleka-backend-api` and `leleka-context`; a local type alias in `leleka-tokenizer` (`fast.rs`); four one-line
|
|
Clippy fixes (`leleka-memory` `governor.rs` redundant cast, `leleka-deploy` `app.rs`, `wsl.rs`, `reconfigure.rs` test);
|
|
the stale context assertion in `crates/deploy/tests/e2e.rs`.
|
|
* `run_port_host_tests.sh` under Git Bash; `worktree.sh` against the autocrlf pitfall; `.gitattributes` keeps the CI scripts and workflows LF.
|
|
|
|
Commit "ci: cover leleka-obs": `leleka-obs` added to `scripts/ci-coverage.json` and the product test list.
|
|
|
|
Commit "style: cargo fmt on strata-control ..." (separable): `cargo fmt` on `strata-control`, `strata-desktop-core`, `leleka-runtime-client` (37 files), the
|
|
four Clippy lints in them (`tool_output.rs`, a test `mut`, a collapsible `if` in `leleka-inference.rs`, `allow(dead_code)` on
|
|
`observer_adaptive_slots`), the `log_failure_sse` fix and the `facts.rs` reorder of section 3.3. An earlier version of this commit
|
|
conflicted with the observability merge, which is why it was redone on top of it; if more branches land in these crates first, drop it
|
|
and re-run `cargo fmt -p strata-control -p strata-desktop-core -p leleka-runtime-client`.
|
|
|
|
Nothing in this branch touches a kernel, `.cu`/`.ptx`, an engine numeric path, or runtime behaviour. The edits to compiled code
|
|
are formatting, a type alias, a function moved above a test module, a test-only `eprintln!` replaced by `write_fmt`, `then` to `then_some` of a struct holding borrows, `% 2 == 0` to `is_multiple_of(2)`, a removed
|
|
identity cast, `chunks_exact(2)` to `as_chunks::<2>()` in a console-text decoder, and a removed unused `mut`. Release builds were
|
|
re-run after them; bitwise identity of engine output is unaffected because no engine code path changed semantically.
|
|
|
|
Branch `claude/ci-audit2` (follow-up, on `main` at `55562fff7`):
|
|
|
|
* "scripts: restore the executable bit ..." (16 scripts, modes only).
|
|
* "ci: repairs found by running the Docker- and tool-dependent steps in containers": `scripts/test-cuda-fixed-ptx.sh` pins (13.2.86),
|
|
`MADV_COLLAPSE` spelled out in `crates/model-format/src/huge_pages.rs` (value 25, as in glibc's libc; musl has none), the
|
|
`deploy/Dockerfile.static-cli` toolchain order, `mock_cuda.c` load-only `cuStreamSynchronize`, `port.yml` runs `run.sh --mocks`, the
|
|
`scripts/cuda-stubs` glibc fixes with `check-local.sh` using `--plain` off macOS, and `test-cuda-driver-bootstrap.sh` as debt in `--full`.
|
|
* The documentation commit: this section, 3.4, findings 14 to 18, and `docker-buildx systemd` in the apt list of `linux-static-cli`.
|
|
|
|
No kernel, `.cu`/`.ptx` content or engine numerics changed. The only edit to compiled engine-side code is the local `MADV_COLLAPSE` constant.
|
|
|
|
## 6. What CI cannot prove (and where the evidence is)
|
|
|
|
| Not proved by any CI step | Evidence that exists, and where |
|
|
| --- | --- |
|
|
| GPU kernels compute the right values (sm_120 / sm_86 PTX, MMQ, attention, GDN, MTP) | The PTX is only assembled by `test-cuda-fixed-ptx.sh` (two toy kernels) or compiled in as bytes. Kernel identity vs the Original: `docs/ledger.md`, `docs/quality-gate.md`, `docs/sm86-assets.md`, per-feature docs in `docs/` |
|
|
| Model quality and tool-call integrity at 256k | `docs/quality-gate.md`, `docs/e2e-run.md` (real Codex CLI sessions on the 5090) |
|
|
| Speed: decode/prefill/agent throughput, prefix cache | `docs/e2e-run.md`, `docs/ledger.md`, `docs/prefix-cache.md`, `docs/roofline.md`, `docs/experiments/draft-round-5090.md` |
|
|
| Memory fit on a real card (VRAM budget, pinned RAM, WSL2 limits), driver >= 595, `libcublas.so.12` | `docs/deploy.md` §10, `docs/laptop-profile.md`, `docs/windows.md` |
|
|
| `leleka up` acceptance on a clean GPU node (charter G2) | `docs/deploy.md` §1 states it has not been run |
|
|
| The packaged tarball installs and starts | `scripts/package-release.py` is not run by any workflow; `docs/deploy.md` §8 |
|
|
| The CPU/iGPU/NPU runtime on real hardware | `docs/cpu-runtime.md`, `docs/worker-pool.md` (CI only runs the host-testable parts) |
|
|
| Windows native behaviour | not in CI; `docs/windows.md`, this audit's Win rows |
|
|
| The desktop app (Avalonia, dotnet) | `desktop.yml` can only run it with .NET 10 |
|
|
| That the workflows run on the Gitea instance at all | section 1 |
|
|
| Concurrency, soak, crash recovery under load | `scripts/soak` on branch `claude/unattended`, `docs/port-remaining.md` |
|
|
|
|
## 7. What the owner has to install or decide
|
|
|
|
* **Check the Actions tab on the Gitea repository** (section 1) and register a runner with the `ubuntu-latest` label that has Docker,
|
|
root in the job and network access if none exists; the three GPU jobs need the `strata-gpu` runner.
|
|
* Local runs of everything no longer need host installs: the container recipe of section 3.4 reproduces the CI environment (the Dockerfile is
|
|
not committed; it is `ubuntu@sha256:f610ab94...` plus the apt lists of the workflows, `scripts/install-pinned-rustup.sh`, `docker-buildx`,
|
|
`systemd`). On the server, `scripts/check-local.sh` runs natively with those packages and Docker.
|
|
* Decide on findings 14, 15 and 16 (stale MTP smoke, rotting apt pins, the three live differentials) and on the three
|
|
`static_assert` ABI failures of the stub check (section 3.4).
|
|
* Decide on finding 3 (error `tool_result` key order in Messages prompts), finding 4 (re-sync of the experimental CUDA ports), finding 7
|
|
(per-test `nvidia-smi` stand-ins), and whether to `git rm` the two stale lock files.
|
|
* Merge: `claude/ci-audit` (5 commits on top of `44fb442f5`) merges cleanly into `main` at `1cebffd58` (`git merge-tree`); it adds a new
|
|
workflow, which runs on the next push once a runner exists. Expect the first hosted run to find host differences this laptop could not (disk space, runner
|
|
image, Docker access).
|
|
|
|
## 8. Reproduce
|
|
|
|
```sh
|
|
git -c core.autocrlf=false worktree add .git/wt/x claude/ci-audit # or scripts/dev/worktree.sh new x claude/ci-audit
|
|
scripts/check-local.sh --product # ~10 min warm; Linux on a real filesystem (not /mnt/c), no GPU
|
|
scripts/check-local.sh --fast # also Windows (Git Bash); the Linux type-check needs the target or SKIP_LINUX_TYPECHECK=1
|
|
scripts/check-local.sh # the full legacy gate; needs python3-numpy, cmake, Docker
|
|
```
|
|
|
|
WSL-ns wrapper used here (nothing outside the worktree is written): `unshare -rmn sh -c 'ip link set lo up && mount -t tmpfs
|
|
tmpfs /tmp && mount -t tmpfs tmpfs <worktree>/target/stra157-sdet && mount -t tmpfs tmpfs <worktree>/target/stra169-mtp-binder &&
|
|
exec setpriv --inh-caps=-all --bounding-set=-all --ambient-caps=-all "$@"' sh <command>`.
|