From de9423b8a9366e8b0a43616284751391f47a69fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Tue, 24 Sep 2024 20:03:29 +0200 Subject: [PATCH] Improve flakiness reporting by archiving report --- .github/workflows/pr.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 9b4ee9497..410d4ca45 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -102,6 +102,13 @@ jobs: shell: bash if: ${{ hashFiles('**/flaky-run-report.json') != '' }} run: echo "has-flaky-tests=true" >> "$GITHUB_OUTPUT" + - name: Archive flaky run report + id: archive-flaky-run-report + if: ${{ hashFiles('**/flaky-run-report.json') != '' }} + uses: actions/upload-artifact@v4 + with: + name: flaky-run-report-linux-jvm-released + path: target/flaky-run-report.json - name: Zip Artifacts run: | zip -R artifacts-quarkus${{ matrix.quarkus-version }}-linux-jvm${{ matrix.java }}.zip '*-reports/*' @@ -158,6 +165,13 @@ jobs: shell: bash if: ${{ hashFiles('**/flaky-run-report.json') != '' }} run: echo "has-flaky-tests=true" >> "$GITHUB_OUTPUT" + - name: Archive flaky run report + id: archive-flaky-run-report + if: ${{ hashFiles('**/flaky-run-report.json') != '' }} + uses: actions/upload-artifact@v4 + with: + name: flaky-run-report-linux-jvm-latest + path: target/flaky-run-report.json - name: Zip Artifacts run: | zip -R artifacts-latest-linux-jvm${{ matrix.java }}.zip '*-reports/*' @@ -207,6 +221,13 @@ jobs: shell: bash if: ${{ hashFiles('**/flaky-run-report.json') != '' }} run: echo "has-flaky-tests=true" >> "$GITHUB_OUTPUT" + - name: Archive flaky run report + id: archive-flaky-run-report + if: ${{ hashFiles('**/flaky-run-report.json') != '' }} + uses: actions/upload-artifact@v4 + with: + name: flaky-run-report-linux-native-released + path: target/flaky-run-report.json - name: Zip Artifacts if: failure() run: | @@ -253,6 +274,13 @@ jobs: id: flaky-test-detector if: ${{ hashFiles('**/flaky-run-report.json') != '' }} run: echo "has-flaky-tests=true" >> "$GITHUB_OUTPUT" + - name: Archive flaky run report + id: archive-flaky-run-report + if: ${{ hashFiles('**/flaky-run-report.json') != '' }} + uses: actions/upload-artifact@v4 + with: + name: flaky-run-report-windows-jvm-latest + path: target/flaky-run-report.json - name: Zip Artifacts shell: bash if: failure()