fix(kwok): skip the SR-IOV pre-delete hook in NVKE cleanup #3453
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 533 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 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.289
Real PR Conversation Timeline
1 comments
"Review active on #3453"
general
weight: 0.35
yuanchen8911
Summary
KWOK cleanup now uninstalls releases that enable the network-operator chart's
sriov-network-operatorsubchart with--no-hooks, so the NVKE Tier 2 lanes (gb200-nvke-ubuntu-trainingandgb200-nvke-ubuntu-training-kubeflow) no longer time out in cleanup.Motivation / Context
Both NVKE KWOK lanes pass scheduling validation and then fail cleanup. The SR-IOV subchart (network-operator 26.7.0) ships a pre-delete hook Job with tolerations hardcoded to the control-plane taints, not configurable from values. It never schedules on the KWOK cluster, so
helm uninstall network-operatorhits the 60s cleanup timeout.Fixes: #3452
Related: #3389
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)kwok/scripts/lib/cleanup.sh(KWOK CI cleanup)Implementation Notes
sriov_subchart_enabledreads a release's values (helm get values) and reports whethersriovNetworkOperator.enabledis true. Only those releases get--no-hooks; every other release keeps its hooks.SriovOperatorConfigso the operator can remove its webhooks. Nothing runs on KWOK to act on it, and the cleanup's namespace sweep removes the rest.timeout 30s. A read failure or timeout counts as "not enabled", so a release keeps its hooks rather than skipping them by mistake.network-operatorcleanly with its hook.sriov-ib-networksfor NVKE because no operator runs there to create the nv-ipam IPPool CRD (noted in #3452).Testing
cleanup_test.shgains a case: a release enabling the SR-IOV subchart is uninstalled with--no-hooks, and no other release is. All cases pass; the new case fails against the previouscleanup.sh.shellcheck -xis clean.make qualifywas not run: the change is limited to a KWOK CI shell script and its test, which no Go test, lint, or e2e target exercises. KWOK Tier 2 is diff-aware and does not select the NVKE leaves for a change limited tokwok/scripts/, so the end-to-end check was the Tier 3 KWOK run onmainafter merge. Before this change, Tier 3 on864dd60failed both NVKE leaves only with thehelmdeployer and passed them with the Argo CD and Flux deployers.a44f720passed.gb200-nvke-ubuntu-trainingandgb200-nvke-ubuntu-training-kubeflowpassed with thehelmdeployer, cleanup included, and all 12 NVKE recipe/deployer jobs passed. The run had no failed jobs.Risk Assessment
Rollout notes: N/A (CI-only).
Checklist
make testwith-race)make lint)git commit -s -S) — GPG signing info