Merged
Conversation
loewenheim
approved these changes
Dec 19, 2025
romtsn
commented
Dec 23, 2025
romtsn
commented
Dec 23, 2025
romtsn
commented
Dec 23, 2025
Member
Author
|
@loewenheim I've updated tests to match the exact expected output from retrace, and have a couple of questions that we need to make a decision on, hence re-requested a review |
Contributor
|
I would honestly not support these alternative stacktraces for now—I don't understand how they work and can't see how we would consume them. |
romtsn
commented
Jan 21, 2026
romtsn
commented
Jan 21, 2026
romtsn
commented
Jan 21, 2026
romtsn
commented
Jan 21, 2026
romtsn
commented
Jan 21, 2026
romtsn
commented
Jan 21, 2026
- Improved stacktrace parsing to handle frames that omit a line number (e.g. (Unknown), (Unknown Source), (Foo.java)) by treating them as line 0 so they can be retraced. - Enhanced retracing behavior for unknown-line frames: - Prefer base (no-line) mappings when the stacktrace frame has no line info. - Still prefer line-specific mappings when a concrete line is present (skipping 0:0 / base entries appropriately). - Added best-effort class remapping even when the method name isn’t mapped (replicates symbolicator behaviour -- we can probably ditch it from symbolicator once this is shipped) - Aligned cache behavior with mapper behavior: - Cache serialization no longer drops base/no-line member mappings (instead, we check it during remapping) - Cache remapping now mirrors mapper rules for unknown-line frames (including deduplication) The tests in #71 should pass with this PR
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.
Part of #40
There are failing tests in this PR that need fixes in the mapper/cache itself, so I will open a follow-up PR that targets this branch.
R8 Retrace Test Coverage