[PR #1766] windows-boot: report the loss API, fault query and checkpoint counts #1780

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1766
Author: @sodove
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: fix/windows-boot-fault-context


📝 Commits (1)

  • 4dc7bef windows-boot: summarize device loss API and queue checkpoints

📊 Changes

3 files changed (+168 additions, -0 deletions)

View changed files

📝 scripts/windows-boot/README.md (+6 -0)
📝 scripts/windows-boot/boot.ps1 (+65 -0)
➕ tests/test_windows_boot_fault_context.py (+97 -0)

📄 Description

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

Depends on: #1649

What and why

The Windows boot digest now identifies the first recognized Vulkan call that reported device loss and the first recorded device-fault query outcome. It reads late diagnostics as well as the beginning of stderr. The new row uses fixed labels and counts. When the log contains only routine dispatch telemetry, the row is omitted.

The runtime emits one queue header with the driver’s checkpoint count, then one stage record per checkpoint it prints. The row sums the declared counts and counts decoded and unrecognized stage records separately. This preserves the distinction on truncated logs. Optional submission metadata and ordinary ExecuteCommandLists lines do not add checkpoints.

This PR adds the context row to current main. #1649 replaces the existing raw fault excerpts with address-class counts and should land first. The two diffs merge cleanly.

Tested

  • Native Windows 11 and Windows PowerShell 5.1. Six synthetic end-to-end test methods passed through boot.ps1 -DigestOnly. They cover LF and CRLF, truncated and multi-queue reports, missing metadata, unknown operations, runtime fallback markers, and complete, partial, failed and absent query results. The positive cases failed on the base implementation.
  • Merged both changes into a temporary test tree. All six context tests and all five #1649 tests passed. A separate combined-digest check found the expected API, query, address class and checkpoint counts, and zero injected private markers anywhere in the digest.
  • Passed all 39 boot trace tests, 3 text line-ending tests, 16 docs link tests and 16 CI registration tests. The changed-file game-data and Git whitespace checks passed.

GPUs tested: n/a (offline log processing using synthetic inputs).

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.

🔄 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/1766 **Author:** [@sodove](https://github.com/sodove) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/windows-boot-fault-context` --- ### 📝 Commits (1) - [`4dc7bef`](https://github.com/ubiquitarianism/leonida/commit/4dc7befe426fa803aac2ab7c8e0258116310b2b9) windows-boot: summarize device loss API and queue checkpoints ### 📊 Changes **3 files changed** (+168 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/windows-boot/README.md` (+6 -0) 📝 `scripts/windows-boot/boot.ps1` (+65 -0) ➕ `tests/test_windows_boot_fault_context.py` (+97 -0) </details> ### 📄 Description Claimed in the coordination issue as: [WIN-BOOT-FAULT-CONTEXT](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161231063). Depends on: #1649 ### What and why The Windows boot digest now identifies the first recognized Vulkan call that reported device loss and the first recorded device-fault query outcome. It reads late diagnostics as well as the beginning of stderr. The new row uses fixed labels and counts. When the log contains only routine dispatch telemetry, the row is omitted. The runtime emits one queue header with the driver’s checkpoint count, then one stage record per checkpoint it prints. The row sums the declared counts and counts decoded and unrecognized stage records separately. This preserves the distinction on truncated logs. Optional submission metadata and ordinary `ExecuteCommandLists` lines do not add checkpoints. This PR adds the context row to current main. #1649 replaces the existing raw fault excerpts with address-class counts and should land first. The two diffs merge cleanly. ### Tested - Native Windows 11 and Windows PowerShell 5.1. Six synthetic end-to-end test methods passed through `boot.ps1 -DigestOnly`. They cover LF and CRLF, truncated and multi-queue reports, missing metadata, unknown operations, runtime fallback markers, and complete, partial, failed and absent query results. The positive cases failed on the base implementation. - Merged both changes into a temporary test tree. All six context tests and all five #1649 tests passed. A separate combined-digest check found the expected API, query, address class and checkpoint counts, and zero injected private markers anywhere in the digest. - Passed all 39 boot trace tests, 3 text line-ending tests, 16 docs link tests and 16 CI registration tests. The changed-file game-data and Git whitespace checks passed. GPUs tested: n/a (offline log processing using synthetic inputs). 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. --- <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#1780
No description provided.