tooling: list hardware reports the coverage table does not link #696

Merged
romn4rch merged 1 commit from upstream-pr/702 into main 2026-11-22 21:25:34 +00:00
romn4rch commented 2026-11-22 21:09:34 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-22T21:09:34Z.


Change

Adds tools/hardware_reports.py, a read-only helper for the coverage batches from #1. Batches such as #481, #501 and #657 were assembled by hand: find the reports that the README table does not link yet, then copy the adapter, driver, lanes and skip reasons into rows. The helper does the lookup and the copying. The person preparing the batch still decides what goes into the table.

gh api --paginate repos/R0Y00/Xbox2Windows/issues/1/comments > out/issue-1-comments.json
python -B tools/hardware_reports.py out/issue-1-comments.json [--after <comment-id>] [--json]

For each report whose comment README.md does not link, it prints the adapter, driver, Windows build, source commit, backend, debug-layer status and test results. It also names the row the report belongs to (by adapter name, and by device ID where the row names one) and suggests cells in the table's wording, for example Skipped, lane range 32–32, Shader Model 6.5 or Skipped, DXR tier 1.0. It notes edited copies of the report, the same text posted twice and results that differ from the existing row. Attached report files, Linux translation-layer runs and results outside the generated layout are listed for manual review. The tool makes no network requests and does not edit README.md.

## 2. NVIDIA GeForce RTX 3070 (existing row `NVIDIA GeForce RTX 3070 (driver 32.0.16.1088)`)

