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 — Auto-port 4.1: Kqueue: Add testsuite on macOS during PR validation by netty-project-bot · Pull Request #16471 · netty/netty

Conversation

@netty-project-bot

@netty-project-bot netty-project-bot commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Auto-port of #15159 to 4.1
Cherry-picked commit: 33012ba


Motivation:

We should also run the kqueue transport testsuite during PR validation to ensure we don't introduce regressions

Modifications:

Add mvnw command to run tests as well on macOS

Result:

Testing of native kqueue transport during PR validation

Sorry, something went wrong.

Uh oh!

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

All reactions
@netty-project-bot netty-project-bot mentioned this pull request Mar 14, 2026
Kqueue: Add testsuite on macOS during PR validation #15159
Merged
@chrisvest chrisvest added this to the 4.1.132.Final milestone Mar 17, 2026
@chrisvest

chrisvest commented Mar 17, 2026

Copy link
Copy Markdown
Member

Both Mac builds failed with

Error:  Errors: 
Error:    KQueueETSocketDataReadInitialStateTest.testAutoReadOffNoDataReadUntilReadCalled(TestInfo) » Timeout testAutoReadOffNoDataReadUntilReadCalled(org.junit.jupiter.api.TestInfo) timed out after 10000 milliseconds
Error:    KQueueSocketChannelNotYetConnectedTest.readMustBePendingUntilChannelIsActive(TestInfo) » Timeout readMustBePendingUntilChannelIsActive(org.junit.jupiter.api.TestInfo) timed out after 30 seconds
All reactions

Sorry, something went wrong.

Uh oh!

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

@normanmaurer

normanmaurer commented Mar 18, 2026

Copy link
Copy Markdown
Member

will need to investigate

All reactions

Sorry, something went wrong.

Uh oh!

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

