Skip to content

Commit

Permalink
Refs #20843: Pass flakiness JSON report to junit_summary action
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
  • Loading branch information
EduPonz committed Jun 17, 2024
1 parent 357bf19 commit 6ebec8e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/reusable-mac-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ jobs:
fail_on_flaky_tests: 'False'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Flakiness report
uses: eProsima/eProsima-CI/external/download-artifact@feature/detect_flaky_tests
with:
name: ${{ format('flakiness_archive_{0}_{1}_{2}_json', inputs.label, github.job, join(matrix.*, '_')) }}
path: ${{ github.workspace }}/flakiness_report.json

- name: Test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
Expand All @@ -169,3 +175,4 @@ jobs:
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
flaky_json_report: "${{ github.workspace }}/flakiness_report.json"
7 changes: 7 additions & 0 deletions .github/workflows/reusable-ubuntu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ jobs:
fail_on_flaky_tests: 'False'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Flakiness report
uses: eProsima/eProsima-CI/external/download-artifact@feature/detect_flaky_tests
with:
name: ${{ format('flakiness_archive_{0}_{1}_{2}_json', inputs.label, github.job, join(matrix.*, '_')) }}
path: ${{ github.workspace }}/flakiness_report.json

- name: Fast DDS test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() }}
Expand All @@ -247,6 +253,7 @@ jobs:
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
flaky_json_report: "${{ github.workspace }}/flakiness_report.json"

fastdds_python_build:
needs: fastdds_build
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/reusable-windows-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ jobs:
fail_on_flaky_tests: 'False'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Download Flakiness report
uses: eProsima/eProsima-CI/external/download-artifact@feature/detect_flaky_tests
with:
name: ${{ format('flakiness_archive_{0}_{1}_{2}_json', inputs.label, github.job, join(matrix.*, '_')) }}
path: ${{ github.workspace }}/flakiness_report.json

- name: Test summary
uses: eProsima/eProsima-CI/windows/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() && !contains(github.event.pull_request.labels.*.name, 'no-test') }}
Expand All @@ -209,3 +215,4 @@ jobs:
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
flaky_json_report: "${{ github.workspace }}/flakiness_report.json"

0 comments on commit 6ebec8e

Please sign in to comment.