Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed uploading reports to CodeCov (400: pr must match pattern)

See original GitHub issue

Issue Description


I’m trying to upload coverage reports to CodeCov and it doesn’t work most of the time.

This is my configuration:

      - name: Push coverage report to CodeCov
        uses: codecov/codecov-action@v1.0.6
          file: ./coverage_report/coverage.xml
          fail_ci_if_error: true

Up until 7 days ago, it worked, as far as I can tell, perfectly. Ever since then the action worked well just once, about 4 hours ago.

For most of the times, after a couple of tries, the action gets a 400 response code with the following error:

pr must match pattern ^(\d+|false|null|undefined|true)$

I’ve tried setting the action version to the fixed major syntax codecov/codecov-action@v1, but the same result was accepted.

CodeCov project. GitHub project

Please, any advice?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:12

github_iconTop GitHub Comments

mrcasalscommented, Apr 20, 2020

We’ve replaced the action with a custom step, here’s the PR in case it helps debugging:

nschloecommented, May 2, 2020

Same issue here. Too bad that this seems to be so difficult to deal with. I’ve now replaced

    - name: Submit to codecov
      uses: codecov/codecov-action@v1
        flags: ${{ matrix.python-version }}


    - name: Submit to codecov
      if: success()
      run: |
        curl -s -o
        bash -F ${{ matrix.codecov-flag }}
        CODECOV_NAME: ${{ matrix.os }} Python ${{ matrix.python-version }}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: HTTP 400 - pr must match pattern - Github Actions ... - Codecov
Hey, we are using Github Actions and sending reports in matrix after every single framework tests succeed. We are randomly seeing error HTTP...
Read more >
codecov fails in github actions - Stack Overflow
I ran into this issue today. Seems related to Issue #330 being tracked from their GitHub page. Last comment (as of this writing)...
Read more >
Pricing - Codecov
Pro. $10/user/month. Annual. Monthly ... What defines a Private Repo Upload for the Basic Plan? A Private Repo Upload is one coverage report...
Read more >
Files not showing in Codecov (Fixing Paths)
Introduction. For Codecov to operate properly, all files paths in the coverage report must match the git/hg file structure.
Read more >
Changelog and Migration Guide - Pre 1.0.0 - Detekt
Please use the --fail-fast cli flag or failFast detekt extension property in the Gradle ... Generate test coverage report and upload to Codecov...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found