boot_trace: count failed file opens by Win32 error #2246

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

@⁠kirigayakazima on GitHub · 2026-11-26 10:23 UTC · original
kirigayakazima:codex/boot-trace-open-error-counts → main · +20 −0 · 2 files · 1 commits · open

Claimed in the coordination issue as: BOOT-TRACE-OPEN-ERROR-COUNTS

Depends on: #1962 (adjacent regression-test insertion). Each branch builds directly on main. These references flag textual merge conflicts.

What and why

Count failed opens by their numeric Win32 error across the entire trace, even when the path sample limit is zero. Invalid codes share an unknown bucket. The local text summary ranks errors by frequency and the counts-only report includes the histogram without filenames.

Tested

Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.

  • python -I tests/test_boot_trace.py
  • git diff --check and the changed-path no-game-data scan passed.
  • Shared main baseline: 498 semantic test files, 6,351 tests passed.

GPUs tested: N/A (synthetic CPU tests).

AI-assisted: Yes.

Checklist

  • Based on current main and merges cleanly with the tested base.
  • One topic.
  • No game data, keys or decryption.
  • Translator contract table: N/A.
**@⁠kirigayakazima** on GitHub · 2026-11-26 10:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2246) `kirigayakazima:codex/boot-trace-open-error-counts` → `main` · +20 −0 · 2 files · 1 commits · open Claimed in the coordination issue as: [BOOT-TRACE-OPEN-ERROR-COUNTS](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) Depends on: #1962 (adjacent regression-test insertion). Each branch builds directly on main. These references flag textual merge conflicts. ### What and why Count failed opens by their numeric Win32 error across the entire trace, even when the path sample limit is zero. Invalid codes share an `unknown` bucket. The local text summary ranks errors by frequency and the counts-only report includes the histogram without filenames. ### Tested Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change. - `python -I tests/test_boot_trace.py` - `git diff --check` and the changed-path no-game-data scan passed. - Shared main baseline: 498 semantic test files, 6,351 tests passed. GPUs tested: N/A (synthetic CPU tests). AI-assisted: Yes. ### Checklist - [x] Based on current main and merges cleanly with the tested base. - [x] One topic. - [x] No game data, keys or decryption. - Translator contract table: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:24:23 +00:00
Author
Owner

@⁠DeadlyChirp on GitHub · 2026-11-26 10:42 UTC · original

Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.

  • tests/test_boot_trace.py: 35 passed, 19 subtests passed (main: 34 passed).

(AI-assisted test run; output checked by hand.)

**@⁠DeadlyChirp** on GitHub · 2026-11-26 10:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2246#issuecomment-7189731443) Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main. - `tests/test_boot_trace.py`: 35 passed, 19 subtests passed (main: 34 passed). (AI-assisted test run; output checked by hand.)
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 11:10 UTC · original · reviewed

Windows 11: 35/35 boot trace tests passed, including the synthetic failed-open Win32 error counts. No findings from these checks.

AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 11:10 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2246#pullrequestreview-6073106552) · **reviewed** Windows 11: 35/35 boot trace tests passed, including the synthetic failed-open Win32 error counts. No findings from these checks. AI-assisted.
Author
Owner

@⁠tiguan26 on GitHub · 2026-11-27 04:33 UTC · original · approved these changes

Approving 8489528cb.

Failed file opens are counted per Win32 error (an out-of-range or missing code as unknown) and ranked in the text report.

Merged onto main d1dff7949 in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. tests/test_boot_trace.py: 37 passed with #2245 and #2244 merged too (main: 34). AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠tiguan26** on GitHub · 2026-11-27 04:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2246#pullrequestreview-6083524929) · **approved these changes** Approving 8489528cb. Failed file opens are counted per Win32 error (an out-of-range or missing code as `unknown`) and ranked in the text report. Merged onto `main` `d1dff7949` in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13. `tests/test_boot_trace.py`: 37 passed with #2245 and #2244 merged too (main: 34). AI-assisted (Claude Code, Claude Opus 5.5).
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/2246/head:github-bot/gh-2246'
git switch 'github-bot/gh-2246'

Merge

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