# Coverage for a specific file is shown line-by-line in commit view but not in Overview page

**URL:** <https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145>\
**Category:** Bug Fixes\
**Tags:** cpp, github\
**Created:** [August 19, 2021, 3:06pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145 "2021-08-19T15:06:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 19, 2021, 3:06pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/1 "2021-08-19T15:06:01Z")

</div>

### Description

I want to see the line-by-line coverage for the one covered file in `<repo-root>/tests` and it shows up exactly as expected when I’m looking at a [specific commit](https://codecov.io/gh/bcaddy/hydro-sandbox/src/511dc67ead98cfb6f8918c85057cc1c987effd30/tests/testingUtilities.cpp) (I love the UI by the way, great job). However when I try to view the same file from the [Overview page](https://app.codecov.io/gh/bcaddy/hydro-sandbox) it just says “No file found to compare.”.

So Codecov is clearly finding the file correctly since it works in the commit view but isn’t displaying it properly on the Overview page

### Commit SHAs

511dc67ead98cfb6f8918c85057cc1c987effd30

### Repository

[https://github.com/bcaddy/hydro-sandbox/tree/testing-prototype](https://github.com/bcaddy/hydro-sandbox/tree/testing-prototype)

### CI/CD or Build URL

[https://github.com/bcaddy/hydro-sandbox/actions/runs/1147405526](https://github.com/bcaddy/hydro-sandbox/actions/runs/1147405526)

### Uploader

GitHub Actions

### Codecov Output

One example of a set of three parallel jobs

```auto
Run codecov/codecov-action@v2
  with:
    files: ./tests/coverage_all.info
    flags: No-ifdefs
    name: codecov-upload
    fail_ci_if_error: true
    verbose: true
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (3094f05b76925427642be5d4bbde7fba202c82aab2b7d31fd32620d735b3be47 codecov)
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n codecov-upload -Q github-action-2.0.2 -Z -f ./tests/coverage_all.info -F No-ifdefs -v
[2021-08-19T14:50:50.033Z] ['info'] 
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/

  Codecov report uploader 0.1.0
[2021-08-19T14:50:50.040Z] ['info'] => Project root located at: /home/runner/work/hydro-sandbox/hydro-sandbox
[2021-08-19T14:50:50.042Z] ['info'] -> No token specified or token is empty
[2021-08-19T14:50:50.042Z] ['verbose'] Start of network processing...
[2021-08-19T14:50:50.042Z] ['verbose'] Searching for files in /home/runner/work/hydro-sandbox/hydro-sandbox
[2021-08-19T14:50:50.061Z] ['info'] Searching for coverage files...
[2021-08-19T14:50:50.071Z] ['info'] => Found 1 possible coverage files:
  ./tests/coverage_all.info
[2021-08-19T14:50:50.071Z] ['verbose'] End of network processing
[2021-08-19T14:50:50.071Z] ['info'] Processing ./tests/coverage_all.info...
[2021-08-19T14:50:50.076Z] ['info'] Detected GitHub Actions as the CI provider.
[2021-08-19T14:50:50.076Z] ['verbose'] -> Using the following env variables:
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_ACTION: __codecov_codecov-action
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_HEAD_REF: 
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_REF: refs/heads/testing-prototype
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_REPOSITORY: bcaddy/hydro-sandbox
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_RUN_ID: 1147405526
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_SERVER_URL: https://github.com
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_SHA: 511dc67ead98cfb6f8918c85057cc1c987effd30
[2021-08-19T14:50:50.076Z] ['verbose'] GITHUB_WORKFLOW: Build
[2021-08-19T14:50:50.077Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-2.0.2-uploader-0.1.0&token= ******* &branch=testing-prototype&build=1147405526&build_url=https%3A%2F%2Fgithub.com%2Fbcaddy%2Fhydro-sandbox%2Factions%2Fruns%2F1147405526&commit=511dc67ead98cfb6f8918c85057cc1c987effd30&job=Build&pr=&service=github-actions&slug=bcaddy/hydro-sandbox&name=codecov-upload&tag=&flags=No-ifdefs&parent=
[2021-08-19T14:50:50.077Z] ['verbose'] Passed token was 0 characters long
[2021-08-19T14:50:50.077Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-2.0.2-uploader-0.1.0&branch=testing-prototype&build=1147405526&build_url=https%3A%2F%2Fgithub.com%2Fbcaddy%2Fhydro-sandbox%2Factions%2Fruns%2F1147405526&commit=511dc67ead98cfb6f8918c85057cc1c987effd30&job=Build&pr=&service=github-actions&slug=bcaddy/hydro-sandbox&name=codecov-upload&tag=&flags=No-ifdefs&parent=
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
        X-Reduced-Redundancy: 'false'
[2021-08-19T14:50:50.494Z] ['verbose'] Returned upload url: https://codecov.io/github/bcaddy/hydro-sandbox/commit/511dc67ead98cfb6f8918c85057cc1c987effd30
https://storage.googleapis.com/codecov/v4/raw/2021-08-19/392418648B71D089219DEB14ACA555CF/511dc67ead98cfb6f8918c85057cc1c987effd30/fce3f71d-6608-43b6-bb19-418c49f5aacd.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210819%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210819T145050Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=5a6b9feef063fc67139e3dd0e7ecb37e8bb35ade0f0b5bed4966b98f4793d3ab
[2021-08-19T14:50:50.494Z] ['verbose'] https://storage.googleapis.com/codecov/v4/raw/2021-08-19/392418648B71D089219DEB14ACA555CF/511dc67ead98cfb6f8918c85057cc1c987effd30/fce3f71d-6608-43b6-bb19-418c49f5aacd.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210819%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210819T145050Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=5a6b9feef063fc67139e3dd0e7ecb37e8bb35ade0f0b5bed4966b98f4793d3ab
        Content-Type: 'text/plain'
        Content-Encoding: 'gzip'
[2021-08-19T14:50:50.494Z] ['info'] Uploading...
[2021-08-19T14:50:50.677Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/bcaddy/hydro-sandbox/commit/511dc67ead98cfb6f8918c85057cc1c987effd30"}

```

### Expected Results

I expect the file to show up with line by line coverage in the Overview mode as well

### Actual Results

The file is only available in the commit specific view

### Additional Information

Path fixing of any kind seems to have no effect. Having said that I don’t really understand the path fixing documentation so that might still be the problem.

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 19, 2021, 3:43pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/2 "2021-08-19T15:43:59Z")

</div>

This appears to be a bug that occurs only when there is a single covered file within a directory. I added some more covered files to `<repo-root>/tests` and now everything, including the original file, is showing as expected. Having this work around makes fixing this not critical for me but it would be nice to have it fixed.

---

<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 19, 2021, 4:25pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/3 "2021-08-19T16:25:11Z")

</div>

@bcaddy I think you had happened to hit an issue that we were hitting this morning with rate-limiting. Were you logged in when viewing this page?

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 19, 2021, 5:13pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/4 "2021-08-19T17:13:26Z")

</div>

@tom, I was logged in when encountering this issue. I also encountered the same issue last night around 4:30pm EST but I thought it was related to path fixing.

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 19, 2021, 6:31pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/5 "2021-08-19T18:31:43Z")

