From f1750fa7a9de9615a5adf8fa4bc61592c62f5e7b Mon Sep 17 00:00:00 2001 From: ggivo Date: Mon, 21 Oct 2024 12:09:13 +0300 Subject: [PATCH] Codecove has released beta version of Test Analytics feature (#3996) * 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 * Remove verbose flag * Push test results also if job manully triggered --- .github/codecov.yml | 2 ++ .github/workflows/integration.yml | 7 +++++++ 2 files changed, 9 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..3df4e12271 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -60,3 +60,10 @@ 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') || github.event_name == 'workflow_dispatch'}} + uses: codecov/test-results-action@v1 + with: + fail_ci_if_error: false + files: ./target/surefire-reports/TEST* + token: ${{ secrets.CODECOV_TOKEN }}