# Codecov report – missing files

**URL:** <https://community.codecov.com/t/codecov-report-missing-files/1928>\
**Category:** Support\
**Created:** [August 28, 2020, 11:45am UTC](https://community.codecov.com/t/codecov-report-missing-files/1928 "2020-08-28T11:45:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![magdalena](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/magdalena/32/1433_2.png) [@magdalena](https://community.codecov.com/u/magdalena)\
**Post date:** [August 28, 2020, 11:45am UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/1 "2020-08-28T11:45:15Z")

</div>

### Description

We’ve been recently looking at our code coverage in more detail, and we’ve noticed there are several files in our subdirectories are missing.

For example files:  
eatclub/batcave/serializers.py  
eatclub/batcave/views.py

After looking through similar issues ([Missing files in codecov (but not in report) - #8 by tom](https://community.codecov.com/t/missing-files-in-codecov-but-not-in-report/825/8)), we’ve noticed that our coverage report doesn’t include the root “eatclub/” directory in its file paths, so we added:

```auto
fixes:
  - "::eatclub/"

```

to our `codecov.yaml` file.

However, this doesn’t seem to have fixed the problem – here’s a build on a commit which has updated `codecov.yaml` but the files are still missing in the report: [Codecov](https://codecov.io/gh/eatclub/web/commit/1bac5cc7f399910064b93a5ece565e03f976563b/build).  
We also tried to disable Codecov’s default path fixing, to no avail: [Codecov](https://codecov.io/gh/eatclub/web/commit/eb710f487248face7138c01854a3a6c955e17eb9/build)

### Repository

The repository is private.

### CI/CD

We’re using Jenkins.

### Uploader

We’re using the bash uploader.

### Commit SHAs

Updated codecov yaml: 38d425b237a58fb1ac3c5cce4ba3fbf6dfec32fa  
Updated codecov yaml with no default path fixing: a0c67245b01e079038fdd8b277095eb2473fb058

### Codecov YAML

```auto
codecov:
  branch: development
  disable_default_path_fixes: false
coverage:
  status:
    project: off
    patch:
      default:
        target: 100
        if_not_found: error
fixes:
  - "::eatclub/"

```

---

<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 31, 2020, 10:13pm UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/2 "2020-08-31T22:13:30Z")

</div>

Hi @magdalena, what happens if you try `batcave/::eatclub/batcave/`?

---

<div class="post-metadata">

**Author:** ![magdalena](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/magdalena/32/1433_2.png) [@magdalena](https://community.codecov.com/u/magdalena)\
**Post date:** [September 1, 2020, 3:42pm UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/3 "2020-09-01T15:42:56Z")

</div>

Hi Tom, thanks, that seems to be fixing the issue.

Is there any way to handle it on the root directory level?  
We have several directories in which this happens, so I need to manually cross-reference the report and CodeCov results to find discrepancies, and obviously this doesn’t scale well for large applications, and will need to be done manually when adding new directories.

---

<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 4, 2020, 5:50pm UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/4 "2020-09-04T17:50:52Z")

</div>

I haven’t tried it myself, but what if you did `./::eatclub/`?

---

<div class="post-metadata">

**Author:** ![magdalena](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/magdalena/32/1433_2.png) [@magdalena](https://community.codecov.com/u/magdalena)\
**Post date:** [September 7, 2020, 6:48pm UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/5 "2020-09-07T18:48:09Z")

</div>

@tom Sadly, that doesn’t work.

So far the only thing that worked for us was manually specifying it for the problematic directories, but it’s hard to say when there will be new directories with this issue.

---

<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 22, 2020, 3:10pm UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/6 "2020-09-22T15:10:38Z")

</div>

Hi @magdalena, unfortunately, I don’t have a solution for you here, but this is probably very irritating to have to do for every directory. I’ve followed this up with the product team to see what we can do in the future to productize. I’m going to mark this as the solution as it does solve for the issue, but I’ll post back here if we find a better solution.

---

<div class="post-metadata">

**Author:** ![jayqi](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jayqi](https://community.codecov.com/u/jayqi)\
**Post date:** [February 7, 2021, 6:04am UTC](https://community.codecov.com/t/codecov-report-missing-files/1928/9 "2021-02-07T06:04:16Z")

</div>

@magdalena @tom I recently also ran into this issue and was able to resolve it, and I think I have some insights on the problem. The main additional thing I had to do that hasn’t been mentioned in other discussion was that I **explicitly disabled the default path fixing**.

The repo and PR in which I dealt with this is [here](https://github.com/drivendataorg/erdantic/pull/10). Describing my observations in a little more detail:

Firstly, similar to the cases described in [#825 Missing files in codecov (but not in report)](https://community.codecov.com/t/missing-files-in-codecov-but-not-in-report/825), it was happening where the missing files shared names with other files in other subdirectories. It does seem like the automatic path resolution has some problem where it confuses files with the same name.

Secondly, adding the missing directory was needed. In my case, that was applying `"::erdantic/"`.

Thirdly, even when I had the correct manual fix applied, I still wasn’t seeing the missing files. My hypothesis is that the default path fixing was still happening and caused the filename aliasing issue. This was resolved when I added

```auto
codecov:
  disable_default_path_fixes: yes

```

As a note, I think the code snippet at the [bottom of this doc page](https://docs.codecov.io/docs/fixing-paths#disable-default-path-fixing) mistakenly says `false` instead of `true` or `yes.
