feat(health): include service version in /health response#33
Merged
Conversation
nmgarza5
approved these changes
May 6, 2026
Clients can now read ``version`` from the ``/health`` payload to gate calls to functionality that's only available in newer releases. The value is sourced from the installed package metadata rather than a hardcoded string, so the FastAPI app and the health response stay in sync with the version declared in pyproject.toml. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The helm chart at kubernetes/code-interpreter/Chart.yaml has been on 0.3.3 since #27, but both pyproject.toml files were still reporting 0.1.0. Now that /health surfaces the package version to clients, line the pyproject versions up with the chart so a single number tracks across artifacts. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Catches drift between the Python package version (what /health reports to clients) and the chart version (what's actually deployed). If they get out of sync, a client gating on /health's version may try to use features that aren't actually shipped. Reads kubernetes/code-interpreter/Chart.yaml directly via a small regex so the test has no extra dependencies. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26dd075 to
60a57c9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Clients can now read
versionfrom the/healthpayload to gate calls to functionality that's only available in newer releases. The value is sourced from the installed package metadata rather than a hardcoded string, so the FastAPI app and the health response stay in sync with the version declared in pyproject.toml.