-
Notifications
You must be signed in to change notification settings - Fork 139
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
adding reflections as a dependency #1559
Conversation
Signed-off-by: Dhrubo Saha <[email protected]>
Could you please add integration tests? |
Codecov Report
📣 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 @@
## main #1559 +/- ##
=========================================
Coverage 97.18% 97.18%
Complexity 4106 4106
=========================================
Files 371 371
Lines 10462 10462
Branches 706 706
=========================================
Hits 10168 10168
Misses 287 287
Partials 7 7
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I'm brand new in this plugin. Can you please show me how to write a integration test for this? |
https://github.com/opensearch-project/sql/blob/main/integ-test/src/test/java/org/opensearch/sql/ppl/WhereCommandIT.java Similarly you could create a separate file for MLCommands or you can subdivide into more files based on different types of ML commands. Most of the useful functions are already present in parent class. Sample command to run integTests. |
This is a required runtime dependency for ML client, right? If so, could you explain why this is not configured from ML side? |
hi, @dai-chen The background is @Yury-Fridlyand found we have a fat ml-commons client jar opensearch-project/ml-commons#778, later, we removed the common-utils and refection to avoid generating fat jar opensearch-project/ml-commons#796. And neural search did code change by adding the runtime dependency https://github.com/opensearch-project/neural-search/blob/main/build.gradle#L151 |
@ylwu-amzn Thanks for the context! I thought this can be a runtime dependency in ml-commons and SQL or other plugin introduces the dependency transitively. Will take a look at the link you shared to confirm. |
Yes, actually team is working on that part now. We have not found a good way to add this to ml-commons (opensearch-project/ml-commons#808, we tried this in PR opensearch-project/ml-commons#811, not working actually), then other plugins like SQL can download the transitive dependencies automatically. How about let's add this runtime dependency for now to unblock 2.7 release. We can enhance this part later |
@ylwu-amzn I see. I thought ml-commons is already in Maven repo with its own dependencies defined. We can improve this later in case there're more dependencies required. Thanks! Btw, could you or @dhrubo-os think about how to add integration test in SQL or elsewhere? I think it's missing in SQL. Not sure if you have it from your side. |
@dhrubo-os @ylwu-amzn Should I backport this to 2.7 branch? Is code freeze now? |
Just realized BWC failed. I reran it. Please have a look if it fails still. |
and for build (ubuntu-latest, 11)
Should we restart the test again? Is there anything I can do? I talked with @zelinh , we need to do that soon, we are getting close to generating the RC. |
Rerunning the failed workflow |
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.
Please add the issue to follow up after 2.7 release.
BWC still fails. |
Signed-off-by: Dhrubo Saha <[email protected]> (cherry picked from commit 4bbd12a)
Signed-off-by: Dhrubo Saha <[email protected]> (cherry picked from commit 4bbd12a) Co-authored-by: Dhrubo Saha <[email protected]>
Signed-off-by: Dhrubo Saha <[email protected]> Signed-off-by: Mitchell Gale <[email protected]>
Description
adding reflections as a dependency.
This command was breaking and the debug log is:
Issues Resolved
[List any issues this PR will resolve]
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.