Missing files in codecov (but not in report)

Description

Codecov is missing some of the files in my repo - but they do appear in the coverage report.

Notice how server.py and client.py are missing - but they show up on the report: https://codecov.io/codecov/v4/raw/2019-12-20/34749C3E1E6F8E0FD2B392F6B33CB864/2f2aa7bcdf794a57e132711f5e790e5d9b2bb7b5/acd4300b-d878-4196-b296-aa50f97fc396.txt

Repository

MoshiBin/ssdpy on github

Hey @MoshiBin – thanks for reaching out! I was not able to reproduce this bug / I do see these two files in your repo view:

https://codecov.io/gh/MoshiBin/ssdpy/tree/master/ssdpy/cli

Can you let me know if this is still an issue?

Jerrod

These aren’t the same files - there are “client.py” and “server.py” both in ssdpy/ and in ssdpy/cli/:

The ones outside of the cli folder aren’t in the coverage report

Hi @MoshiBin, apologies that you were not updated on this. We made a change in late January to fix this issue, can you check to see if this is still a problem?

I seem to be experiencing something similar on my repo:
https://codecov.io/gh/crim-ca/weaver

The file weaver/utils.py is missing for me although it clearly is in my coverage.xml report, whereas other utils.py files located at other level are present as expected.

(not found!) => Codecov
(available) => Codecov
(available) => Codecov

Is it possible that some paths are not correctly resolved (ie: they get mixed up with same name files at other levels)?

@tom I am seeing this issue as of today (2020-05-22T04:00:00Z), so this doesn’t seem related to the January changes.

The file getting ignored is available in the build:
https://codecov.io/codecov/v4/raw/2020-05-22/F30EF79C2304380A6469104F71A8547E/66f9db90691c4ea0f019e53cd4f563f9ea6b1ca6/72f0466e-0c4a-4dee-8ee4-5f07ae8640c5.txt
But is is not present in the listing:
https://codecov.io/gh/crim-ca/weaver/tree/66f9db90691c4ea0f019e53cd4f563f9ea6b1ca6/weaver

Hi @fmigneault, this looks like a path fixing issue. I’m going to take a stab and guess you’ll need to add this to a codecov.yml file

fixes:
  - "::weaver/"

Would you try that and see if it works?

Hi @tom

Using your suggestion, I went to the root of the cause and modified my setup.cfg to define source = ./ instead of source = weaver.
This solved it for me without adding codecov.yml file.

Thanks

1 Like