test(parallels): recover stale windows update swap · openclaw/openclaw@48794b9
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -109,8 +109,15 @@ function Stop-OpenClawGatewayProcesses {
|
109 | 109 | Remove-FuturePluginEntries |
110 | 110 | Stop-OpenClawGatewayProcesses |
111 | 111 | $env:OPENCLAW_DISABLE_BUNDLED_PLUGINS = '1' |
112 | | -Invoke-OpenClaw update --tag ${psSingleQuote(input.updateTarget)} --yes --json --no-restart |
113 | | -if ($LASTEXITCODE -ne 0) { throw "openclaw update failed with exit code $LASTEXITCODE" } |
| 112 | +$updateOutput = Invoke-OpenClaw update --tag ${psSingleQuote(input.updateTarget)} --yes --json --no-restart 2>&1 |
| 113 | +$updateExit = $LASTEXITCODE |
| 114 | +$updateOutput |
| 115 | +if ($updateExit -ne 0) { |
| 116 | + $updateText = $updateOutput | Out-String |
| 117 | + $stalePostSwapImport = $updateText -match 'ERR_MODULE_NOT_FOUND' -and $updateText -match 'node_modules\\openclaw\\dist\\[^\\]+-[A-Za-z0-9_-]+\.js' |
| 118 | + if (-not $stalePostSwapImport) { throw "openclaw update failed with exit code $updateExit" } |
| 119 | + Write-Host "openclaw update returned a stale post-swap module import; continuing to post-update health checks" |
| 120 | +} |
114 | 121 | ${windowsVersionCheck(input.expectedNeedle)} |
115 | 122 | Invoke-OpenClaw gateway restart |
116 | 123 | Invoke-OpenClaw gateway status --deep --require-rpc |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。