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

🧪 Collect Cython coverage in CI #961

Merged
merged 2 commits into from Nov 23, 2023

Conversation

webknjaz
Copy link
Member

$sbj.

@webknjaz webknjaz force-pushed the maintenance/gha-cython-coverage branch 3 times, most recently from b8e3635 to 6ff8073 Compare November 23, 2023 04:25
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (777acc9) 99.74% compared to head (1a126c6) 97.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #961      +/-   ##
==========================================
- Coverage   99.74%   97.82%   -1.92%     
==========================================
  Files           4        5       +1     
  Lines         772     1012     +240     
  Branches      219      219              
==========================================
+ Hits          770      990     +220     
- Misses          2       22      +20     
Flag Coverage Δ
unit 97.72% <ø> (-1.89%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@webknjaz webknjaz force-pushed the maintenance/gha-cython-coverage branch from 6ff8073 to 8667bf4 Compare November 23, 2023 14:59
webknjaz added a commit to webknjaz/yarl that referenced this pull request Nov 23, 2023
@webknjaz webknjaz self-assigned this Nov 23, 2023
@webknjaz
Copy link
Member Author

@Dreamsorcerer
Copy link
Member

Yep, nice.

@webknjaz
Copy link
Member Author

PyPy is failing because coveragepy loads the cython plugin and emits a warning: nedbat/coveragepy#1702. I think I'll just stick a sed in there...

webknjaz added a commit to webknjaz/yarl that referenced this pull request Nov 23, 2023
@webknjaz webknjaz force-pushed the maintenance/gha-cython-coverage branch from 134b8d6 to baade0c Compare November 23, 2023 16:34
webknjaz added a commit to webknjaz/yarl that referenced this pull request Nov 23, 2023
@webknjaz webknjaz force-pushed the maintenance/gha-cython-coverage branch from baade0c to d3f9460 Compare November 23, 2023 17:02
@webknjaz
Copy link
Member Author

Postponing merging since Coverage.py is unable to map non-editable install lines to the source: it reports 0 lines and 100% coverage. Need to investigate.

@Dreamsorcerer
Copy link
Member

While I have your attention, are you happy with adding bdraco to committers?
aio-libs/aiohttp#7865 (comment)

@webknjaz
Copy link
Member Author

While I have your attention, are you happy with adding bdraco to committers? aio-libs/aiohttp#7865 (comment)

Yeah, I meant to respond. Sorry. I'm all for it! Could you make a separate issue for transparency, though? Maybe, tag some active folks across the org? @mjpieters somes to mind. Here are the previous examples: https://github.com/aio-libs/aiohttp/issues?q=is%3Aissue+sort%3Aupdated-desc+Nominate.

@webknjaz webknjaz force-pushed the maintenance/gha-cython-coverage branch from d3f9460 to 1a126c6 Compare November 23, 2023 18:47
@webknjaz
Copy link
Member Author

Apparently, I forgot to pass the same cython directives to the bare cython call as I set in the build backend.

@webknjaz webknjaz merged commit 0211310 into aio-libs:master Nov 23, 2023
43 of 45 checks passed
@webknjaz webknjaz deleted the maintenance/gha-cython-coverage branch November 23, 2023 19:08
@webknjaz
Copy link
Member Author

FTR this change revealed that parts of the tests aren't being executed.

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.

None yet

2 participants