Skip to content

feat(ci): add getsentry/codecov-action to backend coverage workflow#109639

Draft
MathurAditya724 wants to merge 1 commit intomasterfrom
feat/adi/codecov-action
Draft

feat(ci): add getsentry/codecov-action to backend coverage workflow#109639
MathurAditya724 wants to merge 1 commit intomasterfrom
feat/adi/codecov-action

Conversation

@MathurAditya724
Copy link
Member

Summary

  • Adds getsentry/codecov-action@v1 to the backend-with-coverage.yml workflow to report backend test coverage using GitHub Artifacts (no external Codecov token required)
  • Generates a Cobertura XML report from the combined .coverage.combined SQLite database before uploading
  • Adds statuses: write and pull-requests: write permissions needed by the action for commit status checks and PR comments
  • Preserves the existing GCS upload which is still used for selective testing

How it works

After all test shards produce coverage and the combine-coverage job merges them:

  1. New step: coverage xml -i converts the combined coverage database to coverage.xml (Cobertura format)
  2. New step: getsentry/codecov-action@v1 uploads the XML report, tagging it with flags: backend
  3. Existing steps: GCS upload continues unchanged for selective testing

The action uses ${{ secrets.GITHUB_TOKEN }} and stores results as GitHub Artifacts — no external service or Codecov token is needed.

Add self-hosted coverage reporting using getsentry/codecov-action which
stores results as GitHub Artifacts instead of requiring an external
Codecov token. This generates a Cobertura XML report from the combined
coverage database and uploads it after the combine step. The existing
GCS upload for selective testing is preserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant