Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.
This repository was archived by the owner on May 21, 2025. It is now read-only.

Fails with coverage >= 5.0 #224

Open
@goerz

Description

@goerz

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.

Metadata

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

    Issue actions