The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
ci(windows-e2e): stderr chatter is not failure - EAP=Continue around native calls
ethernetdc23cbbb9b54
diff --git a/tests/install/windows-installer-script-e2e.ps1 b/tests/install/windows-installer-script-e2e.ps1index f011a5f16e9..c9cd906eb03 100644--- a/tests/install/windows-installer-script-e2e.ps1+++ b/tests/install/windows-installer-script-e2e.ps1@@ -127,10 +127,16 @@ function Invoke-Installer {$text = Get-Content -LiteralPath $script -Rawif ($text -match '\$NonInteractive') { $flags += "-NonInteractive" }$log = Join-Path $LogDir "install-$Label.log"+ # Native stderr (git clone progress, pip notices) must not become+ # terminating NativeCommandErrors under EAP=Stop; the exit code is the+ # verdict here, not stderr chatter.+ $prevEap = $ErrorActionPreference; $ErrorActionPreference = "Continue"& powershell -NoProfile -ExecutionPolicy Bypass -File $script @flags *> $log- if ($LASTEXITCODE -ne 0) {+ $installExit = $LASTEXITCODE+ $ErrorActionPreference = $prevEap+ if ($installExit -ne 0) {Get-Content -LiteralPath $log -Tail 50 | Write-Host- Fail "install.ps1 ($Label) exited $LASTEXITCODE; full log in $log"+ Fail "install.ps1 ($Label) exited $installExit; full log in $log"}}@@ -142,8 +148,11 @@ function Assert-Checkout {$hermes = Join-Path $InstallDir "venv\Scripts\hermes.exe"if (-not (Test-Path -LiteralPath $hermes)) { Fail "no hermes console script at $hermes" }$verLog = Join-Path $LogDir "version-$Label.log"+ $prevEap = $ErrorActionPreference; $ErrorActionPreference = "Continue"& $hermes --version *> $verLog- if ($LASTEXITCODE -ne 0) {+ $verExit = $LASTEXITCODE+ $ErrorActionPreference = $prevEap+ if ($verExit -ne 0) {Get-Content -LiteralPath $verLog | Write-HostFail "hermes --version failed after $Label; log in $verLog"}@@ -169,6 +178,7 @@ switch ($UpdateMethod) {# `--yes` reaches the update subcommand only in later releases, and# argparse rejects the whole invocation when it does not exist.$updateArgs = @("update")+ $prevEap = $ErrorActionPreference; $ErrorActionPreference = "Continue"$helpText = & $hermes update --help 2>&1 | Out-Stringif ($helpText -match '--yes') { $updateArgs += "--yes" }$log = Join-Path $LogDir "update.log"@@ -178,6 +188,7 @@ switch ($UpdateMethod) {$updateExit = $LASTEXITCODE} finally {Pop-Location+ $ErrorActionPreference = $prevEap}if ($updateExit -ne 0) {Get-Content -LiteralPath $log -Tail 50 | Write-Host