@normanmaurer normanmaurer modified the milestones: 4.1.132.Final, 4.1.133.Final Mar 25, 2026
@normanmaurer
normanmaurer force-pushed the auto-port-pr-15159-to-4.1 branch from e0cafbf to ebc7679 Compare April 22, 2026 07:21
@normanmaurer normanmaurer modified the milestones: 4.1.133.Final, 4.1.134.Final May 5, 2026
@chrisvest chrisvest modified the milestones: 4.1.134.Final, 4.1.135 May 20, 2026
@chrisvest chrisvest modified the milestones: 4.1.135.Final, 4.1.136.Final Jun 2, 2026
@normanmaurer normanmaurer modified the milestones: 4.1.136.Final, 4.1.137.Final Jul 8, 2026
@normanmaurer normanmaurer modified the milestones: 4.1.137.Final, 4.1.138.Final Aug 6, 2026
@chrisvest chrisvest modified the milestones: 4.1.138.Final, 4.1.139.Final Sep 10, 2026
@normanmaurer normanmaurer modified the milestones: 4.1.139.Final, 4.1.140.Final Oct 14, 2026
normanmaurer added 6 commits October 20, 2026 10:45
@normanmaurer
Kqueue: Add testsuite on macOS during PR validation (#15159)
7747d1c
Motivation:

We should also run the kqueue transport testsuite during PR validation
to ensure we don't introduce regressions

Modifications:

Add mvnw command to run tests as well on macOS

Result:

Testing of native kqueue transport during PR validation

(cherry picked from commit 33012ba)
@normanmaurer
Kqueue: Change to use level-triggered mode and so simplify code a lot (…
5ac235f
…#15255)

Motivation:

Using level-triggered better match our model and is also what we use for
other transports. This removes a lot of complexity and make the
transport more similar to epoll

Modifications:

- Change transport to use level-triggered
- KqueueChannelOption.RCV_ALLOC_TRANSPORT_PROVIDES_GUESS was deprecated
and be made a noop
- Remove old test that is not valid anymore
- Cleanup to remove some allocations

Result:

Code easier to reason about and to maintain
@normanmaurer
Kqueue: Change to use level-triggered mode and so simplify code a lot (…
1437d0a
…#15255)

Motivation:

Using level-triggered better match our model and is also what we use for
other transports. This removes a lot of complexity and make the
transport more similar to epoll

Modifications:

- Change transport to use level-triggered
- KqueueChannelOption.RCV_ALLOC_TRANSPORT_PROVIDES_GUESS was deprecated
and be made a noop
- Remove old test that is not valid anymore
- Cleanup to remove some allocations

Result:

Code easier to reason about and to maintain
@normanmaurer
Kqueue: Deregister filters before closing the fd to avoid hitting a r…
270852b
…eused fd

Motivation:

KQueue event registrations are set on file descriptors. When a channel
is closed we need to remove the filters to avoid them triggering on
future reuses of the same file descriptor. This was done after the fd
had already been closed, so pending changes could be applied to a
reused fd. In level-triggered mode this leaves stale filters that fire
continuously.

Modifications:

Move doDeregister() to the start of doClose() in AbstractKQueueChannel
and remove the prepareToClose machinery that was only used when
SO_LINGER was configured (backport of #16650).

Result:

More stable kqueue integration.
@normanmaurer
Kqueue: Keep the prepareToClose machinery for SO_LINGER
0a1aff8
Restore the prepareToClose overrides. The SO_LINGER path now calls
doDeregister() so the later doClose() on the other executor does not
touch the registration again from outside the EventLoop.
@normanmaurer
Increase test timeouts to avoid flakiness on macOS CI
03802f6
Motivation:

SocketDataReadInitialStateTest.testAutoReadOffNoDataReadUntilReadCalled and
SocketChannelNotYetConnectedTest.readMustBePendingUntilChannelIsActive run
many permutations that each sleep or wait for a graceful shutdown. On the
macOS runners they take close to (or beyond) their timeouts.

Modifications:

Raise the timeouts to 30s and 60s respectively.

Result:

No spurious timeouts on slow CI machines.
@normanmaurer
normanmaurer force-pushed the auto-port-pr-15159-to-4.1 branch from 57f0624 to 03802f6 Compare October 20, 2026 08:49
@testlens-app

testlens-app Bot commented Oct 20, 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

Tip

Inspect all details with the TestLens CLI: testlens pr 16471

Build PR / linux-x86_64-java21-graal build > Netty/Handler/Ssl/Ocsp

Test Runs Flakiness
OcspServerCertificateValidatorTest > connectUsingHttpAndValidateCertificateUsingOcspTest() ❌ ✅ 1% 🟡

🏷️ Commit: 03802f6
▶️ Tests: 36041 executed
⚪️ Checks: 20/20 completed

Test Failures

OcspServerCertificateValidatorTest > connectUsingHttpAndValidateCertificateUsingOcspTest() (Netty/Handler/Ssl/Ocsp in Build PR / linux-x86_64-java21-graal build | Attempt 1/2)
org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:31)
	at org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:183)
	at io.netty.handler.ssl.ocsp.OcspServerCertificateValidatorTest.connectUsingHttpAndValidateCertificateUsingOcspTest(OcspServerCertificateValidatorTest.java:88)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
expected actual
true false

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 merged commit 27e782f into 4.1 Oct 21, 2026
33 of 36 checks passed

Uh oh!

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

@normanmaurer
normanmaurer deleted the auto-port-pr-15159-to-4.1 branch October 21, 2026 14:43
@normanmaurer

normanmaurer commented Oct 21, 2026

Copy link
Copy Markdown
Member

Finally merged

All reactions

Sorry, something went wrong.

Uh oh!

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

lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
@netty-project-bot @normanmaurer @lltopk
Auto-port 4.1: Kqueue: Add testsuite on macOS during PR validation (n…
376c5c0
…etty#16471)

Auto-port of netty#15159 to 4.1
Cherry-picked commit: 33012ba

---
Motivation:
    
We should also run the kqueue transport testsuite during PR validation
to ensure we don't introduce regressions
  
Modifications:
  
Add mvnw command to run tests as well on macOS
  
Result:
  
Testing of native kqueue transport during PR validation

---------

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.1.140.Final

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@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.