test(cross-model): give the subprocess-heavy route suites a 30s per-test ceiling (#1510)

This commit is contained in:
Trevin Chow
2026-08-21 15:59:16 -07:00
committed by GitHub
parent bcd86d0449
commit 9107007954
2 changed files with 10 additions and 2 deletions
@@ -1,4 +1,4 @@
import { afterAll, describe, expect, test } from "bun:test"
import { afterAll, describe, expect, setDefaultTimeout, test } from "bun:test"
import { spawnSync } from "node:child_process"
import {
mkdtempSync,
@@ -14,6 +14,10 @@ import {
import { devNull, tmpdir } from "node:os"
import path from "node:path"
// These tests spawn bash/python/git subprocesses; on a loaded CI runner they cross the 5s default
// (2026-08-21, PR #1508: three different tests timed out across two reruns with no related change).
setDefaultTimeout(30_000)
const tempRoots: string[] = []
function mkTempRoot(prefix: string): string {
const dir = mkdtempSync(path.join(tmpdir(), prefix))
@@ -1,4 +1,4 @@
import { afterAll, describe, expect, test } from "bun:test"
import { afterAll, describe, expect, setDefaultTimeout, test } from "bun:test"
import { spawnSync } from "node:child_process"
import {
mkdtempSync,
@@ -14,6 +14,10 @@ import {
import { tmpdir } from "node:os"
import path from "node:path"
// These tests spawn bash/python/git subprocesses; on a loaded CI runner they cross the 5s default
// (2026-08-21, PR #1508: three different tests timed out across two reruns with no related change).
setDefaultTimeout(30_000)
// Every temp root we create, torn down after the suite so runs don't leak dirs.
const tempRoots: string[] = []
function mkTempRoot(prefix: string): string {