ci/gpu: run only GPU-marked Python tests in test-vxpu-gpu #975
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.48) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 532 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.376
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #975"
general
weight: 0.35
justinsb
vxpu/testutil: add GPU test markers and runner filteringAdd explicit GPU test decorators in
vxpu/python/vxpu/testutil.pyandfiltering and skip-enforcement flags in
dev/ci/test_runner.pyso GPU CIcan run only GPU-exercising Python tests without maintaining a separate
test list that drifts.
@requires_cuda,@requires_cuda_triton, and@gpu_testinvxpu/python/vxpu/testutil.py.@requires_cudaand@requires_cuda_tritonmark aTestCaseclass or method with_vxpu_gpu_test = Trueand skip on CPU when CUDA or Triton isunavailable.
@gpu_testmarks dual-mode tests that execute a CPU pathon CPU and a CUDA path when CUDA is available.
compile_package_test.pyand 1 inkernels_test.py) across 12 testfiles.
--gpu-only,--fail-on-skip, and--require-skipped-gputodev/ci/test_runner.py.--gpu-onlyfilters the discoveredTestSuitedown to GPU-marked tests while retainingunittest.loader._FailedTestimport errors and failing if 0 tests areselected.
--fail-on-skipfails if any executed test skips.--require-skipped-gpufails on CPU if any test skips with a CUDA,GPU, or Triton reason without carrying a GPU test marker.
vxpu/python/vxpu/testutil_test.pycoveringclass/method marking, suite filtering with load failures, and CLI flag
enforcement.
ci/gpu: run only GPU-marked Python tests in test-vxpu-gpuWire the GPU test filter and skip enforcement into the CI scripts so
test-vxpu-gpustops re-running the 205 CPU-only Python tests thattest-vxpu-pythonalready gates on every PR.dev/ci/gpu/test-vxpu-gputo invokepython -u dev/ci/test_runner.py --gpu-only --fail-on-skip, and removethe duplicate standalone
SpeculationEngineCUDATestinvocation sincetest_runner.pynow runs it with fatal skip checking. All Go GPUacceptance tests remain unchanged.
dev/ci/presubmits/test-vxpu-pythonto invokepython -u dev/ci/test_runner.py --require-skipped-gpuand typecheckdev/ci/test_runner.pywithpyright==1.1.414. Any new test thatskips on CPU for CUDA, GPU, or Triton without a GPU decorator now fails
CPU CI immediately, preventing silent coverage gaps.
Coverage verification (225 discovered Python tests):
test-vxpu-python(CPU,--require-skipped-gpu): 208 executed andpassed, 16 GPU tests skipped (all 16 verified GPU-marked), 1 optional
local tokenizer test skipped (
VXPU_TOKENIZER_PATHunset).test-vxpu-gpu(L4,--gpu-only --fail-on-skip): 20 executed andpassed, 0 skipped (all 16 CUDA/Triton tests skipped on CPU plus 4
dual-mode CPU/CUDA tests).
with 0 GPU tests skipped or dropped.
Measured speedup on NVIDIA L4 (driver 580.178.04, torch 2.14.1+cu130,
same pod with warm venv/HF mirror and fresh
VXPU_TEST_AOTI_CACHE_DIRbefore each run):
1121061):-
test_runner.pyfull discovery: 222 tests (221 passed, 1 skipped)in 1316.256s unittest / 1336s wall clock (22m 16s)
- Duplicate standalone
SpeculationEngineCUDATest: 1 test (1 passed)in 137.091s unittest / 140s wall clock (2m 20s)
- Total Python phase before: 223 test executions in 1476s (24m 36s)
-
test_runner.py --gpu-only --fail-on-skip: 20 GPU tests selectedout of 225 discovered (205 CPU-only excluded), 20 passed, 0 skipped
in 620.788s unittest / 640s wall clock (10m 40s)
- Python discovery phase: 1336s -> 640s (2.09x faster, -696s / -52.1%)
- Total Python phase: 1476s -> 640s (2.31x faster, -836s / -56.6%)
Also verified full
./dev/ci/gpu/test-vxpu-gpuend-to-end on NVIDIA L4(hero journey, 20/20 GPU Python tests with 0 skips, all Go GPU acceptance
tests including
TestCompilerClient_ThroughRealAgentAndService,TestCmdPlanPackages_BuildThroughService,TestMultiShardInt4PlanAndExecute,TestVerifyPlanEquivalence_GPU_*,TestSeparateDraftSpeculationOverGRPC, andvxpu.kernel_tools.check),pyright==1.1.414(0 errors onvxpu/python,dev/ci/hf_mirror.py, anddev/ci/test_runner.py),ap generate //..., andap lint.Fixes #968