dependabot: bump org.junit.jupiter:junit-jupiter-api from 5.11.2 to 5.11.4 #1093
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
name: Test Anomaly detection BWC | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
Get-CI-Image-Tag: | |
uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main | |
with: | |
product: opensearch | |
Build-ad-linux: | |
needs: Get-CI-Image-Tag | |
strategy: | |
matrix: | |
java: [21] | |
fail-fast: false | |
name: Test Anomaly detection BWC | |
runs-on: ubuntu-latest | |
container: | |
# using the same image which is used by opensearch-build team to build the OpenSearch Distribution | |
# this image tag is subject to change as more dependencies and updates will arrive over time | |
image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} | |
# need to switch to root so that github actions can install runner binary on container without permission issues. | |
options: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }} | |
steps: | |
- name: Run start commands | |
run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }} | |
- name: Setup Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
# anomaly-detection | |
- name: Checkout AD | |
uses: actions/checkout@v4 | |
- name: Assemble anomaly-detection | |
run: | | |
plugin_version=`./gradlew properties -q | grep "opensearch_build:" | awk '{print $2}'` | |
chown -R 1000:1000 `pwd` | |
echo plugin_version $plugin_version | |
su `id -un 1000` -c "./gradlew assemble" | |
echo "Creating ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version ..." | |
su `id -un 1000` -c "mkdir -p ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version" | |
echo "Copying ./build/distributions/*.zip to ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version ..." | |
ls ./build/distributions/ | |
su `id -un 1000` -c "cp ./build/distributions/*.zip ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version" | |
echo "Copied ./build/distributions/*.zip to ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version ..." | |
ls ./src/test/resources/org/opensearch/ad/bwc/anomaly-detection/$plugin_version | |
- name: Run AD Backwards Compatibility Tests | |
run: | | |
echo "Running backwards compatibility tests ..." | |
chown -R 1000:1000 `pwd` | |
su `id -un 1000` -c "./gradlew bwcTestSuite -Dtests.security.manager=false" |