Keep boot trace text readable when map records lack names (carry of #1962) #3089
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3089
Loading…
Reference in a new issue
No description provided.
Delete branch "carry/1962"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: BOOT-TRACE-MAP-NAME (the original author's item ID, claimed at https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7168564771)
What and why
Carry of #1962 (alexandersato0830), unchanged since 2026-11-25. Branch = main + the author's head (commit kept) + conflict resolution + no further commits of mine.
A startup trace can contain a parseable
maprecord whose module name is missing, empty or not a string.format_textintools/boot_trace.pyconcatenated that value with the(relocated)suffix and raisedTypeError, so the whole text summary was lost. The change prints<unknown module>for such records and keeps the relocation marker.Conflict:
tests/test_boot_trace.pyhad two tests added at the same insertion point (the author's map-record test and main's file-open histogram test). I kept both.tools/boot_trace.pymerged without conflict.Review: the only change request (aslan2142, 2026-12-01) asked for a rebase onto current main, which this branch does. No other defect was raised, so I made no fix commit.
Tested
Windows 11, no GPU, no game files, on main a917c54d6 plus this branch.
python -I tests/test_boot_trace.py: Ran 42 tests, OK.python -I tests/test_dev_boot_trace.py: Ran 5 tests, OK.tools/boot_trace.pyrestored to main's version,python -I tests/test_boot_trace.pygives Ran 42 tests, FAILED (errors=1); the failing test istest_text_summary_survives_map_records_without_a_module_name. File restored afterwards.python -I scripts/check_no_game_data.py tools/boot_trace.py tests/test_boot_trace.py: clean (exit 0).Not run: the full suite, CI.
GPUs tested: n/a (unit tests only)
AI-assisted: yes. Models: Claude Opus 5.5 in Claude Code (carry, conflict resolution, fixes, tests); separate read-only reviewer agent: Claude Opus 5.5.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (Not applicable: no translator rule.)Supersedes #1962 once merged; the original stays open until a maintainer decides.
🤖 Generated with Claude Code
RUN (independent run on Windows, #3089 head 4079705d6, merged locally into
main9b4d71899 withgit merge --no-ff, no conflicts. CI on the head: change-scope, check, linux-python-and-viewer, no-game-data and semantic-tests all pass.)python -I tests/test_boot_trace.py -v: main 41 tests OK; merge 42 tests OK.python -m pyteston the 8 test files that nameboot_trace: main 71 passed; merge 72 passed.main'stools/boot_trace.pywith this pull request's test file gives 42 tests and 1 error,test_text_summary_survives_map_records_without_a_module_name(TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'), as the body says.42,"", and one relocated module), throughmain()in each output mode:mainraisesTypeError; the merge exits 0.--jsonand--counts-only: exit 0 on both sides with the same output size. Only the text summary had this bug.tools/boot_trace.py, each run with the whole test file and restored afterwards (git statusclean). All 4 are killed:isinstance(name, str)check dropped): killed. The integer name then breaks the summary.not namedropped): killed. The empty name prints as nothing.(relocated)marker dropped: killed (the new test andtest_text_report_has_the_triage_units).Not covered here: Linux and macOS, and a real
gta6rt --tracefile (synthetic records only).Verdict: PASS. The text summary now survives map records without a usable module name and keeps the relocation marker, red on
mainand green on the merge match the body, every mutation tried is killed, and the author's commit is kept.Machine: Windows 11 Pro 26300 (NTFS), i9-13900K, 64 GB, CPython 3.13.12 (CI uses 3.12); unit tests only, no GPU or game files used.
Merging. Head
4079705d6merges cleanly withmain23a51c494and does not force a rebase of #2566. Moon's own pull request, merged on green CI at his instruction. An independent read-only check by a separate agent on head 4079705d6 found every CI check green including no-game-data, no conflict with current main, no open review or unanswered question, and for a carry the original author's commits kept as ancestors. Merged by MoonEyes.AI-assisted (Claude Code).