The check job runs each standard-library test file as
`python -I tests/test_*.py || exit 1`, and unittest exits 5 when a file runs
no tests at all. On Python 3.12.0 — measured here — a file whose tests all
skip (no C++ build, no GPU device, POSIX-only) takes that path and would fail
the job for a skip. `test_vk_pipeline_check_index.py` and
`test_vk_pipeline_check_isolate.py` now end in a main() that returns 0 for an
all-skipped run and 1 for a failure, an error, or a file with no tests at all,
so a file that loses its tests stays visible. Newer 3.12.x and 3.13 exit 0 for
the all-skipped case already, so this is a guard rather than a fix for a red
job on the runner CI pins.
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
--isolate (POSIX only; an error on Windows) runs the check in child processes
over --isolate-batch modules at a time. A child killed by a signal has its
batch bisected to the module, which is reported as MODULE CRASH, counted as a
failed pipeline and makes the exit status 1; the rest is checked as usual.
Children share cache.bin one after another (atomic saves). The test hook
VK_PIPELINE_CHECK_SIMULATE_CRASH=<name substring>[:SIGNAL] raises a signal
before a matching pipeline is created, so tests/test_vk_pipeline_check_isolate.py
checks this with five hand-assembled compute shaders and no crashing driver.
Normal (non-isolated) output is unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>