Skip to content
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: Have codecov collect on all platforms #1381

Merged
merged 3 commits into from Oct 11, 2019
Merged

Conversation

aragilar
Copy link
Member

@aragilar aragilar commented Oct 6, 2019

This adds enforcement of codecov success (which if it's a problem I'll drop, but hopefully not), and combines the coverage explicitly (so hopefully codecov will just work on all platforms now...).

Closes #1358 (now).

@aragilar aragilar force-pushed the fix-codecov branch 2 times, most recently from 1cff747 to 1f00af9 Compare October 6, 2019 11:13
@aragilar aragilar changed the title CI: Have codecov collect on all platforms WIP, CI: Have codecov collect on all platforms Oct 6, 2019
@aragilar aragilar changed the title WIP, CI: Have codecov collect on all platforms WIP: CI: Have codecov collect on all platforms Oct 6, 2019
@aragilar aragilar force-pushed the fix-codecov branch 4 times, most recently from af63121 to 319cb97 Compare October 6, 2019 13:36
@codecov
Copy link

codecov bot commented Oct 7, 2019

Codecov Report

Merging #1381 into master will increase coverage by 0.29%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1381      +/-   ##
==========================================
+ Coverage   84.28%   84.57%   +0.29%     
==========================================
  Files          17       17              
  Lines        2049     2049              
==========================================
+ Hits         1727     1733       +6     
+ Misses        322      316       -6
Impacted Files Coverage Δ
h5py/_hl/dataset.py 87.91% <0%> (+0.21%) ⬆️
h5py/_hl/compat.py 83.33% <0%> (+27.77%) ⬆️

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 7261bc4...1220306. Read the comment docs.

@aragilar aragilar changed the title WIP: CI: Have codecov collect on all platforms CI: Have codecov collect on all platforms Oct 7, 2019
@aragilar
Copy link
Member Author

aragilar commented Oct 7, 2019

Assuming this passes on all systems, this should be ready to merge. Closes #1358. This also fixes appveyor, so our overall overage should go up (given we should have coverage on Windows systems).

@takluyver
Copy link
Member

Is it feasible to just call coverage combine ... from the CI configuration before invoking codecov, rather than maintaining our own wrapper script to upload coverage?

@takluyver
Copy link
Member

Also, while we're looking at coverage stuff: would you be OK with setting a threshold, e.g. 0.5%, in codecov config? If I understand correctly, this would let coverage drop by that much without giving the PR a red cross. It's been annoying me that even tiny coverage drops (e.g. from removing some tested code) make it look like CI has failed.

@aragilar
Copy link
Member Author

aragilar commented Oct 7, 2019

Codecov seems to have real issues finding the files on Windows (which is why I wrote that script in python to be cross platform), which is why I wrote that script. I suspect there's some issue with how the python codecov script handles file paths internally, and given we'd need to wait for any patch to be merged (there's still a patch for collecting data on azure waiting to be merged on their system - codecov/codecov-python#194), I'd rather keep the script until codecov properly supports azure with windows. I did think about moving to coveralls (in the hope of having something "just work") but it looks like their azure support is no better (and their python support worse)...

I'll add the codecov.yml increasing the threshold, it annoys me also.

@takluyver
Copy link
Member

OK, fair enough. Is it possible that we're waiting for a fix I already got merged there to be released? codecov/codecov-python#202

@aragilar
Copy link
Member Author

Yeah, it looks like we're waiting on your fix to codecov (I notice the coverage upload worked this time, even though the changes should have made no difference...).

@takluyver takluyver merged commit 29ddf6c into h5py:master Oct 11, 2019
@aragilar aragilar deleted the fix-codecov branch October 13, 2019 05:58
@takluyver takluyver added this to the 3.0 milestone May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Azure not uploading to codecov
2 participants