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

albumenj pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.3 by this push:
     new 779faa9e98 Fix upload artifact failed in Scheduled Test (#14981)
779faa9e98 is described below

commit 779faa9e981e3ac2da2612a5d43e38a8416f5e47
Author: Albumen Kevin <[email protected]>
AuthorDate: Wed Dec 11 17:15:33 2024 +0800

    Fix upload artifact failed in Scheduled Test (#14981)
---
 .github/workflows/build-and-test-scheduled-3.1.yml | 10 ++++++----
 .github/workflows/build-and-test-scheduled-3.2.yml | 10 ++++++----
 .github/workflows/build-and-test-scheduled-3.3.yml | 10 ++++++----
 .github/workflows/release-test.yml                 | 10 ++++++----
 4 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/.github/workflows/build-and-test-scheduled-3.1.yml 
b/.github/workflows/build-and-test-scheduled-3.1.yml
index 4de35db9f4..e237f428a8 100644
--- a/.github/workflows/build-and-test-scheduled-3.1.yml
+++ b/.github/workflows/build-and-test-scheduled-3.1.yml
@@ -297,7 +297,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   samples-test-result:
     needs: [samples-test-job]
@@ -316,7 +316,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
@@ -395,7 +396,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   integration-test-result:
     needs: [integration-test-job]
@@ -414,7 +415,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
diff --git a/.github/workflows/build-and-test-scheduled-3.2.yml 
b/.github/workflows/build-and-test-scheduled-3.2.yml
index c58fd0ac8a..370ce6d3b0 100644
--- a/.github/workflows/build-and-test-scheduled-3.2.yml
+++ b/.github/workflows/build-and-test-scheduled-3.2.yml
@@ -297,7 +297,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   samples-test-result:
     needs: [samples-test-job]
@@ -316,7 +316,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
@@ -395,7 +396,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   integration-test-result:
     needs: [integration-test-job]
@@ -414,7 +415,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
diff --git a/.github/workflows/build-and-test-scheduled-3.3.yml 
b/.github/workflows/build-and-test-scheduled-3.3.yml
index 32aed50071..76fc28eeb4 100644
--- a/.github/workflows/build-and-test-scheduled-3.3.yml
+++ b/.github/workflows/build-and-test-scheduled-3.3.yml
@@ -297,7 +297,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   samples-test-result:
     needs: [samples-test-job]
@@ -316,7 +316,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
@@ -395,7 +396,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   integration-test-result:
     needs: [integration-test-job]
@@ -414,7 +415,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
diff --git a/.github/workflows/release-test.yml 
b/.github/workflows/release-test.yml
index 0b8f55e529..4895593e9a 100644
--- a/.github/workflows/release-test.yml
+++ b/.github/workflows/release-test.yml
@@ -294,7 +294,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   samples-test-result:
     needs: [samples-test-job]
@@ -313,7 +313,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: samples-test-result-${{matrix.jdk}}
+          name: samples-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh
@@ -392,7 +393,7 @@ jobs:
         if: always()
         uses: actions/upload-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-${{matrix.job_id}}
           path: test/jobs/*-result*
   integration-test-result:
     needs: [integration-test-job]
@@ -411,7 +412,8 @@ jobs:
       - name: "Download test result"
         uses: actions/download-artifact@v4
         with:
-          name: integration-test-result-${{matrix.jdk}}
+          name: integration-test-result-*
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           path: test/jobs/
       - name: "Merge test result"
         run: ./test/scripts/merge-test-results.sh

Reply via email to