ci: shorten PATH for the Windows end-to-end tests #2963
All Vouch review confidence checks passed
Residual risk 0.28 = Change Risk (0.51) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.51 · 247 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 10%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.330
No Reviewer Assigned
no_reviewer_assigned
0.120
Real PR Conversation Timeline
1 comments
"Review active on #2963"
general
weight: 0.35
wolfv
Since the
windows-2025-vs2026runner image of 2026-11-16, Windows end-to-end runs fail on every branch, main included. Builds stop with:Cause
cmd.exe rejects lines longer than 8191 characters after
%expansion.build_env.batprepends the host and build prefixes to the path with@SET "Path=...;%Path%". In the test environment,%Path%already holds about 6,300 characters: the runner PATH (about 2,700) plus the MSVC toolchain paths that the default pixi environment adds when it activates thevs2026compiler. Each prefix line adds about 970 characters of temp paths. For tests with long names, the expanded line ends up around 8,250 characters. The new image pushed lines that were already close to the limit over it. I confirmed this by printing the longest lines of the leftoverbuild_env.batfiles in CI.Fix (CI only)
Shorten PATHstep on both Windows end-to-end jobs removes duplicate and missing PATH entries (2693 → 2319 characters).<runner temp>\e2einstead ofpytest-tempinside the checkout, set withPYTEST_ADDOPTS. Every prefix path appears about 12 times in the long line, so this saves roughly 360 characters. The path is quoted, because pytest splitsPYTEST_ADDOPTSlike a POSIX shell.Result: 215 passed, 51 skipped on windows-latest, and windows-11-arm passes.
Follow-up
The headroom is about 600 characters, so a future image or MSVC update can break this again. Lasting options:
1. Run the end-to-end tests in a pixi environment that does not activate MSVC. The tests don't need it.
2. Make the cmd.exe activation that rattler_shell generates cope with a long
Path. Users who run rattler-build from a Visual Studio developer prompt can hit the same error.The branch has a temporary diagnostic commit, which a squash merge drops.
🤖 Generated with Claude Code