[Java Agent] Allow JRT protocol URLs in protection domain extraction#19683
[Java Agent] Allow JRT protocol URLs in protection domain extraction#19683owaiskazi19 merged 4 commits intoopensearch-project:mainfrom
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 <rithinp@amazon.com>
Signed-off-by: rithin-pullela-aws <rithinp@amazon.com>
Signed-off-by: rithin-pullela-aws <rithinp@amazon.com>
Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
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 <rithinp@amazon.com> * Add changelog Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> * Use static imports Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> * Add spotbugs dependency Signed-off-by: Owais Kazi <owaiskazi19@gmail.com> --------- Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> Signed-off-by: Owais Kazi <owaiskazi19@gmail.com> Co-authored-by: Owais Kazi <owaiskazi19@gmail.com> (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" |
…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 <rithinp@amazon.com> Signed-off-by: Owais Kazi <owaiskazi19@gmail.com> 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 <owaiskazi19@gmail.com>
…pensearch-project#19683) * [Java Agent] Allow JRT protocol URLs in protection domain extraction Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> * Add changelog Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> * Use static imports Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> * Add spotbugs dependency Signed-off-by: Owais Kazi <owaiskazi19@gmail.com> --------- Signed-off-by: rithin-pullela-aws <rithinp@amazon.com> Signed-off-by: Owais Kazi <owaiskazi19@gmail.com> Co-authored-by: Owais Kazi <owaiskazi19@gmail.com>
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.