All the reports are borken in our repo for the past 2-3 days

Description

Since 2 days ago we stopped seeing codecov comments, and when we try to open the reports we see:
“There was an error processing coverage reports.”
I thought it was related to the fact that I’ve added an ignore to the yaml (Ignore protobuf autogenerated files in code coverage by elichai · Pull Request #1449 · kaspanet/kaspad · GitHub) but I opened a PR to remove this and it still doesn’t work: Try to fix codecov by elichai · Pull Request #1460 · kaspanet/kaspad · GitHub

Repository

CI/CD or Build URL

Uploader

I’m using the bash uploader in a Github Action: kaspad/go.yml at v0.9.0-dev · kaspanet/kaspad · GitHub

Codecov Output


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


==> git version 2.29.2 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
==> GitHub Actions detected.
    project root: .
    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.txt bytes=13
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
        52K	/tmp/codecov.uWe2zq.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=codecov&commit=e349ff457dcdb867b1a35d5ff1e56ed0023c950b&build=515130945&build_url=http%3A%2F%2Fgithub.com%2Fkaspanet%2Fkaspad%2Factions%2Fruns%2F515130945&name=&tag=&slug=kaspanet%2Fkaspad&service=github-actions&flags=&pr=&job=Go&cmd_args=
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20210115-cec3c92&token=secret&branch=codecov&commit=e349ff457dcdb867b1a35d5ff1e56ed0023c950b&build=515130945&build_url=http%3A%2F%2Fgithub.com%2Fkaspanet%2Fkaspad%2Factions%2Fruns%2F515130945&name=&tag=&slug=kaspanet%2Fkaspad&service=github-actions&flags=&pr=&job=Go&cmd_args=
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2021-01-27/45ABD05F2AF92C6B1DB676EF6F266B45/e349ff457dcdb867b1a35d5ff1e56ed0023c950b/1b48c264-9089-4d62-8539-adb491fb71dc.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20210127%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210127T131023Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=7f6d5a3c6a005978a0e90f0036db4bcb76695db9e6136b8369cd192104a45f63
  % 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 50173    0     0  100 50173      0   239k --:--:-- --:--:-- --:--:--  237k
100 50173    0     0  100 50173      0   211k --:--:-- --:--:-- --:--:--  210k
    -> View reports at https://codecov.io/github/kaspanet/kaspad/commit/e349ff457dcdb867b1a35d5ff1e56ed0023c950b

@elichai, taking a quick look, it seems as the uploads are empty

# path=./coverage.txt
mode: atomic

represents the entire report.

Could you add a step in your workflow cat ./coverage.txt to see if that is accurate? If so, have you changed your coverage collection recently?

You’re right. it seems to be a bug in go, I’ll look into it.
Thanks!

1 Like