Repository navigation
Conversation
…rds a test twice The merge 3eb80d7 (in main since 66ff7cb) left the cs_tbuffer_store branch of run_suite without its results.append: the line sat under cs_fmt_d16_xyz, which then recorded two rows. A full run listed cs_fmt_d16_xyz twice and no cs_tbuffer_store, so a tbuffer_store failure changed neither the report nor the exit code. Open PRs ItsNotRexed#1529 and ItsNotRexed#2311 repeat the slip for cs_fmt_xy_xyz and cs_fmt_sint32. Move the line back, and make run_suite exit 1 with an error when a test name is recorded more than once: each test records one row, and every case of this slip shows up as a duplicate. Unit tests run each one-function format row with a failing and a passing checker and require exactly one row. AI-assisted (Claude Code). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested I also ran the two fixtures together on the RTX 4090 and changed the first expected store word from I used the checked-in disassembly and the repository's Python SPIR-V assembler. The fixture checkers ran the real AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 29c1b038e on Windows 11: pytest tests/test_run_gpu_tests.py -q -> 45 passed, 61 subtests passed; git diff --check clean.
The runner now records cs_tbuffer_store's result (it was checked but not appended) and fails a run that records the same test twice, with the added cases covering both; the docs note it. No blocking issue.
|
Tested 29c1b03 on Windows 11, Python 3.12.10 (CPU only, no game files): pass.
AI-assisted review (Gemini). |
scripts/run_gpu_tests.pyonmainrunscs_tbuffer_storebut never records its result. The merge 3eb80d7 (inmainsince 66ff7cb, 2026-11-22) left that branch'sresults.appendunder the next branch,cs_fmt_d16_xyz, which then records two rows. A full run listscs_fmt_d16_xyztwice and nocs_tbuffer_store. Acs_tbuffer_storefailure therefore changes neither the report nor the exit code, even thoughdocs/design.mdnames that fixture as the GPU check fortbuffer_store_format_*.Two open PRs have the same slip (a new
elifinserted between a check call and itsresults.append): #1529 dropscs_fmt_xy_xyz, and #2311 dropscs_fmt_sint32. Both are reported on the PRs. In all three cases the dropped test appears as a duplicate of the branch next to it.Claimed on #4571 (comment).
run_suite: the line is back undercs_tbuffer_store. A newrecorded_twice(results)check makes the run print an error and exit 1 when a test name is recorded more than once. I checked with an AST pass that no other path inrun_suiteappends twice; onmainthe only one was this bug.tests/test_run_gpu_tests.py:OneResultPerTestruns each of the six one-function format rows (cs_fmt_1010102,cs_fmt_sint32,cs_fmt_int_narrow,cs_fmt_xy_xyz,cs_tbuffer_store,cs_fmt_d16_xyz) with its checker patched, the wayPackedFormatFixturedoes. It checks that a failing check gives one FAIL row, "0/1 passed" and exit 1, and that a passing one gives "1/1 passed".RecordedTwiceunit-tests the helper.docs/testing.md: one sentence on the new error.docs/design.md: the tbuffer store row notes that its GPU check was not recorded from 66ff7cb until this fix.Tested:
pytest tests/test_run_gpu_tests.py(WSL Ubuntu): 45 passed, 61 subtests. Withmain's runner, the new tests fail forcs_tbuffer_storeandcs_fmt_d16_xyz. With only the line move reverted, the guard alone still makes a duplicated row exit 1 ("2/2 passed" plus the error).pytest tests --ignore=tests/semantic -n 2(WSL): 6990 passed, 157 skipped, 7 failed. Plainmain98fa503fhas the same 7 failures:test_joaat_agreement(fixed by find_hash_lookup: hash --hash names as latin-1, like hashdict (test_joaat_agreement fails on main) #4753) andtest_rdna2_decodellvm-mc parity (claimed by MichaelL401).scripts/run_gpu_tests.pyon an NVIDIA GeForce RTX 5070 Ti (Blackwell, subgroup 32..32), driver 616.56, Windows 11 10.0.26300. Test programs were built from98fa503fwith MSVC 19.44; spirv-as/spirv-val and llvm-mc 21 came from WSL. Result: 170/217 passed, 47 skipped, 0 failed, exit 0.cs_tbuffer_storePASS (128/128 dumped words exact) andcs_fmt_d16_xyzPASS (80/80), one row each; no "more than one result" error.No game files. AI-assisted (Claude Code).
🤖 Generated with Claude Code