-
Notifications
You must be signed in to change notification settings - Fork 138
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 backwards compatibility test for ml-commons plugin #681
Conversation
Signed-off-by: Sicheng Song <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #681 +/- ##
============================================
- Coverage 84.18% 83.31% -0.87%
+ Complexity 1010 994 -16
============================================
Files 93 93
Lines 3660 3662 +2
Branches 342 343 +1
============================================
- Hits 3081 3051 -30
- Misses 435 464 +29
- Partials 144 147 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Sicheng Song <[email protected]>
@@ -5,4 +5,5 @@ client/build/ | |||
common/build/ | |||
ml-algorithms/build/ | |||
plugin/build/ | |||
plugin/src/test/resources/bwc/* |
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.
Anywhere else using this path pattern? I don't see this in other places.
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.
This path is for storing the downloaded old and updated version of ml-commons plugins used in bwc test
plugin/build.gradle
Outdated
@@ -369,3 +369,166 @@ tasks.withType(licenseHeaders.class) { | |||
checkstyle { | |||
toolVersion = '8.29' | |||
} | |||
|
|||
String bwcVersion = "1.3.0.0" |
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.
Add how to run bwc test to developer guide like AD https://github.com/opensearch-project/anomaly-detection/blob/main/DEVELOPER_GUIDE.md
I think we should add Github workflow file like AD https://github.com/opensearch-project/anomaly-detection/blob/main/.github/workflows/test_bwc.yml. So for any PR or code push, it will trigger bwc test automatically. |
Signed-off-by: Sicheng Song <[email protected]>
… task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
Signed-off-by: Sicheng Song <[email protected]>
* Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit e37ab93)
…-project#681) * Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]>
* Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]>
…-project#681) * Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]>
…-project#681) * Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]>
…-project#681) * Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Yaliang Wu <[email protected]>
Issue: - In versions between 1.1 and 2.10, the task :adBwcCluster#twoThirdsUpgradedClusterTask fails. - Symptoms mirror those in [OpenSearch Issue #5076](opensearch-project/OpenSearch#5076). - Logs show nodes from old and new versions failing to join as a cluster, resulting in a "master not found" exception. Resolution: - Upgraded the bwc version to 1.3.2, aligning with other plugins which use 1.3+ as their baseline. - [Cross-Cluster Replication PR opensearch-project#469](opensearch-project/cross-cluster-replication#469) - [Security PR #2253](opensearch-project/security#2253) - [ML Commons PR opensearch-project#681](opensearch-project/ml-commons#681) - Post-upgrade, the twoThirdsUpgradedClusterTask runs successfully, suggesting potential incompatibility between versions 1.1 and 2.10. Testing: - Executed `./gradlew bwcTestSuite -Dtests.security.manager=false` and all tests passed. Signed-off-by: Kaituo Li <[email protected]>
Issue: - In versions between 1.1 and 2.10, the task :adBwcCluster#twoThirdsUpgradedClusterTask fails. - Symptoms mirror those in [OpenSearch Issue #5076](opensearch-project/OpenSearch#5076). - Logs show nodes from old and new versions failing to join as a cluster, resulting in a "master not found" exception. Resolution: - Upgraded the bwc version to 1.3.2, aligning with other plugins which use 1.3+ as their baseline. - [Cross-Cluster Replication PR opensearch-project#469](opensearch-project/cross-cluster-replication#469) - [Security PR #2253](opensearch-project/security#2253) - [ML Commons PR opensearch-project#681](opensearch-project/ml-commons#681) - Post-upgrade, the twoThirdsUpgradedClusterTask runs successfully, suggesting potential incompatibility between versions 1.1 and 2.10. Testing: - Executed `./gradlew bwcTestSuite -Dtests.security.manager=false` and all tests passed. Signed-off-by: Kaituo Li <[email protected]>
…sue (#1029) Issue: - In versions between 1.1 and 2.10, the task :adBwcCluster#twoThirdsUpgradedClusterTask fails. - Symptoms mirror those in [OpenSearch Issue #5076](opensearch-project/OpenSearch#5076). - Logs show nodes from old and new versions failing to join as a cluster, resulting in a "master not found" exception. Resolution: - Upgraded the bwc version to 1.3.2, aligning with other plugins which use 1.3+ as their baseline. - [Cross-Cluster Replication PR #469](opensearch-project/cross-cluster-replication#469) - [Security PR #2253](opensearch-project/security#2253) - [ML Commons PR #681](opensearch-project/ml-commons#681) - Post-upgrade, the twoThirdsUpgradedClusterTask runs successfully, suggesting potential incompatibility between versions 1.1 and 2.10. Testing: - Executed `./gradlew bwcTestSuite -Dtests.security.manager=false` and all tests passed. Signed-off-by: Kaituo Li <[email protected]>
…sue (#1029) Issue: - In versions between 1.1 and 2.10, the task :adBwcCluster#twoThirdsUpgradedClusterTask fails. - Symptoms mirror those in [OpenSearch Issue #5076](opensearch-project/OpenSearch#5076). - Logs show nodes from old and new versions failing to join as a cluster, resulting in a "master not found" exception. Resolution: - Upgraded the bwc version to 1.3.2, aligning with other plugins which use 1.3+ as their baseline. - [Cross-Cluster Replication PR #469](opensearch-project/cross-cluster-replication#469) - [Security PR #2253](opensearch-project/security#2253) - [ML Commons PR #681](opensearch-project/ml-commons#681) - Post-upgrade, the twoThirdsUpgradedClusterTask runs successfully, suggesting potential incompatibility between versions 1.1 and 2.10. Testing: - Executed `./gradlew bwcTestSuite -Dtests.security.manager=false` and all tests passed. Signed-off-by: Kaituo Li <[email protected]> (cherry picked from commit 3c1a830)
…sue (#1029) (#1030) Issue: - In versions between 1.1 and 2.10, the task :adBwcCluster#twoThirdsUpgradedClusterTask fails. - Symptoms mirror those in [OpenSearch Issue #5076](opensearch-project/OpenSearch#5076). - Logs show nodes from old and new versions failing to join as a cluster, resulting in a "master not found" exception. Resolution: - Upgraded the bwc version to 1.3.2, aligning with other plugins which use 1.3+ as their baseline. - [Cross-Cluster Replication PR #469](opensearch-project/cross-cluster-replication#469) - [Security PR #2253](opensearch-project/security#2253) - [ML Commons PR #681](opensearch-project/ml-commons#681) - Post-upgrade, the twoThirdsUpgradedClusterTask runs successfully, suggesting potential incompatibility between versions 1.1 and 2.10. Testing: - Executed `./gradlew bwcTestSuite -Dtests.security.manager=false` and all tests passed. Signed-off-by: Kaituo Li <[email protected]> (cherry picked from commit 3c1a830) Co-authored-by: Kaituo Li <[email protected]>
* Adding backwards compatibility test for ml-commons plugin Signed-off-by: Sicheng Song <[email protected]> * Adjust gradle build file to create bwc tasks Signed-off-by: Sicheng Song <[email protected]> * Add bwc test to CI workflow and developer guide Signed-off-by: Sicheng Song <[email protected]> * Add gradle test filter so BWC test can only run within the BWC gradle task bwcsuite or its dependent tasks Signed-off-by: Sicheng Song <[email protected]> * bug fix for bwc test Signed-off-by: Sicheng Song <[email protected]> * Fix running on ml node issue Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]> (cherry picked from commit e37ab93)
Signed-off-by: Sicheng Song [email protected]
Description
This PR should add backwards compatibility test for our ml-commons plugin in order to test the backwards compatibility of the latest minor version of the previous major version of our plugin.
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.