windows-boot: report Vulkan fault classes in the digest #1649

Open
github-bot wants to merge 1 commit from github-bot/gh-1649 into main AGit
Owner

@⁠sodove on GitHub · 2026-11-25 07:00 UTC · original
sodove:fix/windows-boot-fault-digest → main · +102 −8 · 3 files · 1 commits · open

Claimed in the coordination issue as: WIN-BOOT-FAULT-DIGEST.

What and why

The Windows boot digest copied the first eight diagnostic lines verbatim. Routine dispatch telemetry could fill all eight slots before the driver reported its fault types. Even a healthy run could show a fault count, and the copied lines could contain private metadata.

The faults row now scans the whole stderr log for a device-loss marker and counts Vulkan address records by their symbolic type. Unknown types share one bucket. A loss with no address records, address records in a partial log, and ordinary telemetry have distinct summaries. Only fixed labels and counts from the fault report go in this row. The counts describe records and can exceed the number of losses.

Tested

  • Native Windows 11, Windows PowerShell 5.1. Five synthetic end-to-end -DigestOnly cases passed. The first three cases failed on the base implementation. The cases cover a write class after ten telemetry lines, repeated and unknown types, loss without address info, a truncated log, and absence of private field text from the fault summary.
  • The existing boot trace tests passed, 39 in total. The translator suite passed, 487 files and 6,279 tests. Text line-ending tests and the staged-file game-data check passed.

GPUs tested: n/a for the digest (offline log processing).

AI-assisted: yes (OpenAI Codex).

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract update inapplicable to this reporting change.
**@⁠sodove** on GitHub · 2026-11-25 07:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1649) `sodove:fix/windows-boot-fault-digest` → `main` · +102 −8 · 3 files · 1 commits · open Claimed in the coordination issue as: [WIN-BOOT-FAULT-DIGEST](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608). ### What and why The Windows boot digest copied the first eight diagnostic lines verbatim. Routine dispatch telemetry could fill all eight slots before the driver reported its fault types. Even a healthy run could show a fault count, and the copied lines could contain private metadata. The faults row now scans the whole stderr log for a device-loss marker and counts Vulkan address records by their symbolic type. Unknown types share one bucket. A loss with no address records, address records in a partial log, and ordinary telemetry have distinct summaries. Only fixed labels and counts from the fault report go in this row. The counts describe records and can exceed the number of losses. ### Tested - Native Windows 11, Windows PowerShell 5.1. Five synthetic end-to-end `-DigestOnly` cases passed. The first three cases failed on the base implementation. The cases cover a write class after ten telemetry lines, repeated and unknown types, loss without address info, a truncated log, and absence of private field text from the fault summary. - The existing boot trace tests passed, 39 in total. The translator suite passed, 487 files and 6,279 tests. Text line-ending tests and the staged-file game-data check passed. GPUs tested: n/a for the digest (offline log processing). AI-assisted: yes (OpenAI Codex). ### Checklist - [x] Based on current main. - [x] One topic. - [x] No game data, keys or decryption. - [x] Translator contract update inapplicable to this reporting change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:59:25 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-25 08:31 UTC · original

Independent verification (native Windows): PowerShell-only digest change + new test, zero runtime code touched. test_windows_boot_fault_digest.py 5/5 OK (real powershell runs); full RelWithDebInfo rebuild 409/409; GPU ctest (startup_trace, run_startup_cmdline, vulkan_device_fault, vk_sync_validation + real-GPU set vk_shader_fma, vk_pipeline_check_cli, vk_queue, vk_device_pick, vk_bindless_grow, vk_presenter_sync) all PASS on RTX 4070 SUPER and AMD gfx1036 iGPU with validation on. d3d12_boot_movie SKIP (needs game files) as expected. AI-assisted verification.

**@⁠whoalin1** on GitHub · 2026-11-25 08:31 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1649#issuecomment-7157128139) Independent verification (native Windows): PowerShell-only digest change + new test, zero runtime code touched. `test_windows_boot_fault_digest.py` 5/5 OK (real powershell runs); full RelWithDebInfo rebuild 409/409; GPU ctest (`startup_trace`, `run_startup_cmdline`, `vulkan_device_fault`, `vk_sync_validation` + real-GPU set `vk_shader_fma`, `vk_pipeline_check_cli`, `vk_queue`, `vk_device_pick`, `vk_bindless_grow`, `vk_presenter_sync`) all PASS on RTX 4070 SUPER and AMD gfx1036 iGPU with validation on. `d3d12_boot_movie` SKIP (needs game files) as expected. AI-assisted verification.
Author
Owner

@⁠BubsMcgee on GitHub · 2026-11-25 15:36 UTC · original

Tested on a real retail boot (Windows 11 Pro build 26300, RTX 3080 Ti, driver 616.64), -DigestOnly over the log of a healthy 200 s run that reached session d:

  • python -I tests/test_windows_boot_fault_digest.py — 5/5 pass.
  • The regenerated digest now carries the new row: faults: none, with the states, presents, input and frames rows unchanged, and no private metadata text in the digest.
  • No device loss occurred in this run, so the fault-class path itself was not exercised here (the synthetic cases cover it).

LGTM from this run; no code changes needed. AI-assisted.

**@⁠BubsMcgee** on GitHub · 2026-11-25 15:36 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1649#issuecomment-7167113760) Tested on a real retail boot (Windows 11 Pro build 26300, RTX 3080 Ti, driver 616.64), `-DigestOnly` over the log of a healthy 200 s run that reached session `d`: - `python -I tests/test_windows_boot_fault_digest.py` — **5/5 pass**. - The regenerated digest now carries the new row: `faults: none`, with the `states`, `presents`, `input` and `frames` rows unchanged, and no private metadata text in the digest. - No device loss occurred in this run, so the fault-class path itself was not exercised here (the synthetic cases cover it). LGTM from this run; no code changes needed. AI-assisted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1649/head:github-bot/gh-1649'
git switch 'github-bot/gh-1649'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1649'
git switch 'github-bot/gh-1649'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1649'
git switch 'github-bot/gh-1649'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1649'
git switch 'main'
git merge --squash 'github-bot/gh-1649'
git switch 'main'
git merge --ff-only 'github-bot/gh-1649'
git switch 'main'
git merge 'github-bot/gh-1649'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.