Skip to content

Auto-port 5.0: Use 2 EventLoops when running our tests by default - #17586

Merged
normanmaurer merged 2 commits into
5.0from
auto-port-pr-17567-to-5.0
Sep 22, 2026
Merged

normanmaurer merged 2 commits into
5.0from
auto-port-pr-17567-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #17567 to 5.0
Cherry-picked commit: 9f11eb6


Motivation:

We create a lot of EventLoopGroups with very short life-time when running our tests. By default these use 2 * cpu's EventLoops. This is quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds

Motivation:

We create a lot of EventLoopGroups with very short life-time when
running our tests. By default these use 2 * cpu's EventLoops. This is
quite wasteful on shared infrastructure that runs our CI.

Modifications:

Use 2 EventLoops per EventLoopGroup by default if not manual specified

Result:

Less resource usage while running our CI builds

(cherry picked from commit 9f11eb6)
@testlens-app

testlens-app Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

🚨 TestLens detected 1 failed test 🚨

Here is what you can do:

  1. Inspect the test failures carefully.
  2. If you are convinced that some of the tests are flaky, you can mute them below.
  3. Finally, trigger a rerun by checking the rerun checkbox.

Test Summary

Build PR / macos-x86_64-java25-boringssl build > Netty/Transport/Native/KQueue

Test Runs Flakiness
KQueueDatagramUnicastIPv6MappedTest > testSimpleSendWithConnect(TestInfo) ❌ 4% 🟡

🏷️ Commit: d711d8f
▶️ Tests: 232358 executed
⚪️ Checks: 12/12 completed

Test Failures

KQueueDatagramUnicastIPv6MappedTest > testSimpleSendWithConnect(TestInfo) (Netty/Transport/Native/KQueue in Build PR / macos-x86_64-java25-boringssl build)
org.opentest4j.AssertionFailedError
	at io.netty.testsuite.transport.socket.DatagramUnicastTest.testSimpleSendWithConnect0(DatagramUnicastTest.java:429)
	at io.netty.testsuite.transport.socket.DatagramUnicastTest.testSimpleSendWithConnect(DatagramUnicastTest.java:382)
	at io.netty.testsuite.transport.socket.DatagramUnicastTest.testSimpleSendWithConnect(DatagramUnicastTest.java:212)
	at io.netty.testsuite.transport.socket.DatagramUnicastTest$7.run(DatagramUnicastTest.java:206)
	at io.netty.testsuite.transport.socket.DatagramUnicastTest$7.run(DatagramUnicastTest.java:203)
	at io.netty.testsuite.transport.AbstractComboTestsuiteTest.run(AbstractComboTestsuiteTest.java:52)
	at io.netty.testsuite.transport.socket.DatagramUnicastTest.testSimpleSendWithConnect(DatagramUnicastTest.java:203)
	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)

Rerun Controls

Select tests to mute in this pull request:

  • KQueueDatagramUnicastIPv6MappedTest > testSimpleSendWithConnect(TestInfo)

Reuse successful test results:

  • ♻️ Only rerun the tests that failed or were muted before

Click the checkbox to trigger a rerun:

  • Rerun jobs

Learn more about TestLens at testlens.app/docs.

@normanmaurer
normanmaurer merged commit 276a0ad into 5.0 Sep 22, 2026
12 of 13 checks passed
@normanmaurer
normanmaurer deleted the auto-port-pr-17567-to-5.0 branch September 22, 2026 11:41
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