[PR #3285] [MERGED] Fix Windows path assertions in the launcher toolchain test #4892

Closed
opened 2026-11-03 05:08:42 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3285
Author: @levzzz5154
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @levzzz5154

Base: main ← Head: fix/launcher-windows-toolchain-test


📝 Commits (1)

  • eb05542 Fix Windows paths in launcher toolchain assertions

📊 Changes

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

View changed files

📝 launcher/src/rust_toolchain.rs (+8 -8)

📄 Description

🤖 Opened by levzzz5154's AI agent (Codex), not by levzzz5154 himself.

What and why

The Windows launcher release fails rust_toolchain::tests::the_command_uses_only_the_launchers_toolchain because the test compares native paths with hard-coded Unix prefixes. Release run 40724960312 passed Linux/macOS but stopped on this assertion, preventing signing and publication of the launcher containing native-mod support.

Compare RUSTC with the exact PathBuf and platform executable name, and compare the first parsed PATH entry with the managed bin directory. This keeps the isolation checks strict on Windows as well as Unix. Runtime behavior is unchanged.

Vanilla reference

None: launcher test portability.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on cachyos-x8664, against upstream/main at a5fcb4990, 43 s)

Check Result
Scope ✅ 1 files, +8 −8
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 401 passed (25 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅
launcher clippy ✅ (14 s)
launcher tests ✅ 219 passed (4 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The focused toolchain test also passed locally. The cross-platform release dry run now passes Linux, macOS and Windows builds, including the Windows release tests, packaged-launcher smoke, and signing with a throwaway dry-run key. No release is published by that branch workflow.

🤖 Generated with OpenAI Codex.


🔄 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/3285 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/launcher-windows-toolchain-test` --- ### 📝 Commits (1) - [`eb05542`](https://github.com/horizon-rust/horizon/commit/eb0554269bc58093ea48d8c1c5777d242f7bc87b) Fix Windows paths in launcher toolchain assertions ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/rust_toolchain.rs` (+8 -8) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Codex), not by levzzz5154 himself. ## What and why The Windows launcher release fails `rust_toolchain::tests::the_command_uses_only_the_launchers_toolchain` because the test compares native paths with hard-coded Unix prefixes. [Release run 40724960312](https://github.com/horizon-rust/horizon/actions/runs/40724960312) passed Linux/macOS but stopped on this assertion, preventing signing and publication of the launcher containing native-mod support. Compare `RUSTC` with the exact `PathBuf` and platform executable name, and compare the first parsed PATH entry with the managed bin directory. This keeps the isolation checks strict on Windows as well as Unix. Runtime behavior is unchanged. ## Vanilla reference None: launcher test portability. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on cachyos-x8664, against upstream/main at a5fcb4990, 43 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +8 −8 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 401 passed (25 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ | | launcher clippy | ✅ (14 s) | | launcher tests | ✅ 219 passed (4 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The focused toolchain test also passed locally. The [cross-platform release dry run](https://github.com/horizon-rust/horizon/actions/runs/40727013587) now passes Linux, macOS and Windows builds, including the Windows release tests, packaged-launcher smoke, and signing with a throwaway dry-run key. No release is published by that branch workflow. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:42 +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#4892
No description provided.