[PR #3078] [MERGED] Port harness: read the log a Windows javac error names #4788

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

📋 Pull Request Information

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

Base: main ← Head: fix/port-harness-windows-log-path


📝 Commits (1)

  • 28e3286 Port harness: read the log a Windows javac error names

📊 Changes

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

View changed files

📝 tools/port_harness.py (+2 -1)

📄 Description

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

named_logs exists to show the javac errors behind a horizon-prepare
failure: it takes the log path out of the message and returns the tail of that
file. Its pattern was see (/\S+\.log), a Posix absolute path only. On Windows
horizon-prepare names the log as C:\Users\...\export.log, so the pattern
matched nothing, the function returned an empty string, and a failed export
showed no compiler error at all.

The pattern now accepts either form: (?:/|[A-Za-z]:[\\/])\S+\.log. On a
Posix host it matches the same strings it did before.

Evidence, Windows 11:

  • before: python -m unittest tests.test_port_harness → AssertionError: 'Oracle.java:33: error' not found in '' in
    test_javac_errors_from_the_log_horizon_prepare_names;
  • after, on this commit: that test passes; the module's only remaining failure
    is test_the_reports_link_goes_before_horizon_prepare, which needs
    os.symlink and this host has no developer mode, so it is unrelated.

I did not touch the symlink test here.


🔄 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/3078 **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:** `fix/port-harness-windows-log-path` --- ### 📝 Commits (1) - [`28e3286`](https://github.com/horizon-rust/horizon/commit/28e3286e406d6cac3b104955dc4ae1cead004e52) Port harness: read the log a Windows javac error names ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_harness.py` (+2 -1) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. `named_logs` exists to show the javac errors behind a `horizon-prepare` failure: it takes the log path out of the message and returns the tail of that file. Its pattern was `see (/\S+\.log)`, a Posix absolute path only. On Windows `horizon-prepare` names the log as `C:\Users\...\export.log`, so the pattern matched nothing, the function returned an empty string, and a failed export showed no compiler error at all. The pattern now accepts either form: `(?:/|[A-Za-z]:[\\/])\S+\.log`. On a Posix host it matches the same strings it did before. Evidence, Windows 11: - before: `python -m unittest tests.test_port_harness` → `AssertionError: 'Oracle.java:33: error' not found in ''` in `test_javac_errors_from_the_log_horizon_prepare_names`; - after, on this commit: that test passes; the module's only remaining failure is `test_the_reports_link_goes_before_horizon_prepare`, which needs `os.symlink` and this host has no developer mode, so it is unrelated. I did not touch the symlink test here. --- <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:57 +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#4788
No description provided.