Skip to content

fix(test): run Git bash for the shard-summary test on Windows - #9732

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/windows-bash-resolve-9272
Oct 22, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/windows-bash-resolve-9272

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9272

Acceptance delta (one sentence): The shard-summary regression test passes on Windows, where a bare bash can resolve to the WSL launcher.

Found by the first post-fix sharded run on main (39800081622, shard 1): xtask::windows_shard_summary failed with "Windows Subsystem for Linux has no installed distributions", because Command::new("bash") found System32's WSL bash.exe ahead of Git for Windows' bash. The test now uses %ProgramFiles%\Git\bin\bash.exe on Windows when it exists and falls back to bash otherwise. Linux behavior is unchanged (test passes locally).


Generated by Claude Code

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 5 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 108 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 850e02b1-b742-4b7b-b3ad-ad5efd444113
📥 Commits

Reviewing files that changed from the base of the PR and between 8fbe8bd and 770aa83.

📒 Files selected for processing: 2
  • changelog.d/9272-windows-shard-summary-bash.md
  • xtask/tests/windows_shard_summary.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the regression fix has no direct red/green assertion that distinguishes the old bare-bash route from the new Git-for-Windows route.
  • Confirm the claimed Windows behavior depends on ProgramFiles and an existing Git bash executable; fallback intentionally preserves prior behavior when either condition is absent.

Refuted

  • The patch directly adds an unchecked executable path that can silently select WSL.; refuted because: The standard Git path is checked with exists() before selection; only the explicit fallback remains potentially WSL-dependent.
  • The helper changes Linux behavior or all bash users repository-wide.; refuted because: The Windows guard is compiled out on non-Windows, and the diff changes only this test file's command route.
  • The Windows-specific executable selection should be generalized across repository command construction.; refuted because: No shared command abstraction is implicated by this diff; centralizing it would exceed the regression test's local boundary.
  • The change requires bash.exe to exist at a fixed installation path and is therefore unportable.; refuted because: It checks that exact path and intentionally falls back to PATH bash when absent; the limitation is an environmental fallback, not a new unconditional hard dependency.

Evidence gaps

  • The PR's Windows-pass claim is not yet supported by an available test receipt.
  • Model proof intent was rejected by deterministic validation.
  • Cargo-test is scheduled late and has no receipt in the available packet, so the regression test's execution status is not established here.
  • The Windows PATH regression fix is plausible, but successful execution proof is not yet available.

Copy link
Copy Markdown
Member Author

Review of record, head 770aa83

Angles: (1) correctness: bash() prefers %ProgramFiles%\Git\bin\bash.exe only on Windows and only if it exists, else falls back to bash; (2) tests: the only test touched is windows_shard_summary, which previously failed on Windows because bare bash resolved to the WSL launcher; (3) scope: no production code, workflow or policy change. Linux behavior is unchanged.

Findings: none blocking. Bot reviews only reported rate limits and evidence gaps, not defects.

CI: Ripr Rust Small Result is green on this head, as are windows-advisory-subset (Windows test run on this head) and the other required checks. The next shard dispatch re-proves this on Windows.

Merging under MERGE AUTHORITY.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants