-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
ci: revisit coverage reporting #4865
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4865 +/- ##
==========================================
+ Coverage 94.48% 95.71% +1.23%
==========================================
Files 113 113
Lines 25173 25172 -1
Branches 2499 2498 -1
==========================================
+ Hits 23784 24093 +309
+ Misses 1059 764 -295
+ Partials 330 315 -15
Continue to review full report at Codecov.
|
For reference: https://codecov.io/gh/pytest-dev/pytest/compare/ee626743...revisit-cov-new/changes to see what is still missing (ee62674 is before the coverage dropped). |
ok with 6942a2a: https://travis-ci.org/pytest-dev/pytest/builds/500432749#L320:
And bad again when using "include" again:
So apparently #4841 broke it. |
5857a8f
to
40479d7
Compare
Still good now with #4867 included here:
|
fc3257d
to
38ce5fa
Compare
@nicoddemus (I plan to push a test commit next to run all jobs from master with coverage to see what the difference would be.) |
I think keeping them to a minimal is good, coverage does increase the job runtime significantly. |
I've meant to keep the actual jobs at a minimum, i.e. run them all with coverage, but only the necessary ones (to have full/max coverage) - very much like it is here currently. |
As long as we run over all Python versions we are supposed to support, the relevant variations with (The last time I took a look I missed |
So this is back on track according to https://codecov.io/gh/pytest-dev/pytest/compare/ee626743...38ce5fa/changes (comparing ee62674 to 38ce5fa):
TODO:
|
Also across platforms? Since Azure runs 10 jobs in parallel I would focus on putting most of them there. |
Yes, I think that's important; we have often caught bugs this way. |
Here are the changes for full coverage: https://codecov.io/gh/pytest-dev/pytest/compare/38ce5fa...eb54cd4/changes. Two are about pypy, which we do not want in general - for this it might make sense to have single job with coverage only targeting those. The other diffs should be fixed by what I've just pushed, i.e. there is no (coverage) benefit from adding more jobs. |
How so? I would assume that py35 fails both on Windows and Linux if it is a non-platform issue, and if it is a platform related bug it would fail on either of them (maybe with a different Python then). But I agree that it is good to have a good/clear test matrix in general - I think my motivation is mostly based on if doing multiple PRs in parallel and having to wait on them. But to be honest, it does not really make sense to run py37 with/without xdist on windows/linux for example. |
Hmm yes, that's why it is important to run py35 in both Windows and Linux. Not sure, I think we are agreeing in the end. 😁 |
Not really.. what I've meant that the platform related bug would not be tight to a Python version, and that a single failure is OK/enough - i.e. a py35 issue does not have to fail on Travis and Azure. Will have to bring the jobs back - currently wondering why the codecov status is missing. |
This comment has been minimized.
This comment has been minimized.
@nicoddemus I think it is good, and would like to squash and rebase it after #4878, and get this soon into features then also. |
Squashed. |
This brings coverage back that got missing with 9dcd6f2. Continuation of pytest-dev#4839 / pytest-dev#4846.
Travis is very similar: T=Travis, TC=Travis with coverage
Full table with Azure, A=Azure, AC=Azure with coverage:
|
|
\o/ |
This should bring coverage back that got missing with 9dcd6f2.
Continuation of #4839 / #4846.