From d59a3d3269cd0e569f864b5da45a8598524e5b2b Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Tue, 4 Aug 2026 12:22:40 +0900 Subject: [PATCH] test: raise the suite-wide test timeout to 30s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Third round of the same flake: after #58 (bench) and #65 (cli envelope loops), yet another spawn-heavy bench test breached Bun's 5s default under machine load. The suite spawns bun+ax subprocesses by design, so stop playing whack-a-mole per test and raise the default via bun test --timeout in the test script and CI. (bunfig [test].timeout is not honored — verified.) Co-Authored-By: Claude Fable 5 --- .github/workflows/ci.yml | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49c6921..902312e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,5 +21,8 @@ jobs: run: git diff --exit-code nix/bun.nix - run: bunx tsc --noEmit - run: bunx oxfmt --check . - - run: bun test + # The suite spawns bun+ax subprocesses heavily (CLI integration tests, + # continuation bench); Bun's 5s default per-test timeout flakes under + # loaded runners, so raise it suite-wide. + - run: bun test --timeout 30000 - run: bun build src/index.ts --compile --outfile ax && ./ax --version diff --git a/package.json b/package.json index 58f8db2..9418e64 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "scripts": { "ax": "bun run src/index.ts", "build": "bun build src/index.ts --compile --outfile ax", - "test": "bun test", + "test": "bun test --timeout 30000", "format": "oxfmt --check .", "format:fix": "oxfmt --write .", "postinstall": "bun2nix -o nix/bun.nix"