Repository navigation
TST: including C source line coverage for CI / codecov - #11610
Conversation
40dfe76 to
2bb9bf9
Compare
|
I think I'm stuck with Travis problems when compiling Any suggestions from the experienced NumPy devs? Strange things that sometimes have to be adjusted when playing with compiler flags? The error message is quite sensible, |
|
Setting LDFLAGS environment variable overrides default Python flags, see gh-11525, which probably is the cause for all problems. Finding out what the "default Python flags" are is somewhat complex and annoying, as you probably found out. This is the reason why in Scipy, the gcov setup is done by setting CC/CXX/F77/F90 compiler executables |
|
Of course, I'm wrong above, since the Scipy stanza for this reads You may be able to do it in an easier way by setting |
8cf898d to
64904dc
Compare
|
So, the CI is finally green and we can see the coverage report for C source files now. Looks like another 40,000 lines of code are tracked now, with about a 1 % drop from the pure Python cov report. I need to clean up a bit here still, and I'm somewhat concerned that I had to retrieve the above link from the CI job "terminal" in Travis rather than being able to click on the links at the bottom of the PR (maybe because this is the first activation for those new files?) to see the new C files with highlights. Other discussion point -- any concern about manipulating the "full coverage" CI job with coverage compiler flags (i.e., is it preferred to expand the matrix for a seperate C cov job or combining is ok?). |
combining seems fine to me. we already have a very large build matrix, and unless there's a reason to grow its size then it's better not to |
6950b38 to
654a4c0
Compare
|
I've removed debug code & cleaned up the commit history, but I'll leave the |
|
I've removed the |
For those like me who have not seen this before, it is pretty neat. @tylerjereddy took me through the results here, for example to see
|
654a4c0 to
057a762
Compare
|
Rebased on latest master & force pushed to make sure this plays well with the |
|
LGTM, any demurrers? |
|
Well, let's see how this goes... Thanks @tylerjereddy . |
|
Clicking through the badge on our main readme / landing page on github now shows the C source line coverage as well. |
|
It's missing some files though, see |
First attempt at trying to get C source line coverage reported via codecov; inspired by the SciPy approach to doing this, but will almost certainly fail initially due to some differences between the CI setup for the two projects.