-
Notifications
You must be signed in to change notification settings - Fork 463
Fix OSX builds on Travis CI #444
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
Codecov Report
@@ Coverage Diff @@
## master #444 +/- ##
==========================================
- Coverage 83.24% 81.86% -1.39%
==========================================
Files 1808 1863 +55
Lines 170229 181062 +10833
==========================================
+ Hits 141713 148229 +6516
- Misses 28516 32833 +4317
Continue to review full report at Codecov.
|
Not sure I understand the codecov failure here, in code not touched by the patch, or is it simply that the Travis jobs have not run to completion for years ? |
I am confused by the codecov report. I think it ran quite recently. Not sure why we are down at 81.86%. I would not worry about it then. Maybe they changed their algorithm. |
I must admit I know too little about Codecov, at least the Codecov-patch seems to be satisfied that the PR itself does not change coverage. |
@thomasrockhu Care to help us a bit here? |
Sure @ilayn. TL;DR The HEAD commit has two coverage reports including an OSX build which contains more coverage information, while the base commit only has the Linux report So you are right, Codecov received coverage reports quite recently. You can view the commits here. To investigate the coverage drop, we can view the coverage reports uploaded to Codecov between the base and the HEAD In order to help show the coverage changes are coming from the coverage reports, I'm just going to focus on line 103 without coverage and line 114 with coverage. So let's take a look at the base commit to see what is happening first. Looking at the file diff I notice that lines 103 and 114 don't have coverage supplied: I can confirm this is true by looking at the uploaded coverage report for this commit:
Going to the HEAD commit, I can look at its file diff, I see that line 103 is uncovered and line 114 is covered. This matches up with the uploaded coverage reports (note there are two coverage reports) The most common (and 9 times out of 10) reason for changes like this are idempotent tests, coverage reports failing to upload, or CI's failing (which often results in the Codecov step not running). In this case, we have another build running which does not appear in the base commit. This is the OSX build. I would investigate why it did not run in the base commit. The Codecov-patch is the coverage for new code added or changed. So it tells you of the code introduced, what is the coverage on it? This is useful for repositories that are targeting a general increase in coverage for a project. The Codecov-project is the overall coverage for the entire repository. |
So in short this is a consequence of the CI job failing before my fix for it (that triggered this question) ? |
@martin-frbg seems like it |
Thanks, seems I need to try harder to really break something here :) |
Fix OSX builds on Travis CI
gcc9 comes already installed now, upgrade it to gcc10