This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/curator.git


The following commit(s) were added to refs/heads/master by this push:
     new 5af54047 CURATOR-706. Parallelize zk compatibility tests and unit 
tests (#502)
5af54047 is described below

commit 5af54047d3a1d85a8c08fae097b7bc1329f2a55c
Author: Kezhu Wang <[email protected]>
AuthorDate: Mon May 27 14:19:02 2024 +0800

    CURATOR-706. Parallelize zk compatibility tests and unit tests (#502)
    
    This reduces our ci time from 140 mins to 40 mins.
---
 .github/workflows/ci.yml | 37 ++++++++++++++++++++++++++++++++++++-
 1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index db9cba2e..e1531236 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
@@ -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

Reply via email to