From 034b00aa66b8083ae3273051b5a6565497963fbf Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 31 Oct 2026 14:11:59 +0000 Subject: [PATCH] test(ship-budget): name the child-list probe timeout so the literals check reads the spawn timeout unchanged Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/helpers/ship-budget-harness.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/helpers/ship-budget-harness.ts b/test/helpers/ship-budget-harness.ts index 5f4391cba..a6eb8ba8c 100644 --- a/test/helpers/ship-budget-harness.ts +++ b/test/helpers/ship-budget-harness.ts @@ -64,6 +64,7 @@ export function budgetHarness(): Harness { // with empty output and no cause. A run that ends without an exit code now names its command, how it ended, its // elapsed time and, on Windows, the children it left (bash, git or a nested bin), so the next red names the stuck stage. let abnormal = ''; + const childListMs = 10_000; const run = (bin: string, args: string[], extraEnv: NodeJS.ProcessEnv = {}): Run => { const argv = bin === REVIEW_LOG_BIN ? ['bash', bin] : [process.execPath, ...bunIsolationArgs(), bin]; const started = Date.now(); @@ -74,7 +75,7 @@ export function budgetHarness(): Harness { if (process.platform === 'win32' && r.pid) { const children = spawnSync('powershell.exe', ['-NoProfile', '-NonInteractive', '-Command', `Get-CimInstance Win32_Process -Filter 'ParentProcessId=${r.pid}' | ForEach-Object { '{0} {1}' -f $_.ProcessId, $_.CommandLine }`, - ], { encoding: 'utf8', timeout: 10_000, windowsHide: true }); + ], { encoding: 'utf8', timeout: childListMs, windowsHide: true }); abnormal += `; children of ${r.pid}: ${children.stdout?.trim() || (children.error ? `unavailable (${children.error.message})` : 'none')}`; } result.err += `\n[harness] ${abnormal}`;