[PR #7164] [MERGED] test_pr_ready: the launcher fallback test runs the bash on PATH, not WSL's #7387

Closed
opened 2026-11-03 06:38:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7164
Author: @Ragbie
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/pr-ready-test-wsl-bash


📝 Commits (1)

  • 7840fe3 test_pr_ready: the launcher fallback test runs the bash on PATH, not WSL's

📊 Changes

1 file changed (+8 additions, -1 deletions)

View changed files

📝 tests/test_pr_ready.py (+8 -1)

📄 Description

🤖 Opened by Ragbie's AI agent (Claude Code, Opus 5.5), not by Ragbie personally.

What and why

On a Windows checkout with WSL installed, test_pr_ready.test_the_launcher_fallback_asks_for_a_feature_the_launcher_has errors in all three subtests, on upstream/main too:

<3>WSL (25910 - Relay) ERROR: CreateProcessCommon:800: execvpe(/bin/bash) failed: No such file or directory

subprocess.run(["bash", "-c", ...]) goes through CreateProcess, which looks in System32 before PATH, so it starts WSL's bash.exe rather than the Git Bash on PATH (the same cause as #5383). The test now runs shutil.which("bash"), which follows PATH, so it runs under Git Bash on Windows as it does on Linux and macOS, and it skips only when there is no bash or the only one is WSL's. pr_ready.py itself runs its steps through run_windows on Windows, so it doesn't have the problem.

Fixes #7160.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

none

Checked on both platforms:

  • Windows 11 (Git Bash on PATH, WSL installed), upstream/main: FAILED (errors=3); with this change: Ran 25 tests ... OK, with no skips, so the test runs.
  • Linux (rust:1.98 container): Ran 1 test ... OK for this test.

Other projects' code

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on Evrim-PC, against upstream/main at 8a45d7f9f, 1 min 16 s)

Check Result
Scope ✅ 1 files, +8 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (1 min 15 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
mod API up to date ➖ native hooks untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 305 affected, to run in CI (--quick): chunk_generation, command_exec, command_parse, composter, consumable_emission, consumable, consume_effect, container_screen, container_title, contextual_collision, crafter, creative_mining and 293 more
Label skip-release

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7164 **Author:** [@Ragbie](https://github.com/Ragbie) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/pr-ready-test-wsl-bash` --- ### 📝 Commits (1) - [`7840fe3`](https://github.com/horizon-rust/horizon/commit/7840fe3549245506d1bdec9c559bcd58601290d2) test_pr_ready: the launcher fallback test runs the bash on PATH, not WSL's ### 📊 Changes **1 file changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_pr_ready.py` (+8 -1) </details> ### 📄 Description > 🤖 Opened by Ragbie's AI agent (Claude Code, Opus 5.5), not by Ragbie personally. ## What and why On a Windows checkout with WSL installed, `test_pr_ready.test_the_launcher_fallback_asks_for_a_feature_the_launcher_has` errors in all three subtests, on upstream/main too: ``` <3>WSL (25910 - Relay) ERROR: CreateProcessCommon:800: execvpe(/bin/bash) failed: No such file or directory ``` `subprocess.run(["bash", "-c", ...])` goes through `CreateProcess`, which looks in System32 before PATH, so it starts WSL's `bash.exe` rather than the Git Bash on PATH (the same cause as #5383). The test now runs `shutil.which("bash")`, which follows PATH, so it runs under Git Bash on Windows as it does on Linux and macOS, and it skips only when there is no bash or the only one is WSL's. `pr_ready.py` itself runs its steps through `run_windows` on Windows, so it doesn't have the problem. Fixes #7160. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [x] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference none Checked on both platforms: - Windows 11 (Git Bash on PATH, WSL installed), upstream/main: `FAILED (errors=3)`; with this change: `Ran 25 tests ... OK`, with no skips, so the test runs. - Linux (`rust:1.98` container): `Ran 1 test ... OK` for this test. ## Other projects' code none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on Evrim-PC, against upstream/main at 8a45d7f9f, 1 min 16 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +8 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (1 min 15 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | mod API up to date | ➖ native hooks untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 305 affected, to run in CI (--quick): chunk_generation, command_exec, command_parse, composter, consumable_emission, consumable, consume_effect, container_screen, container_title, contextual_collision, crafter, creative_mining and 293 more | | Label | `skip-release` | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:48 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7387
No description provided.