Skip to content

Remove dependency on :test:framework in :libs:opensearch-agent-sm:agent-policy #17821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

cwperks
Copy link
Member

@cwperks cwperks commented Apr 7, 2025

Description

This PR replaces the :test:framework dependency with JUnit directly in order to avoid circular dependencies on the :libs:agent-sm:agent-policy module

Related Issues

Resolves https://github.com/opensearch-project/OpenSearch/pull/17753/files#r2031916820

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.

cwperks added 2 commits April 7, 2025 16:37
Signed-off-by: Craig Perkins <[email protected]>
@cwperks
Copy link
Member Author

cwperks commented Apr 7, 2025

I had to disable some tasks to make the precommit work for this module. ./gradlew :libs:opensearch-agent-sm:agent-policy:precommit fails w/o disabling these tasks.

Copy link
Contributor

github-actions bot commented Apr 7, 2025

❌ Gradle check result for 1f532cd: 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?

Copy link
Contributor

github-actions bot commented Apr 7, 2025

❌ Gradle check result for 1f532cd: 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?

Copy link
Contributor

github-actions bot commented Apr 8, 2025

❌ Gradle check result for 1f532cd: 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?

Copy link
Contributor

github-actions bot commented Apr 8, 2025

❕ Gradle check result for 1f532cd: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.35%. Comparing base (cd266f3) to head (1f532cd).
Report is 8 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17821      +/-   ##
============================================
- Coverage     72.55%   72.35%   -0.20%     
+ Complexity    66502    66468      -34     
============================================
  Files          5399     5408       +9     
  Lines        307755   308080     +325     
  Branches      44656    44720      +64     
============================================
- Hits         223295   222920     -375     
- Misses        66266    66958     +692     
- Partials      18194    18202       +8     

☔ 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.

@reta reta merged commit 0819161 into opensearch-project:main Apr 8, 2025
35 of 36 checks passed
guojialiang92 pushed a commit to guojialiang92/OpenSearch that referenced this pull request Apr 8, 2025
…nt-policy (opensearch-project#17821)

* Remove dependency on :test:framework in :libs:opensearch-agent-sm:agent-policy

Signed-off-by: Craig Perkins <[email protected]>

* Use JUnit

Signed-off-by: Craig Perkins <[email protected]>

* Disable more tasks

Signed-off-by: Craig Perkins <[email protected]>

---------

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants