dependabot: bump VachaShah/backport from 1.1.4 to 2.2.0 #1389
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: Java CI | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build_pa_pkg: | |
strategy: | |
matrix: | |
java: | |
- 11 | |
- 17 | |
fail-fast: false | |
runs-on: [ubuntu-latest] | |
name: Building PA package | |
steps: | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{matrix.java}} | |
# Performance Analyzer in ./tmp/performance-analyzer | |
- name: Checkout Performance Analyzer package | |
uses: actions/checkout@v2 | |
with: | |
path: ./tmp/performance-analyzer | |
# Explicitly set the docker-compose program path so that our build scripts in RCA can run the program | |
# This is necessary because of the Github Actions environment and the workingDir of the Gradle environment | |
- name: Set docker-compose path | |
run: echo "DOCKER_COMPOSE_LOCATION=$(which docker-compose)" >> $GITHUB_ENV | |
# Set the vm.max_map_count system property to the minimum required to run OpenSearch | |
- name: Set vm.max_map_count | |
run: sudo sysctl -w vm.max_map_count=262144 | |
- name: Build Performance Analyzer and run Unit Tests | |
working-directory: ./tmp/performance-analyzer | |
run: | | |
./gradlew build -Dperformance-analyzer-rca.build=true \ | |
-Dperformance-analyzer-rca.repo="https://github.com/opensearch-project/performance-analyzer-rca.git" \ | |
-Dperformance-analyzer-rca.branch=main | |
- name: Assemble PA jar for BWC tests | |
working-directory: ./tmp/performance-analyzer | |
run: | | |
./gradlew assemble | |
version=`./gradlew properties -q | grep "opensearch_version:" | awk '{print $2}'` | |
IFS='-' read -r -a version_array <<< "$version" | |
plugin_version="${version_array[0]}.0"; for entry in ${version_array[@]:1}; do plugin_version+="-$entry"; done | |
echo $plugin_version | |
mkdir -p ./src/test/resources/org/opensearch/performanceanalyzer/bwc/$plugin_version | |
cp ./build/distributions/*.zip ./src/test/resources/org/opensearch/performanceanalyzer/bwc/$plugin_version | |
- name: Generate Jacoco coverage report | |
working-directory: ./tmp/performance-analyzer | |
run: ./gradlew jacocoTestReport | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: linux-JDK${{ matrix.java }}-reports | |
path: | | |
./tmp/performance-analyzer/build/reports/ | |
- name: Run Integration Tests | |
working-directory: ./tmp/performance-analyzer | |
run: ./gradlew integTest -Dtests.enableIT -Dtests.useDockerCluster | |
- name: Run PerformanceAnalzyer Backwards Compatibility Tests | |
working-directory: ./tmp/performance-analyzer | |
run: ./gradlew bwcTestSuite -Dtests.security.manager=false |