Skip to content

Auto-port 5.0: Isolate tests that modify available Security providers#16796

Merged
chrisvest merged 1 commit into
5.0from
auto-port-pr-16793-to-5.0
May 14, 2026
Merged

Auto-port 5.0: Isolate tests that modify available Security providers#16796
chrisvest merged 1 commit into
5.0from
auto-port-pr-16793-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16793 to 5.0
Cherry-picked commit: 4e578fc


Motivation:
The java.security.Security providers list is a JVM-wide shared resource, and modifying the list at runtime can lead to problems where a provider that was available previously is suddenly removed. This can lead to NoSuchAlgorithmException and other issues, manifesting as flaky tests.

Modification:
Find all tests that modify the Security providers list, and make sure they're all @Isolated.

Result:
Less flaky build.

Motivation:
The `java.security.Security` providers list is a JVM-wide shared
resource, and modifying the list at runtime can lead to problems where a
provider that was available previously is suddenly removed. This can
lead to `NoSuchAlgorithmException` and other issues, manifesting as
flaky tests.

Modification:
Find all tests that modify the `Security` providers list, and make sure
they're all `@Isolated`.

Result:
Less flaky build.

(cherry picked from commit 4e578fc)
@chrisvest chrisvest added this to the 5.0.0.Final milestone May 14, 2026
@chrisvest chrisvest merged commit 6260a68 into 5.0 May 14, 2026
13 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16793-to-5.0 branch May 14, 2026 05:05
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