You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 21, 2025. It is now read-only.
The codecov Python client crashes in a local CircleCI run (using the CircleCI 2 CLI), since not all of the environment variables it expects to be available are (even if the build is technically a CircleCI run).
This is admittedly a bit of a fringe use case, but it makes testing CircleCI flows locally harder.
====>> ~/.local/bin/codecov
#!/bin/bash -eo pipefail
~/.local/bin/codecov
==> Detecting CI provider
Traceback (most recent call last):
File "/home/circleci/.local/bin/codecov", line 11, in <module>
sys.exit(main())
File "/home/circleci/.local/lib/python3.6/site-packages/codecov/__init__.py", line 354, in main
slug=os.getenv('CIRCLE_PROJECT_USERNAME') + "/" + os.getenv('CIRCLE_PROJECT_REPONAME'),
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Error: Exited with code 1
I am seeing the same issue when executing circle ci locally.
Traceback (most recent call last):
File "/home/circleci/repo/venv/bin/codecov", line 11, in <module>
sys.exit(main())
File "/home/circleci/repo/venv/lib/python3.7/site-packages/codecov/__init__.py", line 354, in main
slug=os.getenv('CIRCLE_PROJECT_USERNAME') + "/" + os.getenv('CIRCLE_PROJECT_REPONAME'),
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
I am experiencing the same issue running it locally. I tried to pass in the env variable CIRCLE_PROJECT_REPONAME and able to reproduce the same error.
==> Detecting CI provider
Traceback (most recent call last):
File "/home/circleci/repo/venv/bin/codecov", line 8, in <module>
sys.exit(main())
File "/home/circleci/repo/venv/lib/python3.7/site-packages/codecov/__init__.py", line 405, in main
"/" + os.getenv('CIRCLE_PROJECT_REPONAME'),
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Activity
gtalarico commentedon Dec 10, 2018
I am seeing the same issue when executing circle ci locally.
Here is my relevant circle config:
Running it locally using
circleci local executeIt runs fine on circleci
altoic commentedon Jul 1, 2020
I am experiencing the same issue running it locally. I tried to pass in the env variable
CIRCLE_PROJECT_REPONAMEand able to reproduce the same error.