Skip to content

fix(ci): bump vitest testTimeout to 15s — close P0-6 from launch-eve audit - #1

Merged
govpun1-web merged 1 commit into
mainfrom
fix/ci-vitest-timeout
May 27, 2026
Merged

fix(ci): bump vitest testTimeout to 15s — close P0-6 from launch-eve audit#1
govpun1-web merged 1 commit into
mainfrom
fix/ci-vitest-timeout

Conversation

@govpun1-web

Copy link
Copy Markdown
Contributor

Closes

Launch-eve audit (2026-05-27) P0-6 — tests/http-transport.test.ts has been failing on every GitHub Actions main run since v0.1.0 including the v0.1.0 / v0.1.1 / v0.1.2 tag pushes. Six of the 13 tests time out at the vitest default 5000ms on the CI Ubuntu runner. Locally the same six pass in ~70ms total.

Diagnosis

The tests drive runHttpServer(config) which calls app.listen(0, '127.0.0.1', cb) on Express 5. The CI runner's listen-callback latency is enough to push past the 5000ms vitest default on a few lifecycle-heavy tests (each test does start-server + driver-fetch + close-server). The work inside the tests themselves is sub-100ms once bind completes.

Fix

Adopts testTimeout: 15000 and hookTimeout: 15000 at the vitest config level. Local fast runs are unaffected.

Verification

  • Local npm test: 68/68 passing, full suite 584ms (http-transport file alone 62ms — well inside the new ceiling, with plenty of headroom for the slower CI environment)
  • After merge: the CI badge on the repo should go green on the next push instead of carrying a red X for HN visitors clicking through from the npm page.

…audit

http-transport.test.ts has been failing on every GitHub Actions main
run since v0.1.0, including the v0.1.0 / v0.1.1 / v0.1.2 tag pushes.
Six tests time out at 5000ms in the CI Ubuntu environment while the
same six pass in ~70ms total locally on Windows.

Root cause: the file drives `runHttpServer(config)` which calls
`app.listen(0, '127.0.0.1', cb)` on Express 5; the CI runner's
listen-callback latency is enough to push past the vitest default
5000ms in some of the more lifecycle-heavy tests. The in-test work
itself is sub-100ms once bind completes.

Adopts `testTimeout: 15000` and `hookTimeout: 15000` at the vitest
config level. Local fast runs are unaffected. The CI badge on the
repo should go green on the next push instead of carrying a red X
for HN visitors clicking through from npm.
@govpun1-web
govpun1-web merged commit 1f12a39 into main May 27, 2026
3 checks passed
@govpun1-web
govpun1-web deleted the fix/ci-vitest-timeout branch May 27, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant