-
Notifications
You must be signed in to change notification settings - Fork 374
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
chore: use -coverpkg for extended code coverage reports #1122
Conversation
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Some weird results: Any idea why some tests seem to show "decreasing coverage"? also/ it looks like the YAML from the last PR is invalid: https://app.codecov.io/gh/gnolang/gno/commit/f49e9d03077f7661619791e52a5112d70ea019d9 @moul I saw in the last codecov PR you were complaining about not being able to validate the YAML until merged into master. They actually support validation, but you must do it through a HTTP request to their server: curl --data-binary @/dev/stdin https://codecov.io/validate << EOF
codecov:
notify:
wait_for_ci: false
ignore:
- misc
comment:
require_changes: true
[...]
EOF
Error at ['codecov', 'require_changes']:
unknown field |
Maybe the various files are not merged, so the last one only is taken into account for each referenced file?
Thanks, fixed with #1137.
Thanks, but I was not talking about validation, but checking the impact of the change itself. |
See #1122 (comment) ```console ❯ cat codecov.yml | curl --data-binary @/dev/stdin https://codecov.io/validate Valid! { "codecov": { "require_ci_to_pass": false, ... ``` Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1122 +/- ##
===========================================
+ Coverage 47.31% 66.57% +19.25%
===========================================
Files 367 418 +51
Lines 62118 63476 +1358
===========================================
+ Hits 29394 42260 +12866
+ Misses 30325 18367 -11958
- Partials 2399 2849 +450 ☔ View full report in Codecov by Sentry. |
See #1139 |
I suspect the pkg1 and pkg2 tests to be failing because enabling coverage reporting on so many packages probably slows them down too much (adding the flag rewrites the code in order to count the lines covered). Obviously we have an issue of the two tests being too slow in general, but I think we might still improve our coverage data with what we actually test by having |
As discussed during the review meeting.
h/t @thehowl.