Pytest-cov xml files cause Codecov processing to fail without an error message

Description

In my project, I’m using github actions to generate coverage reports (with pytest-cov) in xml format. I’m using version 2 of your github action. The action seems to identify and upload the report just fine, but codecov.io displays the error “There was an error processing coverage reports.”

Commit SHAs

ff6d6f9c90a7f58709931e86211fea5eec9eeec5

Repository

https://github.com/berndie/bdf_merger/

CI/CD or Build URL

You can find the result of the build here. You can find the coverage part here. This uses this workflow

Uploader

I’m using version 2 of your github action.

Codecov Output

==> linux OS detected
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (f4daf62bfc474b5aeebb25b3cf1a467b01f930b404ba7e618abc6141b72a04a9  codecov)
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n  -Q github-action-2.0.3 -f ./coverage.xml
[2021-08-31T07:33:34.359Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.0
[2021-08-31T07:33:34.366Z] ['info'] => Project root located at: /home/runner/work/bdf_merger/bdf_merger
[2021-08-31T07:33:34.367Z] ['info'] -> No token specified or token is empty
[2021-08-31T07:33:34.377Z] ['info'] Searching for coverage files...
[2021-08-31T07:33:34.386Z] ['info'] => Found 1 possible coverage files:
  ./coverage.xml
[2021-08-31T07:33:34.386Z] ['info'] Processing ./coverage.xml...
[2021-08-31T07:33:34.389Z] ['info'] Detected GitHub Actions as the CI provider.
[2021-08-31T07:33:34.390Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-2.0.3-uploader-0.1.0&token=*******&branch=master&build=1185208905&build_url=https%3A%2F%2Fgithub.com%2Fberndie%2Fbdf_merger%2Factions%2Fruns%2F1185208905&commit=ff6d6f9c90a7f58709931e86211fea5eec9eeec5&job=Continous%20Integration&pr=&service=github-actions&slug=berndie/bdf_merger&name=&tag=&flags=&parent=
[2021-08-31T07:33:34.781Z] ['info'] Uploading...
[2021-08-31T07:33:34.989Z] ['info'] {"status":"success","resultURL":"https://codecov.io/github/berndie/bdf_merger/commit/ff6d6f9c90a7f58709931e86211fea5eec9eeec5"}

Expected Results

Processed coverage results.

Actual Results

“There was an error processing coverage reports.”

Hi @berndie do you mind pushing a new commit on top so I can take a look at our logs for your issue?

Hi @tom , sure, no problem! I just pushed a new commit.

You can find the run here and the codecov page here

Got it, thanks @berndie. Looks like this is an edge case bug in our uploader. I’ll get this to the product team.

1 Like

Thanks @tom! I really appreciate the effort!

@berndie, we shipped a fix to the uploader. Are you able to see if you’re still having the issue?

Hi Tom,

It seems to work correctly now! Thank you so much for your help!

1 Like