tooling: send conflicting GPU report backends to manual review #2183

Merged
RavenCurseBurg merged 1 commit from upstream-pr/2191 into main 2026-11-25 04:52:59 +00:00
RavenCurseBurg commented 2026-11-25 03:28:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T03:28:42Z.


Fixes #2188.

The offline report tool suggested the Microsoft WARP coverage row for a physical GPU when the pasted report said Backend: warp above _hardware test headings. It also generated coverage cells when different test headings named different backends in one run.

The tool now sends each conflicting run to manual review with a reason. A separately headed, consistent run in the same comment still supplies coverage cells. A report with no backend header can still use the backend shared by its test headings.

Verification

Windows x64, Python 3.14.3, commit 35bfb8af on 72c16092.

Command Result
python -B tests/hardware_reports_check.py 16 passed. The three new conflict cases each produced an extra coverage row before the fix.
python -B tests/gpu_report_format_check.py 10 passed.
python -B tests/docs_links_check.py 18 Markdown files and 404 links checked.
python -B tests/bidi_controls_check.py 1,475 tracked files checked.
git diff origin/main...HEAD --check Clean.

Evidence

The regression uses the existing synthetic report generator. It covers both directions of a header mismatch, two different test backends under one heading, and reports with no backend header.

I also replayed the public #1 thread through both revisions. The export ended at comment 7151323354 and contained 292 comments. The JSON summaries were byte-identical across all 235 recognized reports.

gh api --paginate 'repos/R0Y00/Xbox2Windows/issues/1/comments?per_page=100' > out/issue-1-comments.json
git show HEAD^:tools/hardware_reports.py > out/hardware_reports_base.py
python -B out/hardware_reports_base.py out/issue-1-comments.json --readme README.md --json > out/intake-before.json
python -B tools/hardware_reports.py out/issue-1-comments.json --readme README.md --json > out/intake-after.json
python -B -c "from pathlib import Path; assert Path('out/intake-before.json').read_bytes() == Path('out/intake-after.json').read_bytes()"

AI-assisted with Codex (GPT-6.2 Astra xhigh, as specified by the contributor).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6596520984 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2191). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T03:28:42Z. --- Fixes #2188. The offline report tool suggested the Microsoft WARP coverage row for a physical GPU when the pasted report said `Backend: warp` above `_hardware` test headings. It also generated coverage cells when different test headings named different backends in one run. The tool now sends each conflicting run to manual review with a reason. A separately headed, consistent run in the same comment still supplies coverage cells. A report with no backend header can still use the backend shared by its test headings. ## Verification Windows x64, Python 3.14.3, commit `35bfb8af` on `72c16092`. | Command | Result | | --- | --- | | `python -B tests/hardware_reports_check.py` | 16 passed. The three new conflict cases each produced an extra coverage row before the fix. | | `python -B tests/gpu_report_format_check.py` | 10 passed. | | `python -B tests/docs_links_check.py` | 18 Markdown files and 404 links checked. | | `python -B tests/bidi_controls_check.py` | 1,475 tracked files checked. | | `git diff origin/main...HEAD --check` | Clean. | ## Evidence The regression uses the existing synthetic report generator. It covers both directions of a header mismatch, two different test backends under one heading, and reports with no backend header. I also replayed the public #1 thread through both revisions. The export ended at comment `7151323354` and contained 292 comments. The JSON summaries were byte-identical across all 235 recognized reports. ```powershell gh api --paginate 'repos/R0Y00/Xbox2Windows/issues/1/comments?per_page=100' > out/issue-1-comments.json git show HEAD^:tools/hardware_reports.py > out/hardware_reports_base.py python -B out/hardware_reports_base.py out/issue-1-comments.json --readme README.md --json > out/intake-before.json python -B tools/hardware_reports.py out/issue-1-comments.json --readme README.md --json > out/intake-after.json python -B -c "from pathlib import Path; assert Path('out/intake-before.json').read_bytes() == Path('out/intake-after.json').read_bytes()" ``` AI-assisted with Codex (GPT-6.2 Astra xhigh, as specified by the contributor).
tedin7 commented 2026-11-25 04:04:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:31:12Z.

Review: COMMENTED


Review of head 35bfb8af10 (tools/hardware_reports.py, tests/hardware_reports_check.py).

Result: 0 P1, 0 P2. Logic is sound and clean-room (pure text parsing of the in-repo report layout).

What I checked

  • A report whose Backend: line disagrees with its test-section suffixes, or whose sections mix _hardware and _warp, now goes to manual review instead of being recorded. A missing Backend: line is filled from the section suffix.
  • Label scan is limited to the text before the first test section, so section output cannot trigger a false conflict.
  • With several pasted runs in one comment, a usable run no longer hides a conflicting one: duplicate and conflict reasons are kept.

Commands run locally

  • python3 -I tests/hardware_reports_check.py -> Ran 16 tests, OK
  • python3 tests/docs_links_check.py -> 18 files, 404 links, OK
  • python3 tests/bidi_controls_check.py -> OK
  • git diff --check origin/main...HEAD -> clean
  • Mutations (each reverted with git checkout -- .), all caught by the new tests:
    • disable the Backend: label comparison -> 2 failures
    • disable the mixed-section-backend check -> 1 failure
    • keep only duplicate reasons in parse_comment -> 3 failures

Open item: GitHub CI Windows checks for this SHA is action_required (fork run not yet approved), so there is no CI result yet. The change touches only .py files.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6051447726 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2191#pullrequestreview-6051447726). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T03:31:12Z. **Review:** COMMENTED --- Review of head 35bfb8af10bf9c0bb5439e55c937442d01bbda2a (tools/hardware_reports.py, tests/hardware_reports_check.py). Result: 0 P1, 0 P2. Logic is sound and clean-room (pure text parsing of the in-repo report layout). What I checked - A report whose `Backend:` line disagrees with its test-section suffixes, or whose sections mix `_hardware` and `_warp`, now goes to manual review instead of being recorded. A missing `Backend:` line is filled from the section suffix. - Label scan is limited to the text before the first test section, so section output cannot trigger a false conflict. - With several pasted runs in one comment, a usable run no longer hides a conflicting one: duplicate and conflict reasons are kept. Commands run locally - `python3 -I tests/hardware_reports_check.py` -> Ran 16 tests, OK - `python3 tests/docs_links_check.py` -> 18 files, 404 links, OK - `python3 tests/bidi_controls_check.py` -> OK - `git diff --check origin/main...HEAD` -> clean - Mutations (each reverted with `git checkout -- .`), all caught by the new tests: - disable the `Backend:` label comparison -> 2 failures - disable the mixed-section-backend check -> 1 failure - keep only duplicate reasons in `parse_comment` -> 3 failures Open item: GitHub CI `Windows checks` for this SHA is `action_required` (fork run not yet approved), so there is no CI result yet. The change touches only .py files. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 05:04:48 +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!2183
No description provided.