[PR #3697] [MERGED] tests: parity dependency-path test passes on macOS #5157

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

📋 Pull Request Information

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

Base: main ← Head: fix/parity-test-macos-tmp


📝 Commits (1)

  • 9c67dd3 tests: resolve the temp root in the parity dependency-path test

📊 Changes

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

View changed files

📝 tests/test_parity_runner.py (+1 -1)

📄 Description

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

What and why

tests.test_parity_runner fails on main on macOS: test_traced_dependencies_use_repository_posix_paths gets ([], []). macOS puts temp folders under /var, a symlink to /private/var; dependencies() resolves each path before checking it is inside ROOT, so an unresolved temp ROOT drops every file. The real ROOT is already resolved, so only the test was wrong: it now patches ROOT with Path(temp).resolve(). Linux CI didn't see it (no symlink there).

Vanilla reference

none (tooling test)

Self-check

python3 -m unittest tests.test_parity_runner: 40 tests OK on macOS (1 failure before).

🤖 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/3697 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/parity-test-macos-tmp` --- ### 📝 Commits (1) - [`9c67dd3`](https://github.com/horizon-rust/horizon/commit/9c67dd3b7690df08631e793c303f8c5750635dfe) tests: resolve the temp root in the parity dependency-path test ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_parity_runner.py` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why `tests.test_parity_runner` fails on main on macOS: `test_traced_dependencies_use_repository_posix_paths` gets `([], [])`. macOS puts temp folders under `/var`, a symlink to `/private/var`; `dependencies()` resolves each path before checking it is inside `ROOT`, so an unresolved temp `ROOT` drops every file. The real `ROOT` is already resolved, so only the test was wrong: it now patches `ROOT` with `Path(temp).resolve()`. Linux CI didn't see it (no symlink there). ## Vanilla reference none (tooling test) ## Self-check `python3 -m unittest tests.test_parity_runner`: 40 tests OK on macOS (1 failure before). 🤖 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 05:10:38 +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#5157
No description provided.