- Report: https://github.com/R0Y00/Xbox2Windows/issues/1#issuecomment-7084482487 by @Reactorcorefan213, 2026-11-22T19:32:32Z
- Driver 32.0.16.1088, Windows build 19045.7846, source def386a, backend hardware, debug layer unavailable
- Tests: 2 passed, skipped: bvh_wave64
- Cells: lanes 32 | wave64 Skipped, lane range 32–32, Shader Model 6.5 | BVH 408 queries passed
- Evidence: [32.0.16.1088 report](https://github.com/R0Y00/Xbox2Windows/issues/1#issuecomment-7084482487)
  • The parser reads the layout written by tools/gpu-check/Run-GpuCheck.ps1. The new check asserts that the header, the section headings and the six summary field patterns match the runner's.
  • tests/hardware_reports_check.py uses synthetic comments only. It runs in the Linux Python job and is added to the matching lists in AGENTS.md and docs/non-windows-hosts.md. CONTRIBUTING.md gets two sentences next to the hardware-thread instructions.
  • The input can be the concatenated pages of gh api --paginate, and a UTF-16 file from Windows PowerShell 5.1 redirection.

Refs #1.

Verification

At 3b9bb1a plus this change, Python 3.12:

$ python -B tests/hardware_reports_check.py
...........
----------------------------------------------------------------------
Ran 11 tests in 0.022s

OK

Against the 204 comments in #1 at 20:55 UTC on 2026-11-22 (newest 7085397975) and README.md at 3b9bb1a:

  • 170 reports use the generated layout. The README links 134 of them.
  • For each of the 134 linked reports, the helper picks the row that links it. Its lanes, forced-wave64 and BVH cells agree with that row in 134, 134 and 133 cases. The exception is the GTX 1060 6GB row, which records a separate Tier 1.0 retest.
  • 36 reports are not linked: 29 are in #657, 6 were posted after its batch, and 1 is an older run that no batch included. Six comments go to manual review: two attached report files, two Linux translation-layer runs and two edited reports without adapter lines.
  • --after 7083199356, the last report that #657 covers, lists the 6 newer reports: RTX 3050 Laptop GPU, RTX 3070, RTX 2070 SUPER, RX 9060 XT and two RX 7800 XT runs. Each matches its existing row.

Negative controls: I broke the helper in eight ways, one at a time, and the check failed each time: a field pattern that differs from the runner's, quoted lines read as a report, a lane-range threshold of <= 64, linked reports listed, no trailing-Graphics rule for adapter names, no de-duplication of a report pasted twice, no splitting of a comment with a hardware and a WARP report, and UTF-8-only input.

  • check_links() from tests/docs_links_check.py finds 13 links, 0 broken, in the three edited Markdown files. findings() from tests/bidi_controls_check.py returns [] for all six files, git diff --check reports nothing, and the workflow still loads as YAML.
  • This branch starts from an older main. git merge-file of each edited file with its main version at 3b9bb1a merges without conflicts, and each result is that version plus this change. docs/non-windows-hosts.md also merges cleanly with #696.
  • This is a pure-Python change. I did not run the Windows C++, HLSL, WARP or hardware checks.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6547821352 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/702). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-22T21:09:34Z. --- ## Change Adds `tools/hardware_reports.py`, a read-only helper for the coverage batches from #1. Batches such as #481, #501 and #657 were assembled by hand: find the reports that the README table does not link yet, then copy the adapter, driver, lanes and skip reasons into rows. The helper does the lookup and the copying. The person preparing the batch still decides what goes into the table. ```bash gh api --paginate repos/R0Y00/Xbox2Windows/issues/1/comments > out/issue-1-comments.json python -B tools/hardware_reports.py out/issue-1-comments.json [--after <comment-id>] [--json] ``` For each report whose comment `README.md` does not link, it prints the adapter, driver, Windows build, source commit, backend, debug-layer status and test results. It also names the row the report belongs to (by adapter name, and by device ID where the row names one) and suggests cells in the table's wording, for example `Skipped, lane range 32–32, Shader Model 6.5` or `Skipped, DXR tier 1.0`. It notes edited copies of the report, the same text posted twice and results that differ from the existing row. Attached report files, Linux translation-layer runs and results outside the generated layout are listed for manual review. The tool makes no network requests and does not edit `README.md`. ```text ## 2. NVIDIA GeForce RTX 3070 (existing row `NVIDIA GeForce RTX 3070 (driver 32.0.16.1088)`) - Report: https://github.com/R0Y00/Xbox2Windows/issues/1#issuecomment-7084482487 by @Reactorcorefan213, 2026-11-22T19:32:32Z - Driver 32.0.16.1088, Windows build 19045.7846, source def386a, backend hardware, debug layer unavailable - Tests: 2 passed, skipped: bvh_wave64 - Cells: lanes 32 | wave64 Skipped, lane range 32–32, Shader Model 6.5 | BVH 408 queries passed - Evidence: [32.0.16.1088 report](https://github.com/R0Y00/Xbox2Windows/issues/1#issuecomment-7084482487) ``` - The parser reads the layout written by `tools/gpu-check/Run-GpuCheck.ps1`. The new check asserts that the header, the section headings and the six summary field patterns match the runner's. - `tests/hardware_reports_check.py` uses synthetic comments only. It runs in the Linux Python job and is added to the matching lists in `AGENTS.md` and `docs/non-windows-hosts.md`. `CONTRIBUTING.md` gets two sentences next to the hardware-thread instructions. - The input can be the concatenated pages of `gh api --paginate`, and a UTF-16 file from Windows PowerShell 5.1 redirection. Refs #1. ## Verification At `3b9bb1a` plus this change, Python 3.12: ``` $ python -B tests/hardware_reports_check.py ........... ---------------------------------------------------------------------- Ran 11 tests in 0.022s OK ``` Against the 204 comments in #1 at 20:55 UTC on 2026-11-22 (newest 7085397975) and `README.md` at `3b9bb1a`: - 170 reports use the generated layout. The README links 134 of them. - For each of the 134 linked reports, the helper picks the row that links it. Its lanes, forced-wave64 and BVH cells agree with that row in 134, 134 and 133 cases. The exception is the GTX 1060 6GB row, which records a separate Tier 1.0 retest. - 36 reports are not linked: 29 are in #657, 6 were posted after its batch, and 1 is an older run that no batch included. Six comments go to manual review: two attached report files, two Linux translation-layer runs and two edited reports without adapter lines. - `--after 7083199356`, the last report that #657 covers, lists the 6 newer reports: RTX 3050 Laptop GPU, RTX 3070, RTX 2070 SUPER, RX 9060 XT and two RX 7800 XT runs. Each matches its existing row. Negative controls: I broke the helper in eight ways, one at a time, and the check failed each time: a field pattern that differs from the runner's, quoted lines read as a report, a lane-range threshold of `<= 64`, linked reports listed, no trailing-`Graphics` rule for adapter names, no de-duplication of a report pasted twice, no splitting of a comment with a hardware and a WARP report, and UTF-8-only input. - `check_links()` from `tests/docs_links_check.py` finds 13 links, 0 broken, in the three edited Markdown files. `findings()` from `tests/bidi_controls_check.py` returns `[]` for all six files, `git diff --check` reports nothing, and the workflow still loads as YAML. - This branch starts from an older `main`. `git merge-file` of each edited file with its `main` version at `3b9bb1a` merges without conflicts, and each result is that version plus this change. `docs/non-windows-hosts.md` also merges cleanly with #696. - This is a pure-Python change. I did not run the Windows C++, HLSL, WARP or hardware checks. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. _AI-assisted._
upstream-sync closed this pull request 2026-11-24 06:44:24 +00:00
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
R0Y00/Xbox2Windows!696
No description provided.