As far as I can tell the tool does not respect the fixes in the codecov.yml file. Theirs no reference to the fixes key in the YAML file in the code, and seems to not be doing anything locally. I walked through it with a debugger and don’t see any spot where it does that.
Please provide which CI/CD you are using or a link to the build where coverage is being uploaded.
Python uploader, this is a bug/feature request in the tool.
It’s hard to describe, but lets sat I have a .coverage sqlite3 db with the following information:
SQLite version 3.31.1 2020-01-27 19:55:54
Enter “.help” for usage hints.
sqlite> select path from file;
I then provide a .codecov.yml file:
- “workspace/::” # reduce root e.g., “workspace/path/” => “path/”
I then run the codecov tool version 2.1.11
python3.8 -m codecov --dump
And examine the coverage.xml:
I would image that the fixups are performed on the client side to reduce server load.But they don’t seem to be performed. My coverage reports are being uploaded but not displayed, and I cant even access the archived version. One of the suggested fixes was a fixups file.
So I placed this file in the project root:
- fixes: “workspace/::” # reduce root e.g., “before/path/” => “path/”
Using strace and debugger, I could see that codecov python tooling was reading the YAML file. However, I could see no method of fixups being applied to the paths as it processed the report.
Expected the uploaded report to have the leading workspace/ stripped from the coverage.xml