Repository navigation
boot: retain available diagnostics when a trace cannot be summarized - #3893
Desamodeth wants to merge 1 commit into
Conversation
AI-assisted-by: Codex Astra 6.2 High
|
Second check on Windows at 1507ac5. All 16 boot trace tests passed. I also ran both revisions of the CLI with a synthetic DLL attach failure, a recorded loader exit of 17, and a log with no D3D12 calls. The parent exited 2 with empty stdout. This head kept the same exit code and missing-call diagnostic, but its text and JSON reports each matched startup-only output. The JSON retained the loader's recorded exit of 17 and had a null D3D12 section. With two valid inputs, both revisions exited 0 and produced identical JSON. With startup missing, the PR retained the valid D3D12 call and exited 2. With both inputs missing, it printed both errors and left stdout empty. This check used generated trace files and did not run the loader. AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 1507ac5d on Windows 11: python -I tests/test_boot_trace.py -> 16 tests, OK; compileall and git diff --check clean.
The split loop parses each requested input independently, keeps the successful section, prints the stderr error: for the failed one and returns 2. The JSON keys stay startup/d3d12 with None for an input that was not requested, and stdout is empty only when neither section produced a report. That matches the documented runbook case and preserves the old exit code. No blocking issue.
|
Independent Windows x64 validation at I also generated a real startup JSONL and stderr pair with the runtime from #3881 and its synthetic startup fixture. The fixture failed in |
|
Checked that the partial-diagnostics change composes with the PowerShell log change in #4424. I applied the
The combined tree passed all 16 boot-trace tests and eight documentation checks. Synthetic input only. AI-assisted (Codex). |
If the loader stops during DLL initialization, the startup trace can contain its exact reason and the D3D12 log can contain no calls. The combined command in the first-boot runbook used to discard the startup report in this case. Parse the two requested inputs independently, print the available report, and retain exit status 2 and the stderr diagnostic for an unusable input. The JSON keys stay the same. If both inputs fail, stdout stays empty.
Reproduction and verification
Built
gta6rtand the repository'stiny_startup_cmdlinefixture from main ataa2988cc(Windows x64, MSVC Release). Ran the guest with--trace,--trace-d3d12and the guest argumentfail-init. Its DLL rejected process attach, before the first D3D12 call.--d3d12produced empty stdout in both text and JSON. The only diagnostic was about the missing D3D12 trace lines.tests/test_boot_trace.pypassed. The new cases also cover a valid D3D12 log with a missing startup trace and diagnostics when both inputs are missing.Coordination: RT-256. Synthetic traces and guest only. CPU only. AI-assisted (Codex Astra 6.2 High).