diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index e51a1732fc5f25..2d50464d94013c 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -102,12 +102,8 @@ jobs: pg-version: ${{ matrix.pg-version }} - name: Run backend test (${{ steps.setup.outputs.matrix-instance-number }} of ${{ steps.setup.outputs.matrix-instance-total }}) - # The coverage json command creates a different format of coverage report - # That is used to power Codecov Automated Test Selection - # (see .github/workflows/codecov_ats.yml) run: | make test-python-ci - coverage json -o .artifacts/python.coverage.json --show-contexts # Upload coverage data even if running the tests step fails since # it reduces large coverage fluctuations @@ -116,23 +112,6 @@ jobs: uses: ./.github/actions/artifacts with: token: ${{ secrets.CODECOV_TOKEN }} - # This is temporary because codecov/codecov-action@v4-beta - # Doesn't support --disable-search option - # And we don't want to upload random reports (for safety) - - name: Clean state of uploads - special case to test Codecov ATS - if: ${{ always() }} - run: rm .artifacts/python.coverage.xml - continue-on-error: true - - name: Upload coverage - special case to test Codecov ATS - if: ${{ always() }} - uses: codecov/codecov-action@v4-beta - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - with: - files: .artifacts/python.coverage.codecov.json - flags: smart-tests - plugins: compress-pycoverage - continue-on-error: true backend-migration-tests: if: needs.files-changed.outputs.backend == 'true' diff --git a/Makefile b/Makefile index f4855b193875d3..92d72e2db433e8 100644 --- a/Makefile +++ b/Makefile @@ -125,9 +125,6 @@ test-js-ci: node-version-check @yarn run test-ci @echo "" -# --cov-context=test is used to annotate what tests are being executed in the coverage info -# And it's used to power Codecov Automated Test Selection -# (see .github/workflows/codecov_ats.yml) test-python-ci: create-db @echo "--> Running CI Python tests" pytest \ @@ -136,7 +133,7 @@ test-python-ci: create-db tests/sentry \ tests/sentry_plugins \ tests/symbolicator \ - --cov . --cov-report="xml:.artifacts/python.coverage.xml" --cov-context=test + --cov . --cov-report="xml:.artifacts/python.coverage.xml" @echo ""