Skip to content

Commit 7e6ce18

Browse files
committed
fix: relax controller startup timeouts for macos CI
1 parent f2e3134 commit 7e6ce18

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/controller/src/app/bootstrap.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import type { ControllerContainer } from "./container.js";
33

44
const INITIAL_CONTROL_PLANE_READY_TIMEOUT_MS = 30_000;
55
const STABLE_CONTROL_PLANE_TIMEOUT_MS = 45_000;
6+
const MANAGED_STABLE_CONTROL_PLANE_TIMEOUT_MS = 90_000;
67
const STABLE_CONTROL_PLANE_WINDOW_MS = 4_000;
78
const CONTROL_PLANE_POLL_INTERVAL_MS = 500;
89

@@ -121,7 +122,7 @@ export async function bootstrapController(
121122
container.runtimeState.bootPhase = "stabilizing-runtime";
122123
await waitForStableControlPlane(
123124
container,
124-
STABLE_CONTROL_PLANE_TIMEOUT_MS,
125+
MANAGED_STABLE_CONTROL_PLANE_TIMEOUT_MS,
125126
STABLE_CONTROL_PLANE_WINDOW_MS,
126127
);
127128
} else {

tools/dev/src/services/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ async function waitForControllerHealth(supervisorPid: number): Promise<void> {
167167
);
168168
}
169169

170-
if (index < 39) {
170+
if (index < 119) {
171171
await new Promise((resolve) => setTimeout(resolve, 500));
172172
}
173173
}

0 commit comments

Comments
 (0)