Repository navigation
Conversation
SirKingg
left a comment
There was a problem hiding this comment.
Independent Windows CPU-only review at 34fb524f70ab053f07e6b9fc664194f06959691e (Python 3.11.3). AI-assisted.
- Synthetic base/head controls cover empty and multiple skips,
None, real failures, exit 77 with and without a reason, all three fetch modes, command paths and exit status. The head counts each result correctly and no longer masks the failure. python -I tests/test_shader_check_skips.py: 6 passed. The related GPU-runner and CI-registration suites passed (99 tests, 1 skipped).tests/test_shader_checks.pyhas the same 15 pre-existingcwderrors on base and head. Applying #7433's two test-only changes in memory makes all 88 discovered tests pass on both; no repository files changed.- No real GPU, Vulkan driver, or no-driver executable path was tested. CI checks were queued at review time.
|
Tested 34fb524 on Intel Iris Xe Graphics (TGL GT2), Mesa ANV 26.3.1, Vulkan 1.4.363, Linux 6.12 (Arch container), llvm-mc 23.1.5, CPython 3.14: pass.
So the reproduction from the description holds on Linux/ANV too, the fix changes only that row in the no-driver run, and nothing changes when the device is there. (Both no-driver runs exit 1 here because the other rows fail; the off-by-one in Synthetic fixtures only, no game files. AI-assisted (Claude Code). |
|
Tested Setup: Windows 11 build 26300, VS 2026 (MSVC 14.52) RelWithDebInfo, Vulkan SDK 1.4.363.1, llvm-mc 23.1.6, Python 3.15.2. The test programs were built from No driver (
With a driver, the PR's
Unit tests: A side note on the reproduction, not a problem with this PR: on Windows, the description's empty out-dir form doesn't reach the exit-77 path. Synthetic fixtures only, no game files. AI-assisted (Claude Code). |
|
Tested 34fb524 merged onto
AI-assisted (Claude Code). |
|
Tested 34fb524 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). |
Claimed in #7333 as: #7333 (comment)
What and why
When
vk_texture_testcan't run,check.pyprintsokforps_table_fetch. It also counts the test as passed and takes one off the failure count.table_fetch_test(runtime/test/shaders/check.py:1123) returnedSkip(output.strip()). If there is no Vulkan driver,vkCreateInstancegivesVK_ERROR_INCOMPATIBLE_DRIVER, andvk_texture_testexits 77 without printing anything. The result is thenSkip(""), which is falsy, somain():ok;failedas "truthy results minus every Skip", so this empty Skip takes one off the failure count. A run with one real failure next to it exits 0, and a run where everything else skipped getsfailed = -1.On main 042c5f3 the real programs show it (an empty out dir, no driver):
Nothing ran there. With the branch the row is
ps_table_fetch SKIP (unsupported device)and the summary is0 of 211 pass, 9 skipped.Even when
vk_texture_testdoes say why it stopped, the old row printed its whole output (device: ..., the offset limits, then the reason) without anySKIPmarker.The fix:
table_fetch_testreports exit 77 asSKIP (<the "unsupported:" line>), orSKIP (unsupported device)when there is no such line, like the othervk_texture_testhelpers do.main()tells skips apart by type: an empty Skip printsSKIP (no reason given), andfailedcounts the truthy results that are not a Skip.Commits:
table_fetch_testreports exit 77 asSKIP (reason).main()counts a Skip result as a skip whatever its text.tests/test_shader_check_skips.py(standard library). It coverstable_fetch_testwith a silent 77, a 77 that names the reason and a real failure. It also runsmain()with stand-in helpers and checks three things: a failure next to a silent skip still exits 1, an empty Skip from any helper prints as a skip, and the summary counts every row once.Tested
Linux, Python 3.14.10 (
python3 -I), NVIDIA RTX 2060 SUPER build of main 042c5f3:python3 -I tests/test_shader_check_skips.py: 6 tests OK. With main'scheck.pyin place, 5 of them fail: the silent 77 givesSkip(''), theps_table_fetch okrow appears, andmain()returns 0 next to a failure.tests/test_run_gpu_tests.py,tests/test_run_gpu_tests_paths.py,tests/test_run_gpu_tests_python_assembler.pyandtests/test_ci_registration.pypass.tests/test_shader_checks.pyhas the same 15 errors as on main (itsharness()mock takes nocwd, the item tests/test_shader_checks: stub table_fetch_test in the Wave64Checks harness (15 errors on main) #7433 fixes). With tests/test_shader_checks: stub table_fetch_test in the Wave64Checks harness (15 errors on main) #7433's diff applied on top of this branch, all 84 tests pass.Checklist