Skip to content

Isolate tests that modify available Security providers (#16793)#16805

Merged
chrisvest merged 1 commit into
netty:4.1from
chrisvest:4.1-fix-test-sec-provider-loading
May 12, 2026
Merged

Isolate tests that modify available Security providers (#16793)#16805
chrisvest merged 1 commit into
netty:4.1from
chrisvest:4.1-fix-test-sec-provider-loading

Conversation

@chrisvest

Copy link
Copy Markdown
Member

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)

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 4.1.134.Final milestone May 12, 2026
@chrisvest chrisvest enabled auto-merge (squash) May 12, 2026 20:27
@chrisvest chrisvest merged commit 2ea1c34 into netty:4.1 May 12, 2026
18 checks passed
@chrisvest chrisvest deleted the 4.1-fix-test-sec-provider-loading branch May 13, 2026 00:09
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.

1 participant