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
3384 Unpin coverage #783
3384 Unpin coverage #783
Conversation
Codecov Report
@@ Coverage Diff @@
## master #783 +/- ##
======================================
Coverage 91% 91%
======================================
Files 155 155
Lines 27277 27277
Branches 3879 3879
======================================
+ Hits 24936 24951 +15
+ Misses 1607 1597 -10
+ Partials 734 729 -5
Continue to review full report at Codecov.
|
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.
It would be good for the ticket to explain why this change is a good idea. I infer it is to support the switch to coveralls.io. It would be good if that ticket would explain why that change is a good idea. :)
Ah yes, certainly! Updated 3384. |
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
Just a couple notes. Though codecov says "coverage is unaffected" what it really means is "the number of new uncovered lines exactly equals the number of new covered lines". The changes are probably spurious, due to heisencoverage or some such, but it seems worth noting and understanding since this is a PR to change how coverage is measured. Also, did unpinning coverage actually cause coverage 5.x to be used? Or was the cached coverage from yesterday's Docker image builds used? Also, related, the NixOS job has a different way that it picks Python libraries. I would assume that it is still using 4.x (and so the switch is not yet complete). |
I guess the objection to codecov is the amount of weird voodoo: this PR, for example, has only changed one line in It must be a comparison against something, but it's not clear if the comparison is with test coverage on master branch, even though that is the claim. Perhaps the comparison is against the last uploaded report? Perhaps those numbers are imprecise because they're using floating points? I don't know... I also don't know if coveralls would be an improvement, to be fair to codecov. :-) On GitHub Actions, we're certainly using coverage 5.x, per the log. What do you think about using GitHub Actions for uploading coverage reports, and maybe removing the part that uploads coverage to codecov from CircleCI configuration? On GitHub Actions, we could also add |
On CircleCI also, we're now using coverage==5.2.1, except on Ubuntu 20.04 and NixOS. I just noticed that Ubuntu 20.04 images are likely stale. Ubuntu 20.04 image generation has been failing for the last eight days. Is that expected? |
I'm not sure if this is a response to my comment or not. I've certainly seen weird reports from codecov (my last comment gave an example of such a result). What's not so clear to me is what subset of this weirdness is attributable to codecov itself. The main point I wanted to make is that this PR (a) has a change in coverage results reported by codecov and (b) changes the tool that is used to measure coverage. Is the explanation that codecov is being weird again? Or that the tool is actually recording different coverage now? It seems like a useful question to have answered. One idea would be to run the test suite locally with both versions of coverage and see if it is possible to get the same coverage results or not.
No, that's not expected. :( |
I don't think this is a good solution. One CI service or another for each platform should be sufficient. I doubt the Ubuntu 20.04 image building failures have anything to do with CircleCI in particular, that's just where we happen to be trying to test Ubuntu 20.04. If we want to move to GitHub Actions, fine (not fine 😉) - but let's not duplicate stuff in an ad hoc fashion. |
No, it is not. :-) Just laying out some complaints about codecov. Take #779, for another example: there's nothing really objectionable about test coverage of that PR, but
Good idea! I will report some results. |
I must also admit that I have found In the case of #779, "90.90% of diff hit (target 91.48%)" isn't that much... |
A possibly ignorable problem I noticed when reporting to codecov:
But |
Ha cool. I wonder what kind of coverage report it thinks .el files are. |
Doing this so that we can compare results with the previous codecov.io report, which used coverage 5.2.1.
I uploaded coverage some coverage data from this branch to codecov.io and coveralls.io:
|
When I submitted that locally-generated coverage 4.5.4 report, codecov produced a URL. That URL turned up a blank page, presumably because it encountered a report without a corresponding commit in the repository. So I pushed f558f80. That seems to have turned Maybe some of those knobs could be turned, so that what looks like rounding errors should not produce so much noise. |
Trying out some codecov configuration in this branch. If this works as expected, I will submit them as a separate PR. |
Where does this PR currently stand? |
Upgrading coverage itself seems to be harmless: About switching to coveralls (which was originally the eventual goal of this PR), I am uncertain. Perhaps PR #789 that changes some codecov defaults will work well enough for us. I added those changes to this PR branch first though, so this here is a mess. I think I will close this PR and start afresh. |
Made a PR to fix this: codecov/codecov-python/pull/297 |
For 3384. Motivation is to try and see if coveralls.io works better for us; see 3385 for relevant ticket.