Description
I’ve got an xml file corresponding to my tests coverage and it’s complete.
But on codecov interface the values are different.
Is the upload can prune some value from the xml ?
Repository
CI/CD
Github Action.
Uploader
I use
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: coverage.xml
I can’t use
bash <(curl -s https://codecov.io/bash)
it’s not recognized into the Github Action.
To overcome this, I tried:
curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
./.codecov -f coverage.xml
But result is the same.
I also tried to add the -X flag but issue still remains.
Commit SHAs
69538617dd4a948cd0bb5d2444494698f1d7614b
it should provides 81.4% instead around 70%
Codecov YAML
codecov:
require_ci_to_pass: yes
strict_yaml_branch: master # Only use the latest copy on master branch.
max_report_age: 168 # Coverage reports expire after one week.
codecov:
disable_default_path_fixes: yes
fixes:
- “libnodegl::”
Codecov Output
See link: https://github.com/mrobertseidowsky-gpsw/gopro-lib-node.gl/runs/715933185?check_suite_focus=true
and especially the parts “get coverage” and “upload coverage to codecov”
Steps to Reproduce
- generate a coverage report with gcovr version 4.2 in xml format
- upload it to codecov
- observe that coverage value is not the same than in the xml file
Expected behavior: Having the same values has the xml files
Actual behavior: maybe it’s a path fixes, I tried to add in the codecov.yml
codecov:
disable_default_path_fixes: yes
fixes:
- “libnodegl::”
because my source are in libnodegl repo and that the one I would like to see in the codecov interface.
I also tried - “::libnodegl” but same behaviour.
Flakiness? all the time
Additional Information
I’m not against an another export format is xml causes issue, but I tried with json and html and it wasn’t succesfull.
I also tried without any specified format just codecov take all .gcna available into the repository but it wasn’t good neither.
It will be very valuable to have this codecov badge on an open source repository by gopro compagny