Skip to content

build: fix Codecov unable to process coverage reports#52

Merged
NyanKiyoshi merged 1 commit intomainfrom
build/coverage/use-junit
Feb 28, 2026
Merged

build: fix Codecov unable to process coverage reports#52
NyanKiyoshi merged 1 commit intomainfrom
build/coverage/use-junit

Conversation

@NyanKiyoshi
Copy link
Copy Markdown
Owner

@NyanKiyoshi NyanKiyoshi commented Feb 28, 2026

The coverage reports (cobertura format) were silently erroring in Codecov's
servers due to being unable to compare them against the source code.

This was due to the codecov CLI being unable to normalize the reports (XML)
as it didn't find a source code or paths that matched what it was seeing
inside the XML file, e.g., it would see /home/runner/work/pytest-django-queries/pytest-django-queries/src
in the XML files but without checkout, it wasn't able to read that file thus
leading to corrupt coverage reports being uploaded.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.22%. Comparing base (7426da5) to head (b65097a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##           main      #52       +/-   ##
=========================================
+ Coverage      0   96.22%   +96.22%     
=========================================
  Files         0        7        +7     
  Lines         0      344      +344     
  Branches      0       41       +41     
=========================================
+ Hits          0      331      +331     
- Misses        0        7        +7     
- Partials      0        6        +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

The coverage reports (cobertura format) were silently erroring in Codecov's
servers due to being unable to compare them against the source code.

This was due to the `codecov` CLI being unable to normalize the reports (XML)
as it didn't find a source code or paths that matched what it was seeing
inside the XML file, e.g., it would see `/home/runner/work/pytest-django-queries/pytest-django-queries/src`
in the XML files but without checkout, it wasn't able to read that file thus
leading to corrupt coverage reports being uploaded.
@NyanKiyoshi NyanKiyoshi force-pushed the build/coverage/use-junit branch from 2b9eba0 to b65097a Compare February 28, 2026 23:18
@NyanKiyoshi NyanKiyoshi changed the title build: switch coverage report to junit build: fix Codecov unable to process coverage reports Feb 28, 2026
@NyanKiyoshi NyanKiyoshi marked this pull request as ready for review February 28, 2026 23:20
@NyanKiyoshi NyanKiyoshi merged commit f19a091 into main Feb 28, 2026
18 checks passed
@NyanKiyoshi NyanKiyoshi deleted the build/coverage/use-junit branch February 28, 2026 23:20
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