Please check the troubleshooting guide before creating a ticket.
Description
I use the CodeCov python package to report coverage. It has started to completely fail on every run with the error:
Error: 'exceptions.OSError' object has no attribute 'returncode'
Repository
Private
CI/CD
Google Cloud Build. I specify the branch name and commit SHA manually.
Uploader
Python uploader.
I download the latest uploader using pip --disable-pip-version-check install codecov -q
in every CI run.
Command:
codecov -t $$CODECOVTOKEN -F frontend --disable=detect --commit=$COMMIT_SHA --branch=$BRANCH_NAME
I’m unable to run the bash uploader in my CI environment.
Commit SHAs
Please include the commit SHA(s)
Codecov YAML
coverage:
status:
project:
default:
target: 65%
threshold: 0.1%
backend:
target: 78.92%
flags:
- backend
frontend:
target: 54%
flags:
- frontend
flags:
backend:
paths:
- packages/backend/
frontend:
paths:
- packages/webapp/
comment:
after_n_builds: 2
codecov:
notify:
after_n_builds: 2
Codecov Output
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _ |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \____|\___|\___\___/ \_/
v2.1.10
XX> Detecting CI provider disabled.
==> Preparing upload
Error running `['git', 'ls-files']`: returncode=128, output=
Error running `['git', 'ls-files']`: returncode=128, output=
Error: 'exceptions.OSError' object has no attribute 'returncode'
Tip: See all example repositories: https://github.com/codecov?query=example
Additional Information
No changes have been made on our end, the issue started happening suddenly but is persistent.