</div>

@tom, I reset my repo to only have one covered file in `<repo-root>/tests` and the issue came right back. I tried it on my main browser that I’m logged into Codecov on (Safari) and the issue is as I described earlier. On my second browser (Vivaldi) which is not logged into Codecov I can’t see the line-by-line coverage on any file in any view. Trying to open a specific file gives me this error

 ![Screen Shot 2021-08-19 at 14.31.12](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/b/b965bedf00d392fb462a8edd95b68b6f01618659.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:** [August 27, 2021, 1:51pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/6 "2021-08-27T13:51:19Z")

</div>

@bcaddy we made some changes to our frontend here, would you see if that has fixed your issue?

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 27, 2021, 2:40pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/7 "2021-08-27T14:40:51Z")

</div>

@tom, unfortunately it did not

---

<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 30, 2021, 12:46pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/8 "2021-08-30T12:46:31Z")

</div>

@bcaddy would you be able to point me to a URL for this?

---

<div class="post-metadata">

**Author:** ![bcaddy](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/bcaddy/32/2048_2.png) [@bcaddy](https://community.codecov.com/u/bcaddy)\
**Post date:** [August 30, 2021, 3:00pm UTC](https://community.codecov.com/t/coverage-for-a-specific-file-is-shown-line-by-line-in-commit-view-but-not-in-overview-page/3145/9 "2021-08-30T15:00:55Z")

</div>

@tom, I just checked and the UI has changed to show directories even when there’s a single file in that directory. With that change the issue has gone away. Maybe the earlier change fixed it and it just wasn’t cached properly for me?

Thanks for you help, I’ll close this ticket now
