boot_trace: identify the last recorded startup event #2245

Merged
leonida/mandy
kirigayakazima merged 1 commit from codex/boot-trace-last-startup-record into main 2026-11-28 19:30:52 +00:00

Pull request successfully merged and closed

kirigayakazima commented 2026-11-26 10:23:33 +00:00

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.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
Claimed in the coordination issue as: [BOOT-TRACE-LAST-STARTUP-RECORD](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) ### 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.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
DeadlyChirp commented 2026-11-26 10:42:47 +00:00

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.)

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.)
lixonik reviewed 2026-11-26 11:10:46 +00:00
lixonik left a comment
No description provided.
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.
tiguan26 approved these changes 2026-11-27 04:33:47 +00:00
tiguan26 left a comment

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 main d1dff7949 in 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).

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 `main` `d1dff7949` in 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).
MoonEyes commented 2026-11-28 19:30:48 +00:00

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 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

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 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
OreoFR commented 2026-11-28 22:00:21 +00:00

Verified by OreoFR

  • Base: main 4a54aedcb + PR head 964e4535d
  • Test: python -I tests/test_boot_trace.py
  • Red on main: 1 error (last_event missing)
  • Green with the PR: 36 OK
  • Verdict: READY (merges cleanly with #2246 and #1962)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

**Verified by OreoFR** - Base: main `4a54aedcb` + PR head `964e4535d` - Test: `python -I tests/test_boot_trace.py` - Red on main: 1 error (last_event missing) - Green with the PR: 36 OK - Verdict: READY (merges cleanly with #2246 and #1962) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No description provided.