Skip to content

ci: add windows-latest clippy-only leg (no tests) - #915

Merged
cderv merged 1 commit into
braid/bd-j0pgiips-windows-mcp-launcher-clippyfrom
braid/bd-3j09mpn8-windows-clippy-ci
Oct 23, 2026
Merged

cderv merged 1 commit into
braid/bd-j0pgiips-windows-mcp-launcher-clippyfrom
braid/bd-3j09mpn8-windows-clippy-ci

Conversation

@cderv

@cderv cderv commented Oct 23, 2026

Copy link
Copy Markdown
Member

Windows compile breakage keeps reaching main undetected: every CI leg runs on Linux/macOS, so Unix-only APIs (std::os::unix, OsStringExt::from_vec) and asymmetric #[cfg] gates pass clippy there and only fail on a Windows machine. The three recent instances — the quarto-mcp-launcher non-UTF-8 test (#913), the xtask capture-* dead code (#834), and the cache-test coverage masked by an upstream compile failure (#914) — were all compile-level failures that clippy --all-targets on Windows catches without running a single test.

Stacked on #913: the leg is red without that fix, so this PR targets its branch and GitHub will auto-retarget to main when #913 merges. Only the last commit is new.

Add a windows-clippy job to test-suite.yml running the same gate as the existing "Clippy (deny warnings)" step:

cargo clippy --workspace --all-targets --profile ci -- -D warnings

Compile-only (--all-targets still compiles test and dev-tool code, which is where these failures live), so the job skips the matrix leg's pandoc/typst/tree-sitter/node setup. Verified on a fresh Windows checkout of #913 merged into main: green, ~8 min cold.

Scope notes:

  • No cargo xtask verify counterpart: verify already runs this exact clippy command on the host platform, so this is the same gate on another OS, not a new gating step.
  • A full Windows test leg (nextest) stays separate work — the embedded-SCSS case is tracked in braid bd-vvxo9ln2.

Windows compile breakage keeps reaching main undetected because every
CI leg runs on Linux/macOS: Unix-only APIs (std::os::unix,
OsStringExt::from_vec) and asymmetric #[cfg] gates pass clippy there
and only fail on a Windows machine. The recent instances (quarto-mcp-
launcher non-UTF-8 test, xtask capture-* dead code) were all
compile-level failures that clippy --all-targets on Windows catches
without running a single test.

Add a windows-clippy job running the same gate as the existing
"Clippy (deny warnings)" step:
cargo clippy --workspace --all-targets --profile ci -- -D warnings.
Compile-only, so it skips the matrix job's pandoc/typst/tree-sitter/
node setup (verified on a fresh Windows checkout: green, ~8 min
cold). A full Windows test leg remains separate work.

No cargo xtask verify counterpart: verify already runs this exact
clippy command on the host platform, so this is the same gate on
another OS rather than a new gating step.
@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 ef151c8 into main Oct 23, 2026
16 checks passed
@cderv
cderv deleted the braid/bd-3j09mpn8-windows-clippy-ci 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