fix(test): gate Value import behind cfg(unix) — unbreaks the nightly Windows job - #697
Conversation
#694 consolidated the test helpers into tests/common/mod.rs, removing the top-level `get_global(..) -> Value` and `expect_text(&Value)`. That left the `Value` import with exactly one remaining reference, inside `#[cfg(unix)] mod unix`, so on Windows the import is dead and `cargo clippy -- -D warnings` fails the whole nightly Windows job. The break reached main because #694 merged during the Actions allowlist outage (#695) with zero CI: its run was a startup_failure, so no clippy job ever executed. Red: `cargo clippy --test filesystem_mode_test --all-features -- -D warnings` on Windows reproduces `error: unused import: wfl::interpreter::value::Value`, matching nightly run 31795283997 exactly. Green after this change, with the 4 tests in the file still passing. Refs #695 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 41 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
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. Comment |
There was a problem hiding this comment.
Pull request overview
This PR fixes a Windows-only clippy -D warnings failure in the filesystem_mode_test integration test by ensuring the Value import is only compiled on Unix, matching the only remaining usage site (inside the Unix-gated module).
Changes:
- Gate
use wfl::interpreter::value::Value;behind#[cfg(unix)]to avoid an unused-import warning on Windows. - Add a brief comment explaining why the import is Unix-only.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
What
One line: gate
use wfl::interpreter::value::Value;intests/filesystem_mode_test.rsbehind#[cfg(unix)].Why
Nightly run 31795283997 failed the Build WFL for Windows job at the clippy step:
#694 consolidated the test helpers into
tests/common/mod.rs, deleting the top-levelget_global(..) -> Valueandexpect_text(&Value). Those were the platform-independent uses ofValue. The only surviving reference is at line 132, inside#[cfg(unix)] mod unix— so the import is live on Unix and dead on Windows. Linux passed; Windows failed.This reached
mainbecause #694 merged during the Actions allowlist outage (#695) with zero CI. Its run was astartup_failure, so no clippy job ever ran. This is the concrete cost of that outage rather than just the red X's.Risk class
R0 — test-only, no runtime or public behavior change, no backward-compatibility surface.
Acceptance criteria → tests
-D warningscargo clippy --test filesystem_mode_test --all-features -- -D warningscargo test --test filesystem_mode_test --all-features— 4 passed, 0 failedValueis still imported undercfg(unix); theunixmodule is untouchedcargo fmt --all -- --checkcleanRed → Green evidence
Reproduced on a real Windows host (win32, MSVC), matching the CI failure exactly.
Red — before the change:
Green — after:
Residual risk
None meaningful. If a future change adds a platform-independent use of
Valueto this file, thecfg(unix)gate will surface immediately as an unresolved-name compile error on Windows, not a silent gap.Refs #695
🤖 Generated with Claude Code