-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] JarHell enforcement during integration tests is blocking test development for the security plugin #3905
Comments
I have created a pull request, apache/kafka#12407 with the source of the issue, but I am uncertain of the release timeline or how quickly we can use the updated in the middle of the security dependency tree. This leaves 3 potential options to work around in order of effort:
Let me know if there are other options to help keep the team unblocked. Without any other input I think we will proceed with #1 |
Extensions team vote for #3 which is the easiest path forward. Let us know if any help is needed from core team. Thanks |
Currently, the security plugin is following option |
We've been using option #1 to locally disable jarhell in the security project. As that is the case no change is needed from the OpenSearch codebase - closing out this issue. |
Describe the bug
Kafka's clients production
org.apache.kafka:kafka-clients:3.0.1
and testorg.apache.kafka:kafka-clients:3.0.1:test
jars contain overlapping classes inorg.apache.kafka.common.message
. When attempting to build or run testsJarHell
is detecting this an erroring out. This is preventing the Security team from authoring test cases.To Reproduce
Steps to reproduce the behavior:
git clone git@github.com:peternied/security.git
git checkout force-jar-hell-issue
./gradlew jarHell
Alternative repro available in opensearch-project/security#1938 that exercises the test runtime
Expected behavior
There should be a way to disable this error from blocking build or test runtime.
Additional context
Note; test are failing due to this check being run during bootstrap
OpenSearch/test/framework/src/main/java/org/opensearch/bootstrap/BootstrapForTesting.java
Lines 113 to 119 in d4465ce
The text was updated successfully, but these errors were encountered: