[PR #3082] [MERGED] Tests: skip the reports-link case when the host cannot link #4792

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

📋 Pull Request Information

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

Base: main ← Head: test/port-harness-symlink-skip


📝 Commits (1)

  • f4d6f9c Tests: skip the reports-link case when the host cannot link

📊 Changes

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

View changed files

📝 tests/test_port_harness.py (+4 -1)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

test_the_reports_link_goes_before_horizon_prepare creates a symlink with
os.symlink. On Windows that needs Developer Mode or an elevated token; here
it raises OSError: [WinError 1314] A required privilege is not held by the client, so the case errors before it reaches own_reports and the suite is
red for a reason that has nothing to do with the code.

The call now skips the case with that message when the host cannot link.
Linux and macOS still run it; Windows with Developer Mode still runs it.

Evidence, Windows 11 without Developer Mode:

  • before: python -m unittest tests.test_port_harness → ERROR ... OSError: [WinError 1314];
  • after, on this commit: Ran 7 tests ... skipped=1 for that case.

🔄 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/3082 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `test/port-harness-symlink-skip` --- ### 📝 Commits (1) - [`f4d6f9c`](https://github.com/horizon-rust/horizon/commit/f4d6f9c0ede1099a91e3d916767ad9ff8cb25ce9) Tests: skip the reports-link case when the host cannot link ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_port_harness.py` (+4 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `test_the_reports_link_goes_before_horizon_prepare` creates a symlink with `os.symlink`. On Windows that needs Developer Mode or an elevated token; here it raises `OSError: [WinError 1314] A required privilege is not held by the client`, so the case errors before it reaches `own_reports` and the suite is red for a reason that has nothing to do with the code. The call now skips the case with that message when the host cannot link. Linux and macOS still run it; Windows with Developer Mode still runs it. Evidence, Windows 11 without Developer Mode: - before: `python -m unittest tests.test_port_harness` → `ERROR ... OSError: [WinError 1314]`; - after, on this commit: `Ran 7 tests ... skipped=1` for that case. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:59 +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#4792
No description provided.