Skip to content

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

Merged
merged 3 commits into from
Sep 17, 2020

Conversation

martin-frbg
Copy link
Collaborator

gcc9 comes already installed now, upgrade it to gcc10

@codecov
Copy link

codecov bot commented Sep 17, 2020

Codecov Report

Merging #444 into master will decrease coverage by 1.38%.
The diff coverage is n/a.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
SRC/zlat2c.f 71.42% <0.00%> (-16.81%) ⬇️
SRC/lsamen.f 90.90% <0.00%> (-9.10%) ⬇️
SRC/clacp2.f 47.36% <0.00%> (-6.48%) ⬇️
SRC/zlacp2.f 47.36% <0.00%> (-6.48%) ⬇️
SRC/cpoequ.f 96.87% <0.00%> (-3.13%) ⬇️
SRC/dpoequ.f 96.87% <0.00%> (-3.13%) ⬇️
SRC/spoequ.f 96.87% <0.00%> (-3.13%) ⬇️
SRC/zpoequ.f 96.87% <0.00%> (-3.13%) ⬇️
SRC/cgeequ.f 97.05% <0.00%> (-2.95%) ⬇️
SRC/dgeequ.f 97.05% <0.00%> (-2.95%) ⬇️
... and 1185 more

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 0148a36...9861f27. Read the comment docs.

@martin-frbg
Copy link
Collaborator Author

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 ?

@langou
Copy link
Contributor

langou commented Sep 17, 2020

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.

@martin-frbg
Copy link
Collaborator Author

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.

@martin-frbg martin-frbg merged commit b4b56a5 into Reference-LAPACK:master Sep 17, 2020
@ilayn
Copy link
Contributor

ilayn commented Sep 17, 2020

@thomasrockhu Care to help us a bit here?

@thomasrockhu
Copy link

thomasrockhu commented Sep 17, 2020

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 lsamen.f. In the coverage diff, we see:

image

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:

image

I can confirm this is true by looking at the uploaded coverage report for this commit:

image
(note that there is no line 103 and 114)

Going to the HEAD commit, I can look at its file diff, I see that

image

line 103 is uncovered and line 114 is covered. This matches up with the uploaded coverage reports (note there are two coverage reports)
image

image

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.

@martin-frbg
Copy link
Collaborator Author

So in short this is a consequence of the CI job failing before my fix for it (that triggered this question) ?

@thomasrockhu
Copy link

@martin-frbg seems like it

@martin-frbg
Copy link
Collaborator Author

Thanks, seems I need to try harder to really break something here :)

christoph-conrads pushed a commit to christoph-conrads/lapack that referenced this pull request May 23, 2021
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.

4 participants