fix(ci): stabilize update run gates (#94580) · openclaw/openclaw@712e45d
steipete
·
2026-06-18
·
via Recent Commits to openclaw:main
File tree
src/gateway/server-methods
| Original file line number | Diff line number | Diff line change |
|---|
@@ -806,7 +806,9 @@ describe("update.run post-core plugin finalize", () => {
|
806 | 806 | detectRespawnSupervisorMock.mockReturnValueOnce("launchd"); |
807 | 807 | mockGlobalInstallSurface(); |
808 | 808 | |
809 | | -await captureUpdateRunPayload(); |
| 809 | +await withProcessEnv({ OPENCLAW_LAUNCHD_LABEL: "ai.openclaw.gateway" }, () => |
| 810 | +captureUpdateRunPayload(), |
| 811 | +); |
810 | 812 | |
811 | 813 | expect(runGatewayUpdateMock).not.toHaveBeenCalled(); |
812 | 814 | expect(runPostCoreFinalizeAfterGatewayUpdateMock).not.toHaveBeenCalled(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -296,7 +296,7 @@ export const updateHandlers: GatewayRequestHandlers = {
|
296 | 296 | } else { |
297 | 297 | const preUpdateConfig = |
298 | 298 | installSurface.kind === "git" |
299 | | - ? await readPreUpdateConfigForPostCoreFinalize().catch((err) => { |
| 299 | + ? await readPreUpdateConfigForPostCoreFinalize().catch((err: unknown) => { |
300 | 300 | context?.logGateway?.warn( |
301 | 301 | `update.run could not capture pre-update config ${formatControlPlaneActor(actor)} error=${formatUpdateRunErrorMessage(err)}`, |
302 | 302 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。