Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Fails with coverage >= 5.0 #224

Open
goerz opened this issue Dec 25, 2019 · 1 comment
Open

Fails with coverage >= 5.0 #224

goerz opened this issue Dec 25, 2019 · 1 comment

Comments

@goerz
Copy link

goerz commented Dec 25, 2019

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.

@ngoldbaum
Copy link

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.

suutari-ai added a commit to suutari-ai/parkkihubi that referenced this issue Jan 21, 2020
Currently codecov is not working, because there is an issue that it
doesn't work with the coverage 5.0 Python package.  Fix this issue by
making sure that coverage 4.x is used instead.

See the coverage error in the Travis build logs for latest master
builds (e.g. [1]) and the codecov issue [2]

[1] https://travis-ci.org/City-of-Helsinki/parkkihubi/jobs/639843555#L1003

[2] codecov/codecov-python#224
marmarek added a commit to marmarek/qubes-core-qrexec that referenced this issue Feb 8, 2020
marmarek added a commit to marmarek/qubes-core-qrexec that referenced this issue Feb 8, 2020
marmarek added a commit to marmarek/qubes-core-qrexec that referenced this issue Feb 18, 2020
@thomasrockhu thomasrockhu self-assigned this Nov 29, 2020
@thomasrockhu thomasrockhu removed their assignment Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants