-
Notifications
You must be signed in to change notification settings - Fork 112
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] Project integration tests require same version of plugins to be checked in #123
Comments
In the 1.3 branch we currently are still using the job scheduler resource in testing https://github.com/opensearch-project/index-management/tree/1.3/src/test/resources/job-scheduler |
AD using RCF jar and Protostuff jar https://github.com/opensearch-project/anomaly-detection/tree/1.3/lib, @dblock , we are going to revert the change to remove protostuff. For RCF jar, we don't have latest version on Maven yet. @wnbts, do you know who is working on publishing RCF 2.x to Maven? And we have job scheduler zip https://github.com/opensearch-project/anomaly-detection/tree/1.3/src/test/resources/job-scheduler, and BWC test https://github.com/opensearch-project/anomaly-detection/tree/1.3/src/test/resources/org/opensearch/ad/bwc/job-scheduler |
Same RCF issue for |
@ylwu-amzn Same problem we're checking in the JARs into AD, opensearch-project/anomaly-detection#433 |
Hey @downsrob, @ylwu-amzn, @dblock we have now, a mechanism to publish the zips to maven repo using opensearch.pluginzip, we can delete the zips from checking in to source repo (unless i'm missing something) and can be dowloaded during runtime using the right maven coordinates once they are published. |
Thanks @prudhvigodithi , I think @amitgalitz has removed local zip file from AD, check opensearch-project/anomaly-detection#487 and opensearch-project/anomaly-detection#505. We are using latest build link and cloudfront download link, check https://github.com/opensearch-project/anomaly-detection/blob/main/build.gradle#L37
@prudhvigodithi should we move to maven? Any benefit? |
Hey @ylwu-amzn yes pulling zips from maven is the right way to go, as you dont need to manage any custom code moving forward, as using this opensearch.pluginzip the zips will be published to maven repo and can be fetched with right artifcatID, groupID and version. |
Index Management has replaced checked-in ZIPs with dynamic dependencies as per #305. Now, this issue is not specifically related to that behavior, but should be used to track the progress of getting integration tests to run against dependencies of different versions |
Hey @downsrob, looks to me like its using the latest URL and some parse logic, using opensearch.pluginzip, you dont need to have all this custom logic from the PR, I would suggest to go with |
Hey @downsrob and @ylwu-amzn, is it worth to now explore the pulling the zips from maven and removing the checking in files from src/test/resources/? |
@prudhvigodithi We have already converted to pulling the zips from maven and do not have any checked in zips in src/test/resources. That was tracked in this issue #348 I believe. |
Got it thanks for the update @downsrob. |
Hey Starting with release 2.1.0, we now have plugin zips in maven repo |
@prudhvigodithi we do not have any checked in zips in the 2.x branches |
Describe the bug
Currently the following files are checked in.
These are moving targets. Furthermore they are of the same release, while one would want to run integration tests against the released versions of any dependency. Which causes a catch-22 problem.
Expected behavior
These files should be deleted. One solution would be to download them during build. Another would be to build them (#119 tried to do that).
Additional context
Consider the developer experience that wants to check out this repo and just run
./gradlew integTest
successfully.The text was updated successfully, but these errors were encountered: