Skip to content

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

Merged
merged 11 commits into from
Oct 3, 2020
Merged

CI: silence codecov for unrelated lines #36600

merged 11 commits into from
Oct 3, 2020

Conversation

erfannariman
Copy link
Member

No description provided.

@jbrockmendel
Copy link
Member

I guess to check that this works we'll need to merge it and then see if subsequent PRs stop showing the unwanted comments?

@erfannariman
Copy link
Member Author

@jbrockmendel yes I think so. Checking codecov for this PR was not very informative.

@codecov
Copy link

codecov bot commented Sep 24, 2020

Codecov Report

Merging #36600 into master will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pandas/io/gbq.py 88.88% <0.00%> (-11.12%) ⬇️
pandas/core/frame.py 97.44% <0.00%> (-0.12%) ⬇️
pandas/core/indexes/base.py 98.61% <0.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0f6fc8d...d9149fb. Read the comment docs.

@erfannariman
Copy link
Member Author

@jbrockmendel seems to work :)

@dsaxton dsaxton added the CI Continuous Integration label Sep 24, 2020
@jreback jreback added this to the 1.2 milestone Sep 24, 2020
@jorisvandenbossche
Copy link
Member

@erfannariman what change in this PR would "silence codecov for unrelated lines" (as the title indicates?)

@erfannariman
Copy link
Member Author

@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.

@jorisvandenbossche
Copy link
Member

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.
Now, I can't directly find an example PR where there are a lot of those spurious annotations, so maybe the problem has already solved itself .. (@dsaxton do you still see an example somewhere?)

@dsaxton
Copy link
Member

dsaxton commented Sep 25, 2020

Now, I can't directly find an example PR where there are a lot of those spurious annotations, so maybe the problem has already solved itself .. (@dsaxton do you still see an example somewhere?)

Hmm, I can't seem to find one either. Maybe it was fixed upstream?

@jorisvandenbossche
Copy link
Member

@erfannariman
Copy link
Member Author

This looks already solved then. Should I close this?

@dsaxton
Copy link
Member

dsaxton commented Sep 25, 2020

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.

@dsaxton
Copy link
Member

dsaxton commented Sep 28, 2020

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 github_checks section.

@erfannariman
Copy link
Member Author

erfannariman commented Oct 1, 2020

is this what you meant @dsaxton ?

The codecov report is updated after every commit, see here in the edits.

@dsaxton
Copy link
Member

dsaxton commented Oct 1, 2020

is this what you meant @dsaxton ?

The codecov report is updated after every commit, see here in the edits.

Yeah I believe that should work, although I think we also don't want the Codecov comments according to #36600 (comment)

@erfannariman
Copy link
Member Author

is this what you meant @dsaxton ?
The codecov report is updated after every commit, see here in the edits.

Yeah I believe that should work, although I think we also don't want the Codecov comments according to #36600 (comment)

Removed comments

@erfannariman erfannariman requested a review from dsaxton October 2, 2020 08:55
Copy link
Member

@dsaxton dsaxton left a 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

@MarcoGorelli
Copy link
Member

MarcoGorelli commented Oct 2, 2020

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)

@dsaxton
Copy link
Member

dsaxton commented Oct 2, 2020

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

@jreback
Copy link
Contributor

jreback commented Oct 2, 2020

ok if you'd fix the EOF issue can merge (and yes good idea to add to the pre-commit hook / separate PR pls)

@erfannariman
Copy link
Member Author

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

@erfannariman
Copy link
Member Author

erfannariman commented Oct 3, 2020

@dsaxton I changed comment: off to comment: false as stated in the docs

@dsaxton dsaxton merged commit a975a75 into pandas-dev:master Oct 3, 2020
@dsaxton
Copy link
Member

dsaxton commented Oct 3, 2020

Thanks @erfannariman I think this is working. Had some unrelated annotations on a PR, merged master and they disappeared.

@erfannariman erfannariman deleted the ci-silence-codecov branch October 3, 2020 17:33
jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Oct 13, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants