GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
747 stars 216 forks source link

Code coverage reports are broken #436

Closed seisman closed 4 years ago

seisman commented 4 years ago

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.
weiji14 commented 4 years ago

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.

seisman commented 4 years ago

Related issue here: https://github.com/codecov/codecov-python/issues/251

seisman commented 4 years ago

The coverage report is working now.

weiji14 commented 4 years ago

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.