Run BATS files in parallel by default#8
Merged
Conversation
junior-ricon
marked this pull request as ready for review
July 17, 2026 13:30
Contributor
|
Fix-it #9 addresses one structural/correctness concern in this branch:
#9 moves the workflow to Exact signed fix-it head: |
Fix test task structure and option parsing
test: require public task examples
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.
Summary
Closes #4.
Design
Effective jobs follow caller
--jobs, thenBATS_NUMBER_OF_PARALLEL_JOBS, then the four-job default. Rush is required only when effective jobs exceed one. The task forwards caller arguments unchanged and adds--no-parallelize-within-filesfor parallel runs.Within-file parallelism is intentionally excluded. A causal disposable BATS experiment changed only its semaphore poll from 1s to 10ms and reduced a 32-test single-file profile from 17.012s to 2.788s at two jobs and 7.849s to 1.740s at four jobs. The upstream/fork opportunity is tracked separately in #7.
Measurement
Five measured runs per candidate followed one warmup, with rotated/reversed order. Timing covers the BATS suite only, after tool setup. Profiles use isolated test-local state.
Four jobs was the smallest hosted candidate within roughly 10% of the best median across both profiles and platforms. It reduced the measured hosted profiles by about 42–66% versus serial execution. Raw hosted evidence is in run
29583418980; local raw JSON remains in Junior's Template#4 benchmark workbench. The temporary hosted benchmark workflow and fixtures are absent from the final head.Validation
git diff --check29584113017passed at072f507: Ubuntu test step 2s / job 11s; macOS test step 6s / job 33sBoundaries
No downstream repository adoption, Template#6 change, BATS fork, or merge authority is implied by this PR.