-
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
Enable BWC tests for plugins #1002
Comments
@saratvemulapalli how does one reproduce this easily? |
Thats a good point. The other issue on opensearch-plugins should have good information to repro. But let me trim it down and add simple instructions here. |
@AmiStrn Sure I see there are 2 parts to the question. 2. Test plugin interfaces in OpenSearch I hope this helps, let me know what you think. |
@saratvemulapalli you are faaast! I removed my comment after two minutes bc I realized I had made a mistake assuming that there would be tests in opensearch repo that would literally have classes imported from AD plugin (for example) 😵 |
Haha any discussion is always great :) |
Is your feature request related to a problem? Please describe.
As OpenSearch has backward compatibility tests, the framework could be extended to run backwards compatibility tests for plugins.
Ref: https://github.com/opensearch-project/OpenSearch/tree/main/qa
The difference between OpenSearch and plugins is that plugins are built for a specific version of OpenSearch/Elasticsearch.
The same bwc test framework could be used but the framework by default installs the old version of the plugin even though the node is being upgraded to the new version of OpenSearch.
This causes failures while installing old plugin with new version of OpenSearch, bails out of the test.
Failure:
You can refer to the issue for more details on how to reproduce the problem: opensearch-project/opensearch-plugins#53
How to reproduce the problem
build.gradle
file../gradlew mixedClusterTask -DmixedCluster=123 -Dtests.security.manager=false
Describe the solution you'd like
The solution should be able to cleanly upgrade the node with the new plugin version and have the plugin gradle framework define which version to be installed.
Code Pointer:
OpenSearch/buildSrc/src/main/java/org/opensearch/gradle/testclusters/OpenSearchCluster.java
Line 395 in 0ba0e7c
The text was updated successfully, but these errors were encountered: