Repository navigation
feat(sourcemaps): Set has_debug_ids when linking an artifact bundle to a project - #130422
Merged
Merged
Conversation
lcian
previously approved these changes
Nov 9, 2026
sentry-junior
Bot
force-pushed
the
feat/artifact-bundle-write-has-debug-ids
branch
from
November 10, 2026 15:32
f35549c to
e4f9349
Compare
sentry-junior
Bot
dismissed
lcian’s stale review
November 10, 2026 15:33
The stack changed: has_debug_ids moved from ArtifactBundle to ProjectArtifactBundle with a partial index on project_id, and the PRs are rebased on master. Please review again.
sentry-junior
Bot
force-pushed
the
feat/artifact-bundle-write-has-debug-ids
branch
from
November 11, 2026 23:13
e4f9349 to
1f05b9c
Compare
loewenheim
approved these changes
Nov 12, 2026
sentry-junior
Bot
force-pushed
the
feat/artifact-bundle-write-has-debug-ids
branch
from
November 12, 2026 20:21
c0c77c2 to
e88c02a
Compare
Contributor
Sentry Snapshot Testing
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e88c02a. Configure here.
sentry-junior
Bot
force-pushed
the
feat/artifact-bundle-write-has-debug-ids
branch
2 times, most recently
from
November 13, 2026 09:15
a6e8ef0 to
4470b1c
Compare
Base automatically changed from
feat/artifact-bundle-has-debug-ids-schema
to
master
November 13, 2026 09:24
…o a project A link to a new bundle gets the flag from whether its archive has files with debug IDs, which is also when the bundle's DebugIdArtifactBundle rows are written. A re-upload of an existing bundle writes no debug-ID rows, so its links get the flag from whether the bundle already has them. Co-Authored-By: Jan Michael Auer <[email protected]>
…dles Linking an existing bundle to a project read the bundle's debug-ID rows to set the flag. It now uses the uploaded archive, as for a new bundle, so the upload no longer reads DebugIdArtifactBundle rows. Co-Authored-By: async jauer <[email protected]>
…ndle is re-dated With sourcemaps.artifact-bundles.date-only-on-bundle on, get_or_create kept the old has_debug_ids on a link that already existed, so a re-upload did not correct a link that still had the column default. Write the flag when it differs from the archive.
jan-auer
force-pushed
the
feat/artifact-bundle-write-has-debug-ids
branch
from
November 13, 2026 09:24
4470b1c to
e36737c
Compare
jan-auer
added a commit
that referenced
this pull request
Nov 13, 2026
…t bundles (#130424) Links created before #130422 have `has_debug_ids = false`, also when their bundle has debug-ID rows. This PR adds two post-deployment migrations. Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan Michael Auer <[email protected]> Co-authored-by: Lorenzo Cian <[email protected]>
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.

ProjectArtifactBundle.has_debug_idstells if the linked bundle has files with debug IDs. The source map debugger uses it in #130425, so that it does not read theDebugIdArtifactBundlerows.The upload sets the flag on each project link that it creates or updates. The flag comes from the uploaded archive, both for a new bundle and for an existing one, for example when someone uploads the same bundle to a new project. So linking never reads
DebugIdArtifactBundlerows, which we want to move out of Postgres.For an existing bundle, the archive can in theory differ from the debug-ID rows written by its first upload, if the same
bundle_idcomes with different content. The flag then describes the latest upload, which is what the debugger wants to know: whether the project's tooling uploads files with debug IDs.The demo-mode sync does not copy debug-ID rows, so its links keep the default
false.Requires #130421
via @jan-auer.
--
View Session [Sentry]