Skip to content

Validate Skippy CLI argument graphs in tests - #243

Merged
i386 merged 2 commits into
mainfrom
port/mesh-3170-clap-assertions
Nov 28, 2026
Merged

i386 merged 2 commits into
mainfrom
port/mesh-3170-clap-assertions

Conversation

@i386

@i386 i386 commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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 skippy parser and the assembled skippy serve parser 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 --check

cargo 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-runtime

cargo 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 warnings

cargo 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-runtime

Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.
  • I agree to license my contributions under the Apache License, Version 2.0.

Ported-from: Mesh-LLM/mesh-llm#3170

Source-commit: 658fe9e1ad902d1cb5c4f35416b2aca22bb7f082
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 866bbbd0-6206-47df-9a99-a835b605f2e4
Commits

Reviewing files that changed from the base of the PR and between bd52f67 and 6c17deb.

Files selected for processing: 7

  • crates/llama-spec-bench/src/main.rs
  • crates/metrics-server/src/cli.rs
  • crates/skippy-cli/src/cli.rs
  • crates/skippy-correctness/src/cli.rs
  • crates/skippy-model-package/src/jobs/delivery/generic_cli/tests.rs
  • crates/skippy-model-package/src/layer_job/cli.rs
  • crates/skippy-model-package/src/snapshot_promotion/cli.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@i386

i386 commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@i386 The required PR checks gate needs your licensing declaration. Please tick this checkbox in the PR description if you agree:

  • I agree to license my contributions under the Apache License, Version 2.0.

I have left this author declaration unchecked while working through CI.

@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Skippy Lab Qualification: Failed or incomplete

Commit: 6c17deb0adbd47a7fc4cd11fc9addd904ce7efc2 · PR smoke · Workflow and timings · Saved evidence

Inference admission or qualification incomplete or failed.

Latest successful main: run 45835599636, attempt 1, commit f243a305f497cbe5f897fdbe384235b0a62edf3f.

Configuration Outcome Prefill tok/s Prefill vs main Decode tok/s Decode vs main Actions logs
qwen35-4b-standalone Cancelled Unavailable Unavailable Unavailable Unavailable Logs
qwen3-coder-30b-a3b-standalone Cancelled Unavailable Unavailable Unavailable Unavailable Logs
qwen3-coder-30b-a3b-split Cancelled Unavailable Unavailable Unavailable Unavailable Logs
qwen36-35b-a3b-standalone Cancelled Unavailable Unavailable Unavailable Unavailable Logs
qwen36-35b-a3b-split Cancelled Unavailable Unavailable Unavailable Unavailable Logs
qwen38-flash-next-standalone Cancelled Unavailable Unavailable Unavailable Unavailable Logs
qwen38-flash-next-split Cancelled Unavailable Unavailable Unavailable Unavailable Logs

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 i386 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@i386
i386 marked this pull request as ready for review November 28, 2026 00:24

@michaelneale michaelneale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@i386
i386 merged commit 53d30e6 into main Nov 28, 2026
63 of 80 checks passed
@i386
i386 deleted the port/mesh-3170-clap-assertions branch November 28, 2026 01:50
i386 added a commit to Mesh-LLM/mesh-llm that referenced this pull request Nov 29, 2026
## 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants