[PR #2299] [MERGED] tests: two parity-runner tests pass on macOS #4183

Closed
opened 2026-11-03 04:15:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2299
Author: @ludovic111
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/macos-python-tests


📝 Commits (1)

  • d01a621 tests: two parity-runner tests pass on macOS

📊 Changes

2 files changed (+8 additions, -2 deletions)

View changed files

📝 tests/test_parity_runner.py (+5 -1)
📝 tests/test_rust_parity.py (+3 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What and why

Two tests in tests/ errored only on macOS, so pr_ready on the Mac mini always showed "Python tests ❌ 2 errors", and every agent had to explain that main does the same.

  • test_parity_runner.OracleReuseTests: tools/parity_shim.py starts with #!/usr/bin/env python3, and the test's PATH held the running Python's own folder. Homebrew's folder names the interpreter only python3.13, so env found no python3 and the shim exited 127. The test now puts a python3 symlink to sys.executable on that PATH.
  • test_rust_parity.ParityRunnerTests.test_report_rejects_sources_changed_during_a_run: source_hashes resolves each source before taking it relative to lab.ROOT, and the test set ROOT to the unresolved temp folder. On macOS /var is /private/var. The test now resolves its root.

Testing

python3.13 -m unittest discover -s tests on the Mac mini: 311 tests OK (2 errors before). Nothing changes on Linux: the symlink only adds a python3 that was already on PATH there, and resolving changes nothing where the temp folder isn't a symlink.

🤖 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/2299 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/macos-python-tests` --- ### 📝 Commits (1) - [`d01a621`](https://github.com/horizon-rust/horizon/commit/d01a621fec1f4ac79f9661cd9b741b0d5bc08719) tests: two parity-runner tests pass on macOS ### 📊 Changes **2 files changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_runner.py` (+5 -1) 📝 `tests/test_rust_parity.py` (+3 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why Two tests in `tests/` errored only on macOS, so `pr_ready` on the Mac mini always showed "Python tests ❌ 2 errors", and every agent had to explain that main does the same. - `test_parity_runner.OracleReuseTests`: `tools/parity_shim.py` starts with `#!/usr/bin/env python3`, and the test's PATH held the running Python's own folder. Homebrew's folder names the interpreter only `python3.13`, so `env` found no `python3` and the shim exited 127. The test now puts a `python3` symlink to `sys.executable` on that PATH. - `test_rust_parity.ParityRunnerTests.test_report_rejects_sources_changed_during_a_run`: `source_hashes` resolves each source before taking it relative to `lab.ROOT`, and the test set `ROOT` to the unresolved temp folder. On macOS `/var` is `/private/var`. The test now resolves its root. ## Testing `python3.13 -m unittest discover -s tests` on the Mac mini: 311 tests OK (2 errors before). Nothing changes on Linux: the symlink only adds a `python3` that was already on PATH there, and resolving changes nothing where the temp folder isn't a symlink. 🤖 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 04:15:17 +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#4183
No description provided.