codecov / codecov/codecov-action
[BUG] Job fails, but reports as successful
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 260
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 1
Description
Describe the bug
When the codecov job fails, Github Actions reports it as a successful job, with a green check mark, but if I click into the job I see that there was indeed a fatal error.
See here for example: https://github.com/phpgt/CssXPath/actions/runs/23646541739/job/68880104526#step:5:260
The log shows the following (not the last line):
==> Running upload-coverage
./codecov upload-coverage -t <redacted> --git-service github --gcov-executable gcov
info - 2026-03-27 12:38:34,416 -- ci service found: github-actions
warning - 2026-03-27 12:38:34,425 -- No config file could be found. Ignoring config.
warning - 2026-03-27 12:38:34,457 -- xcrun is not installed or can't be found.
warning - 2026-03-27 12:38:34,460 -- No gcov data found.
warning - 2026-03-27 12:38:34,460 -- coverage.py is not installed or can't be found.
info - 2026-03-27 12:38:34,476 -- Found 2 coverage files to report
info - 2026-03-27 12:38:34,477 -- > /home/runner/work/CssXPath/CssXPath/_coverage/clover.xml
info - 2026-03-27 12:38:34,477 -- > /home/runner/work/CssXPath/CssXPath/_coverage/coverage.txt
info - 2026-03-27 12:38:34,860 -- Upload queued for processing complete
error - 2026-03-27 12:38:34,860 -- Upload queued for processing failed: {"message":"Repository not found"}
But take a look at the status of the job - success!
To Reproduce
- Push code to trigger the codecov Github Action
- View the job executing
- See it pass with a green check mark
- View the job log, see that there was in fact an error
Expected behavior
When there's an error running the job, mark the job as failed. Such as one that shows this as the last line of the log: error - 2026-03-27 12:38:34,860 -- Upload queued for processing failed: {"message":"Repository not found"}
Product Area
Coverage. I am sending my PHPUnit coverage to codecov. I do it with all my open source repositories. The reason there's a failure is a different issue to track. This issue is just tracking the fact that there was a failure, but it reported as a success.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the codecov GitHub Action entry point that runs the upload command and the linked GitHub Actions job log, focusing on how upload errors affect the process status. Done means a fatal upload error such as the reported repository-not-found message causes the workflow job to fail instead of showing a successful check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, python
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100