Repository navigation
Validate Skippy CLI argument graphs in tests - #243
Conversation
Ported-from: Mesh-LLM/mesh-llm#3170 Source-commit: 658fe9e1ad902d1cb5c4f35416b2aca22bb7f082
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
@i386 The required
I have left this author declaration unchecked while working through CI. |
Skippy Lab Qualification: Failed or incompleteCommit: Inference admission or qualification incomplete or failed. Latest successful main: run 45835599636, attempt 1, commit
TPS comes from three separate warmed, uncached probes at concurrency 1, each generating exactly 128 tokens. The scored correctness answers and each probe's 64-token warmup are excluded. Each rate is total tokens / total server-reported phase time, not an average of request rates. Client elapsed times and raw responses are retained in throughput-probe.json. These bounded samples are not sustained benchmarks or controlled speedup comparisons. Legacy short-answer receipts and missing or invalid probe evidence show as Unavailable. Deltas use unrounded rates from matching PR-profile smoke receipts on the latest successful main run, including the nightly smoke evidence. Positive means faster. Changed workload inputs, different serving host classes, unequal phase token counts or missing evidence show Unavailable. Physical Spark placement and runtime conditions can differ; deltas are descriptive, not controlled speedup claims. Smoke checks cover GPU startup, deterministic endpoint repeats and bounded streaming. They do not establish an AgentX performance score. Nightly history and saved performance baselines are published separately; a saved baseline can be older than the latest successful main run used here. Native build and qualification output streams into each configuration’s Actions log, with per-attempt copies in Saved evidence. Any capture gaps are reported in the log and saved diagnostics. GitHub evidence copies expire after 30 days. |
i386
left a comment
There was a problem hiding this comment.
Reviewed the eight Clap command graphs against the Mesh source and their standalone entry points. The port covers both skippy parsers, the benchmark and metrics binaries, the correctness CLI, and the three model-package helpers. The checks run with debug assertions in the regular test profile. I found no actionable issues.
Signed-off-by: James Dumay <james@generalinference.xyz>
michaelneale
left a comment
There was a problem hiding this comment.
Clap debug_assert tests for CLI argument graph validation. Add-only (76 lines, no deletions). All CI checks green. Trivially safe — no runtime, ABI, or wire changes. Reviewed by Glum on behalf of @mic.
## Title Validate the Mesh CLI argument graph in debug tests ## Original problem A malformed clap command tree can silently ignore an argument or impose an impossible requirement unless a test checks the graph with debug assertions enabled. ## Diagnostics The Mesh CLI had no test invoking clap's `debug_assert` on the root command. This checks argument identifiers, groups, conflicts, requirements, actions, and value parsers. ## Fix Add a debug-build test for the Mesh CLI root command. Standard debug test runs exercise the graph, and release-profile tests build without this debug-only case. After #3193, the standalone CLI and tool checks are tracked in Mesh-LLM/skippy#243. ## Validation - [x] The Mesh CLI library suite passed all 154 tests locally, including the new graph check. The broader workspace run reached an existing macOS ACL display assertion. - [x] This change affects tests and has no UI changes. --------- Signed-off-by: James Dumay <james@generalinference.xyz> Co-authored-by: James Dumay <james@generalinference.xyz>
Original problem
Clap validates argument relationships and parser wiring when
Command::debug_assert()runs. A broken declaration can otherwise survive compilation and fail when users invoke the command.Ported from Mesh #3170 for the Skippy cutover.
Diagnostics
The regular
skippyparser and the assembledskippy serveparser have separate command graphs. The source PR identifies both entry points and the standalone helper binaries.Fix
Run Clap's argument-graph checks under debug assertions for the two Skippy parsers, the benchmark and metrics binaries, the correctness CLI, and the three model-package helpers. Gate whole modules when they contain only graph checks, so release-profile test builds also omit their test-only imports.
Validation
On macOS arm64 with Rust 1.99.1, formatting, focused compilation, warning-denying all-target Clippy, and offline tests passed for all five affected crates with
skippy-cli/dynamic-native-runtime. The suites include the new parser regressions and applicable integration and documentation tests. All eight graph tests ran in the default profile. The release test listing contained zero graph tests with release optimization and LTO disabled for this check.cargo fmt --all --checkcargo check --locked --offline -p llama-spec-bench -p metrics-server -p skippy-cli -p skippy-correctness -p skippy-model-package --features skippy-cli/dynamic-native-runtimecargo clippy --locked --offline -p llama-spec-bench -p metrics-server -p skippy-cli -p skippy-correctness -p skippy-model-package --features skippy-cli/dynamic-native-runtime --all-targets -- -D warningscargo test --locked --offline -p llama-spec-bench -p metrics-server -p skippy-cli -p skippy-correctness -p skippy-model-package --features skippy-cli/dynamic-native-runtimeAcceptance criteria