Skip to content

fix(tools): keep the final observed boot exception in the summary - #4223

Open
Vonsek wants to merge 1 commit into
ItsNotRexed:mainfrom
Vonsek:codex/boot-trace-final-exception
Open

Vonsek wants to merge 1 commit into
ItsNotRexed:mainfrom
Vonsek:codex/boot-trace-final-exception

Conversation

@Vonsek

@Vonsek Vonsek commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: EGEN-BOOT-TRACE-FINAL-EXCEPTION (Codex)

What and why

Earlier exceptions could fill the summary and hide the final observed exception and its stack. When the section fills, keep the final observation in the last slot while retaining the report limit and total exception count. The last recorded exception does not establish why startup stopped.

Tested

Linux cloud, CPU only. The synthetic text and JSON regression failed before the change at limits 1 and 10 and passes on 4866ae5. All 14 tests in tests/test_boot_trace.py passed. Windows and GPU execution were outside this check.

Checklist

  • No game data, keys or decryption, including logs and reports.

AI-assisted.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 4866ae5c on Windows 11: python -I tests/test_boot_trace.py -> 14 tests, OK; git diff --check clean.

With a cap, the first limit - 1 exceptions stay and the last slot is replaced by each newer exception, so the summary ends on the final observed one instead of the first N; --limit 0 records none. The new case pins that and the existing trace tests still pass. No blocking issue.

@Kam471

Kam471 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Duplicate note: #4227 (\�39a62a0, BUILD-1210) fixes the same capped-exception summary by keeping the samples and appending a separate \last_exception; this PR replaces the last slot instead. Both pass \ ests/test_boot_trace.py\ (14 OK) at their heads. Claim times: #4227's claim at \2026-11-23T00:05:07Z, this one at \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants