Skip to content

Commit 79df91a

Browse files
anandgupta42claude
andcommitted
fix: raise CI test timeout 30s→90s to kill resource-contention flakiness
The "TypeScript" job runs all 9500+ tests in one parallel bun process. Under CPU contention a few slower tests (real fs/spawn/git-bootstrap) get starved and exceed the 30s per-test timeout NON-deterministically — different tests each run (observed: 32s and 51s timeouts). This blocks every PR with failures unrelated to the diff. 90s gives ~3x headroom over the worst observed, removing the flakiness without masking genuinely-hung tests. Part of #879. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent ba6cce2 commit 79df91a

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,13 @@ jobs:
9898
# Cloud E2E tests (Snowflake, BigQuery, Databricks) auto-skip when
9999
# ALTIMATE_CODE_CONN_* env vars are not set. Docker E2E tests auto-skip
100100
# when Docker is not available. No exclusion needed — skipIf handles it.
101-
# --timeout 30000: matches package.json "test" script; prevents 5s default
102-
# from cutting off tests that run bun install or bootstrap git instances.
101+
# --timeout 90000: the full suite (9500+ tests across 379 files) runs in
102+
# one parallel bun process. Under CPU contention a handful of slower tests
103+
# (real fs/spawn/git-bootstrap work) get starved and exceed a tight timeout
104+
# NON-deterministically — different tests each run — failing CI with
105+
# "timed out after Nms" (observed 32s/51s at the old 30s limit). 90s gives
106+
# ~3x headroom over the worst observed, killing the resource-contention
107+
# flakiness without masking genuinely-hung tests.
103108
#
104109
# Bun 1.3.x has a known segfault during process cleanup after all tests
105110
# pass (exit code 143/SIGTERM or 134/SIGABRT). We capture test output and
@@ -108,7 +113,7 @@ jobs:
108113
run: |
109114
# Redirect bun output to file, then cat it for CI visibility.
110115
# This avoids tee/pipe issues where SIGTERM kills tee before flush.
111-
bun test --timeout 30000 > /tmp/test-output.txt 2>&1 || true
116+
bun test --timeout 90000 > /tmp/test-output.txt 2>&1 || true
112117
cat /tmp/test-output.txt
113118
114119
# Extract pass/fail counts from Bun test summary (e.g., " 5362 pass")

0 commit comments

Comments
 (0)