Skip to content

Forward port 5.0: Make the build run faster#16298

Merged
normanmaurer merged 1 commit into5.0from
forwardport-pr-16290-to-5.0
Feb 18, 2026
Merged

Forward port 5.0: Make the build run faster#16298
normanmaurer merged 1 commit into5.0from
forwardport-pr-16290-to-5.0

Conversation

@netty-project-bot
Copy link
Copy Markdown
Contributor

Forward port of #16290 to 5.0
Cherry-picked commit: f0fe411


Motivation:

It's annoying to have to wait for a long build to complete.
But arguably even worse: we have a limited number of build agents, and longer builds increases their utilization and reduces their responsiveness to new PRs, in turn adding a lengthy delay before builds for new PRs even start.

Modification:

  • Disable the buddyAllocationConsistency test when the leak detector is enabled. This test took up to seven minutes to complete when the paranoid leak detector was enabled - and we ran it twice!
  • Make the buffer tests run in parallel. Locally this cuts the build time for the buffer module in half.
  • Isolate the JFR event tests because they're inherently inspecting static mutable state.
  • Make the handler tests run in parallel per class. This allows the many, fairly slow SSL engine tests to run in parallel.

Result:

Much faster build - especially when the paranoid leak detector is enabled.

Motivation:

It's annoying to have to wait for a long build to complete.
But arguably even worse: we have a limited number of build agents, and
longer builds increases their utilization and reduces their
responsiveness to new PRs, in turn adding a lengthy delay before builds
for new PRs even start.

Modification:

- Disable the `buddyAllocationConsistency` test when the leak detector
is enabled. This test took up to seven minutes to complete when the
paranoid leak detector was enabled - and we ran it twice!
- Make the buffer tests run in parallel. Locally this cuts the build
time for the buffer module in half.
- Isolate the JFR event tests because they're inherently inspecting
static mutable state.
- Make the handler tests run in parallel per class. This allows the
many, fairly slow SSL engine tests to run in parallel.

Result:

Much faster build - especially when the paranoid leak detector is
enabled.

(cherry picked from commit f0fe411)
@normanmaurer normanmaurer merged commit a1d1a8e into 5.0 Feb 18, 2026
13 checks passed
@normanmaurer normanmaurer deleted the forwardport-pr-16290-to-5.0 branch February 18, 2026 16:06
@normanmaurer normanmaurer added this to the 5.0.0.Final milestone Feb 18, 2026
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.

3 participants