Repository navigation
fix(native): Fall back to the debug image name for frames without a package - #131456
Conversation
6bd3050 to
1f2d5ed
Compare
bf9a67d to
611c253
Compare
|
i think this might make more sense to fix in symbolicator, asking the team edit: maybe a little of both |
…ackage Frames symbolicated via debug_id can end up without a `package`, so the frame title showed no binary name (and nothing but <unknown> when no symbol was resolved either). When the frame carries no package, look up the debug image whose address range contains the frame's instruction address and display its code file name. Fixes getsentry#108356
Native crash frames render through NativeFrame, which has the matched debug image in scope; use its code file name when the frame is stored without a package, mirroring the DefaultTitle fallback.
Head branch was pushed to by a user without write access
2d5e165 to
c124227
Compare
|
Thanks for the review! Sounds good — happy for this to be the UI half of "a little of both": the native frame view (NativeFrame) and the generic frame title both fall back to the matched debug image's |
Moves the image lookup out of the DefaultTitle props into a `getImageName` helper that both frame views share. The deprecated line also checks `debug_file` now, same as NativeFrame, since MetricKit images can be missing `code_file`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since #131408, a label event other than `Trigger: Override Selective Testing` starts an acceptance run where every job skips and the aggregator reports as `Acceptance (ignored label event)`. If that run is the newest acceptance run on a commit, the merge box keeps waiting for the required `Acceptance` check, even though an older run on the same commit passed. Re-running the older run doesn't help, because it is still not the newest run. This hits PRs where a person adds a label after the last push. The common case is Seer and bot PRs that need `Trigger: getsentry tests` added again after each push. #131004, reported by @gggritso, is one example: `Acceptance` passed twice on its head commit, the PR is approved, and it still shows as blocked. #131456 shows the same pattern. This change handles label events the way `backend.yml` already does: - They share the PR's concurrency group. - They run selective acceptance as usual. - They report `Acceptance`. The override label keeps working, because `skip_selective_testing` still reads the PR's labels. Trade-off: each manual label added to a PR now starts a selective acceptance run and cancels any run in progress, just like backend. #131408 used the ignored-label path to avoid that cost. Open question: the claim that the merge box only counts the newest run per workflow is inferred from the check and merge state of the PRs above, not from GitHub docs. Refs DI-2885 <!-- junior-request-attribution:start --> via @joshuarli. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3ACTJL7358X%3A1795105768.817939 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3ACTJL7358X%3A1795105768.817939) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3ACTJL7358X%3A1795105768.817939/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Joshua Li <[email protected]>
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.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit df05c17. Configure here.
| const addressTooltip = getAddressTooltip(); | ||
| const functionName = getFunctionName(); | ||
| const status = getStatus(); | ||
| const packageName = frame.package ?? getImageName(image); |
There was a problem hiding this comment.
Unsized debug images still do not match
Medium Severity
The new package fallback only runs after findImageForAddress returns an image, but that helper still treats a missing image_size as a zero-width range, so no instruction address matches. MetricKit debug images often omit size (Sentry then treats the image as spanning to the next one), so those frames can still render as <unknown> even when Symbolicator has filled in debug_file.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit df05c17. Configure here.
Went through native issues side by side with the legacy stack trace after merging master and fixed what had drifted. Traces with no system frames are forced to the full view, same rule as legacy, and "Most Relevant" is disabled while that applies. The selection is kept so it comes back on a thread that can be filtered. Frames without a package fall back to the debug image name, matching #131456. The frame header lays out by its own container now. Under 320px the function, package + address and actions each get a line, up to 768px the function gets its own line, and above that it's one row of columns that widen with the container. Missing traces all say "No stack trace available" in the new component. Co-Authored-By: Claude Fable 5.2 <[email protected]>


Native frames from debug images without a file name showed
<unknown>instead of the binary, even when the frame symbolicated. This happens with MetricKit frames when Apple leaves out the binary name.Frames now show their debug image's name when they have no package, and frames in images without a size match the same way Symbolicator matches them. getsentry/symbolicator#2201 adds the dSYM's name to those images.
fixes #108356