From 28e3286e406d6cac3b104955dc4ae1cead004e52 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 28 Oct 2026 10:21:06 +0300 Subject: [PATCH] Port harness: read the log a Windows javac error names named_logs only matched a Posix absolute path (`see /...log`), so on Windows horizon-prepare's "see C:\...\export.log" matched nothing and its javac errors were never shown. The pattern now takes either form. Co-Authored-By: Hermes Agent (Nous Research) --- tools/port_harness.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/port_harness.py b/tools/port_harness.py index b8fcc978a..09519272b 100644 --- a/tools/port_harness.py +++ b/tools/port_harness.py @@ -96,7 +96,8 @@ def prepare_resources(root, version, store): def named_logs(output): """The logs horizon-prepare's errors point to ("…; see /path/export.log"): its javac errors are there.""" text = "" - for name in sorted(set(re.findall(r"see (/\S+\.log)", output))): + # A log path is absolute on every host: "/tmp/x.log" or "C:\tmp\x.log". + for name in sorted(set(re.findall(r"see ((?:/|[A-Za-z]:[\\/])\S+\.log)", output))): path = Path(name) if path.is_file(): text += path.read_text(errors="replace")[-(1 << 20):]