Skip to content
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

Merged
merged 6 commits into from
Jan 11, 2023

Conversation

b4sjoo
Copy link
Collaborator

@b4sjoo b4sjoo commented Jan 10, 2023

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

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@b4sjoo b4sjoo requested a review from a team January 10, 2023 01:01
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.31%. Comparing base (04d6864) to head (9d68f73).
Report is 609 commits behind head on 2.x.

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     
Flag Coverage Δ
ml-commons 83.31% <ø> (-0.87%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@b4sjoo b4sjoo requested a review from ylwu-amzn January 10, 2023 01:55
@@ -5,4 +5,5 @@ client/build/
common/build/
ml-algorithms/build/
plugin/build/
plugin/src/test/resources/bwc/*
Copy link
Collaborator

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.

Copy link
Collaborator Author

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

@@ -369,3 +369,166 @@ tasks.withType(licenseHeaders.class) {
checkstyle {
toolVersion = '8.29'
}

String bwcVersion = "1.3.0.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ylwu-amzn
Copy link
Collaborator

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.

… 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]>
@b4sjoo b4sjoo requested a review from ylwu-amzn January 11, 2023 00:46
@b4sjoo b4sjoo merged commit e37ab93 into opensearch-project:2.x Jan 11, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 11, 2023
* 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)
@b4sjoo b4sjoo deleted the 2.x_bwc branch January 11, 2023 00:52
b4sjoo added a commit to b4sjoo/ml-commons that referenced this pull request Jan 11, 2023
…-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]>
b4sjoo added a commit that referenced this pull request Jan 11, 2023
* 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]>
ylwu-amzn pushed a commit to ylwu-amzn/ml-commons that referenced this pull request Feb 17, 2023
…-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]>
ylwu-amzn pushed a commit to ylwu-amzn/ml-commons that referenced this pull request Mar 2, 2023
…-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]>
ylwu-amzn pushed a commit to ylwu-amzn/ml-commons that referenced this pull request Mar 2, 2023
…-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]>
kaituo added a commit to kaituo/anomaly-detection-1 that referenced this pull request Sep 8, 2023
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]>
kaituo added a commit to kaituo/anomaly-detection-1 that referenced this pull request Sep 8, 2023
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]>
jackiehanyang pushed a commit to opensearch-project/anomaly-detection that referenced this pull request Sep 8, 2023
…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]>
opensearch-trigger-bot bot pushed a commit to opensearch-project/anomaly-detection that referenced this pull request Sep 8, 2023
…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)
jackiehanyang pushed a commit to opensearch-project/anomaly-detection that referenced this pull request Sep 8, 2023
…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]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Dec 26, 2024
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants