-
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
Merged
+442
−0
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
219d5fe
Adding backwards compatibility test for ml-commons plugin
b4sjoo 15cfb65
Adjust gradle build file to create bwc tasks
b4sjoo cf310b5
Add bwc test to CI workflow and developer guide
b4sjoo 943c833
Add gradle test filter so BWC test can only run within the BWC gradle…
b4sjoo 7c35660
bug fix for bwc test
b4sjoo 9d68f73
Fix running on ml node issue
b4sjoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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