-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: silence codecov for unrelated lines #36600
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
Conversation
I guess to check that this works we'll need to merge it and then see if subsequent PRs stop showing the unwanted comments? |
@jbrockmendel yes I think so. Checking codecov for this PR was not very informative. |
Codecov Report
@@ Coverage Diff @@
## master #36600 +/- ##
==========================================
- Coverage 94.20% 94.19% -0.01%
==========================================
Files 212 212
Lines 50332 50340 +8
==========================================
+ Hits 47414 47418 +4
- Misses 2918 2922 +4
Continue to review full report at Codecov.
|
@jbrockmendel seems to work :) |
@erfannariman what change in this PR would "silence codecov for unrelated lines" (as the title indicates?) |
Might have misunderstood initially if I read the comments under this PR. I thought we only wanted codecov for the lines which is touched by a PR, and ignore the rest, that's why I named it like this. |
Yes, but so the issue what (I thought) we were talking about is the fact that there were "annotations" (inline code comments in the "files changed" tab) about unrelated files, which is something alse as a normal comment on a PR. So therefore I didn't see the link between the changes you did and the problem. |
Hmm, I can't seem to find one either. Maybe it was fixed upstream? |
Example in an older PR: https://github.com/pandas-dev/pandas/pull/36434/files |
This looks already solved then. Should I close this? |
Could also give it a few days to see if any pop up? My guess is they fixed the behavior upstream (it was in "beta" after all), but doesn't hurt to wait and see. |
Found one 😄 (this one just opened) https://github.com/pandas-dev/pandas/pull/36706/files Edit: Another one: https://github.com/pandas-dev/pandas/pull/36716/files I think making this change can't hurt, although I think we should be modifying the |
Yeah I believe that should work, although I think we also don't want the Codecov comments according to #36600 (comment) |
Removed comments |
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.
Git is complaining about no EOF new line, but otherwise looks good, thanks @erfannariman
there's a pre-commit hook for that ;) https://github.com/pre-commit/pre-commit-hooks (end-of-file-fixer) |
Very cool, we might as well use it IMO |
ok if you'd fix the EOF issue can merge (and yes good idea to add to the pre-commit hook / separate PR pls) |
ready |
Thanks @erfannariman I think this is working. Had some unrelated annotations on a PR, merged master and they disappeared. |
No description provided.