← Back to Pull requests

fix(ci): run Biome native binary on Windows #5677

Closed
unknown closed this pull request without merging on Oct 08, 2026 12:52 UTC
View on GitHub
unknown unknown commented on Sep 24, 2026 05:27 UTC
Author

Summary

Fixes #5668.

On Windows, the staged Biome hook now invokes the platform-native biome.exe from the installed architecture-specific Biome package instead of spawning node_modules/.bin/biome.cmd without a shell. This avoids the EINVAL failure introduced by Node's refusal to spawn .cmd files that way, while preserving the existing direct-process behavior and avoiding shell: true.

The resolver covers both Windows x64 and Windows arm64 package layouts. Non-Windows platforms continue to use the existing .bin/biome path.

Verification

  • npm ci --ignore-scripts --no-audit --no-fund

  • node --test scripts/biome-staged-check.test.mjs — 10 passed

  • ./node_modules/.bin/biome check scripts/biome-staged-check.mjs scripts/biome-staged-check.test.mjs — passed

  • ./node_modules/.bin/biome format --write scripts/biome-staged-check.mjs scripts/biome-staged-check.test.mjs — no changes required

  • git diff --check — passed

  • Full repository build and typecheck — not run
  • The Windows hook was not executable on this macOS host; the regression test validates the Windows x64 and arm64 executable resolution paths directly.

    AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: Codex assisted with issue analysis, implementation, regression testing, and validation. The human contributor remains responsible for reviewing and understanding the complete patch and its results.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — the Windows pre-commit hook now runs the native Biome executable instead of the .cmd shim.

  • No
  • Diff: 223 lines (+167 / -56) across 2 files Reviewer: liugddx Review duration: 20605m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 223 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    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
    Diff Size diff_size
    0.324
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5677"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 36.8% (MEDIUM) · Higher = larger blast radius
    36.8%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 15.9% · Safe to merge
    15.9%
    Repository