From e9cb003e9e6c1b225c04abc2d72b930ec0aadffa Mon Sep 17 00:00:00 2001 From: Chinesezjc Date: Wed, 26 Aug 2026 15:04:45 +0800 Subject: [PATCH] test: widen oxlint contract and built-bin spawn budgets Both suites spawn real subprocesses (oxlint probes; the dsh built bin) that cold-start slowly on the contended self-hosted Windows pool, so their 20-25s timeouts fire before the child finishes. Raise the oxlint contract case timeouts to 60s and the built-bin execa timeouts to 60s, matching the tool-ralph budget treatment. --- apps/cli/tests/built-bin.e2e.ts | 8 ++++---- scripts/oxlint-contract.spec.ts | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/cli/tests/built-bin.e2e.ts b/apps/cli/tests/built-bin.e2e.ts index ef175ac199..98008cf006 100644 --- a/apps/cli/tests/built-bin.e2e.ts +++ b/apps/cli/tests/built-bin.e2e.ts @@ -36,7 +36,7 @@ async function runBuiltBin( ) const result = await execa(process.execPath, [dshBin, ...args], { input: '', - timeout: 25_000, + timeout: 60_000, killSignal: 'SIGKILL', reject: false, env: childEnv, @@ -310,7 +310,7 @@ function startStartupProfile(fixture: StartupFixture, args: readonly string[]) { cwd: fixture.home, input: '', reject: false, - timeout: 25_000, + timeout: 60_000, killSignal: 'SIGKILL', env: { DSH_HOME: fixture.home, @@ -423,7 +423,7 @@ describe.skipIf(!existsSync(dshBin))('dsh BUILT bin (node lib/bin.js, no tsx)', const child = execa(process.execPath, [dshBin, '--profile', 'sdk'], { cwd: home, reject: false, - timeout: 25_000, + timeout: 60_000, killSignal: 'SIGKILL', env: { ...process.env, @@ -484,7 +484,7 @@ describe.skipIf(!existsSync(dshBin))('dsh BUILT bin (node lib/bin.js, no tsx)', const child = execa(process.execPath, [dshBin, '--profile', 'acp'], { cwd: home, reject: false, - timeout: 25_000, + timeout: 60_000, killSignal: 'SIGKILL', env: { ...process.env, diff --git a/scripts/oxlint-contract.spec.ts b/scripts/oxlint-contract.spec.ts index 847d0a7593..24fbbd4af0 100644 --- a/scripts/oxlint-contract.spec.ts +++ b/scripts/oxlint-contract.spec.ts @@ -105,7 +105,7 @@ probePromise() rm(configPath, { force: true }), ]) } - }, 20_000) + }, 60_000) it('runs JavaScript compatibility and nursery rules', async () => { const suffix = randomUUID() @@ -152,7 +152,7 @@ export const longProbe = 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + rm(configPath, { force: true }), ]) } - }, 20_000) + }, 60_000) it('keeps the complete stylistic contract in Oxlint', async () => { const oxlintPath = join(repositoryRoot, '.oxlintrc.json') @@ -252,7 +252,7 @@ export const longProbe = 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + rm(configPath, { force: true }), ]) } - }, 20_000) + }, 60_000) it('accepts an ignored-only staged selection', () => { const result = runOxlint([ @@ -371,6 +371,6 @@ export const longProbe = 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + await rm(directory, { recursive: true, force: true }) } }, - 20_000, + 60_000, ) })