From cf82fd99f3c9bffa77324720519de0768c9c5ad8 Mon Sep 17 00:00:00 2001 From: Yanxuan Liu Date: Thu, 19 Dec 2024 15:58:55 +0800 Subject: [PATCH 1/2] add timeout for populate cache step Signed-off-by: Yanxuan Liu --- .github/workflows/mvn-verify-check.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/mvn-verify-check.yml b/.github/workflows/mvn-verify-check.yml index b58799c6110..2970c5c709c 100644 --- a/.github/workflows/mvn-verify-check.yml +++ b/.github/workflows/mvn-verify-check.yml @@ -64,6 +64,8 @@ jobs: key: ${{ env.dailyCacheKey }} restore-keys: ${{ runner.os }}-maven- - name: populate-daily-cache + timeout-minutes: 30 + continue-on-error: true if: steps.cache.outputs.cache-hit != 'true' env: SCALA_VER: '2.12' @@ -177,6 +179,8 @@ jobs: key: ${{ env.scala213dailyCacheKey }} restore-keys: ${{ runner.os }}-maven- - name: populate-daily-cache + timeout-minutes: 30 + continue-on-error: true if: steps.cache.outputs.cache-hit != 'true' env: SCALA_VER: '2.13' From 93bdf498029b2fafdadccf699f96703323e629d6 Mon Sep 17 00:00:00 2001 From: Yanxuan Liu Date: Thu, 19 Dec 2024 16:07:17 +0800 Subject: [PATCH 2/2] add continue to cache steps Signed-off-by: Yanxuan Liu --- .github/workflows/mvn-verify-check.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/mvn-verify-check.yml b/.github/workflows/mvn-verify-check.yml index 2970c5c709c..c1c47f7bae4 100644 --- a/.github/workflows/mvn-verify-check.yml +++ b/.github/workflows/mvn-verify-check.yml @@ -58,6 +58,7 @@ jobs: echo "dailyCacheKey=$cacheKey" | tee $GITHUB_ENV $GITHUB_OUTPUT - name: Cache local Maven repository id: cache + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2 @@ -120,6 +121,7 @@ jobs: java-version: 8 - name: Cache local Maven repository + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2 @@ -173,6 +175,7 @@ jobs: echo "scala213dailyCacheKey=$cacheKey" | tee $GITHUB_ENV $GITHUB_OUTPUT - name: Cache local Maven repository id: cache + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2 @@ -227,6 +230,7 @@ jobs: java-version: 17 - name: Cache local Maven repository + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2 @@ -282,6 +286,7 @@ jobs: java-version: 17 - name: Cache local Maven repository + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2 @@ -336,6 +341,7 @@ jobs: java-version: ${{ matrix.java-version }} - name: Cache local Maven repository + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2 @@ -383,6 +389,7 @@ jobs: java-version: 11 - name: Cache local Maven repository + continue-on-error: true uses: actions/cache@v4 with: path: ~/.m2