The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
ci(windows-e2e): drop RUST_LOG from the update leg - it manufactured the deadlock it was diagnosing
ethernetf6f9f89a77f3
diff --git a/hermes_cli/main.py b/hermes_cli/main.pyindex 59b19684e15..90277c5215f 100644--- a/hermes_cli/main.py+++ b/hermes_cli/main.py@@ -8065,9 +8065,12 @@ def _run_install_with_heartbeat(# stdout while the child runs, so a full stderr pipe (~64KB)# blocks the installer forever — run 31449642122 hung 65 minutes# inside this call. Merged into stdout, the output rides the pipe- # that IS drained. The fix lives here (not only in the hand-off- # script) because old installed bases run their OLD copy of the- # hand-off, but import THIS file fresh after the git reset.+ # that IS drained. Note the reach of this arm: main.py is imported+ # when `hermes update` STARTS, so an update running from an old+ # base executes the old copy regardless of the git reset — this+ # protects updates initiated from bases that already ship it.+ # (managed_uv.py gets the same fix AND is imported lazily after+ # the reset, so its sync is protected even on old bases.)subprocess.run(cmd,cwd=PROJECT_ROOT,diff --git a/hermes_cli/managed_uv.py b/hermes_cli/managed_uv.pyindex db9563ab398..4072da6976c 100644--- a/hermes_cli/managed_uv.py+++ b/hermes_cli/managed_uv.py@@ -785,9 +785,10 @@ def _stage_candidate_venv(# drains the child's stdout while the child runs; a full stderr pipe# (~64KB) blocks uv forever. Run 31453853006 hung 43 minutes in this# exact call. Merging into stdout keeps the output streaming through- # the pipe that IS drained. Old installed bases run their old copy of- # the hand-off script, so the fix must live here, on the Python side- # the update refreshes before dependencies are installed.+ # the pipe that IS drained. This module is imported lazily by+ # update_cmd AFTER the git reset, so even an update running from an+ # old base executes THIS copy — unlike main.py, which is imported at+ # startup and only protects bases that already ship its twin fix.synced = subprocess.run([uv_bin,diff --git a/tests/install/windows/install-update-e2e.ps1 b/tests/install/windows/install-update-e2e.ps1index a5f1a76ad04..6a7b56cf4b3 100644--- a/tests/install/windows/install-update-e2e.ps1+++ b/tests/install/windows/install-update-e2e.ps1@@ -416,12 +416,14 @@ switch ($Route) {$handoffErrLog = Join-Path $LogDir "desktop-update.err.log"# Run 31449642122 hung 65 minutes inside "Updating Python# dependencies" with zero output from uv, and the job-level- # timeout killed the run before anything could say why. Two- # countermeasures: uv debug tracing (uv reads RUST_LOG), and a- # driver-owned deadline (same 45 minutes the staged-exe branch- # gets) so THIS script outlives the hang and can dump the live- # process table before GitHub cancels the job.- $env:RUST_LOG = "uv=debug"+ # timeout killed the run before anything could say why. So the+ # hand-off runs under a driver-owned deadline (same 45 minutes+ # the staged-exe branch gets): THIS script outlives a hang and+ # dumps the live process table before GitHub cancels the job.+ # Do NOT set RUST_LOG here: the installed base's Python pipes+ # uv's stderr without draining it (the very bug this axis+ # exposed), so debug tracing FLOODS that pipe and manufactures+ # the deadlock it was meant to diagnose (run 31457301901).$hp = Start-Process -FilePath "powershell" -ArgumentList @("-NoProfile", "-ExecutionPolicy", "Bypass", "-File", $handoff,"-InstallRoot", $InstallRoot, "-Branch", "main",@@ -441,7 +443,6 @@ switch ($Route) {}}}- $env:RUST_LOG = $nullif (-not $hp.HasExited) {Write-Host "--- handoff still running at the 45-minute deadline ---"Write-Host "--- live processes (who is actually stuck): ---"