From 9b36a40c092995be416e51678ec6be99c9bcdf6e Mon Sep 17 00:00:00 2001 From: ggivo Date: Mon, 14 Oct 2024 17:09:43 +0300 Subject: [PATCH 1/3] Codecov Test Analytics integration Codecove has released beta version of Test Analytics feature more details can be found [here|https://docs.codecov.com/docs/test-result-ingestion-beta] Since we are already integrated with Codecov (storing code coverage data) the idea is to try out if Test Analytics feature will provide visibility over flaky tests and stability of the tests/build. Hopefully, we will have a base to compare and identify regressions. Changes (only in build actions) - Add step to publish junit report files to codecove - Add basic codecov.yml config (filter out files that are not junit reports) Conditionally upload junit reports only on nightly build & push to branch --- .github/codecov.yml | 2 ++ .github/workflows/integration.yml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 .github/codecov.yml diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000000..c3718ef685 --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,2 @@ +ignore: + - "**/*.txt" diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index f294af7101..3449665caf 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -60,3 +60,11 @@ jobs: with: fail_ci_if_error: false token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ github.event_name == 'schedule' || (github.event_name == 'push') }} + uses: codecov/test-results-action@v1 + with: + fail_ci_if_error: false + files: ./target/surefire-reports/TEST* + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true From d0068fe2006d68f95e8c8bc9eba767829749765d Mon Sep 17 00:00:00 2001 From: ggivo Date: Tue, 15 Oct 2024 12:09:46 +0300 Subject: [PATCH 2/3] Remove verbose flag --- .github/workflows/integration.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 3449665caf..ff705dca84 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -67,4 +67,3 @@ jobs: fail_ci_if_error: false files: ./target/surefire-reports/TEST* token: ${{ secrets.CODECOV_TOKEN }} - verbose: true From 5cf8bd00835365ed461ad1b952514fc1260fa9e4 Mon Sep 17 00:00:00 2001 From: ggivo Date: Tue, 15 Oct 2024 21:23:48 +0300 Subject: [PATCH 3/3] Push test results also if job manully triggered --- .github/workflows/integration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ff705dca84..3df4e12271 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -61,7 +61,7 @@ jobs: fail_ci_if_error: false token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test results to Codecov - if: ${{ github.event_name == 'schedule' || (github.event_name == 'push') }} + if: ${{ github.event_name == 'schedule' || (github.event_name == 'push') || github.event_name == 'workflow_dispatch'}} uses: codecov/test-results-action@v1 with: fail_ci_if_error: false