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

Where to find deployed dependency versions? #363

Open
3 tasks
j08lue opened this issue Apr 29, 2024 · 3 comments
Open
3 tasks

Where to find deployed dependency versions? #363

j08lue opened this issue Apr 29, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Comments

@j08lue
Copy link

j08lue commented Apr 29, 2024

Our backend dependencies are often changing fast, as we are implementing fixes in upstream libraries like rio-tiler and want to try them out in our services.

For debugging and diagnostics, it would be super helpful to be able to see which versions are currently deployed on a stage.

What I am looking for is basically the output of pip freeze in the case of Python-based APIs, or at least the versions of major dependencies.

Some Python packages have interfaces like this, too, like rasterio.show_versions() - NB: As an API user, I am not interested in the GDAL version, for example. The rasterio version is enough.

Some places I can think of where this info would be nicely accessible would be:

  • In the /docs
  • Returned by /healthz, or some other dedicated endpoint
  • In some tagged release on GitHub where versions are pinned

Acceptance criteria

  • As an API user, I can easily retrieve the versions of API and dependencies, so I can better diagnose or report issues.
  • As an API user, I am able to discover where to find this information, so I can do this on my own without knowing about implementation details beforehand.
  • versions/ endpoint is NOT in swagger docs
@j08lue j08lue added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 29, 2024
@smohiudd
Copy link
Contributor

@amarouane-ABDELHAK, @anayeaye I think this is related to what we were discussing on Friday about a better way to store our dependency versions and using something other than setup.py

@j08lue
Copy link
Author

j08lue commented May 15, 2024

I know we added /versions endpoints to some of our services - did we do that for all of them? And is this endpoint documented anywhere - probably the Swagger docs?

@j08lue j08lue added the good first issue Good for newcomers label May 15, 2024
@anayeaye
Copy link
Collaborator

@j08lue I'm on the fence about adding the endpoint vs generating some other build artifact accessible to developers/maintainers only because it feels off to expose that information. If we do back port the endpoint to veda-backend services I think we should not include it in the swagger docs schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants