Skip to content
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
@goerz

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

ngoldbaum commented on Jan 10, 2020

@ngoldbaum

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.

added a commit that references this issue on Jan 21, 2020
self-assigned this
on Nov 29, 2020
removed their assignment
on Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @goerz@ngoldbaum@thomasrockhu

      Issue actions

        Fails with coverage >= 5.0 · Issue #224 · codecov/codecov-python