GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@franz1981 franz1981 commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
franz1981 added 2 commits September 26, 2026 14:35
@franz1981
Run the Linux test legs on ubuntu-24.04 so io_uring buffer ring tests…
d4b3038
… 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.
@franz1981
Close the buffer ring in testUseBufferClampsReadLargerThanEntryCapacity
2d9985d
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

testlens-app Bot commented Sep 26, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

✅ All tests passed ✅

⚠️ TestLens detected flakiness ⚠️

Test Summary

Build PR / linux-x86_64-java21-graal build > Netty/Codec/HTTP2

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@normanmaurer normanmaurer added this to the 4.2.19.Final milestone Sep 28, 2026
@normanmaurer normanmaurer added the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 28, 2026
@normanmaurer
normanmaurer merged commit 059591d into netty:4.2 Sep 28, 2026
43 of 44 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@netty-project-bot netty-project-bot mentioned this pull request Sep 28, 2026
Auto-port 5.0: Run the Linux test legs on ubuntu-24.04 so io_uring buffer ring tests execute #17648
Merged
@netty-project-bot

netty-project-bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Auto-port PR for 5.0: #17648

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot removed the needs-cherry-pick-5.0 This PR should be cherry-picked to 5.0 once merged. label Sep 28, 2026
@chrisvest

chrisvest commented Sep 28, 2026

Copy link
Copy Markdown
Member

I was just thinking it was about time to try a revert of #16595 👍

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chrisvest chrisvest linked an issue Sep 29, 2026 that may be closed by this pull request
CI never runs the io_uring buffer ring tests: ubuntu-22.04 runner kernel rejects IORING_REGISTER_PBUF_RING #17636
Closed
normanmaurer added a commit that referenced this pull request Sep 29, 2026
@netty-project-bot @franz1981 @normanmaurer
Auto-port 5.0: Run the Linux test legs on ubuntu-24.04 so io_uring bu…
b8d6495
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

4.2.19.Final

Development

Successfully merging this pull request may close these issues.

CI never runs the io_uring buffer ring tests: ubuntu-22.04 runner kernel rejects IORING_REGISTER_PBUF_RING

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@franz1981 @netty-project-bot @chrisvest @normanmaurer
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.