Repository navigation
Open
Description
In simple words
CI checks the code with the tests and with clippy (Rust's linter) only on Linux. On Windows it only builds the program and runs three commands. So bugs that exist only on Windows get through CI. #78 (fixed in #79) and #83 (fixed in #84) are two examples.
Why it happens
.github/workflows/ci.ymlhas two jobs.- The
checkjob (Ubuntu) runscargo fmt --check,cargo clippy --locked --all-targets -- -D warnings,cargo test --lockedandcargo deny check. - The
windowsjob (windows-2025) only runscargo build --release,scripts/archive.py, and--version,setup --printandreview --schemaon the builtproofline.exe. - Code behind
#[cfg(windows)]/#[cfg(not(unix))]is only compiled on Windows. Linux clippy never sees it, and Windows-specific behaviour (process spawning, paths, file names) is never tested.
What a Windows run finds today (Windows 11, main at 105f387)
cargo clippy --locked --all-targets -- -D warnings
cargo test --locked --no-fail-fast- A real bug:
update::tests::detached_discovery_is_serialized_and_notices_arrive_on_the_next_invocationfails (src/update/tests.rs:291). That is Windows: scripts and CI wait 1–3 s for eachprooflinecommand because of the background update check #78, fixed in Windows: don't make scripts wait for the background update check #79. - Test setup problems. The product works here, but the tests need small changes to run on Windows:
- 5 tests in
tests/mcp.rsfail attests/mcp.rs:138.Bridge::startcallsenv_clear()(tests/mcp.rs:314), which also removesSYSTEMROOT, and Windows networking can't start without it. PassingSYSTEMROOTthrough, assrc/update.rs::checker_commandalready does (src/update.rs:195), makes all 5 pass. tests/agent_install.rs:77compares a short "8.3" temp path (C:\Users\RUNNER~1\…) with the full canonical path of the same folder.tests/local_patch.rs:275writes a file whose name Windows doesn't allow.
- 5 tests in
- Clippy on Windows-only code: two errors in
#[cfg(not(unix))]test code,src/agent/tests.rs:526(redundant_clone) and:745(permissions_set_readonly_false). Linux never compiles that code, so Linux clippy can't report them.
Totals: clippy exit 101 (2 errors). cargo test: lib 63 passed / 1 failed, agent_install 1/1, local_patch 13/1, mcp 0/5. All other test binaries pass.
Proposal
Add cargo clippy --locked --all-targets -- -D warnings and cargo test --locked to the windows job. First the three test setup problems and the two lints need fixing, and #79 merged, so the job starts green. I'm happy to send those test and lint fixes as a separate PR if you want this.
Metadata
Metadata
Assignees
Labels
No labels
Activity