Skip to content

fix(windows): unblock cargo clippy and Windows integration tests - #103

Open
tejasmhamane1224 wants to merge 2 commits into
prooflinedev:mainfrom
tejasmhamane1224:fix/windows-tests-clippy-ci
Open

tejasmhamane1224 wants to merge 2 commits into
prooflinedev:mainfrom
tejasmhamane1224:fix/windows-tests-clippy-ci

Conversation

@tejasmhamane1224

Copy link
Copy Markdown

Addresses #85.

Summary

Fixes the Windows-only cargo clippy errors and Windows integration test setup failures identified in #85, and enables cargo fmt --check and cargo clippy --locked --all-targets -- -D warnings on the windows CI job.

Changes

  • src/agent/tests.rs: Remove redundant lock_path.clone() in #[cfg(not(unix))]-compiled test and add #[expect(clippy::permissions_set_readonly_false, reason = "...")] on the #[cfg(not(unix))] readonly-clear block.
  • tests/mcp.rs: Preserve SYSTEMROOT in Bridge::start after .env_clear() (matching src/update.rs) so Windows Winsock networking initializes.
  • tests/agent_install.rs: Canonicalize server["command"] before comparing against executable to handle Windows \\?\\ extended-length and 8.3 short-path differences.
  • tests/local_patch.rs: Use a Windows-valid non-ASCII quoted filename on #[cfg(not(unix))] while keeping the \t and " case on #[cfg(unix)].
  • .github/workflows/ci.yml: Run cargo fmt --check and cargo clippy --locked --all-targets -- -D warnings in the windows job (cargo test --locked left out until Windows: don't make scripts wait for the background update check #79 merges so the job starts green).

Verification (Windows 11, Rust 1.100.0)

This branch has not been deployed

No deployments
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