Error viewing report that seems to upload successfully

Please check the troubleshooting guide before creating a ticket.

Description

I’m trying to upload a report from a Github action. The report seems to be uploaded correctly, but doesn’t register on CodeCov. When I browse the commit on Github I just see the following:

There was an error processing coverage reports.
Most common issues

File paths are not resolving. Reports are empty or do not contain your files. Report has expired.
Check our error reference.
Please review the following uploads for clues:

Need some help? No problem. Codecov Support

The Github action seems to be run successfully

A few things that I have investigated:

  • On my machine, the report generates and looks fine to me
  • Looking at the CodeCov bash output and Github action output, it looks like no obvious errors happen during upload
  • I am able to see that a report is uploaded to Google storage from CI, here

Repository

https://github.com/audrow/email-keyword-matcher

CI/CD

Github Actions.

Uploader

I’ve tried the CodeCov Github action and using the bash script. See here and here.

Commit SHAs

Commit using the CodeCov Github action:
87bdf2af3ce0b3f1a899bf5b04b94641590e8a4c

Commit using the CodeCov bash script:
081457aaeb48515f3dce5e31fb3d4ce448a2b8c7

Codecov YAML

None

Codecov Output

    + .
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + ./coverage.xml bytes=3238
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=fix-codecov&commit=081457aaeb48515f3dce5e31fb3d4ce448a2b8c7&build=249275964&build_url=http%3A%2F%2Fgithub.com%2Faudrow%2Femail-keyword-matcher%2Factions%2Fruns%2F249275964&name=&tag=&slug=audrow%2Femail-keyword-matcher&service=github-actions&flags=&pr=&job=&cmd_args=t
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200910-5a68dc2&token=secret&branch=fix-codecov&commit=081457aaeb48515f3dce5e31fb3d4ce448a2b8c7&build=249275964&build_url=http%3A%2F%2Fgithub.com%2Faudrow%2Femail-keyword-matcher%2Factions%2Fruns%2F249275964&name=&tag=&slug=audrow%2Femail-keyword-matcher&service=github-actions&flags=&pr=&job=&cmd_args=t
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-09-11/7E6DDFBD07E296D56095F3C65E43AF89/081457aaeb48515f3dce5e31fb3d4ce448a2b8c7/774426e1-5f37-4ed8-a081-ae15c61d05a5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200911%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200911T153254Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=707f8d070608ac8e656e89f33c8f69d9c8a05e1a8d63e3b477957077bf255ec3
  % 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   669    0     0  100   669      0   3655 --:--:-- --:--:-- --:--:--  3635
100   669    0     0  100   669      0   3655 --:--:-- --:--:-- --:--:--  3635
    -> View reports at https://codecov.io/github/audrow/email-keyword-matcher/commit/081457aaeb48515f3dce5e31fb3d4ce448a2b8c7

Additional Information

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

Hi @audrow, apologies here. Would you be able to push up a new commit so we can check what is happening?

Hi @tom, I’ve pushed a commit.

Here’s the SHA1: 6c3e9aa23e4813a2843c0d1d01b01862c43af049.

@audrow, I am incredibly sorry. I didn’t capture our logs for that commit. Would you be able to push one more time?

Hi @tom, here is the new SHA1: 7b21f311cbc3e4710206e247629165daf7153e11

1 Like

Hi @audrow, thanks for this. I’ve forwarded the issue to the product team. If you need to be unblocked immediately, I would add this step before you upload to Codecov

      - name: Adjust coverage file for Codecov
        run: bash <(sed -i 's/filename=\"/filename=\"email_keyword_matcher\//g' coverage.xml)

Hey @tom, any updates?

Hi @audrow, thanks for your patience here. No meaningful update here to give, but I’ll update when I can give a better timeline.

@audrow, we updated the bash uploader to hopefully help address this issue. Would you be able to use the -i parameter like

-i email_keyword_matcher

when calling the bash uploader?