Skip to content
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

exclude commons-io and reflections class from ml-commons client jar #796

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

ylwu-amzn
Copy link
Collaborator

@ylwu-amzn ylwu-amzn commented Mar 10, 2023

Description

exclude commons-io and reflections class from ml-commons client jar

Now we are using GHA to publish ml-commons jar.

But the jar built by running ./gradlew publishShadowPublicationToSnapshotsRepository contains other classes from commons-io and reflection

Before this PR, we can see such classes in client/build/libs/opensearch-ml-client-2.7.0.0-SNAPSHOT.jar, that will cause Jarhell issue for SQL plugin as it depends on both commons-utils and ml-commons client .

org/opensearch/commons/alerting/model/Alert.class
...
javassist/util/proxy/Proxy.class

After this PR, these classes will be removed from ml-commons client jar.

Issues Resolved

#778

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@ylwu-amzn ylwu-amzn requested a review from a team March 10, 2023 21:50
@codecov-commenter
Copy link

codecov-commenter commented Mar 10, 2023

Codecov Report

Merging #796 (91d6735) into 2.x (bff96ec) will decrease coverage by 0.04%.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@             Coverage Diff              @@
##                2.x     #796      +/-   ##
============================================
- Coverage     85.18%   85.15%   -0.04%     
+ Complexity     1606     1604       -2     
============================================
  Files           135      135              
  Lines          5954     5954              
  Branches        562      562              
============================================
- Hits           5072     5070       -2     
- Misses          646      648       +2     
  Partials        236      236              
Flag Coverage Δ
ml-commons 85.15% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ylwu-amzn ylwu-amzn merged commit 021c415 into opensearch-project:2.x Mar 10, 2023
ylwu-amzn added a commit to ylwu-amzn/ml-commons that referenced this pull request Mar 11, 2023
ylwu-amzn added a commit that referenced this pull request Mar 11, 2023
heemin32 added a commit to heemin32/ml-commons that referenced this pull request Mar 14, 2023
After PR opensearch-project#796, neural search integration test failed because of lack of refections dependency. Adding back the dependency and also updated dependency version to match it with SQL plugin to avoid Jarhell.

Signed-off-by: Heemin Kim <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants