Skip to content

Commit

Permalink
Merge pull request #1335 from michalvavrik/feature/improve-flakiness-…
Browse files Browse the repository at this point in the history
…reporting

Improve flakiness reporting by storing flaky run report with failed test name and failure message
  • Loading branch information
michalvavrik authored Sep 24, 2024
2 parents d376270 + de9423b commit 1e563da
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'
Expand Down Expand Up @@ -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/*'
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 1e563da

Please sign in to comment.