codecov-python icon indicating copy to clipboard operation
codecov-python copied to clipboard

Fails with coverage >= 5.0

Open goerz opened this issue 5 years ago • 1 comments

I find that codecov on Travis CI fails with the recent 5.0 release of coverage.

With coverage version 5.0 (as well as 5.0.1) I get the following output:

==> Detecting CI provider
502    Travis Detected
503==> Preparing upload
504==> Processing gcov (disable by -X gcov)
505    Executing gcov (find /home/travis/build/goerz-forks/pypkg_x8uqn -not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**' -type f -name '*.gcno'  -exec gcov -pb  {} +)
506==> Collecting reports
507    Generating coverage xml reports for Python
508    Error running `coverage xml -i`: None
509    - Ignored: [Errno 2] No such file or directory: '/home/travis/build/goerz-forks/pypkg_x8uqn/coverage.xml'
510Error: No coverage report found

I haven't been able to determine what exactly causes this. Locally, coverage xml -i works fine with any version of coverage.

With coverage version 4.5.4 uploading to codecov from Travis works:

==> Detecting CI provider
502    Travis Detected
503==> Preparing upload
504==> Processing gcov (disable by -X gcov)
505    Executing gcov (find /home/travis/build/goerz-forks/pypkg_x8uqn -not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**' -type f -name '*.gcno'  -exec gcov -pb  {} +)
506==> Collecting reports
507    Generating coverage xml reports for Python
508    + /home/travis/build/goerz-forks/pypkg_x8uqn/coverage.xml bytes=2053
509==> Appending environment variables
510    + TOXENV
511    + TRAVIS_PYTHON_VERSION
512    + TRAVIS_OS_NAME
513==> Uploading
514    .url https://codecov.io
515    .query commit=3fac8a1fac157666e847da7a3ec03cbc3dca35a9&branch=master&job=629471361&pr=false&token=<secret>&service=travis&build=13.4&slug=goerz-forks%2Fpypkg_x8uqn&package=py2.0.15
516    Pinging Codecov...
517    Uploading to S3...
518    https://codecov.io/github/goerz-forks/pypkg_x8uqn/commit/3fac8a1fac157666e847da7a3ec03cbc3dca35a9

I've observed this in multiple repositories.

goerz avatar Dec 25 '19 21:12 goerz

It would be really nice if the codecov package on pypi had a pin so that coverage 5.0 didn't get installed so long as it isn't supported.

ngoldbaum avatar Jan 10 '20 17:01 ngoldbaum