Shown code coverage differs between app.codecov.io and codecov.io

Description

Codecov shows most lines in light gray, some in red, yellow, green. These numbers are totally wrong, for example there are tests that cover each line of the function printCond.
Codecov (without the app) shows plausible coverage.

CI/CD or Build URL

Uploader

bash <(curl -s https://codecov.io/bash)

Codecov Output

https://api.travis-ci.com/v3/job/536750600/log.txt

 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-1.0.6


e[0;36m==>e[0m git version 2.27.0 found
e[0;36m==>e[0m curl 7.47.0 (x86_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP UnixSockets 
e[0;90m==>e[0m Travis CI detected.
    e[0;90mcurrent dir: e[0m /home/travis/gopath/src/github.com/rillig/gobco
    e[0;90mproject root:e[0m .
    e[0;32mYaml not found, that's ok! Learn more ate[0m e[0;36mhttp://docs.codecov.io/docs/codecov-yamle[0m
e[0;90m==>e[0m Running gcov in . e[0;90m(disable via -X gcov)e[0m
e[0;90m==>e[0m Python coveragepy not found
e[0;90m==>e[0m Searching for coverage reports in:
    e[0;32m+e[0m .
    e[0;90m->e[0m Found 1 reports
e[0;90m==>e[0m Detecting git/mercurial file structure
e[0;90m==>e[0m Appending build variables
    e[0;32m+e[0m TRAVIS_OS_NAME
    e[0;32m+e[0m master
e[0;90m==>e[0m Reading reports
    e[0;32m+e[0m ./coverage.txt e[0;90mbytes=12217e[0m
e[0;90m==>e[0m Appending adjustments
    e[0;36mhttps://docs.codecov.io/docs/fixing-reportse[0m
    e[0;32m+e[0m Found adjustments
e[0;90m==>e[0m Gzipping contents
        4.0K	/tmp/codecov.ymPAxe.gz
e[0;90m==>e[0m Uploading reports
    e[0;90murl:e[0m https://codecov.io
    e[0;90mquery:e[0m branch=master&commit=2309db39419678fdfb8d4e45933b94fcceba4d4c&build=87.3&build_url=&name=&tag=&slug=rillig%2Fgobco&service=travis&flags=&pr=false&job=536750600&cmd_args=
e[0;90m->e[0m  Pinging Codecov
https://codecov.io/upload/v4?package=bash-1.0.6&token=<hidden>&package=bash-1.0.6&token=&branch=master&commit=2309db39419678fdfb8d4e45933b94fcceba4d4c&build=87.3&build_url=&name=&tag=&slug=rillig%2Fgobco&service=travis&flags=&pr=false&job=536750600&cmd_args=
e[0;90m->e[0m  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-09-10/BFD5C22F5FE49395816EAA874097A9AC/2309db39419678fdfb8d4e45933b94fcceba4d4c/a2de9c32-57bc-4f4a-8e14-18c331eea734.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210910%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210910T225919Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=8c70d907e9f06e8d109109423609a03fd66ff0eb056b8bff03f2fce81b70cd3a
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  3874    0     0  100  3874      0  16089 --:--:-- --:--:-- --:--:-- 16141
    e[0;32m->e[0m Reports have been successfully queued for processing at e[0;36mhttps://codecov.io/github/rillig/gobco/commit/2309db39419678fdfb8d4e45933b94fcceba4d4ce[0m

Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

Actual Results

Please provide what actually happened.

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@rillig, we rolled out a fix for this, and it’s looking the same now. Are you still seeing an issue?

Thank you very much, now it looks perfect. :slight_smile:

1 Like