tooling: pin evidence label and failed cell wording in hardware_reports_check #1822
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1829"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by Asimmimx on 2026-11-24T19:18:58Z.
Change
tests/hardware_reports_check.pydid not check four branches that produce thesuggested README cells in
tools/hardware_reports.py:evidence_labelfalls back toHardware reportwhen the report printsdriver=unavailable via DXGI(the lineoffscreen_checkprints when thedriver version query fails);
evidence_labelappends, adapter filter <name>whenRun-GpuCheck.ps1 -AdapterFilterwrote anAdapter filter:line. The READMEalready uses this wording, for example
adapter filter RX 590;wave64_cellreturnsFailedfor a failedbvh_wave64section;bvh_cellreturns plainSkippedfor a skipped BVH differential atdxr_tier=11(DXR 1.1 is supported, so the skip has another cause and thecell names no tier).
Hand-applied single-point mutants of
tools/hardware_reports.py, each runagainst the check and then reverted:
tier < 11->tier <= 11inbvh_cellnot driver.startswith("unavailable")->True, adapter filter ...suffixwave64_cellreturnsNoneforFAILlane_range ... < 64-><= 64dxr_tier == 0branchnumber <= after->number < after>) lines< 0x66-><= 0x66comparisons=, debug layer enabledsuffixThe new cases read:
test_evidence_label_follows_the_readme_wording: a generated report withdriver=unavailable via DXGIgivesHardware report; the same report withAdapter filter: GPU 100after the backend line gives1.0 report, adapter filter GPU 100.test_cells_use_the_readme_wording:bvh_wave64FAILgives
("32", "Failed", "408 queries passed"), andbvh_differentialSKIPwith
dxr_tier=11gives("32", "Skipped, lane range 32–32", "Skipped").Verification
Based on
origin/main813045b3. Windows 11 Pro 26300.9974, Python 3.12.10.With each of the four targeted mutants applied to
tools/hardware_reports.py,python -B tests/hardware_reports_check.pyexits nonzero; on the unmodified toolit passes. No GPU or build step is involved.
Evidence and follow-up
These mutants also survive and are not pinned here, to keep this PR to the
suggested cell wording:
sections name more than one backendnote;native lanesorBVH differentialdifference notes inrow_differences(the existing difference case only exercises the wave64 note);(device NNNN)row when both share an adaptername (
exact or general->general or exact);edited report layoutnote (short commit,non-hyphen dash), since the existing edited case sets both;
skipped:orfailed:lists from the MarkdownTests:line.The tool is not changed.
Checklist
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T19:29:59Z.
Review: COMMENTED
Reviewed at commit
4ee1780f85153a023aef2f95b03bf0c5b41d3bea(tests/hardware_reports_check.py):tools/hardware_reports.py: pinsevidence_label()fallback to"Hardware report"whendriverbegins with"unavailable", adapter-filter suffix parsing/formatting (Adapter filter: GPU 100),wave64_cell()"Failed"wording, andbvh_cell()plain"Skipped"wording fordxr_tier=11. Clean-room, title-neutral, no defects found (0 P1, 0 P2).git diff --check origin/main...HEAD: PASS/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: PASS (1320 files checked)/root/.local/share/x2w-rev-venv/bin/python -B tests/hardware_reports_check.py: PASS (Ran 13 tests in 0.085s, OK)tests/hardware_reports_check.pyPASS (0.2s, wall9.4s)git checkout -- .):not driver.startswith("unavailable")guard intools/hardware_reports.py:tests/hardware_reports_check.pyFAILED (rc=1)tier < 11totier <= 11inbvh_cell()(tools/hardware_reports.py):tests/hardware_reports_check.pyFAILED (rc=1)AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T19:52:49Z.
Ran it; two of the three branches I tried are pinned
At the PR head, Windows 11 build 26300.9974:
Three mutations to
tools/hardware_reports.py, each reverted:return "Failed" if status == "FAIL" else None→"Passed""Hardware report"fallback label →"Hardware results"[name for name, status in report.results.items() if status == "FAIL"]→if status in ("FAIL", "SKIP")So the label and the fallback are pinned, and the membership of the failed list is not: widening it to include skipped
tests keeps every case green.
Why that one is worth a case
tools/hardware_reports.pyalready distinguishes the three statuses (parseyieldsPASS|FAIL|SKIP, andSKIPgets its ownwording at lines 236–259), and
tests/hardware_reports_check.pyalready builds rows whose GPU cell saysSkipped, …— butI could not find a report fixture whose per-test results contain a
SKIPentry. With one, the widening above would put askipped test into the "failed: …" cell and be caught.
That is the difference between "the wording of a failed cell" (what the PR's title says) and "which tests are listed as
failed": the second is the one that would silently mis-report a driver regression as a skip.
The rest of the patch
The
driver=unavailable via DXGIfallback and the four branches it names look right, and both behaviours I could break areguarded. No objection to the change as it stands; the
SKIPmembership is the only thing I would add, and it can be afollow-up if you prefer to keep this PR to wording.
Verdict
Reviewed. Two of three edits are load-bearing today; one (
failedmembership) is not.Notes