-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Build Tools] Custom Gradle plugin to leverage java agent #17900
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
Conversation
Adding @reta @cwperks @kumargu @andrross @getsaurabh02 to please take a look and provide some feedback. |
6c50ebc
to
c5a2ed7
Compare
❌ Gradle check result for c5a2ed7: 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? |
Signed-off-by: Prudhvi Godithi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17900 +/- ##
============================================
+ Coverage 72.43% 72.49% +0.05%
- Complexity 66789 66835 +46
============================================
Files 5449 5452 +3
Lines 309085 309170 +85
Branches 44979 44989 +10
============================================
+ Hits 223899 224121 +222
+ Misses 66906 66702 -204
- Partials 18280 18347 +67 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
can they coexist and we revert the above tomorrow? Once we know the change in core works for all plugins? |
There are more, but for now we can just merge all plugin individual changes and at least bring RC1 up. Thanks. |
From the PR's a task So in this custom plugin I have used |
Signed-off-by: Prudhvi Godithi <[email protected]>
buildSrc/src/main/java/org/opensearch/gradle/agent/JavaAgent.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Prudhvi Godithi <[email protected]>
Just testing one more thing looks like https://github.com/opensearch-project/OpenSearch/blob/main/libs/agent-sm/agent/build.gradle#L14 we already have |
I can see the tests pass on my local and on a sample test PR opensearch-project/job-scheduler#761. |
❕ Gradle check result for 0c652ee: 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. |
Signed-off-by: Prudhvi Godithi <[email protected]> Signed-off-by: Sriram Ganesh <[email protected]>
Signed-off-by: Prudhvi Godithi <[email protected]> Signed-off-by: Harsh Kothari <[email protected]>
Signed-off-by: Prudhvi Godithi <[email protected]> Signed-off-by: Harsh Kothari <[email protected]>
Description
To Support phasing off SecurityManager usage in favor of Java Agent a custom Gradle plugin from core should help leverage the java agent.
Coming from opensearch-project/custom-codecs#235 (comment) created a custom java agent plugin that can be applied as required. The plugins can use as
apply plugin: 'opensearch.java-agent'
. With this we can remove the duplicate code across plugins.I have tested by adding
apply plugin: 'opensearch.java-agent'
to job-scheduler and now able to run the tests depend on java agent.Related Issues
Part of #16634 and #16753
Check List
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.