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

kezhuw pushed a commit to branch branch-3.9
in repository https://gitbox.apache.org/repos/asf/zookeeper.git


The following commit(s) were added to refs/heads/branch-3.9 by this push:
     new a846a5178 ZOOKEEPER-4944: Cache zookeeper dists in compatibility tests
a846a5178 is described below

commit a846a51788db634a0e260c6822514139e9a1c36d
Author: Kezhu Wang <[email protected]>
AuthorDate: Thu Jun 26 07:21:16 2025 +0800

    ZOOKEEPER-4944: Cache zookeeper dists in compatibility tests
    
    Reviewers: cnauroth
    Author: kezhuw
    Closes #2273 from kezhuw/ZOOKEEPER-4944-cache-zookeeper-dists
    
    (cherry picked from commit 02e93c2554317683bb2bdd6fc242f881937d90d6)
    Signed-off-by: Kezhu Wang <[email protected]>
---
 .github/workflows/e2e.yaml | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml
index b47c300d4..ec3aed65f 100644
--- a/.github/workflows/e2e.yaml
+++ b/.github/workflows/e2e.yaml
@@ -48,11 +48,20 @@ jobs:
         run: mvn -B -V -e -ntp "-Dstyle.color=always" package -DskipTests
         env:
           MAVEN_OPTS: -Djansi.force=true
-      - name: Download ZooKeeper ${{ matrix.zk }}
+      - name: Cache ZooKeeper ${{ matrix.zk }}
+        id: dist-cache
         if: matrix.zk != 'nightly'
+        uses: actions/cache@v4
+        with:
+          key: apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
+          path: apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
+      - name: Download ZooKeeper ${{ matrix.zk }}
+        if: matrix.zk != 'nightly' && steps.dist-cache.outputs.cache-hit != 
'true'
         run: |
           curl -O https://archive.apache.org/dist/zookeeper/zookeeper-${{ 
matrix.zk }}/apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
-          tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
+      - name: Extract ZooKeeper ${{ matrix.zk }}
+        if: matrix.zk != 'nightly'
+        run: tar -xzvf apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
       - name: Test ZooKeeper nightly server and ${{ matrix.zk }} client
         if: matrix.zk != 'nightly'
         run: tools/ci/test-connectivity.py --server . --client 
apache-zookeeper-${{ matrix.zk }}-bin

Reply via email to