Skip to content

Fix the CPU shader-check mock for ps_table_fetch - #7094

Draft
Nithin1777 wants to merge 1 commit into
ItsNotRexed:mainfrom
Nithin1777:fix-table-fetch-test-mock
Draft

Nithin1777 wants to merge 1 commit into
ItsNotRexed:mainfrom
Nithin1777:fix-table-fetch-test-mock

Conversation

@Nithin1777

Copy link
Copy Markdown

Follow-up to #6833. Claim in the coordination thread.

The new ps_table_fetch check passes a working directory to the texture harness and expects a readback file. Update the CPU-only Wave64Checks mock to accept the working directory, produce a readback for each of the three fetch modes, and count the new result row. GPU code is unchanged.

Tested on Bazzite 45 with CPython 3.15.2 and the source files at e1b51bf9. Before the fix, python3 -I tests/test_shader_checks.py reported 15 errors from the unexpected cwd argument. With the fix, all 84 tests pass. Synthetic fixtures only. AI-assisted with Codex.

Model the texture harness working directory and readback file in Wave64Checks, and count the new check.py result.

Follow-up to ItsNotRexed#6833.
Claim: ItsNotRexed#7049 (comment)
AI-assisted with Codex.
@Krashgamer

Copy link
Copy Markdown
Contributor

Heads-up, same line: #2171 (open) also adds one case to TOTAL in tests/test_shader_checks.py (cs_f16_frexp_ldexp, now at + 16) on its head e5ef73839, which is merged with current main). With both, the count is + 17). I checked that locally by applying this PR's test_shader_checks.py change on #2171's head: 151 passed (pytest), python -I tests/test_shader_checks.py OK. Whichever lands second only needs that bump and both names in the comment.

AI-assisted (Claude Code).

@myokex

myokex commented Nov 23, 2026

Copy link
Copy Markdown

Tested 326950bb4 merged onto main 8575d36ed on Windows 11, Python 3.12.10 (CPU only, no GPU, no game files): pass. python -I -m unittest discover -s tests -p test_shader_checks.py: main FAILED (errors=15, all harness() got an unexpected keyword argument 'cwd', the drift from #6833 reported in #7049); with this PR OK (88 tests). For comparison, #7122 no longer merges cleanly onto the same main (conflicts in runtime/test/shaders/check.py, runtime/test/vk_texture_test.cpp, scripts/run_gpu_tests.py, tests/test_shader_checks.py). AI-assisted (Claude Code).

@memorypressure

Copy link
Copy Markdown

Verified at 326950b: test_shader_checks.py is RED on current main e0816d6 (Ran 84, 15 errors — reconfirmed here) since 43a9c04 (#6833) added the ps_table_fetch check, and green 84/84 with your fix; the mock faithfully mirrors table_fetch_test's invocation (vk_texture_test, cwd=spirv, exact-words). Please merge this early — main needs it. One process flag: the branch reports no CI checks at all, so it shouldn't land on an empty checks list; a push to trigger them first. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

@aarushkha

Copy link
Copy Markdown

Tested 326950b merged onto main 86a7807dd on Windows 10 Pro 22H2 (19045), Python 3.14.3: pass.

  • python -I tests/test_shader_checks.py: Ran 84 tests in 1.568s OK (red on main)

It merges cleanly together with #7092 #6049 #7120 #6513 #7242 #7209 #6254 #7214 #6957 #7309 #4771 #7029 #7129 #6508 #7152 #7174 #7032 onto main; with all of them applied, the only standalone test still red on Windows is test_first_look_paths (claimed by Racurs156). Summary in #7333.

No GPU or game files needed. AI-assisted (Claude Code); I read the diff before running it.

@carlos-seiffert

Copy link
Copy Markdown

Tested 326950b (merged onto main dd25fe6) on Windows 11 (10.0.26300), Python 3.15.2: pass

python -I tests/test_shader_checks.py: main dd25fe6 fails with 15 errors (harness() got an unexpected keyword argument 'cwd', from ps_table_fetch); with this PR: OK, 84 tests.

I checked one thing beyond the mock: fixing the cwd call alone was not enough in my own attempt, because TOTAL then counted 210 cases where check.py prints 211 (ps_table_fetch is one more row). This PR passes as it stands, so the count is covered.

Overlap, for whoever merges: #7122 touches the same file and currently conflicts with main; the f64 tests that are also red on main are fixed separately by #6474 / #6994 / #7209 (each of them alone; see my comments there). AI-assisted run (Claude Code).

@ne1i

ne1i commented Nov 23, 2026

Copy link
Copy Markdown

Tested 326950bb on Linux, CPython 3.14, CPU only, synthetic inputs, merged onto main dde82f27: pass

  • python -I tests/test_shader_checks.py: 84 tests OK (red on main: 15 errors).
  • Test-only change; its absence is main.
  • compileall (where the change has Python files) and scripts/check_no_game_data.py on the changed files: clean.

#7433 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.

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.

7 participants