fix(ci): inject Sentry debug IDs at build time so uploaded source maps match the deployed bundles - #1213
Draft
ThibaudDauce wants to merge 1 commit into
Draft
fix(ci): inject Sentry debug IDs at build time so uploaded source maps match the deployed bundles#1213ThibaudDauce wants to merge 1 commit into
ThibaudDauce wants to merge 1 commit into
Conversation
ThibaudDauce
force-pushed
the
fix/sentry-debug-ids
branch
from
August 29, 2026 09:07
2550543 to
ac798bf
Compare
…s match the deployed bundles
ThibaudDauce
force-pushed
the
fix/sentry-debug-ids
branch
from
August 29, 2026 12:12
ac798bf to
b87e164
Compare
ThibaudDauce
marked this pull request as draft
August 29, 2026 20:25
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.
Sentry stacks on prod point at the wrong functions.
getsentry/action-releaseinjects debug ids by default before uploading, andsentry-cli sourcemaps injectprepends 2 lines to every bundle and shifts its source map accordingly. It runs in thesentryjob on a copy nobody deploys:dockerdownloaded the same artifact before, so prod serves the bundle without the ids and every frame resolves 2 lines too early.The served
_nuxt/BCgWgZak.jshas 35 lines and no//# debugId=. Resolving the real throw position of theCannot destructure property 'bum'issue through both maps:Sentry showed
prepareAnchor, so we spent a while looking at Teleport for a crash inunmountComponent.Injection moves to the
buildjob, before the artifact upload, and thesentryjob keeps doing the upload withinject: false. Ran a local build then the injection step on its output, over the 490 chunks:I tried letting the Sentry bundler plugin inject instead, since it runs in
renderChunkand shifts nothing at all. It doesn't work here: it only writes the runtime_sentryDebugIdssnippet, never the//# debugId=comment nor thedebugIdkey in the map, andsentry-cli sourcemaps uploadneeds both (--debug-id-referencehelp: "By default Debug ID reference has to be present both in the source and the related sourcemap"). It only writes them at upload time, on temp copies, which is the part we don't want in the build. Running both injectors is worse: the chunk ends up withsentry-dbid-c57fb1d3…at runtime and//# debugId=026fe91a…in the artifact.