Sitelet https://web.archive.org/web/20200908074025/https://github.com/codecov/codecov-python/issues/219
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codecov crashes on Semaphore build due to missing env var SEMAPHORE_BUILD_NUMBER #219

Open
Helveg opened this issue Nov 14, 2019 · 1 comment

Comments

@Helveg
Copy link

@Helveg Helveg commented Nov 14, 2019 •

Running

pip install codecov
codecov

on Semaphore CI fails with the following error:


Traceback (most recent call last):
--
  | File "/home/semaphore/.pyenv/3.7/bin/codecov", line 8, in <module>
  | sys.exit(main())
  | File "/home/semaphore/.pyenv/3.7/lib/python3.7/site-packages/codecov/__init__.py", line 365, in main
  | build=os.getenv('SEMAPHORE_BUILD_NUMBER') + '.' + os.getenv('SEMAPHORE_CURRENT_THREAD'),
  | TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
  | exit code: 1 duration: 0s

This is to be expected as SEMAPHORE_BUILD_NUMBER is not listed in the docs. This seems to be a difference between Semaphore 2.0 and Semaphore, where this env var is available.

Is there support for Semaphore 2.0?

@Helveg
Copy link
Author

@Helveg Helveg commented Nov 14, 2019

Also important to notice is that the SEMAPHORE env var that is being checked to determine that Semaphore CI is being used, is also set to true if Semaphore 2.0 is being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.