From 463e1f146be3e63b4c4255480b741e4a844ce34f Mon Sep 17 00:00:00 2001 From: test Date: Wed, 9 Sep 2026 14:22:15 +0800 Subject: [PATCH 1/2] ci: upload tron-test.log as a 1-day artifact for every test job --- .github/workflows/pr-build.yml | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index f35538c0961..7ec252a8561 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -63,6 +63,16 @@ jobs: java -jar "$JAR" db archive -h java -jar "$JAR" keystore --help + - name: Upload test logs + if: always() + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-macos26-aarch64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + build-ubuntu: name: Build ubuntu24 (JDK 17 / aarch64) if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'ubuntu' }} @@ -102,6 +112,16 @@ jobs: java -jar "$JAR" db archive -h java -jar "$JAR" keystore --help + - name: Upload test logs + if: always() + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-ubuntu24-aarch64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + docker-build-rockylinux: name: Build rockylinux (JDK 8 / x86_64) if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'rockylinux' }} @@ -157,6 +177,16 @@ jobs: - name: Test with RocksDB engine run: ./gradlew :framework:testWithRocksDb --no-daemon + - name: Upload test logs + if: always() + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-rockylinux-x86_64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + docker-build-debian11: name: Build debian11 (JDK 8 / x86_64) if: ${{ github.event_name == 'pull_request' || inputs.job == 'all' || inputs.job == 'debian11' }} @@ -211,6 +241,16 @@ jobs: - name: Test with RocksDB engine run: ./gradlew :framework:testWithRocksDb --no-daemon --no-build-cache + - name: Upload test logs + if: always() + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-debian11-x86_64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + - name: Generate module coverage reports run: ./gradlew jacocoTestReport --no-daemon @@ -271,6 +311,16 @@ jobs: continue-on-error: true run: ./gradlew :framework:testWithRocksDb --no-daemon --no-build-cache + - name: Upload test logs + if: always() + uses: actions/upload-artifact@v6 + with: + name: tron-test-log-coverage-base-x86_64 + path: | + **/logs/tron-test*.log* + if-no-files-found: warn + retention-days: 1 + - name: Generate module coverage reports (base) run: ./gradlew jacocoTestReport --no-daemon From 1fabf7a63460c726a8c676ecb0e394d9655b8da1 Mon Sep 17 00:00:00 2001 From: test Date: Wed, 9 Sep 2026 14:38:54 +0800 Subject: [PATCH 2/2] ci: let test log upload overwrite on rerun and never fail the job --- .github/workflows/pr-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 7ec252a8561..d6d8494b85d 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -65,6 +65,7 @@ jobs: - name: Upload test logs if: always() + continue-on-error: true uses: actions/upload-artifact@v6 with: name: tron-test-log-macos26-aarch64 @@ -72,6 +73,7 @@ jobs: **/logs/tron-test*.log* if-no-files-found: warn retention-days: 1 + overwrite: true build-ubuntu: name: Build ubuntu24 (JDK 17 / aarch64) @@ -114,6 +116,7 @@ jobs: - name: Upload test logs if: always() + continue-on-error: true uses: actions/upload-artifact@v6 with: name: tron-test-log-ubuntu24-aarch64 @@ -121,6 +124,7 @@ jobs: **/logs/tron-test*.log* if-no-files-found: warn retention-days: 1 + overwrite: true docker-build-rockylinux: name: Build rockylinux (JDK 8 / x86_64) @@ -179,6 +183,7 @@ jobs: - name: Upload test logs if: always() + continue-on-error: true uses: actions/upload-artifact@v6 with: name: tron-test-log-rockylinux-x86_64 @@ -186,6 +191,7 @@ jobs: **/logs/tron-test*.log* if-no-files-found: warn retention-days: 1 + overwrite: true docker-build-debian11: name: Build debian11 (JDK 8 / x86_64) @@ -243,6 +249,7 @@ jobs: - name: Upload test logs if: always() + continue-on-error: true uses: actions/upload-artifact@v6 with: name: tron-test-log-debian11-x86_64 @@ -250,6 +257,7 @@ jobs: **/logs/tron-test*.log* if-no-files-found: warn retention-days: 1 + overwrite: true - name: Generate module coverage reports run: ./gradlew jacocoTestReport --no-daemon @@ -313,6 +321,7 @@ jobs: - name: Upload test logs if: always() + continue-on-error: true uses: actions/upload-artifact@v6 with: name: tron-test-log-coverage-base-x86_64 @@ -320,6 +329,7 @@ jobs: **/logs/tron-test*.log* if-no-files-found: warn retention-days: 1 + overwrite: true - name: Generate module coverage reports (base) run: ./gradlew jacocoTestReport --no-daemon