GeezerVison is showing github.com — Explicitly configure test classes in test tasks for Gradle 9 update by cwperks · Pull Request #5793 · opensearch-project/security
Conversation
cwperks
commented
Nov 17, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Description
@nibix noticed that the test coverage has dropped post gradle-9 upgrade. In my testing, tasks with Test configuration now need to have the test classes declared explicitly.
Test classes need to be explicitly configured now. See https://docs.gradle.org/current/userguide/upgrading_major_version_9.html#test_tasks_may_no_longer_execute_expected_tests
- Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Maintenance
Check List
- New functionality includes testing
- New functionality has been documented
- New Roles/Permissions have a corresponding security dashboards plugin PR
- API changes companion pull request created
- Commits are signed per the DCO using --signoff
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Sorry, something went wrong.
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.
cwperks
changed the title
Explicit configure test classes in test tasks for Gradle 9 update
Explicitly configure test classes in test tasks for Gradle 9 update
Nov 17, 2025
|
New flakiness may be due to netty 4.2 upgrade
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
cwperks
commented
Nov 17, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
SecuritySSLReloadCertsActionTests > testReloadHttpCertDifferentTrustChain_skipDnValidationPass FAILED
java.io.IOException: cluster state is GREEN with 1 nodes
at org.opensearch.security.test.helper.cluster.ClusterHelper.waitForCluster(ClusterHelper.java:378)
at org.opensearch.security.test.helper.cluster.ClusterHelper.startCluster(ClusterHelper.java:277)
at org.opensearch.security.test.helper.cluster.ClusterHelper.startCluster(ClusterHelper.java:125)
at org.opensearch.security.test.SingleClusterTest.setup(SingleClusterTest.java:107)
at org.opensearch.security.ssl.SecuritySSLReloadCertsActionTests.initTestCluster(SecuritySSLReloadCertsActionTests.java:498)
at org.opensearch.security.ssl.SecuritySSLReloadCertsActionTests.testReloadHttpCertDifferentTrustChain_skipDnValidationPass(SecuritySSLReloadCertsActionTests.java:209)
java.lang.NullPointerException: Cannot read field "httpHost" because "this.clusterInfo" is null
at org.opensearch.security.test.helper.rest.RestHelper.getHttpServerUri(RestHelper.java:307)
at org.opensearch.security.test.helper.rest.RestHelper.getRequestUri(RestHelper.java:313)
at org.opensearch.security.test.helper.rest.RestHelper.executeSimpleRequest(RestHelper.java:129)
at org.opensearch.security.ssl.SecuritySSLReloadCertsActionTests.checkClusterHealth(SecuritySSLReloadCertsActionTests.java:110)
Edit:
Cluster doesn't seem to be forming:
SecuritySSLReloadCertsActionTests > testReloadTransportCertDifferentTrustChain_noSkipDnValidationFail FAILED
java.io.IOException: cluster state is GREEN with 1 nodes
at org.opensearch.security.test.helper.cluster.ClusterHelper.waitForCluster(ClusterHelper.java:378)
at org.opensearch.security.test.helper.cluster.ClusterHelper.startCluster(ClusterHelper.java:277)
at org.opensearch.security.test.helper.cluster.ClusterHelper.startCluster(ClusterHelper.java:125)
at org.opensearch.security.test.SingleClusterTest.setup(SingleClusterTest.java:107)
at org.opensearch.security.ssl.SecuritySSLReloadCertsActionTests.initTestCluster(SecuritySSLReloadCertsActionTests.java:498)
at org.opensearch.security.ssl.SecuritySSLReloadCertsActionTests.testReloadTransportCertDifferentTrustChain_noSkipDnValidationFail(SecuritySSLReloadCertsActionTests.java:307)
|
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
codecov
Bot
commented
Nov 17, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.34%. Comparing base (062ea71) to head (5e6c5ee).
⚠️ Report is 3 commits behind head on main.
Additional details and impacted files

@@ Coverage Diff @@
## main #5793 +/- ##
===========================================
+ Coverage 52.46% 73.34% +20.88%
===========================================
Files 434 434
Lines 26617 26618 +1
Branches 3963 3963
===========================================
+ Hits 13964 19524 +5560
+ Misses 10966 5205 -5761
- Partials 1687 1889 +202
... and 235 files with indirect coverage changes
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
|
Sorry, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|