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 — Explicitly configure test classes in test tasks for Gradle 9 update by cwperks · Pull Request #5793 · opensearch-project/security

Conversation

@cwperks

@cwperks cwperks commented Nov 17, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

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.

All reactions
@cwperks
Explicit configure test classes in test tasks for Gradle 9 update
1453503
Signed-off-by: Craig Perkins <[email protected]>
@cwperks
cwperks requested review from DarshitChanpura, RyanL1997, derek-ho, nibix, peternied, reta, shikharj05 and willyborankin as code owners November 17, 2025 15:53
@cwperks cwperks added the skip-changelog label Nov 17, 2025
@cwperks

cwperks commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

Relevant gradle docs: https://docs.gradle.org/current/userguide/upgrading_major_version_9.html#test_tasks_may_no_longer_execute_expected_tests

All reactions

Sorry, something went wrong.

Uh oh!

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

@cwperks cwperks added skip-changelog and removed skip-changelog labels Nov 17, 2025
@cwperks 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
@cwperks

cwperks commented Nov 17, 2025

Copy link
Copy Markdown
Member Author

New flakiness may be due to netty 4.2 upgrade

All reactions

Sorry, something went wrong.

Uh oh!

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

@cwperks

cwperks commented Nov 17, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member Author

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)
All reactions

Sorry, something went wrong.

Uh oh!

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

cwperks added 2 commits November 17, 2025 13:51
@cwperks
Set to null
5ffe077
Signed-off-by: Craig Perkins <[email protected]>
@cwperks
Revert kafka bump
3d1aa01
Signed-off-by: Craig Perkins <[email protected]>
cwperks
cwperks commented Nov 17, 2025
View reviewed changes
Comment thread build.gradle Resolved

Uh oh!

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

@cwperks
Fix kafka upgrade issue
5e6c5ee
Signed-off-by: Craig Perkins <[email protected]>
cwperks
cwperks commented Nov 17, 2025
View reviewed changes
Comment thread build.gradle Resolved

Uh oh!

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

cwperks
cwperks commented Nov 17, 2025
View reviewed changes
Comment thread src/main/java/org/opensearch/security/ssl/SslConfiguration.java Resolved

Uh oh!

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

@codecov

codecov Bot commented Nov 17, 2025 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

✅ 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

Impacted file tree graph

@@             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     
Files with missing lines Coverage Δ
.../org/opensearch/security/ssl/SslConfiguration.java 81.03% <100.00%> (+10.85%) ⬆️

... 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.
All reactions

Sorry, something went wrong.

Uh oh!

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

nibix
nibix approved these changes Nov 18, 2025
View reviewed changes
@cwperks

cwperks commented Nov 18, 2025

Copy link
Copy Markdown
Member Author

@shikharj05 @reta could I get another review on this?

All reactions

Sorry, something went wrong.

Uh oh!

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

shikharj05
shikharj05 approved these changes Nov 18, 2025
View reviewed changes
@cwperks
cwperks merged commit f4e573f into opensearch-project:main Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shikharj05 shikharj05 shikharj05 approved these changes
@nibix nibix nibix approved these changes
@DarshitChanpura DarshitChanpura Awaiting requested review from DarshitChanpura DarshitChanpura is a code owner
@derek-ho derek-ho Awaiting requested review from derek-ho derek-ho is a code owner
@peternied peternied Awaiting requested review from peternied
@RyanL1997 RyanL1997 Awaiting requested review from RyanL1997 RyanL1997 is a code owner
@reta reta Awaiting requested review from reta reta is a code owner
@willyborankin willyborankin Awaiting requested review from willyborankin willyborankin is a code owner

Uh oh!

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

Assignees

No one assigned

Labels

skip-changelog

Projects

None yet

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.

3 participants

@cwperks @shikharj05 @nibix
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.