[PR #498] BOOT-RENDER-DIAG: summarize render evidence in boot traces #548

Open
opened 2026-11-26 20:18:15 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/498
Author: @bobcatchris
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: boot-render-diagnostics


📝 Commits (1)

  • 681dae3 boot_trace: summarize render diagnostics in boot logs

📊 Changes

3 files changed (+125 additions, -13 deletions)

View changed files

📝 docs/boot.md (+9 -2)
📝 tests/test_boot_trace.py (+48 -1)
📝 tools/boot_trace.py (+68 -10)

📄 Description

Claimed in the coordination issue as: BOOT-RENDER-DIAG

What and why

boot_trace.py summarized 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 OK
  • baseline source + patched tests: 1 failure and 1 error in the two new cases; patched source passes
  • python -I tests/test_docs_links.py — 16 tests OK
  • python -I tests/test_docs_cli_flags.py — 4 tests OK
  • python -I tests/test_ci_registration.py — 15 tests OK
  • python -m compileall -q tools tests — OK
  • git diff --check clean
  • security sweep of the diff: 0 hits

The 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

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • Regression tests added for render logs without call tracing and mixed shader/call logs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/498 **Author:** [@bobcatchris](https://github.com/bobcatchris) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `boot-render-diagnostics` --- ### 📝 Commits (1) - [`681dae3`](https://github.com/ubiquitarianism/leonida/commit/681dae3a71d425e0924c8d5ba5fd9e31370a2d32) boot_trace: summarize render diagnostics in boot logs ### 📊 Changes **3 files changed** (+125 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docs/boot.md` (+9 -2) 📝 `tests/test_boot_trace.py` (+48 -1) 📝 `tools/boot_trace.py` (+68 -10) </details> ### 📄 Description Claimed in the coordination issue as: BOOT-RENDER-DIAG ### What and why `boot_trace.py` summarized 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: https://github.com/Sigtryggur-Mani-Gudmundsson/graphics-runtime-patches/blob/33ab48d3ea90f9925351aeee8708181a71fb9634/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 OK - baseline source + patched tests: 1 failure and 1 error in the two new cases; patched source passes - `python -I tests/test_docs_links.py` — 16 tests OK - `python -I tests/test_docs_cli_flags.py` — 4 tests OK - `python -I tests/test_ci_registration.py` — 15 tests OK - `python -m compileall -q tools tests` — OK - `git diff --check` clean - security sweep of the diff: 0 hits The 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 - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] Regression tests added for render logs without call tracing and mixed shader/call logs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#548
No description provided.