This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
Fails with coverage >= 5.0 #224
Open
Description
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.
Activity
ngoldbaum commentedon Jan 10, 2020
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.
fix codecov integration issue caused by codecov/codecov-python#224
fix codecov integration issue caused by codecov/codecov-python#224
Travis: Fix codecov to work again
travis: workaround for coverage 5.0 incompatibility
travis: workaround for coverage 5.0 incompatibility
travis: workaround for coverage 5.0 incompatibility
Workaround for coverage 5.0/travis-ci incompatibility