WIP test: exempt transient platform pods from the pool isolation check #116
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 496 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.371
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #116"
general
weight: 0.35
haircommander
Fixes https://github.com/kubernetes-sigs/ai-conformance/issues/115
verifyPoolIsIdletreats everynon-DaemonSetpod on the target accelerator pool as a foreign workload. The NVIDIA GPU Operator createsnvidia-cuda-validatoras a plain pod on each node once it joins, so while that pod is briefly Running the isolation preflight fails andTestAcceleratorClusterAutoscalingaborts before it ever exercises the autoscaler.This exempts a pod only when all three hold:
- it is in a platform/operator namespace, never a user namespace;
- it is explicitly RestartPolicy: Never or OnFailure — an unset policy is defaulted to Always by the API server, so it does not qualify;
- it does not itself request accelerator resources.
All three are required. An earlier version of this patch checked only the restart policy and the accelerator request, which silently exempted any user batch Job on the pool and broke two existing subtests (rejects a foreign scheduled Pod and rejects other pending target-pool demand, both of which use pods with an unset RestartPolicy). The namespace condition is what keeps those passing.
Testing
Before — upstream
fd9ba2d, unmodifiedThe pool scaled up correctly to 3 nodes. The GPU Operator then created
nvidia-cuda-validator-6qwston the newly added node, and because that pod is a plainpod rather than a DaemonSet member, the isolation re-check counted it as a foreign
workload while it was still
Running.After — same commit plus the fix
The same scale-up step that previously aborted now passes.
Unit tests
TestVerifyPoolIsIdlegoes from 7 to 10 subtests, all passing;go vet ./test/is clean.The added cases cover the validator pod being ignored, a
RestartPolicy: Neverpod in auser namespace still being reported, and a platform-namespace pod that requests
nvidia.com/gpustill being reported.Environment: OpenShift 5.0.0-rc.8, Kubernetes v1.36.5,
GPU Operator v26.7.2 (driver 615.71.09),
AWS g5.xlarge (A10G),
RHCOS 10.2 / kernel 6.12.0-211.69.1.el10_2,
allocation mode: device-plugin
Open question —
isPlatformNamespacematches the prefixeskube-openshift-gpu-operatorandnvidia-.That covers OpenShift + NVIDIA, but this suite also serves GKE, Talos and others. Happy to make it a flag, or derive it from where the accelerator operator runs, if maintainers prefer.