Skip to content

TEST-1783: Add structured GPU test reports and comparison - #8465

Draft
moffington wants to merge 1 commit into
ItsNotRexed:mainfrom
moffington:contrib/gpu-test-report
Draft

moffington wants to merge 1 commit into
ItsNotRexed:mainfrom
moffington:contrib/gpu-test-report

Conversation

@moffington

Copy link
Copy Markdown

Adds opt-in JSON output to the GPU test runner and a comparator for
baseline and candidate reports. The comparator flags incomplete runs,
duplicate test names, and changed outcomes.

Claim: #7804 (comment)

Validation

Independent re-review closed all four findings. On an RTX 3060, two
instrumented revisions each passed 2/2 cs_lds tests and compared cleanly.
A deliberate cs_lds failure was reported as pass → fail with exit 1.

Full-suite blocker

Upstream currently records cs_fmt_d16_xyz twice and omits cs_tbuffer_store.
The comparator rejects that report as ambiguous. Existing fixes are
#4784 and #5265. Full-suite validation is pending an upstream fix.

AI-assisted implementation and review.

@Zipettte

Copy link
Copy Markdown

Tested on AMD Radeon RX 7700 XT (RDNA3), AMD Windows driver 32.0.32029.2010 (the report says 26.11.2 (LLPC)), Windows 11, at 9085db4. I ran the full suite twice with --json and compared the two reports:

run_gpu_tests.py --build <build> --json a.json   -> 224/241 passed, 16 skipped
run_gpu_tests.py --build <build> --json b.json   -> 224/241 passed, 16 skipped
compare_gpu_reports.py a.json b.json             -> exit 1
  AMBIGUOUS COMPARISON (DUPLICATE TEST NAMES): 'cs_fmt_d16_xyz' in both reports
  Summary: 0 pass->fail, 0 pass->skip, 0 missing ... 240 unchanged (1 pre-existing fail) | compatible | AMBIGUOUS (duplicates)

The reports were written and read back, and GPU and driver were identified correctly. The only failure is ms_wave_info_s3, which fails on main on this card too (#6172 / #5741). The comparator exits 1 on the cs_fmt_d16_xyz duplicate, as the PR describes, so a full-suite comparison on main needs #4784 or #5265 first.

AI-assisted (Claude Code).

@morodirule

Copy link
Copy Markdown

Tested 9085db4 on Arch Linux, Python 3.14.10, CPU only (no GPU run): pass, first Linux check. tests/test_gpu_test_report.py 19/19 OK and tests/test_vk_subgroup_info.py 55/55 OK. Negative control: with the new compare_gpu_reports/vk_subgroup_info files removed (base state) both suites fail at import; restored, green again. No game files. AI-assisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants