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
ENH,WIP: Add support for including cython in coverage analysis #1004
base: master
Are you sure you want to change the base?
Conversation
f8cd9d9
to
55c153f
Compare
Has anyone worked on setting up coverage for the pure Python parts of h5py? |
55c153f
to
2357aaf
Compare
The test failure looks like a random thing - I saw a similar failure on a different job on #1132. |
Yep, I had appveyor re-run the test and it seemed to pass... |
👍 Do you want to rebase this now that #1160 is merged so we can check it's working correctly with codecov? Or merge it and try it out in master? |
2357aaf
to
75ebd0f
Compare
Rebased, let's see how it does. Aside, should we look at using something like https://bors.tech/ or https://mergify.io/ to run the tests on the final version before commiting the merge (does the meeseeksmachine bot do that I wonder)? |
If master has changed, usually a quick close/reopen of the pull request will rebuild the PR merged onto current master. I only suggested rebasing in this case because I want to see codecov compare it against the new 'base' commit. So I don't feel a great need to introduce more services - but I also don't have strong objections if you want to use them. |
Looks like something's not quite working:
|
I'm guessing that's because Cython gets installed in the test environment set up by tox, but not in the Travis environment where the coverage data is being processed. |
I've added Cython to the outer Travis/appveyor python interpreter, let's see if it now works. |
Coverage is getting uploaded again, but it doesn't appear to be measuring the Cython files. They're not showing up in the coverage reports in the log either. |
Codecov Report
@@ Coverage Diff @@
## master #1004 +/- ##
==========================================
- Coverage 84.28% 83.73% -0.55%
==========================================
Files 17 18 +1
Lines 2049 2146 +97
==========================================
+ Hits 1727 1797 +70
- Misses 322 349 +27
Continue to review full report at Codecov.
|
I forgot to actually specific that the tests should have Cython coverage (the envvar wasn't set), but testing this locally I get |
Update: Somehow, coverage is including the coverage of the Cython files, but not the metadata stating that the |
Bumping from the 2.10 milestone because this isn't a priority and we're not currently sure how to make it work. |
c3e2bfa
to
1e98bd5
Compare
If Cython coverage is requested, install the *pyx and *pxd files so that coverage can report on them.
1e98bd5
to
ec39fc4
Compare
Adds support for optionally building the h5py cython code with coverage support, WIP until coverage is setup for the rest of h5py.