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 has been archived by the owner on Apr 20, 2023. 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'
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.
Printenv output, to make fixing this easier:
The text was updated successfully, but these errors were encountered: