__init__.py is suddenly being ignored in reports uploaded to codecov. I still get coverage for these files in the locally generated coverage output. It’s only when I view the report online that these files seem be ignored.
This started happening about 6 days ago following this totally innocuous commit on my repo:
I don’t have any
codecov.yml file. I do have a
.coveragerc file though if that matters:
branch = True
source = src/spellbot
ignore_errors = True
pragma: no cover
if __name__ == .__main__.:
@lexicalunit, I’m guessing this might be a path fixing issue. Could you try adding something like
@tom, I don’t see a
fixes configuration property documented here:
Did you mean that I should put that somewhere else other than
.coveragerc? If so, where?
Ah, I see it’s a setting in
codecov.yml. I don’t actually have that file. Do I just add it to the root of my repository? I guess I can try that.
@tom Ok I added that file with those contents to the root of my repository: https://github.com/lexicalunit/spellbot/commit/0a95520d1422026e91d6bf2b08ab4b7e727556b3
But the report is still ignoring
Please note that codecov started ignoring this file randomly about 6 days ago after no changes on my part so I’m pretty sure it’s not something I changed. This used to work fine. Something broke or changed on codecov’s side of things for sure.
@lexicalunit, this is my fault, it should read
It is quite strange that it stopped working 6 days ago, I don’t see anything in particular that should signal a shift. If that doesn’t work, let me know, and I can dig in a bit deeper.
Posting there here so it won’t get lost.
Some additional info about the issue:
05:54PM - 10 Aug 20 UTC
06:05PM - 10 Aug 20 UTC
Starting a little over a week ago __init__.py files are removed from codecov reporting.
Output from my test suite
Showing that __init__.py is...
@lexicalunit, would you be able to try
Uh… weird. I am now getting some weird error on my reports.
The error is: “Unable to find report content in the storage archive”
Not sure why this is suddenly happening or if it’s at all related to this change?