Failed to properly upload

Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.

Description

After follow the steps to setup the codecov and then try to use in my .yml at Github Actions i’ve got this error:

  Codecov report uploader 0.1.15
[2022-11-04T15:36:49.184Z] ['info'] => Project root located at: D:/a/account-landing-v2/account-landing-v2
[2022-11-04T15:36:49.184Z] ['info'] ->  Token found by environment variables
[2022-11-04T15:36:49.222Z] ['info'] Searching for coverage files...
[2022-11-04T15:36:49.254Z] ['error'] There was an error running the uploader: Error while cleaning paths. No paths matched existing files!
Error: Codecov: Failed to properly upload: The process 'D:\a\_actions\codecov\codecov-action\v3\dist\codecov.exe' failed with exit code 4294967295

CI/CD URL

Please provide a link to the CI/CD run.

https://github.com/themarkerr/account-landing-v2/actions/runs/3395019814/jobs/5644344452

Codecov Output

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

Run codecov/codecov-action@v3
==> windows OS detected
https://uploader.codecov.io/v0.1.15/windows/codecov.exe.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (43fa86a6c5ce325daf8eb0c523db858f036afa492ac45a7dd59c41989cc1eb12  codecov.exe)
==> Running version v0.1.15
==> Running version v0.3.2
D:\a\_actions\codecov\codecov-action\v3\dist\codecov.exe -n "" -Q github-action-3.1.1 -Z -f coverage.xml
[2022-11-04T15:36:49.154Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.15
[2022-11-04T15:36:49.184Z] ['info'] => Project root located at: D:/a/account-landing-v2/account-landing-v2
[2022-11-04T15:36:49.184Z] ['info'] ->  Token found by environment variables
[2022-11-04T15:36:49.222Z] ['info'] Searching for coverage files...
[2022-11-04T15:36:49.254Z] ['error'] There was an error running the uploader: Error while cleaning paths. No paths matched existing files!
Error: Codecov: Failed to properly upload: The process 'D:\a\_actions\codecov\codecov-action\v3\dist\codecov.exe' failed with exit code 4294967295

Expected Results

Please provide what you expect to have happened (e.g. a file that has missing coverage on a particular line).

Actual Results

Run codecov/codecov-action@v3
==> windows OS detected
https://uploader.codecov.io/v0.1.15/windows/codecov.exe.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (43fa86a6c5ce325daf8eb0c523db858f036afa492ac45a7dd59c41989cc1eb12  codecov.exe)
==> Running version v0.1.15
==> Running version v0.3.2
D:\a\_actions\codecov\codecov-action\v3\dist\codecov.exe -n "" -Q github-action-3.1.1 -Z -f coverage.xml
[2022-11-04T15:36:49.154Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.15
[2022-11-04T15:36:49.184Z] ['info'] => Project root located at: D:/a/account-landing-v2/account-landing-v2
[2022-11-04T15:36:49.184Z] ['info'] ->  Token found by environment variables
[2022-11-04T15:36:49.222Z] ['info'] Searching for coverage files...
[2022-11-04T15:36:49.254Z] ['error'] There was an error running the uploader: Error while cleaning paths. No paths matched existing files!
Error: Codecov: Failed to properly upload: The process 'D:\a\_actions\codecov\codecov-action\v3\dist\codecov.exe' failed with exit code 4294967295

Additional Information

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

.yml file

# .github/workflows/test.yml

# Workflow name
name: 'QA tests'

# Event for the workflow
on:
  push:
    branches:
      - APP-827-add-codecov-support

jobs:
  ui-uat-test:
    runs-on: windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: UI Tests - UAT
        uses: cypress-io/github-action@v4
        with:
          group: e2e Tests - UAT
          browser: chrome
          parallel: true
          command: npm run cypress-run-ui--uat-tests-parallel
          working-directory: test
          project: test
          config-file: test/cypress.config.js
        env:
          NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
  ui-stage-test:
    runs-on: windows-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: UI Tests - Stage
        uses: cypress-io/github-action@v4
        with:
          group: e2e Tests - STG
          browser: chrome
          parallel: true
          command: npm run cypress-run-ui-stage-tests-parallel
          working-directory: test
          project: test
          config-file: test/cypress.config.js
        env:
          NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
      - name: Upload coverage reports to Codecov with GitHub Action
        uses: codecov/codecov-action@v3
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          version: 'v0.1.15'
          files: coverage.xml
          fail_ci_if_error: true

@ghsouza89 do you know where your coverage files are being created? Are they actually at coverage.xml? If not, you can try putting in the correct filepath or try removing files: ...

here is the result removing the option files

Run codecov/codecov-action@v3
==> windows OS detected
https://uploader.codecov.io/v0.1.15/windows/codecov.exe.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (43fa86a6c5ce325daf8eb0c523db858f036afa492ac45a7dd59c41989cc1eb12  codecov.exe)
==> Running version v0.1.15
==> Running version v0.3.2
D:\a\_actions\codecov\codecov-action\v3\dist\codecov.exe -n "" -Q github-action-3.1.1
[2022-11-11T14:04:57.385Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.1.15
[2022-11-11T14:04:57.421Z] ['info'] => Project root located at: D:/a/account-landing-v2/account-landing-v2
[2022-11-11T14:04:57.421Z] ['info'] ->  Token found by environment variables
[2022-11-11T14:04:57.457Z] ['info'] Searching for coverage files...
[2022-11-11T14:04:57.488Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-11-11T14:04:57.488Z] ['error'] There was an error running the uploader: No coverage files located, please try use `-f`, or change the project root with `-R`
[2022-11-11T14:04:57.488Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats

@tom i following this example >>> example-typescript/ci.yml at main · codecov/example-typescript · GitHub

@ghsouza89 how are you currently running tests and collecting coverage? Do you know where you are storing the coverage reports before trying to upload them to Codecov?

Actually i don’t now how to answer that, to run my tests i just call a script but about the collecting coverage i don’t know!

I thing i have to store something before upload, but where is that part in the documentation?

hey @tom any update around this? thanks!

@ghsouza89, tl;dr you need to create coverage reports to use Codecov


Codecov works by uploading coverage reports that are created during the CI process. Right now, it looks like you are using Cypress to run your tests. Cypress allows the collection of these reports, you can check out this post by their Director of Engineering, their docs, and/or this webinar between myself and Gleb for suggestions on how to create coverage reports.

The reason the snippet you pulled isn’t working is

  1. it’s written for python, not typescript
  2. no coverage file exists

You will need to create those coverage reports and then run the Codecov action.

1 Like