Repository navigation
Use ParallelTestRunner for the test suite - #178
Merged
Merged
Conversation
Split test/runtests.jl into one file per top-level testset and run them in parallel worker processes with ParallelTestRunner. The shared imports and the `ChunkedGreedy` helper go into `init_code`, and the workers get the thread configuration of the parent process via `exeflags`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Splits
test/runtests.jlinto one file per top-level testset and runs them in parallel worker processes with ParallelTestRunner.jl.test/runtests.jlnow callsruntests(OhMyThreads, ARGS; init_code, exeflags).init_codeholds the shared imports and theChunkedGreedyhelper.exeflagspasses--threads=<default>,<interactive>to the workers, since they don't inherit the parent's thread configuration (otherwise the multithreaded-only boxing tests would silently skip).basics,chunksplitters,macro_api,task_index,task_locals,scheduler_options,greedy,specialization,regions,barrier,show,boxing.Aqua.jlandProgressMeterExt.jlare auto-discovered."2", supports Julia 1.10) to the test target.Locally with
JULIA_NUM_THREADS=4,2: 4430/4430 tests pass, the same count as before the split; wall time ~47s, dominated bybasics.jl.Subsets can be run with e.g.
Pkg.test(test_args=["greedy"]), or listed with--list.🤖 Generated with Claude Code