Skip to content

test(runner): add parallel full-suite runner - #12

Merged
pavelhov merged 1 commit into
mainfrom
codex/parallel-test-runner
Aug 13, 2026
Merged

test(runner): add parallel full-suite runner#12
pavelhov merged 1 commit into
mainfrom
codex/parallel-test-runner

Conversation

@pavelhov

Copy link
Copy Markdown
Owner

scripts/test.ts runs one fresh process per test file to avoid a Bun event-loop stall, which serializes the 593-file suite to ~40 minutes. Add scripts/test-parallel.ts: same per-file isolation, but up to CCX_TEST_PARALLEL_WORKERS (default min(4, CPU count)) files run concurrently, with the same exclusivity queue as the serial runner. bun run test:parallel finishes the full suite in ~5 minutes.

Verified: typecheck, runner unit tests, privacy scan, and two full 593-file parallel runs (one 592/593 with a confirmed flake that passes in isolation and under rerun; one 593/593 clean).

scripts/test.ts runs one fresh process per test file to avoid a Bun
event-loop stall, which serializes the 593-file suite to ~40 minutes.
Add scripts/test-parallel.ts: same per-file isolation, but up to
CCX_TEST_PARALLEL_WORKERS (default min(4, CPU count)) files run
concurrently, with the same exclusivity queue as the serial runner.
bun run test:parallel finishes the full suite in ~5 minutes.

Verified: typecheck, runner unit tests, privacy scan, and two full
593-file parallel runs (one 592/593 with a confirmed flake that passes
in isolation and under rerun; one 593/593 clean).
@pavelhov
pavelhov merged commit 70a70c6 into main Aug 13, 2026
@pavelhov
pavelhov deleted the codex/parallel-test-runner branch August 13, 2026 02:08
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