Keep boot trace text readable when map records lack names (BOOT-TRACE-MAP-NAME) #1962

Open
github-bot wants to merge 1 commit from github-bot/gh-1962 into main AGit
Owner

@⁠alexandersato0830 on GitHub · 2026-11-25 16:49 UTC · original
alexandersato0830:codex/boot-trace-map-name → main · +26 −1 · 2 files · 1 commits · open

Claimed in the coordination issue as: BOOT-TRACE-MAP-NAME

What and why

A startup trace can contain a parseable map record whose module name is missing or malformed. The text formatter currently concatenates that value with the relocation suffix and throws TypeError, 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.py passed all 35 tests. The new synthetic JSONL regression throws TypeError before the fix.
  • python -I tests/test_dev_boot_trace.py passed all 5 tests.
  • git diff --check and 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

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
**@⁠alexandersato0830** on GitHub · 2026-11-25 16:49 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1962) `alexandersato0830:codex/boot-trace-map-name` → `main` · +26 −1 · 2 files · 1 commits · open Claimed in the coordination issue as: [BOOT-TRACE-MAP-NAME](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why A startup trace can contain a parseable `map` record whose module name is missing or malformed. The text formatter currently concatenates that value with the relocation suffix and throws `TypeError`, 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.py` passed all 35 tests. The new synthetic JSONL regression throws `TypeError` before the fix. - `python -I tests/test_dev_boot_trace.py` passed all 5 tests. - `git diff --check` and 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 - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:12:56 +00:00
Author
Owner

@⁠MSedgeMC on GitHub · 2026-11-25 17:11 UTC · original · approved these changes

Verified on the PR branch: python3 -m unittest tests.test_boot_trace -v -> 35 tests OK, including the new test for map records with missing/non-string/empty module names. The fix guards module.get('module') before concatenation, which previously raised TypeError on malformed records, and preserves the relocated marker. Python-only, no game data.

**@⁠MSedgeMC** on GitHub · 2026-11-25 17:11 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1962#pullrequestreview-6061832983) · **approved these changes** Verified on the PR branch: python3 -m unittest tests.test_boot_trace -v -> 35 tests OK, including the new test for map records with missing/non-string/empty module names. The fix guards module.get('module') before concatenation, which previously raised TypeError on malformed records, and preserves the relocated marker. Python-only, no game data.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1962/head:github-bot/gh-1962'
git switch 'github-bot/gh-1962'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1962'
git switch 'github-bot/gh-1962'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1962'
git switch 'github-bot/gh-1962'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1962'
git switch 'main'
git merge --squash 'github-bot/gh-1962'
git switch 'main'
git merge --ff-only 'github-bot/gh-1962'
git switch 'main'
git merge 'github-bot/gh-1962'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.