GeezerVison is showing github.com — Run the Linux test legs on ubuntu-24.04 so io_uring buffer ring tests execute by franz1981 · Pull Request #17637 · netty/netty
Conversation
franz1981
commented
Sep 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Motivation:
The Linux test legs run on ubuntu-22.04, whose kernel (6.8.0-azure) rejects IORING_REGISTER_PBUF_RING with EINVAL. IoUring.isRegisterBufferRingSupported() is therefore false on CI and all 24 IoUringBufferRing* test classes report Tests run: 0. No provided buffer ring code is exercised by CI. Probe data in #17636.
Modification:
Run build-pr (ci-pr.yml) and build (ci-build.yml) on ubuntu-24.04 (kernel 6.17.0-azure), where the registration succeeds. verify-pr runs no tests and build-pr-cross runs under run-on-arch, so both stay on ubuntu-22.04.
Result:
The io_uring module executes its buffer ring tests on CI: 343 ring tests, 0 failures, module total 975 run instead of 618. Verified with the centos7 java11 container on both runner images: https://github.com/franz1981/netty/actions/runs/36240874684. Cost: the io_uring test phase goes from 4:02 to 12:24 min on that leg, and those 343 tests are new to CI, so they may surface flakes that never had a chance to show.
It already surfaced one: IoUringBufferRingTest.testUseBufferClampsReadLargerThanEntryCapacity unregisters the ring by hand instead of calling IoUringBufferRing.close(), leaking the entries initialize() filled, and the leak legs fail on it. Second commit fixes the test. transport-native-io_uring then runs 975 tests with -Pleak and reports no leak.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… execute
Motivation:
The ubuntu-22.04 runner kernel (6.8.0-azure) rejects IORING_REGISTER_PBUF_RING
with EINVAL, so IoUring.isRegisterBufferRingSupported() is false on CI and every
IoUringBufferRing* test class runs zero tests. No provided buffer ring code path
is exercised by CI.
Modification:
Run build-pr (ci-pr.yml) and build (ci-build.yml) on ubuntu-24.04, whose kernel
(6.17.0-azure) accepts the registration. verify-pr runs no tests and
build-pr-cross runs under run-on-arch, so both stay on ubuntu-22.04.
Result:
The io_uring module executes its 343 buffer ring tests on CI (module total 975
run instead of 618), all passing in the existing centos7 build container. The
io_uring test phase takes about 8 minutes longer per leg.
Motivation:
The test unregisters the buffer ring with Native.ioUringUnRegisterBufRing
instead of IoUringBufferRing.close(), so the entries that initialize() filled
and the test did not use are never released. With the Linux legs moved to
ubuntu-24.04 the test finally runs on CI and the leak profile fails on it.
Modification:
Call bufferRing.close(), which unregisters the ring and releases the buffers it
still owns.
Result:
No leak. transport-native-io_uring runs 975 tests with -Pleak and reports none.
testlens-app
Bot
commented
Sep 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
✅ All tests passed ✅
⚠️ TestLens detected flakiness ⚠️
Test Summary
| Test |
Runs |
Flakiness |
| Http2MultiplexTransportTest |
❌ ✅ |
1% 🟡 |
🏷️ Commit: 2d9985d
▶️ Tests: 38784 executed
🟡 Checks: 28/30 completed
Test Failures
Http2MultiplexTransportTest (Netty/Codec/HTTP2 in Build PR / linux-x86_64-java21-graal build | Attempt 1/2)
java.lang.IllegalStateException: Possible memory leak detected for resource scope 'Http2MultiplexTransportTest'. Please use paranoid leak detection to get more information, or set -Dio.netty.util.LeakPresenceDetector.trackCreationStack=true
at io.netty.util.LeakPresenceDetector$ResourceScope.check(LeakPresenceDetector.java:308)
at io.netty.util.LeakPresenceDetector$ResourceScope.close(LeakPresenceDetector.java:328)
at io.netty.util.test.LeakPresenceExtension.afterAll(LeakPresenceExtension.java:140)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Learn more about TestLens at testlens.app/docs.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I was just thinking it was about time to try a revert of #16595 👍
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
normanmaurer
added a commit
that referenced
this pull request
Sep 29, 2026
…ffer ring tests execute (#17648)
Auto-port of #17637 to 5.0
Cherry-picked commit: 059591d
---
Motivation:
The Linux test legs run on `ubuntu-22.04`, whose kernel (6.8.0-azure)
rejects `IORING_REGISTER_PBUF_RING` with EINVAL.
`IoUring.isRegisterBufferRingSupported()` is therefore false on CI and
all 24 `IoUringBufferRing*` test classes report `Tests run: 0`. No
provided buffer ring code is exercised by CI. Probe data in #17636.
Modification:
Run `build-pr` (ci-pr.yml) and `build` (ci-build.yml) on `ubuntu-24.04`
(kernel 6.17.0-azure), where the registration succeeds. `verify-pr` runs
no tests and `build-pr-cross` runs under run-on-arch, so both stay on
`ubuntu-22.04`.
Result:
The io_uring module executes its buffer ring tests on CI: 343 ring
tests, 0 failures, module total 975 run instead of 618. Verified with
the centos7 java11 container on both runner images:
https://github.com/franz1981/netty/actions/runs/36240874684. Cost: the
io_uring test phase goes from 4:02 to 12:24 min on that leg, and those
343 tests are new to CI, so they may surface flakes that never had a
chance to show.
It already surfaced one:
`IoUringBufferRingTest.testUseBufferClampsReadLargerThanEntryCapacity`
unregisters the ring by hand instead of calling
`IoUringBufferRing.close()`, leaking the entries `initialize()` filled,
and the leak legs fail on it. Second commit fixes the test.
`transport-native-io_uring` then runs 975 tests with `-Pleak` and
reports no leak.
Co-authored-by: Francesco Nigro <[email protected]>
Co-authored-by: Norman Maurer <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
|