Repository navigation
fix: enforce bounded parallel test execution - #21
Merged
Merged
Conversation
glennmichael123
force-pushed
the
codex/issue-13-version
branch
from
September 29, 2026 16:08
1dcd299 to
6ff90f5
Compare
glennmichael123
changed the base branch from
codex/issue-13-version
to
main
September 29, 2026 16:12
glennmichael123
force-pushed
the
codex/issue-15-bounded-parallel
branch
from
September 29, 2026 16:12
776c199 to
5ad9913
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15.
Replaces one-thread-per-test execution with a bounded scheduler.
n_jobsis now an exact concurrency ceiling; omitting it uses the logical CPU count with a one-worker fallback. Suites and nested suites run in declaration order, direct tests run concurrently, and inherited per-test hooks execute on the same worker as their test.Reporter calls are serialized and results are emitted in declaration order. Nested totals, failure propagation, filters, skips, only-selection, and lifecycle hooks are all handled by the parallel path, while duplicate runner/reporter start/end events are removed.
Tests verify one-worker, two-worker, and CPU-default limits; deterministic event order and totals; pass/fail/skip propagation; and nested hook lifecycle behavior. The thread-safety and hook semantics are documented.
This PR is stacked on #20 so its diff stays scoped to issue #15. Merge #20 first, then retarget this PR to
main.Verification:
zig build testrepeated three timeszig fmt --check .zig buildzig build exampleszig build -Dtarget=x86_64-linux-gnu