From 39aa2e45f6edf9e3c4fbbbd2935d5fdbc21933ce Mon Sep 17 00:00:00 2001 From: eduponz Date: Mon, 17 Jun 2024 15:22:12 +0200 Subject: [PATCH] Refs #20843: Pass flakiness JSON report to junit_summary action Signed-off-by: eduponz --- .github/workflows/reusable-mac-ci.yml | 7 ++++++ .github/workflows/reusable-ubuntu-ci.yml | 28 +++++++++++++++++++++++ .github/workflows/reusable-windows-ci.yml | 7 ++++++ 3 files changed, 42 insertions(+) diff --git a/.github/workflows/reusable-mac-ci.yml b/.github/workflows/reusable-mac-ci.yml index 6bea654ec0d..59f8c008cd1 100644 --- a/.github/workflows/reusable-mac-ci.yml +++ b/.github/workflows/reusable-mac-ci.yml @@ -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') }} @@ -169,3 +175,4 @@ jobs: show_failed: 'True' show_disabled: 'False' show_skipped: 'False' + flaky_json_report: "${{ github.workspace }}/flakiness_report.json" diff --git a/.github/workflows/reusable-ubuntu-ci.yml b/.github/workflows/reusable-ubuntu-ci.yml index d06539cc377..f1aefd098ad 100644 --- a/.github/workflows/reusable-ubuntu-ci.yml +++ b/.github/workflows/reusable-ubuntu-ci.yml @@ -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() }} @@ -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 @@ -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() }} @@ -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 @@ -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 }} @@ -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 @@ -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 }} @@ -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 }} diff --git a/.github/workflows/reusable-windows-ci.yml b/.github/workflows/reusable-windows-ci.yml index d340b469011..7d2b447ad5f 100644 --- a/.github/workflows/reusable-windows-ci.yml +++ b/.github/workflows/reusable-windows-ci.yml @@ -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') }} @@ -209,3 +215,4 @@ jobs: show_failed: 'True' show_disabled: 'False' show_skipped: 'False' + flaky_json_report: "${{ github.workspace }}/flakiness_report.json"