-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[Java Agent] Allow JRT protocol URLs in protection domain extraction #19683
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
[Java Agent] Allow JRT protocol URLs in protection domain extraction #19683
Conversation
|
❌ Gradle check result for 5b1a49f: null 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? |
|
Re-ran the CI. Jenkins didn't pick it up on the first try. |
|
@getsaurabh02 @peterzhuamazon Can this be included in the 3.3.1 patch release? @owaiskazi19 @rithin-pullela-aws to provide impact on ml-commons. In some distributions, agentic search is hitting issues with the java agent due to this. See opensearch-project/ml-commons#4209 |
.../agent/src/test/java/org/opensearch/javaagent/StackCallerProtectionDomainExtractorTests.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 5b1a49f: null 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? |
|
This PR is to solve this issue opensearch-project/ml-commons#4209 right ? Not opensearch-project/ml-commons#4194 |
Yes, updated the description |
|
❌ Gradle check result for 52a614f: 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? |
|
❌ Gradle check result for 52a614f: 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? |
|
Need to fix the compiler warnings. These are due to the test added in the PR. You can fix by adding i.e. |
|
@cwperks gradle check is failing with. Will rebase |
|
❌ Gradle check result for a5d9659: null 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? |
|
❌ Gradle check result for a5d9659: 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? |
|
❌ Gradle check result for a5d9659: 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: rithin-pullela-aws <[email protected]>
Signed-off-by: rithin-pullela-aws <[email protected]>
Signed-off-by: rithin-pullela-aws <[email protected]>
Signed-off-by: Owais Kazi <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19683 +/- ##
============================================
+ Coverage 73.07% 73.09% +0.02%
- Complexity 70741 70765 +24
============================================
Files 5732 5732
Lines 324140 324141 +1
Branches 46922 46922
============================================
+ Hits 236853 236945 +92
+ Misses 68117 68038 -79
+ Partials 19170 19158 -12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…19683) * [Java Agent] Allow JRT protocol URLs in protection domain extraction Signed-off-by: rithin-pullela-aws <[email protected]> * Add changelog Signed-off-by: rithin-pullela-aws <[email protected]> * Use static imports Signed-off-by: rithin-pullela-aws <[email protected]> * Add spotbugs dependency Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: rithin-pullela-aws <[email protected]> Signed-off-by: Owais Kazi <[email protected]> Co-authored-by: Owais Kazi <[email protected]> (cherry picked from commit 3443d27) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
| testingConventions.enabled = false | ||
|
|
||
| dependencies { | ||
| compileOnly "com.github.spotbugs:spotbugs-annotations:4.9.7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #19683 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the warnings reported here
…19683) (#19709) * [Java Agent] Allow JRT protocol URLs in protection domain extraction * Add changelog * Use static imports * Add spotbugs dependency --------- (cherry picked from commit 3443d27) Signed-off-by: rithin-pullela-aws <[email protected]> Signed-off-by: Owais Kazi <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Owais Kazi <[email protected]>
…pensearch-project#19683) * [Java Agent] Allow JRT protocol URLs in protection domain extraction Signed-off-by: rithin-pullela-aws <[email protected]> * Add changelog Signed-off-by: rithin-pullela-aws <[email protected]> * Use static imports Signed-off-by: rithin-pullela-aws <[email protected]> * Add spotbugs dependency Signed-off-by: Owais Kazi <[email protected]> --------- Signed-off-by: rithin-pullela-aws <[email protected]> Signed-off-by: Owais Kazi <[email protected]> Co-authored-by: Owais Kazi <[email protected]>
Description
jrt:protocol URLs inStackCallerProtectionDomainChainExtractortestFiltersJrtProtocolWithoutMockito()to verify the filtering behaviorRelated Issues
Resolves opensearch-project/ml-commons#4209
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.