codecov / self-hosted

Example of how to setup Codecov with docker compose
Other
447 stars 36 forks source link

insert RUN_ENV envrionment for worker #14

Closed LeoQuote closed 1 year ago

LeoQuote commented 1 year ago

for enterprise instance, this environment should set to RUN_ENV

https://github.com/codecov/worker/blob/5d91d084eb8c80fd1f26c685d5076df9b5d8b80f/helpers/environment.py#L44-L59

koltyakov commented 1 year ago

Out of the interest, what's the difference between Enterprise and Production?

LeoQuote commented 1 year ago

Out of the interest, what's the difference between Enterprise and Production?

I don’t know exactly how different they are, you can check the code if you want

fmdoe commented 1 year ago

Out of the interest, what's the difference between Enterprise and Production?

Enterprise uses the custom url from the config in PR comments and notifications: https://github.com/codecov/worker/blob/4ce002549166bfbbede1931db9e724ca4011457a/services/urls.py#L47-L55

koltyakov commented 1 year ago

So it sounds that RUN_ENV=ENTERPRISE is a must have for self-hosted for now.

LeoQuote commented 1 year ago

@koltyakov exactly, if this is unset, comment posted by codecov bot would have link starting with app.codecov.io instead of your enterprise instance

trent-codecov commented 1 year ago

Your assessment is correct. Thanks for the fix. We use RUN_ENV=ENTERPRISE to do a couple of things:

  1. don't check for upload limitations
  2. use your base url rather than app.codecov.io
  3. probably other things I am forgetting 😄