-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Make automatic codecov report less noisy #35056
Conversation
The location was determined according to https://docs.codecov.com/docs/codecov-yaml#can-i-name-the-file-codecovyml |
Thanks for looking into this. Since this is currently the only check we have on github that newly introduced code is covered by checks, it should be clearly visible from the PR. So simply disabling is not an option in my opinion. At least a GH check should be added as well. You can also test this in your fork first (simply install the codecov app in your fork: https://github.com/marketplace/codecov) |
I agree. Would you do that, adding a GH check? |
This is something that can be configured as well: https://docs.codecov.com/docs/github-checks |
I misunderstood the GH check as something like checks in "Checks" tab. I don't know whether the codecov's GH check you meant is something developers would like or not. What I want is to make the code coverage information available to developers in less intrusive way. The issue of #35016 is that the current automatic codecov comments are distracting. Hence I think we should merge this PR now to stop adding codecov comments to issues. Then someone, perhaps you, make a new PR either to turn on the codecov's GH check or to turn on the automatic codecov comment again by reconfiguring |
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.
I misunderstood the GH check as something like checks in "Checks" tab. I don't know whether the codecov's GH check you meant is something developers would like or not.
So this https://docs.codecov.com/docs/commit-status ?
What I want is to make the code coverage information available to developers in less intrusive way.
As far as I understand it is sage's convention that changes should be covered by tests. The codecov report gives the reviewer a tool to check this convention. I agree that its somewhat annoying to get this comment as someone contributing a PR, but I would value the convenience/time of the reviewer higher.
I'm still of the opinion we should just test it for a bit and disable/change the codecov comment once everyone got used to the new github workflow a bit more.
We just have different opinions. I don't plan to do (and I am not capable of doing) anything more in this PR. Others will decide on it. Whether this PR is merged or not, as I said already, I hope that you make a new PR to provide less intrusively code coverage information to reviewers. |
I did. It works well, that is, no more codecov report comments. |
Codecov ReportBase: 88.59% // Head: 88.56% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #35056 +/- ##
===========================================
- Coverage 88.59% 88.56% -0.03%
===========================================
Files 2140 2140
Lines 396998 396998
===========================================
- Hits 351740 351621 -119
- Misses 45258 45377 +119
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I don't understand the technical details of the issue nor what the available options are, but for what it's worth, I've almost immediately started ignoring the codecov comments as visual noise. I don't care at all about coverage statistics; the only thing that matters to me is that new code and especially conventions that affect multiple functions/files/... are covered by relevant tests, and I don't think codecov can help much with that. |
I don't think its a good idea to simply turn the comments off, but I agree that replacing them by the less noisy status checks is a good idea. The following should do the job but is untested:
|
342fdf8
to
8c804c7
Compare
Thanks. I am testing. |
Documentation preview for this PR is ready! 🎉 |
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.
Nice, thanks for testing!
@vbraun could this please be merged relatively quickly? It doesn't touch anything else then the codecov config, so it doesn't need to go through extensive testing. |
Fixes #35016.
We turn off automatic codecov comment.After this PR, someone needs to implement a github action that sends code coverage information as a quiet comment, like the current built-documentation comment.