Skip to content

Conversation

@cwperks
Copy link
Member

@cwperks cwperks commented Aug 8, 2025

Description

Ensure that plugins that utilize dumpCoverage can write to jacoco.dirwhen tests.security.manager is enabled.

This pattern is used to adequately get code coverage for integ tests that utilize testClusters by probing the in memory nodes to see what lines are hit.

Every instance I have found of using testclusters runs with tests.security.manager set to false and I'd like to encourage all plugins to now test with the javaagent by default so they need write permission to the jacoco dir.

Tested using the job-scheduler. Companion JS PR: opensearch-project/job-scheduler#809

Note: the checks on the companion PR will fail until this one is merged.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

… when tests.security.manager is enabled

Signed-off-by: Craig Perkins <[email protected]>
@cwperks cwperks requested a review from a team as a code owner August 8, 2025 15:44
@cwperks cwperks changed the title Ensure that plugins that utilize dumpCoverage can write to jacoco.dirwhen tests.security.manager is enabled Ensure that plugins that utilize dumpCoverage can write to jacoco.dir when tests.security.manager is enabled Aug 8, 2025
Signed-off-by: Craig Perkins <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

❌ Gradle check result for dc88680: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2025

❌ Gradle check result for dc88680: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Contributor

✅ Gradle check result for 4341115: SUCCESS

@codecov
Copy link

codecov bot commented Aug 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.92%. Comparing base (740b34a) to head (11427ef).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #18988      +/-   ##
============================================
- Coverage     72.93%   72.92%   -0.02%     
+ Complexity    69469    69440      -29     
============================================
  Files          5647     5647              
  Lines        319013   319061      +48     
  Branches      46151    46151              
============================================
- Hits         232663   232662       -1     
- Misses        67561    67597      +36     
- Partials      18789    18802      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

✅ Gradle check result for 11427ef: SUCCESS

@andrross andrross merged commit d9f4b11 into opensearch-project:main Aug 12, 2025
31 checks passed
RajatGupta02 pushed a commit to RajatGupta02/OpenSearch that referenced this pull request Aug 18, 2025
… when tests.security.manager is enabled (opensearch-project#18988)

Signed-off-by: Craig Perkins <[email protected]>
atris pushed a commit to atris/OpenSearch that referenced this pull request Aug 28, 2025
… when tests.security.manager is enabled (opensearch-project#18988)

Signed-off-by: Craig Perkins <[email protected]>
kh3ra pushed a commit to kh3ra/OpenSearch that referenced this pull request Sep 5, 2025
… when tests.security.manager is enabled (opensearch-project#18988)

Signed-off-by: Craig Perkins <[email protected]>
vinaykpud pushed a commit to vinaykpud/OpenSearch that referenced this pull request Sep 26, 2025
… when tests.security.manager is enabled (opensearch-project#18988)

Signed-off-by: Craig Perkins <[email protected]>
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