Skip to content

fix(skippy): keep skippy-serving's test build warning-free on Windows - #3167

Closed
Virgile-pct wants to merge 1 commit into
Mesh-LLM:mainfrom
Virgile-pct:fix/skippy-serving-windows-clippy
Closed

Virgile-pct wants to merge 1 commit into
Mesh-LLM:mainfrom
Virgile-pct:fix/skippy-serving-windows-clippy

Conversation

@Virgile-pct

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

Copy link
Copy Markdown
Collaborator

cargo clippy -p skippy-serving --all-targets -- -D warnings fails on Windows today: 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::*.

The macOS-or-Linux gate moves onto the module, which drops it from the two tests that repeated it. The three tests were already macOS or Linux only, so nothing stops running anywhere. Clippy with --all-targets is clean on Windows 11 afterwards.

Summary by CodeRabbit

  • Tests
    • Platform-specific telemetry tests now compile only on macOS and Linux.

Every test in telemetry/resource_usage.rs is gated on macOS or Linux, so on Windows the test module only held an unused import and clippy --all-targets failed. The gate moves onto the module.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The resource usage test module now compiles only on macOS and Linux. The system-memory test no longer has an individual platform gate.

Changes: Telemetry test platform gating

Layer / File(s) Summary
Apply platform restriction to the test module
skippy/crates/skippy-serving/src/telemetry/resource_usage.rs
The module-level restriction applies to the tests. The system-memory test’s individual restriction was removed; the CPU and resident-memory test retains its individual restriction.

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

Change: Other

Suggested reviewers: jaredwy

Merge Risk: Minimal · up to 946f8

This is a test-only platform gating change that fixes the Windows Clippy failure caused by an unused import. It has no production impact and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the fix and the affected crate, and it names the platform (Windows). The PR moves the macOS-or-Linux gate from individual tests to the test module in resource_usage.rs. This removes an…
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.
Full details: Title check

Explanation

The title names the fix and the affected crate, and it names the platform (Windows). The PR moves the macOS-or-Linux gate from individual tests to the test module in resource_usage.rs. This removes an unused use super::* import that broke cargo clippy -p skippy-serving --all-targets -- -D warnings on Windows. The title states the main goal, which is a warning-free test build on Windows. It describes the outcome, not the mechanism, which is acceptable.

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: a96aa9a5-3193-4cf4-8c9d-711f8c0691a2
Commits

Reviewing files that changed from the base of the PR and between b54e992 and 946f8fd.

Files selected for processing: 1

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

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

@Virgile-pct

Copy link
Copy Markdown
Collaborator Author

Ported to Mesh-LLM/skippy#187, since the Skippy source leaves this repository with #3193. I'll close this one once #3193 lands.

Virgile-pct added a commit to Virgile-pct/skippy that referenced this pull request Nov 24, 2026
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.
@Virgile-pct

Copy link
Copy Markdown
Collaborator Author

Closing: this landed in Skippy as Mesh-LLM/skippy#187 now that #3193 moved the source there.

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.

1 participant