I have a file src/generate.py which is being ignored by codecov for no good reason (I can see it in the coverage.xml file uploaded to codecov).
By chance I discovered the reason for this is that I have another file named demo/generate.py (the demo directory is not included in coverage and this file is not references in coverage.xml).
When I renamed demo/generate.py -> demo/run.py, coverage for src/generate.py started showing.
I noticed this when looking at the “Files” tab on a commit and seeing the files listed under “Other files ignored by Codecov”
It looks like you have some broken logic around deciding which files to ignore.
(unfortunately the repo is private, so I can’t share the exact files and changes)
But surely quicker to create your own repo and check for the problem?
Yes, but I wanted to make sure that any fixes we make also fix your use case. This is a particularly complicated fix on our side and it’s going to take a little bit of time. I’ll keep this thread updated.
It was fixed in c47e96a1d9d86ee8c3e9398acd5ebb07a9d5746a
Unfortunately, that commit SHA is a little too old for our logs. Would you be able to DM me another, or at least the full repo name?
Hi @Samyak, unfortunately, this will require a significant amount of work from our side to refactor. If I had to guess, I would say a month or two, but I really can’t say with real certainty.
Hi @Samyak, we made some changes here an added a -i flag that might help. Would you be able to push a new commit and we can see how it might work for your situation?
Hi @tom, where do I specify this -i flag? I’m currently using the codecov GItHub action for uploading to codecov (source). I will try pushing a commit to a different branch for now.