fix: extend deterministic bootstrap timeout budget
This commit is contained in:
parent
e22589f6c4
commit
7dbabc1a85
2 changed files with 4 additions and 4 deletions
|
|
@ -4551,8 +4551,8 @@ interface RuntimeBootstrapSpec {
|
||||||
}
|
}
|
||||||
|
|
||||||
const DETERMINISTIC_BOOTSTRAP_MIN_TIMEOUT_MS = 120_000;
|
const DETERMINISTIC_BOOTSTRAP_MIN_TIMEOUT_MS = 120_000;
|
||||||
const DETERMINISTIC_BOOTSTRAP_TIMEOUT_PER_MEMBER_MS = 60_000;
|
const DETERMINISTIC_BOOTSTRAP_TIMEOUT_PER_MEMBER_MS = 75_000;
|
||||||
const DETERMINISTIC_BOOTSTRAP_MAX_TIMEOUT_MS = 600_000;
|
const DETERMINISTIC_BOOTSTRAP_MAX_TIMEOUT_MS = 900_000;
|
||||||
const DETERMINISTIC_BOOTSTRAP_OUTER_TIMEOUT_GRACE_MS = 30_000;
|
const DETERMINISTIC_BOOTSTRAP_OUTER_TIMEOUT_GRACE_MS = 30_000;
|
||||||
|
|
||||||
function getDeterministicBootstrapTimeoutMs(memberCount: number): number {
|
function getDeterministicBootstrapTimeoutMs(memberCount: number): number {
|
||||||
|
|
|
||||||
|
|
@ -392,11 +392,11 @@ describe('TeamProvisioningService prompt content (solo mode discipline)', () =>
|
||||||
runId = created.runId;
|
runId = created.runId;
|
||||||
|
|
||||||
expect(extractBootstrapSpec().launch).toMatchObject({
|
expect(extractBootstrapSpec().launch).toMatchObject({
|
||||||
bootstrapTimeoutMs: 300_000,
|
bootstrapTimeoutMs: 375_000,
|
||||||
continueOnPartialFailure: true,
|
continueOnPartialFailure: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(setTimeoutSpy.mock.calls.some((call) => call[1] === 330_000)).toBe(true);
|
expect(setTimeoutSpy.mock.calls.some((call) => call[1] === 405_000)).toBe(true);
|
||||||
} finally {
|
} finally {
|
||||||
if (runId) {
|
if (runId) {
|
||||||
await svc.cancelProvisioning(runId);
|
await svc.cancelProvisioning(runId);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue