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 <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Jun 17, 2024
1 parent 357bf19 commit 39aa2e4
Show file tree
Hide file tree
Showing 3 changed files with 42 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"
28 changes: 28 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 Expand Up @@ -411,6 +418,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 Python test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() }}
Expand All @@ -420,6 +433,7 @@ jobs:
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
flaky_json_report: "${{ github.workspace }}/flakiness_report.json"

fastdds_docs_test:
needs: fastdds_python_build
Expand Down Expand Up @@ -529,6 +543,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 Docs test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() && inputs.run-tests == true }}
Expand All @@ -538,6 +558,7 @@ jobs:
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
flaky_json_report: "${{ github.workspace }}/flakiness_report.json"

fastdds_shapesdemo_build:
needs: fastdds_build
Expand Down Expand Up @@ -721,6 +742,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: Discovery server test summary
uses: eProsima/eProsima-CI/multiplatform/junit_summary@feature/detect_flaky_tests
if: ${{ !cancelled() && inputs.run-tests == true }}
Expand All @@ -730,6 +757,7 @@ jobs:
show_failed: 'True'
show_disabled: 'False'
show_skipped: 'False'
flaky_json_report: "${{ github.workspace }}/flakiness_report.json"

fastdds_alternative_builds:
runs-on: ${{ inputs.os-image }}
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 39aa2e4

Please sign in to comment.