-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add bwc tests against the distribution #1366
Conversation
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Codecov Report
@@ Coverage Diff @@
## 2.x #1366 +/- ##
=========================================
Coverage 41.89% 41.89%
Complexity 315 315
=========================================
Files 302 302
Lines 17849 17849
Branches 4332 4332
=========================================
Hits 7477 7477
Misses 10199 10199
Partials 173 173
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. |
node.setting("plugins.security.system_indices.enabled", "true") | ||
} | ||
} else { | ||
versions = ["1.2.0",opensearch_version] |
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.
q. how come this works but for bundled test the -SNAPSHOT
needs to be removed?
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.
@joshuali925 For this one, we are getting the min artifacts from URL: https://artifacts.opensearch.org/releases/core/opensearch/1.2.0/opensearch-min-1.2.0-linux-x64.tar.gz
for released version and https://artifacts.opensearch.org/snapshots/core/opensearch/2.5.0-SNAPSHOT/opensearch-min-2.5.0-SNAPSHOT-linux-x64-latest.tar.gz
for unreleased snapshot version;
while we are getting the bundle from CI bucket with URL as https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.5.0/latest/linux/x64/tar/dist/opensearch/opensearch-2.5.0-linux-x64.tar.gz
which doesn't contain -SNAPSHOT
in the path.
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
@joshuali925 Please help re-review this PR as I just rebase the branch to resolve conflicts. Thanks! |
Signed-off-by: Zelin Hao <zelinhao@amazon.com> (cherry picked from commit 427a3e3)
Signed-off-by: Zelin Hao zelinhao@amazon.com
Description
Add option to run BWC tests in distribution level, which is running tests in the test cluster with latest distribution bundle installed and all plugins (included in the latest manifest) present.
The command to run BWC tests in distribution level would be
./gradlew bwcTestSuite -Dtests.security.manager=false -PcustomDistributionDownloadType=bundle
If property
customDistributionDownloadType
is not set nor set tobundle
, the BWC tests would be default to run in plugins level as previously configured.Issues Resolved
Part of opensearch-project/opensearch-build#2870
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.