mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:50:52 +01:00
[PR #1962] Keep boot trace text readable when map records lack names (BOOT-TRACE-MAP-NAME) #1970
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1970
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1962
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/boot-trace-map-name📝 Commits (1)
28c4f41Keep boot trace text readable when map records lack names📊 Changes
2 files changed (+26 additions, -1 deletions)
View changed files
📝
tests/test_boot_trace.py(+18 -0)📝
tools/boot_trace.py(+8 -1)📄 Description
Claimed in the coordination issue as: BOOT-TRACE-MAP-NAME
What and why
A startup trace can contain a parseable
maprecord whose module name is missing or malformed. The text formatter currently concatenates that value with the relocation suffix and throwsTypeError, so the caller loses the entire summary.Print
<unknown module>when the name is absent, empty, or non-text. The text summary still shows the module count, valid names, relocation markers, and later events such as the exit code. The JSON report keeps its existing fields and values.Tested
python -I tests/test_boot_trace.pypassed all 35 tests. The new synthetic JSONL regression throwsTypeErrorbefore the fix.python -I tests/test_dev_boot_trace.pypassed all 5 tests.git diff --checkand the source-only check passed. Tested on Windows 11 with Python 3.11.17.GPUs tested: n/a (CPU-only synthetic fixtures)
AI-assisted: yes (Codex)
Checklist
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.