feat(uat): validate NVSentinel GPU health monitors on the sim lane #3019
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3019"
general
weight: 0.35
ArangoGutierrez
Supersedes #2964, which GitHub closed automatically when its base branch (
feat/2358-uat-slurm-kwok-lane, #2661) was deleted on merge. This PR carries the same feature commit, replayed ontomainwith its hand-written lines byte-identical, plus fixes for the four CodeRabbit findings raised on #2964. Each fix is a failing test commit followed by its fix commit:${desired:-0}made it 0, and the gate reported the sibling "correctly inactive". The read's exit status is now checked and a numeric count required; each failure has its own message. Test d8d449847, fix 3d71a1e9d.dcgm.versionfrom its own pod event handlers after its caches sync, and nothing before this step waits for that. The label and the DaemonSet are now polled under oneMONITOR_TIMEOUTdeadline. Test 40a1b665e, fix b191ae2bc.Summary
Adds a DCGM host engine to the simulated-GPU lane so NVSentinel's GPU health monitor runs and is gated there, with no GPU hardware.
Motivation / Context
The lane already deploys NVSentinel, but its GPU health monitors never run there. They are DaemonSets gated on
nvsentinel.dgxc.nvidia.com/dcgm.version, which NVSentinel's labeler writes only when it finds a Ready pod labelledapp=nvidia-dcgmwhose image string matchesdcgm:<major>.. This lane excludes gpu-operator, so nothing supplies a host engine, the label is never written, and the monitors sit atdesiredNumberScheduled: 0with nothing failing.Nothing on that path inspects a GPU. A real DCGM host engine reading the mocked NVML driver the lane already installs is enough.
Fixes: #3020
Related: #2623
Related: #2358
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/)tests/uat/kind,.github/workflows/uat-kind-sim.yamlImplementation Notes
Three details are load-bearing, each failed at least once while this was built, and all three fail silently.
The image reference carries both a tag and a digest. Everything else in this lane is pinned by bare digest. A bare digest contains no
dcgm:<major>.substring, so pinning that way stops the labeler stamping and the monitors never schedule. The digest still decides which bytes run; the tag exists for the labeler to parse. Two independent checks enforce both halves.nv-hostenginebinds loopback by default, so-b ALLis required. Without it the monitor fails the handshake and reports a PythonAttributeErrornaming neither the bind address nor the Service.The host engine image is ~2GB and is not side-loaded, so it gets its own rollout budget rather than the shared 300s. A 905MB image measured 338s cold on this hardware. Sharing the budget would fail the lane for being slow rather than wrong, and the usual repair is to widen a timeout until it stops discriminating.
The gate is a lane step rather than a recipe health check because
recipes/checks/nvsentinelmust stay tolerant ofdesiredNumberScheduled: 0, which is correct on every lane that supplies no host engine. Same split, and the same reason, asverify-topology.sh.What the gate requires. Every worker named by
worker_indicescarriesdcgm.version=<major>.x, compared by node name; the matching monitor DaemonSet has one Ready pod per worker; and its sibling DaemonSet reads a successful 0. The label wait and the DaemonSet wait share oneMONITOR_TIMEOUT(900s): the DaemonSet cannot schedule before the label exists, so they are one sequence. Each loop reads before it checks the deadline, so a label that lands at the deadline still gets the DaemonSet read. A failed read is retried while waiting and is never counted as success.Step order on
main. The chain is install, readiness, topology,gpu_health, conformance. Conformance names bothtopologyandgpu_healthexplicitly. The chain would hold transitively, but the invariant this lane states is that conformance must not publish evidence for a wrong topology, and an invariant surviving only by transitivity is one a later edit can drop without noticing. The job budget comment now includes the step (sum 283, under the 300-minute job timeout).Testing
Shell suites, all rc=0:
The new cases drive the verifier's
mainwith onlykubectlstubbed, one layer deep, andsleepadvancingSECONDS, so polling costs no real time. Each was red before its fix, and each new guard was mutation-checked: removing the read's exit-status check, removing the numeric check, swapping the by-name worker comparison for a count, dropping the one-pod-per-worker clause, and checking the deadline before the first DaemonSet read each turn the suite red. RaisingMONITOR_TIMEOUTto 1200 without the step turns the budget check red. The guards from #2964 (tag plus digest,applabel,-b ALL, Service port, separate rollout budgets, conformance gating, step id) were mutation-checked there and are unchanged.Live verification predates this revision. #2964's feature commit was run on a two-node kind cluster with no GPU, against nvsentinel v1.20.0: the labeler stamped
dcgm.version=4.xfrom the tag-plus-digest reference, andgpu-health-monitor-dcgm-4.xreached1/1 Ready, loggingSuccessfully created DCGM handleandsupported gpus are [0, 1, 2, 3].mainnow pins nvsentinel v1.25.0. Its labeler (samedcgm:<major>.regexes, sameapppod index, same Ready requirement) and its monitor DaemonSets (same names, samedcgm.versionnodeSelector, the new DCGM startup gate off by default) were checked against v1.25.0 source, not run. The four-worker lane, the polling, and the per-worker coverage have not been run live.make qualifyhas not been run for this revision. #2921 (open) tracks amake qualifyfailure onmain.Risk Assessment
Rollout notes: The bootstrap step's budget is raised from 25 to 30 minutes (6cf889e9e), because the waits inside it now total 27.5 minutes at worst (node Ready 300s, device plugin rollout 300s, DCGM rollout 900s, capacity 150s) and the step has to outlive them to report why it failed. The comments that cite the NVSentinel labeler now name the pinned v1.25.0 (2b01b56ff).
Checklist
make testwith-race):go test -race ./tests/uat/...and the shell suites above;make testnot runmake lint): golangci-lint, shellcheck, actionlint and yamllint on the changed paths;make lintnot rungit commit -S): GPG signing info