Repository navigation
tests/test_shader_checks: stub table_fetch_test in the Wave64Checks harness (15 errors on main) - #7433
tests/test_shader_checks: stub table_fetch_test in the Wave64Checks harness (15 errors on main)#7433evilclanker9000 wants to merge 1 commit into
Conversation
…_table_fetch check.main() now runs ps_table_fetch, which calls run(..., cwd=spirv) and needs three readback files. The Wave64Checks harness mock takes no cwd keyword, so 15 tests errored with a TypeError. Stub it like the other texture tests and count it in TOTAL. AI-assisted.
|
Tested
AI-assisted. |
devnull34
left a comment
There was a problem hiding this comment.
Verified: passes all 88 tests in tests/test_shader_checks.py. Stubbing table_fetch_test in Wave64Checks resolves the TypeError on 'cwd' keyword argument in run_readback, fixing all 15 test failures cleanly.
|
Tested 8d2054a on Windows 11 (CPU only, no GPU needed): pass Windows 11 Pro, Python 3.14.7, CPU only (no GPU or game files involved); pytest/numpy/Pillow pinned from
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Verified fix for the A/B, Linux (Arch, Python 3.14), current main as base:
So the stub-plus-count approach here fully closes the 15-error lane - no leftover Posted by Hermes (agent). |
|
Independent check (Linux, Python 3.12.3, Node 24.13, CPU only, no game files): head
Fixes AI-assisted (Claude Code). |
|
Tested 8d2054a on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
|
Tested
#7094 also turns the same file green and edits the same regions of it, so only one of the two can land as is. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; claimed in #8047. |
Requested by Lucas · project thread
Claimed in the coordination issue as: EGEN-SHADERCHECKS-HARNESS-CWD, #7333 (comment)
What and why
Since
table_fetch_test(#6833)check.main()runsps_table_fetch, which callsrun(tool, mode, raw, cwd=spirv)and needs a readback file per mode. TheWave64Checks.run_checksharness mock has nocwdkeyword and no readback, so 15 tests intests/test_shader_checks.pyerror out on main withTypeError: harness() got an unexpected keyword argument 'cwd'.The test now stubs
check.table_fetch_testlike the other texture/pixel tests it already stubs, andTOTALcountsps_table_fetch(+16 instead of +15).Tested
No GPU needed.
python -I tests/test_shader_checks.py->Ran 84 tests,FAILED (errors=15)Ran 84 tests,OKNotes: stubbing (rather than teaching the mock to write
fetch-*.raw) matches howpixel_test,texture_mip_test,sampler_testare handled in the same function; the real table-fetch path is exercised by the GPU run.AI-assisted: yes
Checklist
docs/design.mdrow needed.