Files
leleka/scripts/ci/nvidia-smi
T
Pavlo RatushnyiandClaude Sonnet 5.5 4ca30c9e1c ci: build and test what ships (check-local --product, Product workflow, coverage gate) and repair the red checks
The existing workflows never built the `leleka` binary (crates/deploy) or ran the tests of leleka-deploy, leleka-memory,
leleka-runtime-client, leleka-runtime or leleka-cuda-driver (docs/ci-audit.md). New: scripts/check-local.sh --product and
.github/workflows/product.yml (default-member build, release build of the six shipped binaries, cargo check of the CUDA-feature
crates, tests, rustfmt/Clippy), scripts/check-ci-coverage.py + scripts/ci-coverage.json (fail when a workspace member has no CI
coverage entry), scripts/ci/nvidia-smi (hermetic stand-in for the deploy end-to-end tests).

Repairs found by running every step: check-local --fast failed on rustfmt in leleka-backend-api/leleka-context and on Clippy
type_complexity in leleka-tokenizer (formatting and a local type alias only); `cargo test -p leleka-cuda-driver` does not compile without
its cuda-driver feature (script now passes it); the desktop.yml hardware smoke step had no --bin (six binaries, no default-run);
the stale 8192 context assertion in crates/deploy/tests/e2e.rs (the laptop profile is 262144 since 621d35276); five trivial Clippy
lints in leleka-memory and leleka-deploy; the literal_port drift guard (red since the 2026-10-25 upstream sync) is reported as debt;
control-plane Clippy no longer lints its path dependencies; the sampler host-shim script works under Git Bash; worktree.sh creates
worktrees with core.autocrlf=false and .gitattributes marks the sealed PTX -text (a CRLF checkout makes the binary refuse to start).
No kernel, engine numeric or runtime behaviour is changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 23:32:24 +01:00

10 lines
695 B
Bash
Executable File

#!/bin/sh
# Hermetic stand-in for nvidia-smi, put first in PATH by `scripts/check-local.sh --product` (and the Product workflow).
# The leleka-deploy end-to-end tests read the host GPU through `nvidia-smi` and the default loopback ports; without this stand-in
# their result depends on the machine they run on (a CI host has no GPU, a workstation has a busy one). It reports one idle
# RTX 5090 (32 GiB, sm_120, driver 595.71.05) and nothing else; no CUDA, no GPU access, no output beyond the query the tool makes.
case "$*" in
*--query-gpu*) echo "0, NVIDIA GeForce RTX 5090, 595.71.05, 32607, 32100, 12.0" ;;
*) echo "scripts/ci/nvidia-smi: hermetic stand-in, not the NVIDIA tool" ;;
esac