Repository navigation
Declare the RELEASE build arg and report it to Sentry - #862
Merged
Merged
Conversation
CI passes RELEASE=<sha> to every image build, but the Dockerfile never declared the ARG, so docker dropped it and nothing in the container knew which commit it runs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The generated CI passes
RELEASE=${{ github.sha }}to all three image builds, but the Dockerfile never declaresARG RELEASE, so Docker drops it (with a "build-arg not consumed" warning) and the container has no idea which commit it runs.ARG RELEASE/ENV RELEASE=$RELEASEin the base stage.sentry_sdk.init(release=…)— Sentry only auto-readsSENTRY_RELEASE, so without this errors still carry no release. Empty →None, Sentry's own fallback.Validation. Image built from this template with
--build-arg RELEASE=c5fc975abc:$RELEASEin the container andsentry_sdk.get_client().options["release"]are bothc5fc975abc; built without the arg, release isNone.ruffandmypypass on the changed module. medical-backend has declared the arg the same way and tagged GlitchTip events with it for months (app/release.py, used for Sentry and outgoingUser-Agents).🤖 Generated with Claude Code