Repository navigation
Keep skippy-serving's test build warning-free on Windows - #187
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
i386
left a comment
There was a problem hiding this comment.
Commented at head 9979833c07 — content verified, ready for owner approval.
Both tests in the module were already macOS/Linux-gated, so moving the gate onto the module only removes the Windows-only unused use super::*; nothing stops running anywhere. Validation section shows the Windows clippy failure and the fix. No findings.
Merge-order note for the queue: #188's clippy run is only clean with this PR (its validation says so), so land #187 first or together.
CI note: the failing lanes at this head are stale 11-23 aggregate reads plus never-admitted first-run CI runs — I approved those runs, so expect green on the rerun.
Every test in telemetry/resource_usage.rs is gated on macOS or Linux, so on Windows the test module only held an unused use super::*, and cargo clippy -p skippy-serving --all-targets -- -D warnings failed. The gate moves onto the module. Ported from Mesh-LLM/mesh-llm#3167.
Head branch was pushed to by a user without write access
9979833 to
3f9e485
Compare
Original problem
cargo clippy -p skippy-serving --all-targets -- -D warningsfails on Windows: every test intelemetry/resource_usage.rsis gated on macOS or Linux, so on Windows the test module only holds an unuseduse super::*.Ported from Mesh-LLM/mesh-llm#3167, which can't land there once the Skippy source leaves that repository.
Diagnostics
Windows 11, Rust 1.99.1,
mainat991ece5:Fix
The macOS-or-Linux gate moves onto the test module, which drops it from the two tests that repeated it. The tests were already macOS or Linux only, so nothing stops running anywhere.
Validation
Same machine and command with this change: exit 0.
cargo test -p skippy-serving --lib --features skippy-runtime/dynamic-native-runtime -- resource_usagecompiles and selects no test on Windows, as expected.Not run: macOS and Linux, where the module compiles as before.
CI repair validation
Merged current main to replace the obsolete fork-native rejection gate with the protected approved-fork controller. The feature diff is retained. Formatting, focused offline check, warning-denying all-target Clippy, and full offline crate tests (including integration/documentation tests where present) passed for skippy-serving through
just with-lld cargo. The dynamic tests usedSKIPPY_NATIVE_RUNTIME_BUNDLE_DIR=/tmp/skippy-port-3193.btZZbS/cpu-bundle-2920; an initial run without that required bundle failed. The exact commands werejust with-lld cargo fmt --all --checkand the following:just with-lld cargo check --locked --offline -p skippy-serving --features dynamic-native-runtime just with-lld cargo clippy --locked --offline -p skippy-serving --features dynamic-native-runtime --all-targets -- -D warnings just with-lld cargo test --locked --offline -p skippy-serving --features dynamic-native-runtimeNative Windows and GPU qualification remain pending in CI.
Acceptance criteria
Summary by CodeRabbit