diff --git a/.github/workflows/ci-nightly.yml b/.github/workflows/ci-nightly.yml index 19381b056c..c1a821cfbb 100644 --- a/.github/workflows/ci-nightly.yml +++ b/.github/workflows/ci-nightly.yml @@ -119,6 +119,14 @@ jobs: job-type: "Test" build-type: "Nightly Build" details: "• Partition: `${{ matrix.partition_id }}` of ${{ env.PARTITION_TOTAL }}\n• Failed Step: `${{ steps.run_tests.name }}`" + - name: Upload test logs on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-logs-${{ matrix.platform }}-${{ github.run_id }}-${{ matrix.partition_id }} + path: | + **/*.log + retention-days: 30 - name: Upload test artifacts to GitHub uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml index 3856e9a65b..18bccfb797 100644 --- a/.github/workflows/ci-pr.yml +++ b/.github/workflows/ci-pr.yml @@ -64,6 +64,14 @@ jobs: job-type: "Test" build-type: "PR Build" details: "• Partition: `${{ matrix.partition_id }}` of ${{ env.PARTITION_TOTAL }}\n• Failed Step: `${{ steps.run_tests.name }}`" + - name: Upload test logs on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-logs-${{ matrix.platform }}-${{ github.run_id }}-${{ matrix.partition_id }} + path: | + **/*.log + retention-days: 30 - name: Upload test artifacts to GitHub if: ${{ !cancelled() }} uses: actions/upload-artifact@v4