BOOT-RENDER-DIAG: summarize render evidence in boot traces #498
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!498
Loading…
Reference in a new issue
No description provided.
Delete branch "boot-render-diagnostics"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: BOOT-RENDER-DIAG
What and why
boot_trace.pysummarized D3D12 method calls but ignored the runtime's render diagnostics on the same stderr stream. A first-boot report therefore could not say whether captures were black, which shader classes were missing, or whether stub pipelines were being created without sharing the raw log.This recognizes fixed categories of shader-lookup failures, the stub-pipeline milestone, and presenter capture measurements, then emits only aggregate counts in text and
--counts-only. Raw log text, paths and game strings are not emitted.Carried from the source patch in Sigtryggur-Mani-Gudmundsson's graphics-runtime-patches collection:
github.com/Sigtryggur-Mani-Gudmundsson/graphics-runtime-patches@33ab48d3ea/README.md (reading-black-frame-and-missing-shader-evidence-from-a-boot-log)No game data, keys, or decryption are included.
Tested
python -I tests/test_boot_trace.py— 30 tests OKpython -I tests/test_docs_links.py— 16 tests OKpython -I tests/test_docs_cli_flags.py— 4 tests OKpython -I tests/test_ci_registration.py— 15 tests OKpython -m compileall -q tools tests— OKgit diff --checkcleanThe source report tested the parser on a saved synthetic presenter run. I reproduced the regression locally with the added synthetic log cases; no game files were used.
GPUs tested: n/a (CPU-only log parser)
AI-assisted: yes
Checklist
mainand merges cleanly.Reviewed 42041b6: ran tests/test_boot_trace.py and the dev-boot-trace/docs-cli-flags/dev-discovery tests on the PR and on main (sandbox); the two added tests fail on main as expected, all others pass. Verified the new regexes against the in-repo emitters (d3d12_vulkan_device.cpp:791/3540/4004, vulkan_present.h:1136) and probed prefixed, UTF-16, truncated and legacy lines on both trees — counts as designed, no digests or paths in --counts-only. Heads-up: git merge-tree flags conflicts in docs/boot.md and tools/boot_trace.py against main's newer XMem/frame-pacing changes, so it needs a rebase; and the stub-milestone / nonzero_rgb_pixels formats have no in-repo emitter yet, so those parsers stay inert until the runtime lands them. AI-assisted review.
Recommendation: Fix first
Rebased on current main; preserved both newer frame-pacing summaries and this PR’s render diagnostics. Verified: 36 boot-trace tests, docs CLI-flag 4/4, docs links 16/16, no-game-data and security checks clean.
Follow-up on 681dae3a: the rebase is clean. The branch merges into current main without conflicts, and
docs/boot.mdnow keeps both main's frame-pacing paragraph and this PR's render-diagnostics text. In a no-network sandbox on the PR merged with main, these pass:test_boot_trace36/36 (main's pacing tests plus the two new ones),test_dev_boot_trace5,test_docs_cli_flags4,test_docs_links16 (1 skipped, git not available in the sandbox) andtest_dev_discovery4.check_no_game_datais clean on the changed files. With the PR'stests/test_boot_trace.pydropped onto current main, the two new tests fail (1 failure, 1 error). Not blocking, still true: theSTUB_MILESTONEand capture-line formats have no emitter underruntime/on main yet, so those counters stay at zero until the runtime prints them. AI-assisted review.Recommendation: Merge
Hi @bobcatchris, thanks for this pull request. It currently conflicts with
main(conflicting file(s):tools/boot_trace.py), so it carries theneeds rebaselabel. CONTRIBUTING.md asks authors to rebase their branch onmain; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.AI-assisted (Claude Code, Claude Opus 5.5).
#498 | head 5865220a94f15a9de553c2cb4d07d8bf312d2fcb (merged cleanly with main adfb3821a2) |
python -I tests/test_boot_trace.py -v+python -I tests/test_dev_boot_trace.py -v+python -I tests/test_docs_cli_flags.py| red on main:FAILED (failures=1, errors=1)(TraceError: ... has no [d3d12-trace] lineintest_render_log_without_call_tracingandAssertionError: 8 != 1intest_shader_diagnostics_and_calls_share_a_log) | green on PR+main:41 ran, OK(test_boot_trace.py),5 ran, OK(test_dev_boot_trace.py),4 ran, OK(test_docs_cli_flags.py),17 ran, OK(test_docs_links.py),5 ran, OK(test_docs_repo_paths.py), and1 ran, OK(test_docs_encoding.py) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesAudited
5865220a94(tools/boot_trace.py,tests/test_boot_trace.py, anddocs/boot.md) merged cleanly ontomain(adfb3821a2) on Windows 11. Confirmed_record_renderstrips Windows PowerShell:stderr prefixes, enforcesnonzero <= width * height, accepts power-of-twoLEONIDA_STUB_PIPELINESmilestone counts while deducting recognized shader-miss and stub-pipeline lines fromignored_lines, allows render-only logs without--trace-d3d12lines, and keepsframe_pacingandrendersummaries side by side in both text and--counts-onlyJSON output. Also verifiedscripts/check_no_game_data.py.Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main 53b77df14 : red 1 failure + 1 error (
test_render_log_without_call_tracing,test_shader_diagnostics_and_calls_share_a_log) / green 41 OK.python -I tests/test_boot_trace.pyfrom the repository root.test_render_log_without_call_tracing:boot_trace.TraceError: <tmp>/d3d12.log has no [d3d12-trace] line;test_shader_diagnostics_and_calls_share_a_log:AssertionError: 8 != 1.git merge --no-ffof this PR, no conflict): 41 run, OK, 0 skips.Red = main + only the test files from this PR (
git checkout pr-498 -- tests/test_boot_trace.py); green = main + the merged PR. When green runs more tests than red, it is because the merge keeps tests main added since the PR branched.AI-assisted: Claude Code (Claude Opus 5.5).
Merged after OreoFR's red/green check (check) (macOS 27.2.1, Apple M5, Python 3.12) and a local re-check here. Merged after local re-verification: this PR merged onto
main23c4ca006 without conflict, and its test file(s) (tests/test_bcpack_tool.py,tests/test_boot_trace.py) pass there. Earlier today the same tests failed onmainwithout the PR (red/green) and a bundle with other open PRs showed no new failures.check_no_game_data.pyis clean. Windows 11, Python 3.14; no GPU needed for these tests.AI-assisted (Claude Code, Claude Opus 5.5), merged for MoonEyes.