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

SbloodyS pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 7cf1677133 [Improvement-18656][CI] Cache Maven Wrapper to avoid 
Central HTTP 429 (#18657)
7cf1677133 is described below

commit 7cf1677133624484d2a8e70b4cc7bcf9cdb8ef6d
Author: luxiaolong <[email protected]>
AuthorDate: Thu Sep 24 11:19:46 2026 +0800

    [Improvement-18656][CI] Cache Maven Wrapper to avoid Central HTTP 429 
(#18657)
---
 .github/workflows/api-test.yml  | 10 ++++++++++
 .github/workflows/backend.yml   |  5 +++++
 .github/workflows/codeql.yaml   |  6 ++++++
 .github/workflows/docs.yml      | 10 ++++++++++
 .github/workflows/e2e-k8s.yml   |  5 +++++
 .github/workflows/e2e.yml       | 10 ++++++++++
 .github/workflows/frontend.yml  |  6 ++++++
 .github/workflows/unit-test.yml | 10 ++++++++++
 8 files changed, 62 insertions(+)

diff --git a/.github/workflows/api-test.yml b/.github/workflows/api-test.yml
index 2de3985523..8ab3de9ec3 100644
--- a/.github/workflows/api-test.yml
+++ b/.github/workflows/api-test.yml
@@ -64,6 +64,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Sanity Check
         uses: ./.github/actions/sanity-check
         with:
@@ -130,6 +135,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Set up JDK 11
         uses: actions/setup-java@v5
         with:
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 969e3165e0..8a8002665a 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -62,6 +62,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Set up JDK ${{ matrix.java }}
         uses: actions/setup-java@v5
         with:
diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml
index 8125a0108c..2b5ad0a472 100644
--- a/.github/workflows/codeql.yaml
+++ b/.github/workflows/codeql.yaml
@@ -43,6 +43,12 @@ jobs:
       with:
         submodules: true
 
+    - name: Cache Maven Wrapper
+      uses: actions/cache@v5
+      with:
+        path: ~/.m2/wrapper
+        key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
+
     - name: Initialize CodeQL
       uses: github/codeql-action/init@v4
       with:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 028ec735da..e80da644ef 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -32,6 +32,11 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v6
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Style Check
         run: ./mvnw spotless:check
   img-check:
@@ -90,6 +95,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Generating helm-doc
         run: |
           ./mvnw validate -P helm-doc -pl :dolphinscheduler
diff --git a/.github/workflows/e2e-k8s.yml b/.github/workflows/e2e-k8s.yml
index d8ce37399f..6a7c0bb9cb 100644
--- a/.github/workflows/e2e-k8s.yml
+++ b/.github/workflows/e2e-k8s.yml
@@ -64,6 +64,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - run: df -h
       - name: Build Image
         run: |
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 9ce4eb9f3c..7f9feef50f 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -59,6 +59,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Sanity Check
         uses: ./.github/actions/sanity-check
         with:
@@ -150,6 +155,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Set up JDK 11
         uses: actions/setup-java@v5
         with:
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml
index e7e75a9209..24f9b902b0 100644
--- a/.github/workflows/frontend.yml
+++ b/.github/workflows/frontend.yml
@@ -65,6 +65,12 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - if: matrix.os == 'ubuntu-latest'
+        name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - if: matrix.os == 'ubuntu-latest'
         name: Sanity Check
         uses: ./.github/actions/sanity-check
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index 2117250026..65f14b0bc1 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -51,6 +51,11 @@ jobs:
       - uses: actions/checkout@v6
         with:
           submodules: true
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - name: Sanity Check
         uses: ./.github/actions/sanity-check
         with:
@@ -115,6 +120,11 @@ jobs:
           java-version: ${{ matrix.java }}
           distribution: 'adopt'
 
+      - name: Cache Maven Wrapper
+        uses: actions/cache@v5
+        with:
+          path: ~/.m2/wrapper
+          key: ${{ runner.os }}-mvnw-${{ 
hashFiles('.mvn/wrapper/maven-wrapper.properties') }}
       - uses: actions/cache@v5
         with:
           path: ~/.m2/repository

Reply via email to