Skip to content

Fix Windows clippy failure in quarto-mcp-launcher + document the Windows cross-check recipe (bd-j0pgiips, bd-tkubuse4) - #913

Merged
cderv merged 2 commits into
mainfrom
braid/bd-j0pgiips-windows-mcp-launcher-clippy
Oct 23, 2026
Merged

cderv merged 2 commits into
mainfrom
braid/bd-j0pgiips-windows-mcp-launcher-clippy

Conversation

@cderv

@cderv cderv commented Oct 23, 2026

Copy link
Copy Markdown
Member

Summary

Two commits from the Windows test-health work:

  1. bd-j0pgiips — cargo xtask verify's clippy step failed on Windows: q2_path_injection_skips_non_utf8_exe_paths (introduced in hub-mcp Phase 4: Quarto-specific intelligence (bd-738mbhpj) #797) built its non-UTF-8 OsString via the unix-only OsStringExt::from_vec, so the crate's whole test target didn't compile on Windows. Per .claude/rules/cross-platform.md, the test stays portable via a cfg-pair helper: from_vec([0xff, 0xfe]) on unix, from_wide(&[0xD800]) (lone surrogate) on Windows — same to_str() → None rejection path on all three platforms.

  2. bd-tkubuse4 — docs-only: Windows is not in CI, and neither the cross-platform rule nor windows-dev.md said HOW to verify a Windows build without a Windows machine. Adds the cross-check recipe (cargo clippy -p <crate> --all-targets --target x86_64-pc-windows-msvc -- -D warnings — check/clippy don't link, so no MSVC toolchain needed on unix) to .claude/rules/cross-platform.md and claude-notes/instructions/windows-dev.md, and replaces AGENTS.md's stale 'crates must be manually excluded' bullet.

Test plan

  • Windows: cargo clippy -p quarto-mcp-launcher --all-targets -- -D warnings green; cargo nextest run -p quarto-mcp-launcher --lib 27/27 pass
  • Recipe RED-validated: against the pre-fix code, the documented cross-check reproduces the exact E0433/E0599 failure
  • q2 render --strict claude-notes/instructions/windows-dev.md clean
  • Full cargo xtask verify NOT run: still red on Windows from bd-lhi82470 (in progress, separate fix)

Follow-ups (out of scope)

  • bd-5tdzaf3t — fixing the compile error un-masked 4 pre-existing Windows failures in quarto-mcp-launcher cache_tests (re-extraction/GC paths; Windows file-locking family)
  • bd-lhi82470 — xtask capture-*-recordings dead code on Windows (same bug class, in progress)

cderv added 2 commits October 23, 2026 15:22
… (bd-j0pgiips)

q2_path_injection_skips_non_utf8_exe_paths built its non-UTF-8 OsString
via the unix-only OsStringExt::from_vec, so `cargo clippy
-p quarto-mcp-launcher --all-targets -- -D warnings` (a cargo xtask
verify step) failed on Windows with E0433/E0599, and the crate's whole
test target was un-runnable there — masking 4 more Windows failures in
cache_tests (filed as bd-5tdzaf3t).

Per .claude/rules/cross-platform.md, keep the test portable: a cfg pair
of non_utf8_os_string() helpers — from_vec(0xff, 0xfe) on unix,
from_wide(lone surrogate) on Windows — so the same q2_path_for_child
rejection path is exercised on all three platforms.

Verified on Windows: clippy -D warnings green; 27/27 lib tests pass.
…kubuse4)

Windows is not in CI, and each feature PR kept breaking it because
neither .claude/rules/cross-platform.md nor
claude-notes/instructions/windows-dev.md told contributors HOW to
verify a Windows build without a Windows machine.

- cross-platform.md: new 'Verify before landing' section with the
  recipe: cargo clippy -p <crate> --all-targets --target
  x86_64-pc-windows-msvc -- -D warnings (check/clippy don't link, so no
  MSVC toolchain needed on unix), plus the C-build-script caveat and
  the compilation-only scope limit.
- windows-dev.md: CI section now points at the same recipe as the
  pre-landing gate.
- AGENTS.md: replaced the stale 'crates must be manually excluded from
  tests' testing bullet (resolved 2026-03-23) with the cross-check rule.

Recipe validated on Windows: against the pre-fix bd-j0pgiips code it
reproduces the exact E0433/E0599 clippy failure; against the fixed code
it is clean. NOTE: validated natively on Windows, not cross from unix;
the no-link claim is standard cargo behavior but the first unix run may
surface per-crate build-script quirks.
@posit-snyk-bot

posit-snyk-bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv
cderv added this pull request to stack #916 October 23, 2026 14:47
@cderv
cderv merged commit 5ffacc4 into main Oct 23, 2026
11 checks passed
@cderv
cderv deleted the braid/bd-j0pgiips-windows-mcp-launcher-clippy branch October 23, 2026 16:05
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