Too many uploads to this commit code='invalid'

Please search for similar issues before creating a ticket.
All fields below are required.

Description

I’m getting the error “Too many uploads to this commit”.
I’ve looked at other support issues and it seems like either it was fixed with some changes to codecov or users were uploading over a hundred reports per commit.
We are only uploading ~9 per day that may be the same commit.

CI/CD URL

Codecov Output

Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.

/usr/bin/bash codecov.sh -n  -F  -Q github-action-v1.5.2 -Z -f ./coverage.xml

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


==> git version 2.34.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
==> GitHub Actions detected.
    Env vars used:
      -> GITHUB_ACTIONS:    true
      -> GITHUB_HEAD_REF:   
      -> GITHUB_REF:        refs/heads/master
      -> GITHUB_REPOSITORY: choderalab/perses
      -> GITHUB_RUN_ID:     1542469885
      -> GITHUB_SHA:        abd5e62709f4ce09e958ae57b1800a3f3904ec45
      -> GITHUB_WORKFLOW:   CI
    project root: .
    Yaml found at: .codecov.yml
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage.xml bytes=1155254
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
        84K	/tmp/codecov.tF0v7d.gz
==> Uploading reports
    url: https://codecov.io
    query: branch=master&commit=abd5e62709f4ce09e958ae57b1800a3f3904ec45&build=1542469885&build_url=http%3A%2F%2Fgithub.com%2Fchoderalab%2Fperses%2Factions%2Fruns%2F1542469885&name=&tag=&slug=choderalab%2Fperses&service=github-actions&flags=&pr=&job=CI&cmd_args=n,F,Q,Z,f
->  Pinging Codecov
https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=master&commit=abd5e62709f4ce09e958ae57b1800a3f3904ec45&build=1542469885&build_url=http%3A%2F%2Fgithub.com%2Fchoderalab%2Fperses%2Factions%2Fruns%2F1542469885&name=&tag=&slug=choderalab%2Fperses&service=github-actions&flags=&pr=&job=CI&cmd_args=n,F,Q,Z,f
[ErrorDetail(string='Too many uploads to this commit.', code='invalid')]
400
Error: Codecov failed with the following error: The process '/usr/bin/bash' failed with exit code 1

Expected Results

Expected codecov to upload report.

Actual Results

Server 400 error.

@mikemhenry there is a restriction on the number of coverage reports Codecov can process per upload. You are hitting that upper limit.

Are you running CI nightly on the same commit? Since coverage isn’t expected to change within the same commit, I would probably not upload to Codecov for your nightly builds.

What is that limit? We haven’t run into this issue before – but good point about skipping nightly uploads!

@mikemhenry the number is somewhere between 100-150 depending on the size of uploads and source code. Let me know if that helps!