boot_trace: identify the last recorded startup event #2245
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2245"
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?
Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T10:23:33Z.
Claimed in the coordination issue as: BOOT-TRACE-LAST-STARTUP-RECORD
What and why
A startup trace can end midway through a JSON line. Retain the kind, sequence number and elapsed seconds of the last complete record, and show it when the process has no recorded exit. The regression appends a torn line after a synthetic debug event and checks that the debug payload stays out of the report.
Tested
Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.
python -I tests/test_boot_trace.pygit diff --checkand the changed-path no-game-data scan passed.GPUs tested: N/A (synthetic CPU tests).
AI-assisted: Yes.
Checklist
Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-26T10:42:47Z.
Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
tests/test_boot_trace.py: 35 passed, 19 subtests passed (main: 34 passed).(AI-assisted test run; output checked by hand.)
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T11:10:46Z.
Review: COMMENTED
Windows 11: 35/35 boot trace tests passed, including the last startup event in an interrupted synthetic trace. No findings from these checks.
AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T04:33:47Z.
Review: APPROVED
Approving
964e4535d.The last startup event (kind, sequence, time, each validated) is kept and printed when the trace has no exit, which is the case a stalled boot leaves.
Merged onto
maind1dff7949in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13.tests/test_boot_trace.py: 37 passed with #2246 and #2244 merged too (main: 34). AI-assisted (Claude Code, Claude Opus 5.5).Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:30:48Z.
Red/green: tests/test_boot_trace.py fails on main (KeyError: 'last_event') and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:00:21Z.
Verified by OreoFR
4a54aedcb+ PR head964e4535dpython -I tests/test_boot_trace.pyAI-assisted (Claude Code, Claude Opus 5.5).