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

Two sources of truth for TEA version #775

Open
reweeden opened this issue Dec 7, 2023 · 0 comments
Open

Two sources of truth for TEA version #775

reweeden opened this issue Dec 7, 2023 · 0 comments

Comments

@reweeden
Copy link
Contributor

reweeden commented Dec 7, 2023

Because of how we manage the version number, if you deploy one version of the code zip with a different version of the cloudformation.yaml you will get differing version numbers in the logs than you do from the /version endpoint. This is because the version from the version endpoint is baked into the source code by the Makefile while the version from the logs is pulled from the environment which is set in the cloudformation.yaml.

Probably we should not be setting the environment variable from the cloudformation. The tricky thing is that the version in the logs is set by rain-api-core here: https://github.com/asfadmin/rain-api-core/blob/5a62aa1d767e9a0efd5e7ccb2dd2260d0503582a/rain_api_core/logging.py#L202 so we would need to figure out an alternate way to pass that version number in.

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

No branches or pull requests

1 participant