codecov / codecov/codecov-action

[BUG] Job fails, but reports as successful

Open
#1,931 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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!

Image

To Reproduce

  1. Push code to trigger the codecov Github Action
  2. View the job executing
  3. See it pass with a green check mark
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.