Skip to content

Keep skippy-serving's test build warning-free on Windows - #187

Merged
i386 merged 2 commits into
Mesh-LLM:mainfrom
Virgile-pct:port/skippy-serving-tests-windows
Nov 28, 2026
Merged

i386 merged 2 commits into
Mesh-LLM:mainfrom
Virgile-pct:port/skippy-serving-tests-windows

Conversation

@Virgile-pct

@Virgile-pct Virgile-pct commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Original problem

cargo clippy -p skippy-serving --all-targets -- -D warnings fails on Windows: every test in telemetry/resource_usage.rs is gated on macOS or Linux, so on Windows the test module only holds an unused use 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, main at 991ece5:

cargo clippy -p skippy-serving --all-targets --features skippy-runtime/dynamic-native-runtime -- -D warnings
error: unused import: `super::*`
   --> crates\skippy-serving\src\telemetry\resource_usage.rs:265:9
esource_usage.rs:265:9

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_usage compiles 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 used SKIPPY_NATIVE_RUNTIME_BUNDLE_DIR=/tmp/skippy-port-3193.btZZbS/cpu-bundle-2920; an initial run without that required bundle failed. The exact commands were just with-lld cargo fmt --all --check and 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-runtime

Native Windows and GPU qualification remain pending in CI.

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.

Summary by CodeRabbit

  • Tests
    • Updated platform coverage for telemetry resource-usage tests: the test suite is now limited to macOS and Linux. No user-facing behavior changed.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The telemetry test module is now compiled only on macOS and Linux. Individual platform conditions were removed from its tests.

Changes: Telemetry test platform gating

Layer / File(s) Summary
Gate telemetry tests by platform
crates/skippy-serving/src/telemetry/resource_usage.rs
The test module is gated to macOS and Linux. The individual test conditions were removed.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to 06e8b

This change only adjusts which platforms compile a telemetry test module, so it has no production impact. It removes an unused-import warning on Windows builds. The risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: the test build of skippy-serving is made warning-free on Windows. The objectives confirm the cause. The macOS-or-Linux cfg gate moves to the resource_usage.rs test mo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title states the main change: the test build of skippy-serving is made warning-free on Windows. The objectives confirm the cause. The macOS-or-Linux cfg gate moves to the resource_usage.rs test module, which removes an unused use super::* import that caused a warning under Clippy with warnings denied on Windows. The title names the platform and the outcome, and it matches the changed file and the stated intent.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • 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

Recent review info

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: 2a415530-8944-43fb-9a5d-81ae789f5d51
Commits

Reviewing files that changed from the base of the PR and between bd52f67 and 06e8bf1.

Files selected for processing: 1

  • crates/skippy-serving/src/telemetry/resource_usage.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@i386 i386 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.

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.

@i386
i386 enabled auto-merge November 24, 2026 20:52
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.
auto-merge was automatically disabled November 24, 2026 21:20

Head branch was pushed to by a user without write access

@Virgile-pct
Virgile-pct force-pushed the port/skippy-serving-tests-windows branch from 9979833 to 3f9e485 Compare November 24, 2026 21:20
@i386
i386 enabled auto-merge November 27, 2026 21:19
@i386
i386 disabled auto-merge November 28, 2026 01:47
@i386
i386 merged commit 69d4259 into Mesh-LLM:main Nov 28, 2026
99 of 127 checks passed
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.

2 participants