Repository navigation
ref(sourcemaps): Read has_debug_ids in the source map debugger - #130425
Merged
Merged
Conversation
lcian
previously approved these changes
Nov 9, 2026
sentry-junior
Bot
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 9, 2026 16:06
d99b69d to
6b28c6c
Compare
Contributor
Sentry Snapshot Testing
|
sentry-junior
Bot
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 9, 2026 16:37
6b28c6c to
6affdfd
Compare
sentry-junior
Bot
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 10, 2026 15:32
5bee948 to
2430a48
Compare
This was referenced Nov 10, 2026
sentry-junior
Bot
dismissed
lcian’s stale review
November 10, 2026 15:34
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.
lcian
approved these changes
Nov 10, 2026
sentry-junior
Bot
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 11, 2026 23:13
2430a48 to
e66f49e
Compare
sentry-junior
Bot
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
5 times, most recently
from
November 13, 2026 09:15
f611952 to
1538b96
Compare
jan-auer
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 13, 2026 09:24
1538b96 to
8d81826
Compare
jan-auer
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 13, 2026 09:35
8d81826 to
c7174b0
Compare
Base automatically changed from
feat/backfill-artifact-bundle-has-debug-ids
to
master
November 13, 2026 10:01
When none of an event's debug IDs matched, project_has_some_artifact_with_a_debug_id now checks the has_debug_ids flag on the project's ProjectArtifactBundle links. The partial index answers this with one lookup, whether or not the project has such a link, so the check no longer reads DebugIdArtifactBundle and no longer needs the debug-id-check-max-bundles cap. The option stays registered until the automator stops setting it. Co-Authored-By: Jan Michael Auer <[email protected]> Co-Authored-By: Lorenzo Cian <[email protected]>
jan-auer
force-pushed
the
ref/source-map-debug-read-has-debug-ids
branch
from
November 13, 2026 10:01
c7174b0 to
fe97b9a
Compare
jan-auer
marked this pull request as ready for review
November 16, 2026 11:36
jan-auer
approved these changes
Nov 16, 2026
jan-auer
added a commit
that referenced
this pull request
Nov 17, 2026
…-store * ref/inline-payload-defaults: (2542 commits) feat(classifiers): Support search syntax in classifier list query (#131423) ref(settings): Update settings tour entry copy (#131424) fix(conversations): Track tab switch from the View Timeline button (#131196) ref(sourcemaps): Read has_debug_ids in the source map debugger (#130425) ci(acceptance): Re-run on the override selective testing label (#131408) feat(inbox): Include inbox URLs in item responses (#131406) ref(flags): Remove `organizations:jira-explicit-mapping-removals` (frontend) (#130393) ci(acceptance): Select acceptance tests on pull requests (#131325) fix(audit-log): Render legacy internal integration token entries (#131042) ref(api): Drop the isRecord guard from SentryApiError body reads (#131394) ref: bump sentry-protos to 0.120.1 (#131396) feat(inbox): add URL configuration for inbox events (#131336) fix(circuit-breaker): Don't raise from record_error or record_success when redis fails (#131364) fix(redis): Let cluster client_args set the per-node connection limit (#131355) fix(sentry-apps): Stop retrying service hooks to blocked or unreachable URLs (#131171) fix(charts): Stop tooltip errors when a chart refresh removes series (#131341) perf(crons): Make the check-in timeout index partial (#131376) feat(api): Know per-operation error codes and read top-level codes (#131362) feat(api): Generate error codes and challenge fields from the spec (#131287) feat(apidocs): Mark auth-challenge error codes in the error component (#131346) ... # Conflicts: # src/sentry/conf/server.py # src/sentry/event_manager.py # src/sentry/ingest/consumer/attachment_event.py # src/sentry/ingest/consumer/processors.py # src/sentry/processing/backpressure/topology.py # src/sentry/tasks/store.py # tests/sentry/ingest/ingest_consumer/test_ingest_consumer_kafka.py # tests/sentry/ingest/ingest_consumer/test_ingest_consumer_processing.py # tests/sentry/processing/backpressure/test_checking.py # tests/sentry/processing/backpressure/test_monitoring.py # tests/sentry/tasks/test_post_process.py # tests/sentry/tasks/test_store.py # tests/sentry/tasks/test_symbolication.py
xb18
pushed a commit
to xb18/sentry
that referenced
this pull request
Nov 22, 2026
…defaults * origin/master: (2542 commits) feat(classifiers): Support search syntax in classifier list query (getsentry#131423) ref(settings): Update settings tour entry copy (getsentry#131424) fix(conversations): Track tab switch from the View Timeline button (getsentry#131196) ref(sourcemaps): Read has_debug_ids in the source map debugger (getsentry#130425) ci(acceptance): Re-run on the override selective testing label (getsentry#131408) feat(inbox): Include inbox URLs in item responses (getsentry#131406) ref(flags): Remove `organizations:jira-explicit-mapping-removals` (frontend) (getsentry#130393) ci(acceptance): Select acceptance tests on pull requests (getsentry#131325) fix(audit-log): Render legacy internal integration token entries (getsentry#131042) ref(api): Drop the isRecord guard from SentryApiError body reads (getsentry#131394) ref: bump sentry-protos to 0.120.1 (getsentry#131396) feat(inbox): add URL configuration for inbox events (getsentry#131336) fix(circuit-breaker): Don't raise from record_error or record_success when redis fails (getsentry#131364) fix(redis): Let cluster client_args set the per-node connection limit (getsentry#131355) fix(sentry-apps): Stop retrying service hooks to blocked or unreachable URLs (getsentry#131171) fix(charts): Stop tooltip errors when a chart refresh removes series (getsentry#131341) perf(crons): Make the check-in timeout index partial (getsentry#131376) feat(api): Know per-operation error codes and read top-level codes (getsentry#131362) feat(api): Generate error codes and challenge fields from the spec (getsentry#131287) feat(apidocs): Mark auth-challenge error codes in the error component (getsentry#131346) ... # Conflicts: # tests/sentry/ingest/ingest_consumer/test_ingest_consumer_processing.py # tests/sentry/tasks/test_reprocessing2.py # tests/sentry/tasks/test_store.py # tests/sentry/tasks/test_symbolication.py
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 source map debugger checks if a project uploaded any file with a debug ID. This check now queries
ProjectArtifactBundlefor a link of the project withhas_debug_ids = true. It does not read the debug-ID rows of the organization anymore.The partial index from #130424 answers this query with one index lookup. This is true when the project has such a link and when it does not. A local check on a synthetic table with 2M rows gave an index-only scan on the partial index that read 4 to 6 buffers in both cases.
The query is now bounded, so this PR removes the
debug-id-check-max-bundlescap and its code path. The cap also gave a wrong result for projects whose debug IDs were only in older bundles. The option stays registered for now. First remove its value from the options automator. Then remove the registration in a follow-up PR.The lookup of the debug IDs of the event still uses the debug-ID table, because it needs the file type of each debug ID.
Merge this PR only after both post-deployment migrations from #130424 ran in all regions. Without the index, this query reads all links of the project.
Requires #130424
via @jan-auer.
--
View Session [Sentry]