boot_trace: count failed file opens by Win32 error #2246

Merged
kirigayakazima merged 1 commit from upstream-pr/2246 into main 2026-11-28 19:31:15 +00:00
kirigayakazima commented 2026-11-26 10:23:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T10:23:39Z.


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.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5508229181 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2246). Originally posted by [kirigayakazima](https://github.com/kirigayakazima) on 2026-11-26T10:23:39Z. --- Claimed in the coordination issue as: [BOOT-TRACE-OPEN-ERROR-COUNTS](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7189018014) 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.
DeadlyChirp commented 2026-11-26 10:42:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-26T10:42:43Z.


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.)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7189731443 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2246#issuecomment-7189731443). Originally posted by [DeadlyChirp](https://github.com/DeadlyChirp) on 2026-11-26T10:42:43Z. --- 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.)
lixonik commented 2026-11-26 11:10:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T11:10:45Z.

Review: COMMENTED


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

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6073106552 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2246#pullrequestreview-6073106552). Originally posted by [lixonik](https://github.com/lixonik) on 2026-11-26T11:10:45Z. **Review:** COMMENTED --- Windows 11: 35/35 boot trace tests passed, including the synthetic failed-open Win32 error counts. No findings from these checks. AI-assisted.
tiguan26 commented 2026-11-27 04:33:56 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T04:33:56Z.

Review: APPROVED


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6083524929 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2246#pullrequestreview-6083524929). Originally posted by [tiguan26](https://github.com/tiguan26) on 2026-11-27T04:33:56Z. **Review:** APPROVED --- 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).
MoonEyes commented 2026-11-28 19:31:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:31:12Z.


Red/green: tests/test_boot_trace.py fails on main (KeyError: 'file_open_errors' in the new histogram test) and passes with the PR merged, on GitHub Actions Linux and in the judge's native Windows rerun.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7244605259 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2246#issuecomment-7244605259). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T19:31:12Z. --- Red/green: tests/test_boot_trace.py fails on main (KeyError: 'file_open_errors' in the new histogram test) and passes with the PR merged, on GitHub Actions Linux and in the judge's native Windows rerun. Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main 7daa4a4a5 in GitHub Actions: no new failure. AI-assisted (Claude Code, Claude Opus 5.5)
OreoFR commented 2026-11-28 22:00:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:00:27Z.


Verified by OreoFR

  • Base: main 4a54aedcb + PR head 8489528cb
  • Test: python -I tests/test_boot_trace.py
  • Red on main: 1 error (KeyError file_open_errors)
  • Green with the PR: 36 OK
  • Verdict: READY (conflicts with #1962: same insertion point in tests/test_boot_trace.py, whichever merges second needs a rebase)
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246429216 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2246#issuecomment-7246429216). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T22:00:27Z. --- **Verified by OreoFR** - Base: main `4a54aedcb` + PR head `8489528cb` - Test: `python -I tests/test_boot_trace.py` - Red on main: 1 error (KeyError file_open_errors) - Green with the PR: 36 OK - Verdict: READY (conflicts with #1962: same insertion point in tests/test_boot_trace.py, whichever merges second needs a rebase) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!2246
No description provided.