integration cicd speedup: Enable Maven module parallelism#818
Draft
dkropachev wants to merge 2 commits intoscylladb:scylla-4.xfrom
Draft
integration cicd speedup: Enable Maven module parallelism#818dkropachev wants to merge 2 commits intoscylladb:scylla-4.xfrom
dkropachev wants to merge 2 commits intoscylladb:scylla-4.xfrom
Conversation
Add MAVEN_PARALLEL_THREADS variable (default: 1C = 1 thread per CPU core) to the compile-all target. Use 'install' instead of 'compile test-compile' so that annotation processors (mapper-processor) are installed to the local repo before downstream modules (examples) start compiling.
806cccc to
a9f7ff8
Compare
The examples module uses annotationProcessorPaths to reference mapper-processor, which Maven resolves from the local repo (not the reactor). With parallel builds (-T), examples can start compiling before mapper-processor is installed, causing a resolution failure. Split compile-all into two phases: parallel install of all modules except examples, then sequential compile of examples. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Author
CI Performance ResultsCompared PR #818 against baseline (PR #821). 3 failures are pre-existing flaky tests, not related to this PR.
No significant performance difference from this PR alone — within normal CI variance. The Maven module parallelism ( Failed tests (pre-existing, unrelated to this PR)
|
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
MAVEN_PARALLEL_THREADSvariable (default:1C= 1 thread per CPU core) to the Makefilemake compile-all MAVEN_PARALLEL_THREADS=2if neededTest plan
make compile-allcompletes successfully with parallel buildsmake test-unitpasses with parallel module executionmake checkpasses