← Back to Pull requests

ci: shorten PATH for the Windows end-to-end tests #2963

Merged
wolfv merged 3 files (247 lines) on Nov 20, 2026 18:03 UTC
View on GitHub
wolfv wolfv commented on Nov 20, 2026 15:59 UTC
Author

Since the windows-2025-vs2026 runner image of 2026-11-16, Windows end-to-end runs fail on every branch, main included. Builds stop with:

The input line is too long.
The syntax of the command is incorrect.

Cause

cmd.exe rejects lines longer than 8191 characters after % expansion. build_env.bat prepends 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 the vs2026 compiler. 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 leftover build_env.bat files in CI.

Fix (CI only)

  • A Shorten PATH step on both Windows end-to-end jobs removes duplicate and missing PATH entries (2693 → 2319 characters).

  • On Windows, pytest's temp directory is <runner temp>\e2e instead of pytest-temp inside the checkout, set with PYTEST_ADDOPTS. Every prefix path appears about 12 times in the long line, so this saves roughly 360 characters. The path is quoted, because pytest splits PYTEST_ADDOPTS like 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

    Diff: 247 lines (+185 / -62) across 3 files Reviewer: None requested Review duration: 124m
    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
    0.51
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    None requested
    Assignees
    wolfv wolfv
    Labels
    risk: low confidence: 44.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.9% (MEDIUM) · Higher = larger blast radius
    50.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.2% · Lower = rushed or shallow review
    44.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 28.4% · Safe to merge
    28.4%