Skip to content

Commit 93e7843

Browse files
committed
fix(ci): stabilize update run gates
1 parent 00a06ea commit 93e7843

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/gateway/server-methods/update.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,9 @@ describe("update.run post-core plugin finalize", () => {
806806
detectRespawnSupervisorMock.mockReturnValueOnce("launchd");
807807
mockGlobalInstallSurface();
808808

809-
await captureUpdateRunPayload();
809+
await withProcessEnv({ OPENCLAW_LAUNCHD_LABEL: "ai.openclaw.gateway" }, () =>
810+
captureUpdateRunPayload(),
811+
);
810812

811813
expect(runGatewayUpdateMock).not.toHaveBeenCalled();
812814
expect(runPostCoreFinalizeAfterGatewayUpdateMock).not.toHaveBeenCalled();

src/gateway/server-methods/update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export const updateHandlers: GatewayRequestHandlers = {
296296
} else {
297297
const preUpdateConfig =
298298
installSurface.kind === "git"
299-
? await readPreUpdateConfigForPostCoreFinalize().catch((err) => {
299+
? await readPreUpdateConfigForPostCoreFinalize().catch((err: unknown) => {
300300
context?.logGateway?.warn(
301301
`update.run could not capture pre-update config ${formatControlPlaneActor(actor)} error=${formatUpdateRunErrorMessage(err)}`,
302302
);

0 commit comments

Comments
 (0)