Skip to content

feat(r8): Sort ambiguous no-range entries alphabetically#87

Merged
romtsn merged 1 commit intorz/feat/r8-tests-line-number-handlingfrom
rz/fix/r8-tests-ambiguous-sorting
Feb 16, 2026
Merged

feat(r8): Sort ambiguous no-range entries alphabetically#87
romtsn merged 1 commit intorz/feat/r8-tests-line-number-handlingfrom
rz/fix/r8-tests-ambiguous-sorting

Conversation

@romtsn
Copy link
Copy Markdown
Member

@romtsn romtsn commented Feb 9, 2026

Summary

  • When multiple no-range entries with different original method names all have line mappings (original_startline.is_some()), sort them alphabetically by original method name
  • Bare method entries (original_startline.is_none()) continue to preserve original mapping file order

Fixes test_single_line_no_line_number_stacktrace — all 10 R8 line number handling tests now pass.

Test plan

  • All 138 tests + 11 doc tests pass
  • test_single_line_no_line_number_stacktrace now passes (ordering: main3 before method3)
  • test_ambiguous_stacktrace still passes (bare methods preserve file order: foo before bar)
  • make format and make lint pass

@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 5ab7394 to 62eb94d Compare February 9, 2026 16:17
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from 92b293d to a2ff34c Compare February 9, 2026 16:18
@romtsn romtsn requested a review from loewenheim February 9, 2026 16:33
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 62eb94d to eda47ad Compare February 10, 2026 09:55
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch 2 times, most recently from b1ce9ec to 9db871a Compare February 10, 2026 12:34
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch 2 times, most recently from e694bdf to ed74fe4 Compare February 10, 2026 12:45
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from 9db871a to 86ca9fb Compare February 10, 2026 12:45
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from ed74fe4 to 8eb23e5 Compare February 10, 2026 13:03
@romtsn romtsn requested a review from loewenheim February 10, 2026 13:04
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 8eb23e5 to f6d1201 Compare February 10, 2026 17:31
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from 86ca9fb to b692685 Compare February 10, 2026 17:31
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from b692685 to b9b4841 Compare February 13, 2026 16:35
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch 2 times, most recently from 00087b5 to 0658c98 Compare February 13, 2026 16:45
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from b9b4841 to 62ed8da Compare February 13, 2026 16:45
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 0658c98 to f94b546 Compare February 13, 2026 16:54
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch 2 times, most recently from 0af8489 to 1951c06 Compare February 16, 2026 09:35
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from f94b546 to d48f3f2 Compare February 16, 2026 09:35
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from 1951c06 to d1a627a Compare February 16, 2026 12:44
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from d48f3f2 to 5f1a780 Compare February 16, 2026 12:44
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from d1a627a to 352028f Compare February 16, 2026 12:51
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch 2 times, most recently from 956a341 to 232a9b7 Compare February 16, 2026 13:02
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from 352028f to b4acde2 Compare February 16, 2026 13:02
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 232a9b7 to 2397ca1 Compare February 16, 2026 13:16
@romtsn romtsn force-pushed the rz/fix/r8-tests-span-and-fallback branch from 74b317e to ea0879b Compare February 16, 2026 13:22
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 2397ca1 to 399ec14 Compare February 16, 2026 13:22
Base automatically changed from rz/fix/r8-tests-span-and-fallback to rz/feat/r8-tests-line-number-handling February 16, 2026 13:32
When multiple no-range entries with different original method names all
have line mappings, sort them alphabetically. Bare method entries (no
line mapping) preserve original mapping file order.

Fixes test_single_line_no_line_number_stacktrace — all 10 R8 line
number handling tests now pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@romtsn romtsn force-pushed the rz/fix/r8-tests-ambiguous-sorting branch from 399ec14 to 56d7246 Compare February 16, 2026 13:35
@romtsn romtsn merged commit a346b38 into rz/feat/r8-tests-line-number-handling Feb 16, 2026
6 checks passed
@romtsn romtsn deleted the rz/fix/r8-tests-ambiguous-sorting branch February 16, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants