# Coverage report not showing any "green" lines (executed code) on app.codecov.io but works on codecov.io

**URL:** <https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685>\
**Category:** Support\
**Tags:** github\
**Created:** [March 26, 2021, 10:54am UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685 "2021-03-26T10:54:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![fingolfin](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fingolfin/32/274_2.png) [@fingolfin](https://community.codecov.com/u/fingolfin)\
**Post date:** [March 26, 2021, 10:54am UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/1 "2021-03-26T10:54:41Z")

</div>

### Description

A file coverage report on the new [app.codecov.io](http://app.codecov.io) is not not showing any “green” lines, i.e., not marking any lines as “code that is being covered”, despite there being hundreds; it works in another view of the same data on the old [codecov.io](http://codecov.io)

### Commit SHAs

E.g. ff4358f9ab0d01e8e194b2651d62ee6bbd985fed

### Repository

> **[GitHub - gap-system/gap: Main development repository for GAP - Groups,...](https://github.com/gap-system/gap/)**
>
> Main development repository for GAP - Groups, Algorithms, Programming, a System for Computational Discrete Algebra

### CI/CD or Build URL

> <https://github.com/gap-system/gap/pull/4346/checks>
>
> See the discussion at https://github.com/gap-system/gap/pull/4342 for details.
> …
> Not sure if this will work, we'll see.

### Uploader

We are using the bash uploader, i.e., [https://codecov.io/bash](https://codecov.io/bash)

### Codecov Output

If you really need this, I guess we can extract it from the GitHub Action CI logs above (but there are like … 18 or so ?)

### Expected Results

Code which is executed should be marked with green lines; code not executed with red lines; non-code stays white. As is the case on e.g. [Codecov](https://codecov.io/gh/gap-system/gap/src/ff4358f9ab0d01e8e194b2651d62ee6bbd985fed/src/io.c)

### Actual Results

Looking at [Codecov](https://app.codecov.io/gh/gap-system/gap/compare/4346/tree/src/io.c) there are no green lines, only a couple red ones – however, that code is really being executed: For starters in a few places like [line 498](https://app.codecov.io/gh/gap-system/gap/compare/4346/tree/src/io.c#D1L498) there are these little green circles with a hover tool tip saying “this line appeared in 4 coverage reports”, despite that line being shown as white. Also if I directly go to the same page but now for the commit, not the PR (i.e. [Codecov](https://codecov.io/gh/gap-system/gap/commit/ff4358f9ab0d01e8e194b2651d62ee6bbd985fed/)) then I do get those missing green lines. Note how that URL is on [codecov.io](http://codecov.io) while the broken one is on [app.codecov.io](http://app.codecov.io)

### Additional Information

None.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [March 29, 2021, 9:49pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/2 "2021-03-29T21:49:57Z")

</div>

Hmmm @fingolfin, I think something strange happened through your CI.

These are the [commits](https://app.codecov.io/gh/gap-system/gap/compare/4346/commits) for that PR. You’ll notice the most recent [commit](https://codecov.io/gh/gap-system/gap/commit/6d1762a8247ca7ae561f93209721c51cf4e2443e/build) is only showing 4 builds. It also is showing that this commits was deleted or rebased on. For reference, a previous [commit](https://codecov.io/gh/gap-system/gap/commit/ff4358f9ab0d01e8e194b2651d62ee6bbd985fed/build) had 8 uploads to Codecov.

---

<div class="post-metadata">

**Author:** ![fingolfin](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fingolfin/32/274_2.png) [@fingolfin](https://community.codecov.com/u/fingolfin)\
**Post date:** [March 30, 2021, 10:29am UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/3 "2021-03-30T10:29:54Z")

</div>

Hmm, actually, the “most recent” commit was not most recent, so I ignored it, considering it yet another fluke in the codecov UI (to which I’ve become quite used over the years, so I don’t really think about them anymore). And yeah, something weird is going on, because a full CI will upload more like 15 build reports, see e.g. [Code coverage done right.](https://codecov.io/gh/gap-system/gap/commit/5f480731562eccab030802b5bdf2c8051d368c2e/build)

But whether it is 4, 8 or 15 reports: isn’t it still weird that Codecov shows _no_ code executed code lines? Something is really weird here.

BTW, I see many oddities with codecov all the time. E.g on [another PR](https://github.com/gap-system/gap/pull/4339) it reports a massive coverage drop that I can’t explain at all. I know that these things often are fixed by re-running the CI, though. I tried to see if [Codecov](https://app.codecov.io/gh/gap-system/gap/compare/4339/tree/src/io.c) there works better, but it just shows me a spin wheel "forever"

 ![Screenshot 2021-03-30 at 12.29.45](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/5/53d8dcfa998415a5286247798b63f7d327e91151.png)

Anyway, I’ve just rebased that PR and triggered a full rebuild for it this way, let’s wait and see if that helps.

---

<div class="post-metadata">

**Author:** ![fingolfin](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fingolfin/32/274_2.png) [@fingolfin](https://community.codecov.com/u/fingolfin)\
**Post date:** [March 30, 2021, 12:10pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/4 "2021-03-30T12:10:38Z")

</div>

Latest commit (the automatic merge commit created by GitHub) is [this one](https://codecov.io/gh/gap-system/gap/commit/23118a94bef64a391c008d8b8f2a6edc386a22ae) and it has 14 build results uploaded as I write this. But [the PR specific file view of io.c](https://app.codecov.io/gh/gap-system/gap/compare/4346/tree/src/io.c) appears to still be bogus, albeit in a different way (it now has both red and green lines, but they cover a seemingly random subset of lines). While [the commit specific file view of io.c](https://codecov.io/gh/gap-system/gap/src/23118a94bef64a391c008d8b8f2a6edc386a22ae/src/io.c) seems fine (well, modulo [the issue I describe in another post](https://community.codecov.com/t/2686)).

I note that one is on the app. subdomain of codecov, the other on the top domain, so maybe this is a matter of the new versus old website code?

---

<div class="post-metadata">

**Author:** ![fingolfin](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fingolfin/32/274_2.png) [@fingolfin](https://community.codecov.com/u/fingolfin)\
**Post date:** [March 31, 2021, 8:39am UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/5 "2021-03-31T08:39:53Z")

</div>

I just observed a similar problem on a completely different project, even using a different programming language (Julia). The CI report for [this GitHub pull request](https://github.com/oscar-system/Oscar.jl/pull/344) reports increased coverage. Looking at the [PR specific file coverage report for `mpoly.jl`](https://app.codecov.io/gh/oscar-system/Oscar.jl/compare/344/tree/src/Rings/mpoly.jl) (or fo I also only see

- white lines
- red lines
- lines that changed from red to green
- lines marked with a green circle but otherwise white (but only a few of them)

But no purely green lines, even though I know they must be there; and indeed, the lines with the green circles should be green (but also many more). This screen shot might illustrate the issue. Note that this is on `app.codecov.io` once again.

 ![Screenshot 2021-03-31 at 10.38.38](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/7/788f92a322db2945c738d88347178cac26d8eba6.png)

I then went to the commit status page on Codecov, and searched for the relevant file there and ended up at this [commit specific file coverage report for `mpoly.jl`](https://codecov.io/gh/oscar-system/Oscar.jl/src/51c75c0f957a625d4dee7944ba353442ffdeb8d7/src/Rings/mpoly.jl) – note that it is on `codecov.io`, the old site. Here is a screenshot from the same function; it looks reasonable here.

 ![Screenshot 2021-03-31 at 10.39.11](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/c/c710c6ea60a25a5622318e3237072ca956996412.png)

Note how there are green lines; and more green circles.

My impression thus is quite strongly that this is a bug on the “new” site.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [April 21, 2021, 3:56pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/6 "2021-04-21T15:56:46Z")

</div>

@fingolfin, we made some changes to the commit details page that should have fixed this. I see on both versions of the site the 2nd screenshot you posted. Are you still seeing a difference?

---

<div class="post-metadata">

**Author:** ![fingolfin](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fingolfin/32/274_2.png) [@fingolfin](https://community.codecov.com/u/fingolfin)\
**Post date:** [April 22, 2021, 12:21am UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/7 "2021-04-22T00:21:19Z")

</div>

@tom unfortunately I see no change. Both [on the page from my original report](https://app.codecov.io/gh/gap-system/gap/compare/4346/tree/src/io.c) but also for [the same file in a more recent (from today) PR](https://app.codecov.io/gh/gap-system/gap/compare/4346/tree/src/io.c).

It still looks like this:

 ![Screenshot 2021-04-22 at 02.19.43](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/4/41f13ff0e10320ab5d5f7728013694489903f133.png)

While on the old site, looking at [a commit specific file report](https://codecov.io/gh/gap-system/gap/src/ff4358f9ab0d01e8e194b2651d62ee6bbd985fed/src/io.c) (again, from my original issue report), I see this:

 ![Screenshot 2021-04-22 at 02.21.06](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/0/08a8e2a44ef1d37dfb6b1e73e7d62db17089ed62.png)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [April 27, 2021, 1:24pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/8 "2021-04-27T13:24:23Z")

</div>

Thanks @fingolfin, I’ll ping the product team again here.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [August 27, 2021, 1:56pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/9 "2021-08-27T13:56:16Z")

</div>

@fingolfin we’ve been working on updating our UI to incorporate the above changes, but I just wanted to circle back and see if this was still an issue. If so, do you have a more recent instance of the bug?

---

<div class="post-metadata">

**Author:** ![fingolfin](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/fingolfin/32/274_2.png) [@fingolfin](https://community.codecov.com/u/fingolfin)\
**Post date:** [August 27, 2021, 10:49pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/10 "2021-08-27T22:49:29Z")

</div>

Still happens exactly the same way.

Bad: [Codecov](https://app.codecov.io/gh/gap-system/gap/compare/4638/tree/src/io.c)

Good: [Codecov](https://codecov.io/gh/gap-system/gap/src/master/src/io.c)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [September 16, 2022, 3:09pm UTC](https://community.codecov.com/t/coverage-report-not-showing-any-green-lines-executed-code-on-app-codecov-io-but-works-on-codecov-io/2685/11 "2022-09-16T15:09:49Z")

</div>

@fingolfin it’s obviously been a long time and our UI has changed since last year. I wanted to just circle back because I believe this has been resolved looking at the latest on this [file](https://app.codecov.io/gh/gap-system/gap/blob/master/src/io.c)
