question-mark
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.

Github Action logs say that the coverage file was found and uploaded successfuly

image

2022-10-03T01:29:11.0800591Z ##[group]Run codecov/codecov-action@v3
2022-10-03T01:29:11.0801049Z with:
2022-10-03T01:29:11.0801486Z   token: ***
2022-10-03T01:29:11.0801817Z   flags: APEX
2022-10-03T01:29:11.0802242Z   directory: ./dist/***/tests/coverage/
2022-10-03T01:29:11.0802656Z ##[endgroup]
2022-10-03T01:29:11.0810404Z ##[command]/usr/bin/docker exec  712d1bb81dc64352f91821c86f6225d19b290270aea97fc71afa3a816f063a40 sh -c "cat /etc/*release | grep ^ID"
2022-10-03T01:29:11.4118183Z ==> linux OS detected
2022-10-03T01:29:12.0198330Z https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
2022-10-03T01:29:12.1764327Z ==> SHASUM file signed by key id 806bb28aed779869
2022-10-03T01:29:12.3434373Z ==> Uploader SHASUM verified (20f9c9d78483fce977b6cc39e231a734a23bcd36f4d536bb7355222fb88d02bc  codecov)
2022-10-03T01:29:12.3436992Z ==> Running version latest
2022-10-03T01:29:12.4614124Z ==> Running version v0.3.2
2022-10-03T01:29:12.4636906Z [command]/__w/_actions/codecov/codecov-action/v3/dist/codecov -n  -Q github-action-3.1.1 -F APEX -s ./dist/***/tests/coverage/
2022-10-03T01:29:12.6796418Z [2022-10-03T01:29:12.677Z] ['info'] 
2022-10-03T01:29:12.6796861Z      _____          _
2022-10-03T01:29:12.6797215Z     / ____|        | |
2022-10-03T01:29:12.6797935Z    | |     ___   __| | ___  ___ _____   __
2022-10-03T01:29:12.6798319Z    | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
2022-10-03T01:29:12.6798724Z    | |___| (_) | (_| |  __/ (_| (_) \ V /
2022-10-03T01:29:12.6799113Z     \_____\___/ \__,_|\___|\___\___/ \_/
2022-10-03T01:29:12.6799340Z 
2022-10-03T01:29:12.6799533Z   Codecov report uploader 0.3.2
2022-10-03T01:29:12.6849370Z [2022-10-03T01:29:12.684Z] ['info'] => Project root located at: /__w/sf-metadata/sf-metadata
2022-10-03T01:29:12.6880866Z [2022-10-03T01:29:12.687Z] ['info'] ->  Token found by environment variables
2022-10-03T01:29:12.7418822Z [2022-10-03T01:29:12.741Z] ['info'] Searching for coverage files...
2022-10-03T01:29:12.8225394Z [2022-10-03T01:29:12.821Z] ['info'] Warning: Some files located via search were excluded from upload.
2022-10-03T01:29:12.8235193Z [2022-10-03T01:29:12.823Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
2022-10-03T01:29:12.8243267Z [2022-10-03T01:29:12.823Z] ['info'] => Found 1 possible coverage files:
2022-10-03T01:29:12.8243718Z   coverage.json
2022-10-03T01:29:12.8249842Z [2022-10-03T01:29:12.824Z] ['info'] Processing dist/***/tests/coverage/coverage.json...
2022-10-03T01:29:12.8709496Z [2022-10-03T01:29:12.870Z] ['info'] Detected GitHub Actions as the CI provider.
2022-10-03T01:29:12.8741199Z [2022-10-03T01:29:12.873Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&token=*******&branch=main&build=3170833532&build_url=https%3A%2F%2Fgithub.com%2FVodafoneIS%2Fsf-metadata%2Factions%2Fruns%2F3170833532&commit=8c35496b53791129326ba79c86a04d76419f0837&job=Deploy+to+***+Workflow&pr=&service=github-actions&slug=VodafoneIS%2Fsf-metadata&name=&tag=&flags=APEX&parent=
2022-10-03T01:29:13.9643393Z [2022-10-03T01:29:13.962Z] ['info'] https://app.codecov.io/github/VodafoneIS/sf-metadata/commit/8c35496b53791129326ba79c86a04d76419f0837
2022-10-03T01:29:13.9645638Z https://storage.googleapis.com/codecov/v4/raw/2022-10-03/DBC2BB2F6B0EDDBF65CAE4F7B9611B25/8c35496b53791129326ba79c86a04d76419f0837/94f5a92b-d96e-4c83-8804-47bc216a536b.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20221003%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20221003T012913Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=7e53421697ed9b5dee251c87474ec31ec56b6009d42ee9bc1725b2dec390fc99
2022-10-03T01:29:13.9647189Z [2022-10-03T01:29:13.963Z] ['info'] Uploading...
2022-10-03T01:29:14.2965433Z [2022-10-03T01:29:14.295Z] ['info'] ***"status":"success","resultURL":"https://app.codecov.io/github/VodafoneIS/sf-metadata/commit/8c35496b53791129326ba79c86a04d76419f0837"***
2022-10-03T01:29:14.3426264Z ##[group]Run actions/upload-artifact@v2
2022-10-03T01:29:14.3426685Z with:
2022-10-03T01:29:14.3427020Z   name: Distribution
2022-10-03T01:29:14.3427371Z   path: dist
2022-10-03T01:29:14.3427728Z   if-no-files-found: warn
2022-10-03T01:29:14.3428109Z ##[endgroup]

But when I open Codecov, it says “upload is empty” image

This is how I configured Codecov’s action

- name: Upload Code Coverage
        uses: codecov/codecov-action@v3
        if: ${{ matrix.environment == 'unprotected-prod' }}
        continue-on-error: true
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          flags: APEX
          directory: ./dist/${{ secrets.SF_ORG_ALIAS }}/tests/coverage/

This is the directory that I configured in codecov’s actions tests.zip

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:7
  • Comments:29 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
woodruffwcommented, Oct 17, 2022

I’m seeing the same thing while trying to configure Codecov on a public repository: Codecov’s website both says that the CI has failed (it hasn’t) and that the upload is empty (it isn’t).

3reactions
burgholzercommented, Oct 5, 2022

We are also hitting this issue in https://github.com/cda-tum/qmap/pull/138 (more generally in the whole project since approximately 3 weeks). All checks on GitHub pass and the codecov upload succeeds, but codecov won’t post a report and reports “CI Failed” on the website.

In contrast to the above, we also see cases where codecov reports “CI Passed” and still shows that one of the uploads is empty. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uploading Empty Files - Strava Support
This error is generated when there is no GPS data in the file you are attempting to upload. This happens primarily for two...
Read more >
The file you uploaded seems to be empty. This might be due ...
The file you uploaded seems to be empty. This might be due to a typo in the filename. Please check whether you really...
Read more >
Why would $_FILES be empty when uploading files to PHP?
When I attempt to upload any file from a form, it seems to upload, but in PHP, the $_FILES array is empty. There...
Read more >
"Empty file upload result" Despite Upload Working and ...
I'm using PHP (YES GD is installed, YES upload is on, YES upload file size is 20mb and I'm NOT uploading anything bigger...
Read more >
Error uploading Document: "This file is empty" when it's not.
This occurs most often when using Chrome and the drag/drop feature to upload the doc. However, the file is not empty, and if...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found