-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
TST: Integrate codecov testing #11567
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
LGTM failure looks unrelated. |
I'm +1 to adding |
The LGTM failure is a connection problem affecting all the recent PRs and can be ignored. @alyssaq When you are done, please squash all the commits into one. |
For numpy specifically, adding gcov support would be useful -- needs adding the Can be done later in separate PR, I guess though. |
e225f81
to
52f2d05
Compare
Codecov Report
@@ Coverage Diff @@
## master #11567 +/- ##
=========================================
Coverage ? 85.7%
=========================================
Files ? 327
Lines ? 81965
Branches ? 0
=========================================
Hits ? 70246
Misses ? 11719
Partials ? 0 Continue to review full report at Codecov.
|
I'd suggest turning the codecov comment off in the config (see .codecov.yml in scipy for how), its not useful
information. The status icon and the link it has is enough. (I already get
hundred github mails per day.)
su 15. heinäkuuta 2018 klo 7.42 Codecov <notifications@github.com>
kirjoitti:
… Codecov <https://codecov.io/gh/numpy/numpy/pull/11567?src=pr&el=h1> Report
❗️ No coverage uploaded for pull request base ***@***.***). Click
here to learn what that means
<https://docs.codecov.io/docs/error-reference#section-missing-base-commit>
.
The diff coverage is 0%.
[image: Impacted file tree graph]
<https://codecov.io/gh/numpy/numpy/pull/11567?src=pr&el=tree>
@@ Coverage Diff @@## master #11567 +/- ##
=========================================
Coverage ? 85.7%
=========================================
Files ? 327
Lines ? 81965
Branches ? 0
=========================================
Hits ? 70246
Misses ? 11719
Partials ? 0
Impacted Files
<https://codecov.io/gh/numpy/numpy/pull/11567?src=pr&el=tree> Coverage Δ
numpy/_pytesttester.py
<https://codecov.io/gh/numpy/numpy/pull/11567/diff?src=pr&el=tree#diff-bnVtcHkvX3B5dGVzdHRlc3Rlci5weQ==> 19.56%
<0%> (ø)
------------------------------
Continue to review full report at Codecov
<https://codecov.io/gh/numpy/numpy/pull/11567?src=pr&el=continue>.
*Legend* - Click here to learn more
<https://docs.codecov.io/docs/codecov-delta>
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov
<https://codecov.io/gh/numpy/numpy/pull/11567?src=pr&el=footer>. Last
update a32749e...52f2d05
<https://codecov.io/gh/numpy/numpy/pull/11567?src=pr&el=lastupdated>.
Read the comment docs <https://docs.codecov.io/docs/pull-request-comments>
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11567 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AACI5ltgCoKeUsr8M3l-OTpAe7n3ETCrks5uGsuxgaJpZM4VP6XY>
.
|
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.
Looks like the coverage of Python files is being properly reported from this PR via codecov now (click through the link to take a look).
The landing page / README from the PR branch is properly displaying the codecov badge with % coverage.
Based on reviewer comments here, it looks like the main thing this PR needs now is the addition of codecov.yml
with comment: false
set so we don't get spammed.
It looks like C-level line coverage isn't being reported just yet, but as noted above this likely requires the appropriate gcc compiler flags. One thought here--will that eventually require a separate job on the CI matrix so that the full Python 3.6 CI job / tests with "normal" compiler flags isn't confounded with the coverage compiler settings?
Ive added codecov.yaml with |
The |
Ok. The |
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 looks like most reviewer comments have been addressed, as long as people are ok with adding the C coverage stuff in a later PR.
I have one remaining suggestion -- the file codecov.yaml
in this PR should probably be renamed to one of the two officially supported file names--basically just remove the a
in yaml
extension to be safe for auto-detection.
@tylerjereddy Thanks for spotting that! Ive renamed it to |
Both |
Yes, from the codecov FAQ:
|
Mind, I would almost prefer the unhidden alternative, but it would be best to be consistent. |
|
||
if [ -n "$RUN_COVERAGE" ]; then | ||
# Upload coverage files to codecov | ||
bash <(curl -s https://codecov.io/bash) -X gcov -X coveragepy |
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.
@tylerjereddy Is this preferred over installing codecov
from pip?
According to codecov’s latest docs, they recommend the bash uploader as the “uploader to rule them all” |
Great, thanks for clarifying! |
This looks ready to merge and there's an approving review from a core dev. The commit message might benefit from matching our documented standard for i.e., prefixing with |
Thanks @alyssaq . |
Didn't seem to turn the codecov comment off, see gh-11601 |
@pv That PR (and the other recent PR codecov comment bot "victims") appear not to be rebased on the lastest master branch, so they naturally don't have the Presumably the comment spam will gradually disappear as people start to rebase before opening PRs. At least, that's my theory--seems sensible I think given that we match the official docs for disabling comments & do the same thing as SciPy in this regard. |
Added
RUN_COVERAGE
flag to specify whether to run code coverage and passed--cov-report=xml
to pytest to output the code coverage report in XML. Report is uploaded to the codecov service.I had to ignore depreciation warnings from virtualenv as it was erroring the tests in python3.6. Its still an open issue: pypa/virtualenv#1120
Part of scipy2018 code sprint 🐍