forked from opensearch-project/ml-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding backwards compatibility test for ml-commons plugin (opensearch…
…-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]>
- Loading branch information
Showing
5 changed files
with
442 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Test MLCommons BWC | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
Build-ad: | ||
strategy: | ||
matrix: | ||
java: [11,17] | ||
fail-fast: false | ||
|
||
name: Test MLCommons BWC | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Java ${{ matrix.java }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
|
||
# ml-commons | ||
- name: Checkout MLCommons | ||
uses: actions/checkout@v2 | ||
|
||
- name: Assemble MLCommons | ||
run: | | ||
plugin_version=`./gradlew properties -q | grep "opensearch_build:" | awk '{print $2}'` | ||
echo plugin_version $plugin_version | ||
./gradlew assemble | ||
echo "Creating ./plugin/src/test/resources/org/opensearch/ml/bwc..." | ||
mkdir -p ./plugin/src/test/resources/org/opensearch/ml/bwc | ||
- name: Run MLCommons Backwards Compatibility Tests | ||
run: | | ||
echo "Running backwards compatibility tests ..." | ||
./gradlew bwcTestSuite -Dtests.security.manager=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ client/build/ | |
common/build/ | ||
ml-algorithms/build/ | ||
plugin/build/ | ||
plugin/src/test/resources/bwc/* | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.