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

CURATOR-706: Parallelize zk compatibility tests and unit tests #502

Merged
merged 1 commit into from
May 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,40 @@ jobs:
run: ./mvnw clean install -DskipTests

- name: Test with ${{ matrix.java }}
run: ./mvnw verify
run: ./mvnw verify -pl '!curator-test-zk38,!curator-test-zk37,!curator-test-zk36,!curator-test-zk35'

zk-compatibility-test:
name: ${{ matrix.zookeeper }}
runs-on: ubuntu-latest
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
zookeeper: [curator-test-zk38, curator-test-zk37, curator-test-zk36, curator-test-zk35]
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v3

- name: Cache Local Maven Repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'zulu'

- name: Build with JDK 8
run: ./mvnw clean install -DskipTests

- name: Test with JDK 8
run: ./mvnw verify -pl ${{ matrix.zookeeper }}

required:
name: Required
Expand All @@ -89,12 +122,14 @@ jobs:
needs:
- check
- unittest
- zk-compatibility-test
steps:
- name: Guardian
run: |
if [[ ! ( \
"${{ needs.check.result }}" == "success" \
&& "${{ needs.unittest.result }}" == "success" \
&& "${{ needs.zk-compatibility-test.result }}" == "success" \
) ]]; then
echo "Required jobs haven't been completed successfully."
exit -1
Expand Down
Loading