tools: gpu_results.py reads the GPU test records into one overview (carry of #2379) #3095

Merged
MoonEyes merged 6 commits from upstream-pr/3095 into main 2026-12-03 16:24:40 +00:00
MoonEyes commented 2026-12-02 10:31:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T10:31:34Z.


Claimed in the coordination issue as: GPU-RESULTS-OVERVIEW (claimed by syfyra, https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7197591142)

Depends on: none.

What and why

Carry of #2379 (syfyra), unchanged since 2026-11-26 (one commit, 346117c24; the author has not pushed or commented since). Branch = main (80910637f) + the author's head with its commit kept + a merge that needed no conflict resolution + one commit of mine.

The change: tools/gpu_results.py reads the Key: value fields of the records in gpu-test-results/ and prints one overview (a row per record with GPU, driver, commits behind main, native and wave64-emulated counts and failed fixtures; each failing fixture with the records and vendors it fails on). --markdown, --json and --check are the other outputs. tests/test_gpu_results.py tests it on synthetic records and on the repository's own records, and gpu-test-results/README.md states the record format.

Review defects of #2379 that were still present on current main and are fixed in my commit:

  • run_gpu_tests.py, 256 fixtures; ...: and Failed in all runs, ...: (the layout of V100-SXM2.txt) started no field, so that record lost its three runs and its failed fixture while --check exited 0 (reported by wavehs, akimfomin and merzleckeier). Those two headings are now read before the comma rule.
  • Failed (in both profiles): (RTX5070-61692-Windows.txt) was skipped, so the Markdown overview showed none (reported by andrew-ai). A key that starts with the word Failed is read now, and a record whose runs report failures but whose fixtures could not be read shows unparsed.
  • The repository test and --check failed on three records of current main (reported by imShangLi and aslan2142; the third, RadeonProVegaII-RADV.txt, was found while reproducing). OS/host: and Baseline: are read as OS and Commit when those are missing, and PR1608-Radeon860M-RTX5060Laptop-Win11.txt, which holds two adapters in one file, is noted instead of failed. No record is edited. The README says so.

Not changed: the two notes --check prints for records where fewer fixture names than failures can be read (the tool reports the gap rather than inventing names).

Tested

Windows 11, no GPU, no game files, Python 3.14.0, on main 80910637f plus this branch:

  • python -I tests/test_gpu_results.py: 23 tests, OK (19 of the author's plus 4 new ones for the headings, the older keys, the two-adapter record and unparsed).
  • Red: on main the test file does not exist and the tool is absent (ModuleNotFoundError: No module named 'gpu_results' with tools/gpu_results.py removed). With the author's version of the tool plus my tests (the tool as in the merge commit c32f35ab9): FAILED (failures=6, errors=79), including test_a_heading_may_hold_a_comma_or_a_qualifier, test_older_records_name_the_os_and_the_commit_differently, test_a_record_of_two_adapters_is_noted_not_failed, test_failures_without_a_name_are_not_shown_as_clean and the repository tests. The tool was restored afterwards (git status clean).
  • On the unmodified #2379 head applied to current main, the author's 19 tests: 4 failures (three records and the default-folder test).
  • python -I tools/gpu_results.py --check: 80 record(s) checked, 0 to fix. --no-git now lists 3 runs for V100-SXM2.txt (193/256, 224/256, and 237/256 under "Other runs", 1 failure each) with cs_imgstore_cube, and cs_imgatomic_ext, cs_texture_uav for RTX5070-61692-Windows.txt.
  • python -I on the 13 tests/test_docs_*.py, tests/test_i18n_index.py, tests/test_tool_stdout_encoding.py, tests/test_text_write_line_endings.py and tests/test_ci_registration.py: all OK.
  • python -I scripts/check_no_game_data.py on the three changed files: clean.
  • Not run: the full suite, CI.

GPUs tested: n/a (unit tests only)

AI-assisted: yes. Models: Claude Opus 5.5 in Claude Code (carry, conflict resolution, fixes, tests); separate read-only reviewer agent: Claude Opus 5.5.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: no translator rule.)

Supersedes #2379 once merged; the original stays open until a maintainer decides.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5604624295 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T10:31:34Z. --- Claimed in the coordination issue as: GPU-RESULTS-OVERVIEW (claimed by syfyra, https://github.com/ProjectLeonida/mandy/issues/1608#issuecomment-7197591142) Depends on: none. ### What and why Carry of #2379 (syfyra), unchanged since 2026-11-26 (one commit, `346117c24`; the author has not pushed or commented since). Branch = `main` (`80910637f`) + the author's head with its commit kept + a merge that needed no conflict resolution + one commit of mine. The change: `tools/gpu_results.py` reads the `Key: value` fields of the records in `gpu-test-results/` and prints one overview (a row per record with GPU, driver, commits behind `main`, native and wave64-emulated counts and failed fixtures; each failing fixture with the records and vendors it fails on). `--markdown`, `--json` and `--check` are the other outputs. `tests/test_gpu_results.py` tests it on synthetic records and on the repository's own records, and `gpu-test-results/README.md` states the record format. Review defects of #2379 that were still present on current `main` and are fixed in my commit: - `run_gpu_tests.py, 256 fixtures; ...:` and `Failed in all runs, ...:` (the layout of `V100-SXM2.txt`) started no field, so that record lost its three runs and its failed fixture while `--check` exited 0 (reported by wavehs, akimfomin and merzleckeier). Those two headings are now read before the comma rule. - `Failed (in both profiles):` (`RTX5070-61692-Windows.txt`) was skipped, so the Markdown overview showed `none` (reported by andrew-ai). A key that starts with the word `Failed` is read now, and a record whose runs report failures but whose fixtures could not be read shows `unparsed`. - The repository test and `--check` failed on three records of current `main` (reported by imShangLi and aslan2142; the third, `RadeonProVegaII-RADV.txt`, was found while reproducing). `OS/host:` and `Baseline:` are read as OS and Commit when those are missing, and `PR1608-Radeon860M-RTX5060Laptop-Win11.txt`, which holds two adapters in one file, is noted instead of failed. No record is edited. The README says so. Not changed: the two notes `--check` prints for records where fewer fixture names than failures can be read (the tool reports the gap rather than inventing names). ### Tested Windows 11, no GPU, no game files, Python 3.14.0, on `main` `80910637f` plus this branch: - `python -I tests/test_gpu_results.py`: 23 tests, OK (19 of the author's plus 4 new ones for the headings, the older keys, the two-adapter record and `unparsed`). - Red: on `main` the test file does not exist and the tool is absent (`ModuleNotFoundError: No module named 'gpu_results'` with `tools/gpu_results.py` removed). With the author's version of the tool plus my tests (the tool as in the merge commit `c32f35ab9`): FAILED (failures=6, errors=79), including `test_a_heading_may_hold_a_comma_or_a_qualifier`, `test_older_records_name_the_os_and_the_commit_differently`, `test_a_record_of_two_adapters_is_noted_not_failed`, `test_failures_without_a_name_are_not_shown_as_clean` and the repository tests. The tool was restored afterwards (`git status` clean). - On the unmodified #2379 head applied to current `main`, the author's 19 tests: 4 failures (three records and the default-folder test). - `python -I tools/gpu_results.py --check`: `80 record(s) checked, 0 to fix`. `--no-git` now lists 3 runs for `V100-SXM2.txt` (193/256, 224/256, and 237/256 under "Other runs", 1 failure each) with `cs_imgstore_cube`, and `cs_imgatomic_ext, cs_texture_uav` for `RTX5070-61692-Windows.txt`. - `python -I` on the 13 `tests/test_docs_*.py`, `tests/test_i18n_index.py`, `tests/test_tool_stdout_encoding.py`, `tests/test_text_write_line_endings.py` and `tests/test_ci_registration.py`: all OK. - `python -I scripts/check_no_game_data.py` on the three changed files: clean. - Not run: the full suite, CI. GPUs tested: n/a (unit tests only) AI-assisted: yes. Models: Claude Opus 5.5 in Claude Code (carry, conflict resolution, fixes, tests); separate read-only reviewer agent: Claude Opus 5.5. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: no translator rule.) Supersedes #2379 once merged; the original stays open until a maintainer decides. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
OreoFR commented 2026-12-02 12:18:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T12:18:59Z.


Verified by OreoFR (oreofr-agent, AI-assisted; third-party red/green). Head e039bcd8e53fd62703af48967cf36e3c288c18ff merged into main f6dd2242e02b5f579d245f1c19dd5150d42e00a1 with no conflicts. Windows 11, Python 3.12, CPU only.

  • Green: tests/test_gpu_results.py OK. python -I tools/gpu_results.py --check: 80 records checked, 0 to fix. It prints two notes, about RTX5070.txt and RadeonProVegaII-RADV.txt fixture names, as the description says.
  • Red: main has no tools/gpu_results.py. Without it, the test file fails (ModuleNotFoundError: No module named 'gpu_results').
    Safe to merge: it merges cleanly, CI is green, and it adds a new tool, its test and a README. Not merged by me.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345157620 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#issuecomment-7345157620). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T12:18:59Z. --- **Verified by OreoFR** (oreofr-agent, AI-assisted; third-party red/green). Head `e039bcd8e53fd62703af48967cf36e3c288c18ff` merged into main `f6dd2242e02b5f579d245f1c19dd5150d42e00a1` with no conflicts. Windows 11, Python 3.12, CPU only. - Green: `tests/test_gpu_results.py` OK. `python -I tools/gpu_results.py --check`: 80 records checked, 0 to fix. It prints two notes, about RTX5070.txt and RadeonProVegaII-RADV.txt fixture names, as the description says. - Red: main has no `tools/gpu_results.py`. Without it, the test file fails (`ModuleNotFoundError: No module named 'gpu_results'`). Safe to merge: it merges cleanly, CI is green, and it adds a new tool, its test and a README. Not merged by me.
Kal0s-design commented 2026-12-02 12:55:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T12:55:31Z.


Ran natively on Windows 11, Python 3.13, head e039bcd8e merged into current main (23a51c494, no conflicts). py -3.13 -I tests/test_gpu_results.py OK. py -3.13 -I tools/gpu_results.py --check on current main: 80 records, 0 to fix, but now 7 notes rather than the 2 reported earlier, since records added to main since then also get notes (RTX2060SUPER.txt and AppleM5.txt "N failed in a run, 1 fixture name(s) read", RTX4080-Windows-62101-validated.txt "no run_gpu_tests.py line with N/M passed", plus the two-adapter record). Notes only, exit 0.

One Windows thing: how the record file is encoded. I took GTX1080.txt and rewrote it (throwaway copies, not committed) the ways Windows editors and shells usually save text:

copy of GTX1080.txt --check --no-git
UTF-8, LF 0 to fix
UTF-8, CRLF 0 to fix
UTF-8 with BOM, CRLF (Notepad "UTF-8 with BOM", PowerShell 5 Set-Content -Encoding utf8) no GPU field, 1 to fix, exit 1
UTF-16 LE with BOM (PowerShell 5 > / Out-File) no GPU field, no Driver field, no OS field, no Commit field, exit 1

CRLF is fine. With a BOM the first key is read as GPU, so a record that does have a GPU: line is reported as missing it, and in the overview it gets an empty GPU column and counts under vendor other. The message points at the wrong problem. Opening with encoding="utf-8-sig" in parse_record fixes the BOM case: same copy then gives 0 to fix, and the test file still passes. For UTF-16, a clear "not UTF-8" message when the file starts with FF FE/FE FF would be enough; the README could also say records are UTF-8. No record on main has a BOM or CRLF today, so nothing in the repository is affected yet.

Not checked: Linux and macOS, records with non-ASCII GPU names, the Markdown output beyond a quick look.

GPUs tested: n/a (CPU-only tests).

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346088474 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#issuecomment-7346088474). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T12:55:31Z. --- Ran natively on Windows 11, Python 3.13, head `e039bcd8e` merged into current `main` (`23a51c494`, no conflicts). `py -3.13 -I tests/test_gpu_results.py` OK. `py -3.13 -I tools/gpu_results.py --check` on current `main`: 80 records, 0 to fix, but now 7 notes rather than the 2 reported earlier, since records added to `main` since then also get notes (`RTX2060SUPER.txt` and `AppleM5.txt` "N failed in a run, 1 fixture name(s) read", `RTX4080-Windows-62101-validated.txt` "no run_gpu_tests.py line with `N/M passed`", plus the two-adapter record). Notes only, exit 0. One Windows thing: how the record file is encoded. I took `GTX1080.txt` and rewrote it (throwaway copies, not committed) the ways Windows editors and shells usually save text: | copy of `GTX1080.txt` | `--check --no-git` | |---|---| | UTF-8, LF | 0 to fix | | UTF-8, CRLF | 0 to fix | | UTF-8 with BOM, CRLF (Notepad "UTF-8 with BOM", PowerShell 5 `Set-Content -Encoding utf8`) | `no GPU field`, 1 to fix, exit 1 | | UTF-16 LE with BOM (PowerShell 5 `>` / `Out-File`) | `no GPU field`, `no Driver field`, `no OS field`, `no Commit field`, exit 1 | CRLF is fine. With a BOM the first key is read as `GPU`, so a record that does have a `GPU:` line is reported as missing it, and in the overview it gets an empty GPU column and counts under vendor `other`. The message points at the wrong problem. Opening with `encoding="utf-8-sig"` in `parse_record` fixes the BOM case: same copy then gives 0 to fix, and the test file still passes. For UTF-16, a clear "not UTF-8" message when the file starts with `FF FE`/`FE FF` would be enough; the README could also say records are UTF-8. No record on `main` has a BOM or CRLF today, so nothing in the repository is affected yet. Not checked: Linux and macOS, records with non-ASCII GPU names, the Markdown output beyond a quick look. GPUs tested: n/a (CPU-only tests). AI-assisted: yes (Claude Code).
merzleckeier commented 2026-12-02 13:51:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T13:51:22Z.

Review: COMMENTED


Independent Linux review on main 21843cef0 + head e039bcd8e, Python 3.14.10. All 23 tests passed. Two additional CLI cases with synthetic records:

  • --check exits 0 for an empty file named PR1608-Radeon860M-RTX5060Laptop-Win11.txt and reports zero records to fix, even though all four required fields are missing. The same empty file named empty.txt exits 1. In parse_record, the basename exception currently clears every missing field. The checked-in multi-adapter record still has OS and Commit, so those two real requirements can be validated even for it.
  • --markdown emits [Radeon test record.txt](../gpu-test-results/Radeon test record.txt) for a valid synthetic file with spaces. markdown-it renders the cell as literal text. Encoding the filename in the link target would keep the visible filename and make it clickable.

CPU only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6152098715 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#pullrequestreview-6152098715). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T13:51:22Z. **Review:** COMMENTED --- Independent Linux review on main `21843cef0` + head `e039bcd8e`, Python 3.14.10. All 23 tests passed. Two additional CLI cases with synthetic records: - `--check` exits 0 for an empty file named `PR1608-Radeon860M-RTX5060Laptop-Win11.txt` and reports zero records to fix, even though all four required fields are missing. The same empty file named `empty.txt` exits 1. In `parse_record`, the basename exception currently clears every missing field. The checked-in multi-adapter record still has OS and Commit, so those two real requirements can be validated even for it. - `--markdown` emits `[Radeon test record.txt](../gpu-test-results/Radeon test record.txt)` for a valid synthetic file with spaces. markdown-it renders the cell as literal text. Encoding the filename in the link target would keep the visible filename and make it clickable. CPU only. AI-assisted with OpenAI Codex.
aegish-zagi commented 2026-12-02 14:38:25 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-12-02T14:38:25Z.


Verification — VERIFY-3095

PR #3095 — tools: gpu_results.py reads the GPU test records into one overview (carry of #2379)
Head e039bcd8e5; MERGEABLE against current main (acc350745)
Tests run The PR's tests/test_gpu_results.py run standalone in a scratch worktree: (a) PR test file against plain main, (b) PR test file against the PR head
Red on main The test file cannot run on main at all: ModuleNotFoundError: No module named 'gpu_results' — this PR adds a new tool, so absence on main is the red state
Green on PR All 23 tests pass with the PR head (OK)
Diff audit New tools/gpu_results.py + tests/test_gpu_results.py + a gpu-test-results/README.md note. The tool only reads the checked-in GPU result records and summarises them; stdlib only, no game data (records are the repo's own hand-written test results), one topic, claim in place (carry of #2379)
Verdict PASS — new tool, absent on main, 23/23 green on the PR
Platform Linux, Python 3.12.3, no GPU (Profile Z)

AI-assisted: yes (Muse Wonder, Muse by Meta)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348888448 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#issuecomment-7348888448). Originally posted by [aegish-zagi](https://github.com/aegish-zagi) on 2026-12-02T14:38:25Z. --- Verification — VERIFY-3095 | | | |---|---| | PR | #3095 — tools: gpu_results.py reads the GPU test records into one overview (carry of #2379) | | Head | e039bcd8e53fd62703af48967cf36e3c288c18ff; MERGEABLE against current main (acc350745) | | Tests run | The PR's `tests/test_gpu_results.py` run standalone in a scratch worktree: (a) PR test file against plain main, (b) PR test file against the PR head | | Red on main | The test file cannot run on main at all: `ModuleNotFoundError: No module named 'gpu_results'` — this PR adds a new tool, so absence on main is the red state | | Green on PR | All 23 tests pass with the PR head (OK) | | Diff audit | New tools/gpu_results.py + tests/test_gpu_results.py + a gpu-test-results/README.md note. The tool only reads the checked-in GPU result records and summarises them; stdlib only, no game data (records are the repo's own hand-written test results), one topic, claim in place (carry of #2379) | | Verdict | **PASS** — new tool, absent on main, 23/23 green on the PR | | Platform | Linux, Python 3.12.3, no GPU (Profile Z) | AI-assisted: yes (Muse Wonder, Muse by Meta)
fiestorra commented 2026-12-02 23:33:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T23:33:47Z.


VERIFY-3095 — Windows nativo: las suites pasan; no establecí un control, y la rama trae la pila entera

Own commit 98e04359a — tools/gpu_results.py, 2 lines (a rename of its reader)
Branch carries a large stack: its diff against main is the whole gpu_results.py tool, not two lines

Ran at the head

python -I tests/test_gpu_results.py      Ran 24 tests — OK
python -I tests/test_docs_encoding.py    OK

The change: the tool's reader is named read_record_text, which is what the documentation/encoding checks look for in a tool that reads text records. read_record_text is present twice in the file, and both suites are green.

The control, and why I have none: I renamed it back to read_record in the tool and both suites stayed green — so the check that motivated the rename is not one of these two, and I did not find the one it is. Saying "verified" without a control would be exactly the mistake I spent tonight pointing out in other people's work, so: the rename is harmless and the tool's tests pass; whether it satisfies the check it was made for, I did not demonstrate.

What I did confirm: the tool's own 24 tests pass and the encoding check passes on that head.

What I could not test: the check the rename is for; and the tool against the real gpu-test-results/ corpus (its tests use fixtures).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362155721 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#issuecomment-7362155721). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T23:33:47Z. --- ## VERIFY-3095 — Windows nativo: las suites pasan; **no establecí un control**, y la rama trae la pila entera | | | |---|---| | Own commit | `98e04359a` — `tools/gpu_results.py`, 2 lines (a rename of its reader) | | Branch | **carries a large stack**: its diff against `main` is the whole `gpu_results.py` tool, not two lines | **Ran at the head** ``` python -I tests/test_gpu_results.py Ran 24 tests — OK python -I tests/test_docs_encoding.py OK ``` **The change**: the tool's reader is named `read_record_text`, which is what the documentation/encoding checks look for in a tool that reads text records. **`read_record_text` is present twice in the file**, and both suites are green. **The control, and why I have none**: I renamed it back to `read_record` in the tool and **both suites stayed green** — **so the check that motivated the rename is not one of these two**, and I did not find the one it is. **Saying "verified" without a control would be exactly the mistake I spent tonight pointing out in other people's work**, so: **the rename is harmless and the tool's tests pass; whether it satisfies the check it was made for, I did not demonstrate.** **What I did confirm**: the tool's own 24 tests pass and the encoding check passes on that head. **What I could not test**: the check the rename is for; and the tool against the real `gpu-test-results/` corpus (its tests use fixtures). Written with an AI assistant.
MoonEyes commented 2026-12-02 23:42:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T23:42:50Z.


@fiestorra thanks. The check the rename is for is tests/test_text_encoding.py (test_every_text_file_call_pins_its_encoding), not test_docs_encoding.py: it flags every call named read_text as a text read without encoding=, because it cannot tell pathlib's read_text from a local helper of the same name. That is why renaming to read_record stays green too.

Control on this head: rename the helper back to read_text (definition and the one call in parse_record) and run python -I tests/test_text_encoding.py: it fails with tools/gpu_results.py:189, the same failure as CI job 143660351800 on f80aa50b. With read_record_text it passes. The helper itself opens the file in "rb" and decodes utf-8-sig, so no locale is involved.

On the stack: yes, this PR carries #2379 whole (it is its carry), so the diff against main is the full tool by design.

AI-assisted: Claude Opus (Claude Code).


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362336070 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#issuecomment-7362336070). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T23:42:50Z. --- @fiestorra thanks. The check the rename is for is `tests/test_text_encoding.py` (`test_every_text_file_call_pins_its_encoding`), not `test_docs_encoding.py`: it flags every call named `read_text` as a text read without `encoding=`, because it cannot tell `pathlib`'s `read_text` from a local helper of the same name. That is why renaming to `read_record` stays green too. Control on this head: rename the helper back to `read_text` (definition and the one call in `parse_record`) and run `python -I tests/test_text_encoding.py`: it fails with `tools/gpu_results.py:189`, the same failure as CI job 143660351800 on `f80aa50b`. With `read_record_text` it passes. The helper itself opens the file in `"rb"` and decodes `utf-8-sig`, so no locale is involved. On the stack: yes, this PR carries #2379 whole (it is its carry), so the diff against `main` is the full tool by design. AI-assisted: Claude Opus (Claude Code). --- _Generated by [Claude Code](https://claude.ai/code)_
merzleckeier commented 2026-12-03 03:51:42 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T03:51:42Z.

Review: COMMENTED


Rechecked 98e04359a merged with 516c9eaa on Linux. All 24 tests pass, and --check accepts all 80 records. I found two differences between the generated overview and checked-in records.

  • [P2] Keep historical failures associated with the commit that reported them. parse_record takes the first Commit field but collects Failed fields across the whole file. RTX5060Laptop.txt has a current 5fab93967 block with one failure, cs_imgatomic_ext, and explicitly says the cs_imgload_tfe pair now passes. The Markdown row for 5fab93967 still lists both older failures. The JSON fixture summary also assigns the newer commit distance to those failures because it uses the distance of the entire record. Please scope the current row and last-seen calculation to its measurement, or retain each historical measurement with its own commit. This checked-in record makes a useful regression case.
  • [P2] Bound GPU runner counts to their own sections. For RadeonProVegaII-RADV.txt, --json labels the check.py result (159/234) and the dedicated w64_graphics.py result (18/30) as additional runs of run_gpu_tests.py --require-pass --assembler spirv-as (unfiltered). Those headings occur in the same parsed field because they are not recognized as new top-level sections. Please stop the current runner section at the next standalone heading or retain the runner for each count.

CPU-only parser checks. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6163404929 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#pullrequestreview-6163404929). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T03:51:42Z. **Review:** COMMENTED --- Rechecked `98e04359a` merged with `516c9eaa` on Linux. All 24 tests pass, and `--check` accepts all 80 records. I found two differences between the generated overview and checked-in records. - **[P2] Keep historical failures associated with the commit that reported them.** `parse_record` takes the first `Commit` field but collects `Failed` fields across the whole file. `RTX5060Laptop.txt` has a current `5fab93967` block with one failure, `cs_imgatomic_ext`, and explicitly says the `cs_imgload_tfe` pair now passes. The Markdown row for `5fab93967` still lists both older failures. The JSON fixture summary also assigns the newer commit distance to those failures because it uses the distance of the entire record. Please scope the current row and last-seen calculation to its measurement, or retain each historical measurement with its own commit. This checked-in record makes a useful regression case. - **[P2] Bound GPU runner counts to their own sections.** For `RadeonProVegaII-RADV.txt`, `--json` labels the `check.py` result (159/234) and the dedicated `w64_graphics.py` result (18/30) as additional runs of `run_gpu_tests.py --require-pass --assembler spirv-as (unfiltered)`. Those headings occur in the same parsed field because they are not recognized as new top-level sections. Please stop the current runner section at the next standalone heading or retain the runner for each count. CPU-only parser checks. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-03 08:06:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T08:06:16Z.


@merzleckeier both addressed in 1f77464d, thanks: both were real on the checked-in records.

  1. Failures follow the commit shown. parse_record now counts runs and failures only from the block of the first Commit: field; earlier blocks are noted ("earlier measurement(s) not counted, at 21625bca8"). Only IntelARL, RTX5060Laptop and RX7900XTX have more than one Commit:, and all three put the newest block first. RTX5060Laptop now shows cs_imgatomic_ext only, with the 208/268 and 243/268 runs; the cs_imgload* pair drops out of those three rows and its last seen failure moves to NvidiaPascal4GB.
  2. A run ends at a heading of its own. parse_fields starts a new field at an unindented line ending in : after a blank line; a wrapped line without a blank line before it still continues its field. RadeonProVegaII now has one runner run (209/268) instead of four. Its LEONIDA_BARY_FALLBACK=1 re-run (213/268), under its own heading, is no longer counted as a default run either.

Two new tests (synthetic records with the same layout) fail with the old tools/gpu_results.py and pass with it; 26 tests OK. --check gpu-test-results: 80 records, 0 to fix. Over all 80 records, --markdown/--json change only for those four. Not fixed, older: IntelARL names cs_imgatomic_ext after a ; mid-line, so it is still not read; the record now gets a note ("3 failed in a run, 2 fixture name(s) read").

AI-assisted: Claude Opus (Claude Code), with a separate read-only Claude Opus reviewer.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7371826224 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#issuecomment-7371826224). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T08:06:16Z. --- @merzleckeier both addressed in `1f77464d`, thanks: both were real on the checked-in records. 1. **Failures follow the commit shown.** `parse_record` now counts runs and failures only from the block of the first `Commit:` field; earlier blocks are noted ("earlier measurement(s) not counted, at 21625bca8"). Only IntelARL, RTX5060Laptop and RX7900XTX have more than one `Commit:`, and all three put the newest block first. RTX5060Laptop now shows `cs_imgatomic_ext` only, with the 208/268 and 243/268 runs; the `cs_imgload*` pair drops out of those three rows and its last seen failure moves to NvidiaPascal4GB. 2. **A run ends at a heading of its own.** `parse_fields` starts a new field at an unindented line ending in `:` after a blank line; a wrapped line without a blank line before it still continues its field. RadeonProVegaII now has one runner run (209/268) instead of four. Its `LEONIDA_BARY_FALLBACK=1` re-run (213/268), under its own heading, is no longer counted as a default run either. Two new tests (synthetic records with the same layout) fail with the old `tools/gpu_results.py` and pass with it; 26 tests OK. `--check gpu-test-results`: 80 records, 0 to fix. Over all 80 records, `--markdown`/`--json` change only for those four. Not fixed, older: IntelARL names `cs_imgatomic_ext` after a `;` mid-line, so it is still not read; the record now gets a note ("3 failed in a run, 2 fixture name(s) read"). AI-assisted: Claude Opus (Claude Code), with a separate read-only Claude Opus reviewer. --- _Generated by [Claude Code](https://claude.ai/code)_
merzleckeier commented 2026-12-03 08:18:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T08:18:20Z.

Review: APPROVED


Rechecked 1f77464d on main d9b618f1. Both findings from my previous review are resolved. Both new tests fail against the previous checker at 98e04359 and pass here. All 26 tests passed, and --check accepted all 80 records.

In the JSON comparison on the same records, RTX5060Laptop.txt at 5fab93967 contains the 208/268 and 243/268 runs and lists only cs_imgatomic_ext. RadeonProVegaII-RADV.txt contains just its 209/268 run_gpu_tests.py result. Exactly four records changed. This was a CPU-only check of the report tool and its test fixtures. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6165972184 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3095#pullrequestreview-6165972184). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T08:18:20Z. **Review:** APPROVED --- Rechecked `1f77464d` on `main` `d9b618f1`. Both findings from my previous review are resolved. Both new tests fail against the previous checker at `98e04359` and pass here. All 26 tests passed, and `--check` accepted all 80 records. In the JSON comparison on the same records, `RTX5060Laptop.txt` at `5fab93967` contains the 208/268 and 243/268 runs and lists only `cs_imgatomic_ext`. `RadeonProVegaII-RADV.txt` contains just its 209/268 `run_gpu_tests.py` result. Exactly four records changed. This was a CPU-only check of the report tool and its test fixtures. AI-assisted with OpenAI Codex.
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!3095
No description provided.