Coverage reports not appearing in codecov dashboard

Description

I can’t seem to get my coverage reports to appear in the dashboard.

Commit SHAs

https://codecov.io/gh/peytondmurray/PyFORC/commit/4026dc93d9580dea7ce889ffbb02ab4f8e8a0e1d

Repository

https://github.com/peytondmurray/PyFORC

CI/CD or Build URL

https://app.circleci.com/pipelines/github/peytondmurray/PyFORC/21/workflows/53280a71-9efc-4f14-904c-4acf07055770/jobs/24

Uploader

Bash uploader

Codecov Output

  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20210309-2b87ace


==> git version 2.25.1 found
==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
==> Circle CI detected.
    project root: .
--> token set from env
    Yaml found at: .codecov.yml
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage.json bytes=332576
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        72K	/tmp/codecov.fgokuz.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=implement-ingester&commit=6b0a20fee1b13945c7d46b8f2c9592e90d4c616f&build=24&build_url=&name=&tag=&slug=peytondmurray%2FPyFORC&service=circleci&flags=&pr=4&job=0&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20210309-2b87ace&token=secret&branch=implement-ingester&commit=6b0a20fee1b13945c7d46b8f2c9592e90d4c616f&build=24&build_url=&name=&tag=&slug=peytondmurray%2FPyFORC&service=circleci&flags=&pr=4&job=0&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-04-02/9C061116CEC92D2D5466A537DE605CB0/6b0a20fee1b13945c7d46b8f2c9592e90d4c616f/ef18026a-5681-4502-8de1-338f343d9c6a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQM3VGPYSAFECJRMNAFIPCV2R3P2BOORCJC7NM537NPJQSFLHUDNIDWA%2F20210402%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210402T044258Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d2b282c1b902dc72a20f6eb067aea2874e8a56244e775cc40f1024e370924163
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 72503    0     0  100 72503      0   357k --:--:-- --:--:-- --:--:--  355k
    -> Reports have been successfully queued for processing at https://codecov.io/github/peytondmurray/PyFORC/commit/6b0a20fee1b13945c7d46b8f2c9592e90d4c616f

Expected Results

I expected to see coverage reports on my codecov dashboard

Actual Results

Under the Pulls for my repository, my PR says that there was “No report uploaded yet.” When I click on the parent commit compare link a message appears saying the base report is missing. However, on my local machine I ran coverage and uploaded a report using the bash uploader, so coverage for the base branch should exist.

Additional Information

Thanks for the help!

Hi @peytondmurray, I wrote a fix here. Let me know if that works for you.

TL;DR Codecov processes the xml format for python’s coverage package, instead of the json format.

Thanks Tom, that solved it!

1 Like