← Back to Pull requests

test(e2e): run the GitHub Action e2e tests with Git Bash on Windows #701

Open
unknown opened this pull request with 156 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 17, 2026 14:36 UTC
Author

Summary

The GitHub Action runs its command input with bash. On Windows the first bash on PATH is often the WSL launcher (C:\Windows\System32\bash.exe), which fails when the default WSL distro has no bash or is broken, so the GHA e2e tests failed locally on Windows. GitHub's Windows runners resolve Git Bash instead, so the tests now put Git for Windows' bash first on PATH to match the runner environment.

Changes

  • e2e/gha.test.ts: add withGitBashFirstOnPath, which on Windows locates Git Bash from git --exec-path and prepends its bin directory to PATH (case-insensitive PATH key) for the spawned action process. It throws a clear error if Git Bash is not installed. No-op on other platforms.
  • Testing

  • pnpm lint passes

  • vitest run e2e/gha.test.ts passes on Windows (9/9)

  • pnpm test passes (CI)
  • Related

    N/A

    <!-- devin-review-badge-begin -->

    ---

    <a href="https://app.devin.ai/review/macalbert/envilder/pull/701" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a>
    <!-- devin-review-badge-end -->

    Diff: 156 lines (+117 / -39) across 1 files Reviewer: devin-ai-integration[bot] Review duration: 3m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.38) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.38 · 156 lines diff across 1 files
    0.38
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 85% · Reviewer familiarity: 35%
    43%
    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.303
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #701"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.1% 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: 38.2% (MEDIUM) · Higher = larger blast radius
    38.2%
    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: 43.1% · Lower = rushed or shallow review
    43.1%
    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: 21.8% · Safe to merge
    21.8%