Skip to content

Code coverage reports are broken #436

Closed

Description

@seisman

Description of the problem

The code coverage reports failed to work recently. See https://codecov.io/gh/GenericMappingTools/pygmt/pulls for recent reports.

The CI reports the following errors:

+ codecov -e PYTHON AGENT_OS
Uploading coverage to Codecov
find: -not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**': unknown primary or operator

      _____          _
     / ____|        | |
    | |     ___   __| | ___  ___ _____   __
    | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
    | |___| (_) | (_| |  __/ (_| (_) \ V /
     \_____\___/ \____|\___|\___\___/ \_/
                                    v2.0.20

==> Detecting CI provider
  -> Got branch from git/hg
  -> Got sha from git/hg
==> Preparing upload
==> Processing gcov (disable by -X gcov)
    Executing gcov (['find', '/Users/runner/runners/2.168.2/work/1/s', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+'])
    Error running `['find', '/Users/runner/runners/2.168.2/work/1/s', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+']`: Command '['find', '/Users/runner/runners/2.168.2/work/1/s', "-not -path './bower_components/**' -not -path './node_modules/**' -not -path './vendor/**'", '-type', 'f', '-name', '*.gcno', '', '-exec', 'gcov', '-pb', '', '{}', '+']' returned non-zero exit status 1.
==> Collecting reports
    + /Users/runner/runners/2.168.2/work/1/s/coverage.xml bytes=39890
==> Appending environment variables
    + PYTHON
    + AGENT_OS
==> Uploading
    .url https://codecov.io
    .query commit=9f52c71854c719b33b774deb6b17648f677153e8&branch=HEAD&token=<secret>&yaml=.codecov.yml&package=py2.0.20
    Pinging Codecov...
Error: HTTP 400
Provided token is not a UUID.

Activity

  1. added
    maintenance
    on May 19, 2020
  2. weiji14 commented on May 21, 2020

    @weiji14
    Member

    Just noticed that the codacy badge on our mainpage's README isn't working too (and stuck on an 'A' grade). The upload code seems to be silently dropped in https://github.com/GenericMappingTools/pygmt/pull/251/files#diff-354f30a63fb0907d4ad57269548329e3L14. Might want to remove the badge at some point.

  3. seisman commented on May 21, 2020

    @seisman
    MemberAuthor

    Related issue here: codecov/codecov-python#251

  4. seisman commented on May 27, 2020

    @seisman
    MemberAuthor

    The coverage report is working now.

  5. weiji14 commented on Jun 1, 2020

    @weiji14
    Member

    Ok, I've re-enabled both the 'codecov/patch' and 'codecov/project' tests for Pull Requests going into the master branch. Will close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions