-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix coverage upload #44
Conversation
Usage of `coverage` stores data in the internal `.coverage` file that is not supported^1 by codecov. This results in silently (because we dont use fail option by default) not uploading coverage. This fixes it by runnin `coverage xml` in coverage_report which outputs a compatible file in `coverage.xml` 1: https://docs.codecov.com/docs/supported-report-formats#non-supported-code-coverage-formats
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #44 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 8 8
Branches 1 1
=========================================
Hits 8 8 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this is indeed what I used in offspot/metrics in a commit which I probably forgot to backport here, or maybe I was considering metrtics was in an edge case: offspot/metrics@241ef10 😔
We also realized recently kolibri and youtube weren't uploading coverage
Shouldn't we use the fail option then? (we could revert if upload fails to often, but it shouldn't be the case and it probably never happened in metrics)
Yes, I think we should have the fail option in the default ; let me add it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Usage of
coverage
stores data in the internal.coverage
file that is not supported^1 by codecov.This results in silently (because we dont use fail option by default) not uploading coverage.
This fixes it by runnin
coverage xml
in coverage_report which outputs a compatible file incoverage.xml
1: https://docs.codecov.com/docs/supported-report-formats#non-supported-code-coverage-formats