Skip to content

ci: build the maven-verify job with two threads - #1638

Merged
joaodinissf merged 1 commit into
masterfrom
ci/maven-verify-parallel
Nov 20, 2026
Merged

joaodinissf merged 1 commit into
masterfrom
ci/maven-verify-parallel

Conversation

@joaodinissf

@joaodinissf joaodinissf commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

The maven-verify job runs the reactor with -T 2, so two modules build and run PMD, Checkstyle and SpotBugs at a time. Test runtimes still take turns through the Surefire reactorConcurrencyLevel lock.

Measurements

Build with Maven step on the 4 vCPU, 16 GB runner, three runs per setting on the same commit:

Setting Run 1 Run 2 Run 3 Median Test class time
serial 654 s 674 s 738 s 674 s 146-165 s
-T 2 630 s 618 s 633 s 630 s 147-154 s
-T 1C 662 s 603 s 618 s 618 s 174-181 s
-T 2C 613 s 913 s 857 s 857 s 204-293 s (the third -T 2C log was not saved)
  • -T 2 saves about 45-60 s per run and leaves the tests at serial speed.
  • -T 1C builds in about the same time but slows the tests by about 10-20%.
  • -T 2C overloads the runner and was slower than serial in two of three runs.

Every build passed with surefire reports for all 98 test classes (490 tests, 2 skipped) and no kernel out-of-memory kills.

🤖 Generated with Claude Code

@joaodinissf
joaodinissf force-pushed the ci/maven-verify-parallel branch from 6ba830b to cead295 Compare November 20, 2026 09:22
@joaodinissf joaodinissf changed the title ci: build the maven-verify job with one thread per core ci: build the maven-verify job with two threads Nov 20, 2026
The job runs the reactor with -T 2, so two modules build and run their
static analysis at a time. Test runtimes still take turns through the
Surefire reactorConcurrencyLevel lock.

Measured on the 4 vCPU runner over three runs each, the Build with
Maven step took 654-738 s serial, 618-633 s with -T 2, 603-662 s with
-T 1C and 613-913 s with -T 2C. With -T 2 the tests run at serial
speed; -T 1C slows them by about 10-20% and -T 2C overloads the runner.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@joaodinissf
joaodinissf force-pushed the ci/maven-verify-parallel branch from cead295 to 610f5a4 Compare November 20, 2026 16:22
@joaodinissf
joaodinissf marked this pull request as ready for review November 20, 2026 16:23
@joaodinissf
joaodinissf added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 6a194c5 Nov 20, 2026
4 checks passed
@joaodinissf
joaodinissf deleted the ci/maven-verify-parallel branch November 20, 2026 16:47
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.

2 participants