codecov / codecov-action

GitHub Action that uploads coverage to Codecov :open_umbrella:
https://www.codecov.io
MIT License
1.46k stars 205 forks source link

The following uploads failed to process #1418

Closed Zee326 closed 4 months ago

Zee326 commented 4 months ago

I am getting "The following uploads failed to process" error when successfully code coverage uploaded on Codecov. I have implemented Codecov in my xcode project repo and using Swift language.

Screenshot 2024-05-08 at 8 12 35 AM

As you can see, workflow runs successfully.

But on Codecov dashboard its showing error.

Screenshot 2024-05-08 at 8 18 14 AM

Upload Report Response in Work Flow:

Search logs
2s
3s
18m 2s
5s
Run codecov/codecov-action@v4
==> macos OS detected
https://cli.codecov.io/latest/macos/codecov.SHA256SUM
==> Running version latest
==> Running version v0.6.0
==> Running git config --global --add safe.directory /Users/runner/work/Zest-iOSApp/Zest-iOSApp
/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/Zest-iOSApp/Zest-iOSApp
==> Running command '/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github
info - 2024-05-08 [1](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:1)1:58:35,895 -- ci service found: github-actions
warning - 202[4](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:5)-05-08 11:58:35,912 -- No config file could be found. Ignoring config.
info - 2024-0[5](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:6)-08 11:58:3[6](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:7),069 -- Process Commit creating complete
==> Running command '/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report'
/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report --git-service github
info - 2024-05-08 11:58:36,539 -- ci service found: github-actions
warning - 2024-05-08 11:58:36,552 -- No config file could be found. Ignoring config.
gpg: directory '/Users/runner/.gnupg' created
gpg: /Users/runner/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED[7](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:8)79869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg:               imported: 1

gpg: Signature made Wed May  [8](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:9) 11:57:33 2024 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2703 4E7F DB85 0E0B BC2C  62FF 806B B28A ED77 [9](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:10)869

==> Uploader SHASUM verified (fe4bddf5245ee90e516f56a9e8e169ff4f1e84e0850bfaf0f802481e1072b9ca  codecov)
info - 2024-05-08 11:58:36,647 -- Process Report creating complete
info - 2024-05-08 11:58:36,647 -- Finished creating report successfully --- {"response": "{\"external_id\":\"e7997850-8db4-4d98-9b[11](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:12)-f53b07d93e0d\",\"created_at\":\"2024-05-08T11:58:36.683719Z\",\"commit_sha\":\"c0a12b4938fbc552a8d1913f6dc613a9e8c6b03e\",\"code\":null}"}
==> Running command '/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload'
/Users/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload --git-service github
info - 2024-05-08 11:58:37,068 -- ci service found: github-actions
warning - 2024-05-08 11:58:37,082 -- No config file could be found. Ignoring config.
warning - 2024-05-08 11:58:38,370 -- No swift data found.
warning - 2024-05-08 11:58:38,396 -- No gcov data found.
warning - 2024-05-08 11:58:38,399 -- coverage.py is not installed or can't be found.
info - 2024-05-08 11:58:38,431 -- Found 1 coverage files to report
info - 2024-05-08 11:58:38,431 -- > /Users/runner/work/Zest-iOSApp/Zest-iOSApp/.github/workflows/code-coverage.yml
info - 2024-05-08 11:58:38,809 -- Your upload is now processing. When finished, results will be available at: https://app.codecov.io/github/ZestHealthFitness/Zest-iOSApp/commit/c0a[12](https://github.com/ZestHealthFitness/Zest-iOSApp/actions/runs/9001184835/job/24726883447#step:4:13)b4938fbc552a8d1913f6dc613a9e8c6b03e
info - 2024-05-08 11:58:39,314 -- Process Upload complete

Workflow .yml Code:

name: Codecov Integration

on:
  push:
    branches: [zeedevios-zes-131] # Adjust branch name as needed

jobs:
  codecov:
    name: Run Tests and Upload Code Coverage
    runs-on: macos-latest

    steps:
      - name: Checkout Repository
        uses: actions/checkout@v2

      - name: Build and Test
        run: |
          xcodebuild test -project Zesty.xcodeproj -scheme Zesty -destination 'platform=iOS Simulator,name=iPhone 15 Pro' | xcpretty -s

      - name: Upload coverage results to Codecov.io
        uses: codecov/codecov-action@v4
        with:
            token: ${{secrets.CODECOV_TOKEN}}

How I can fix this issue? I have tried to set the path of the Code Coverage Report but failed. Can any one help me how to fix this?

thomasrockhu-codecov commented 4 months ago

@Zee326 it looks like you are not creating a coverage report to upload to Codecov. You should probably be able to see that by clicking Download in the screenshot above and noticing there is no coverage information. Please generate a coverage report before trying to upload to Codecov.