← Back to Pull requests

fix(uat): pre-pull the sim lane's monitor image and correct its docs #3118

Closed
unknown closed this pull request without merging on Oct 07, 2026 11:05 UTC
View on GitHub
unknown unknown commented on Oct 06, 2026 16:07 UTC
Author

Summary

Follow-up to #3019 for the findings Mark left on his approving review. The sim lane now pre-pulls the NVSentinel GPU health monitor image during bootstrap, so the pull no longer lands inside nvsentinel's 600s helm --wait at install, and the lane's docs and comments describe the DCGM host engine and the gpu_health gate accurately.

Motivation / Context

Mark's approval of #3019 noted five items on the merged code. The one that changes behavior: the NVSentinel labeler stamps dcgm.version=4.x as soon as it starts, because the DCGM host engine is already Ready from bootstrap, and helm 4's watcher waits on every resource in the release. The 4.x monitor DaemonSet therefore pulls its ~2.5GB of new layers inside nvsentinel's 600s release wait (pkg/bundler/deployer/helmfile/releases.go), within the lane's 1200s shared helmfile budget. At the 2.7MB/s the lane assumes, that pull takes about 935s, so install would fail or stall before the gate runs. The local demo's plain helmfile apply has no retry and fails at 600s.

Fixes: N/A
Related: #3020
Related: #2623

Type of Change

<!-- Check all that apply -->

  • Bug fix (non-breaking change that fixes an issue)

  • New feature (non-breaking change that adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

  • Documentation update

  • Refactoring (no functional changes)

  • Build/CI/tooling
  • Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)

  • API server (cmd/aicrd, pkg/server)

  • Recipe engine / data (pkg/recipe)

  • Bundler and deployers (pkg/bundler, pkg/component)

  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)

  • Validator (pkg/validator)

  • Core libraries (pkg/errors, pkg/k8s)

  • Docs/examples (docs/, examples/)

  • Other: Kind sim UAT lane (tests/uat/kind/, .github/workflows/uat-kind-sim.yaml, demos/cuj1-slinky-slurm.md)
  • Implementation Notes

  • Pre-pull in bootstrap. setup-gpu-sim.sh now pre-pulls the monitor image on the sim workers right after the host engine rollout, with a DaemonSet that runs the image's own sleep (the image is Ubuntu 24.04 based, amd64 and arm64), waits for its rollout under a new 1200s MONITOR_PREPULL_TIMEOUT, and deletes it. The reference is exactly the tag the v1.25.0 chart renders, so the chart's IfNotPresent finds it cached and the monitor should start well inside nvsentinel's 600s wait (not yet observed on a live run). The bundle is unchanged, so the lane still deploys exactly what aicr bundle emits.

  • Drift guard. setup-gpu-sim_test.sh pins the pre-pulled tag to the gpu-health-monitor line in docs/user/container-images.md, which make bom-docs regenerates from the chart, so an nvsentinel bump that forgets the pre-pull goes red.

  • Budgets. Bootstrap waits go from 2250s to 3450s (step 45 to 65 min), derived by bootstrap-cluster_test.sh. MONITOR_TIMEOUT drops from 1200s to 300s with its rationale rewritten, since no pull is left in the gate (worst case 805s, step 30 to 15 min). The job goes from 320 to 325 min, under the 360 cap.

  • Docs and comments. docs/contributor/uat.md, the demo's bootstrap step and the config header now name the DCGM host engine, the gpu_health gate and the bootstrap pulls. The gate script now says recipes/checks/nvsentinel omits the monitor DaemonSets rather than asserting them tolerantly, the labeler's --dcgm-app-label default is given as nvidia-dcgm,nvidia-dcgm-dra, and the conformance gate on gpu_health is described as lane policy, since the signed bundle attests only gang-scheduling, cluster-autoscaling and slinky-slurm-health.

  • Options considered for the pull: raising the install budget (the CI bundle would diverge from what aicr bundle emits, and the local demo would still fail at 600s), moving DCGM out of bootstrap (partly reverses #3019's complete-node bootstrap), and measuring first (does not help local runs). The pre-pull keeps the bundle as shipped and puts the pull where its budget lives.
  • Testing

    make lint
    # every make test-shell script run individually under bash 5
    shellcheck -x tests/uat/kind/{setup-gpu-sim,bootstrap-cluster,verify-gpu-health-monitors}{,_test}.sh
    yamllint .github/workflows/uat-kind-sim.yaml tests/uat/kind/tests/h100-training-slurm-config.yaml
    

  • The new tests were red before the change: five failures in setup-gpu-sim_test.sh, and bootstrap-cluster_test.sh red at "outlives its waits (3450s): got timeout-minutes=45". They pass after.

  • Mutation checks: 9 of 9 mutants of the pre-pull and its budgets turn the suite red, including the gpu-health-monitor line in the BOM edited to nvsentinel v1.26.0.

  • The Go suite with -race (the make test command) passes in 113 packages. TestApplyCRDsScript_BoundsStalledApply in pkg/bundler/deployer/localformat timed out once under full-suite load (it bounds helm list at 2s and took 6s) and passes 3 of 3 runs on its own; this PR changes nothing under pkg/.

  • make lint, make e2e, make license-check and make openapi-diff pass. Every shell test passes except tools/api-diff_test.sh, which fails locally on an apidiff version mismatch and fails identically on main; this PR touches nothing under tools/, go.mod or pkg/.

  • Not run: the lane itself, which is dispatch-only. Bootstrap, the pre-pull and install are covered by the hermetic tests, not by a live kind run.
  • Risk Assessment

    <!-- Select one and explain -->

  • Low — Isolated change, well-tested, easy to revert

  • Medium — Touches multiple components or has broader impact

  • High — Breaking change, affects critical paths, or complex rollout
  • Rollout notes: Only the dispatch-only Kind sim lane and its local reproduction change. The 2.7MB/s figure is still a single local measurement, and a first dispatch would replace it with a runner number.

    Checklist

  • Tests pass locally (make test with -race)

  • Linter passes (make lint)

  • I did not skip/disable tests to make CI green

  • I added/updated tests for new functionality

  • I updated docs if user-facing behavior changed

  • Changes follow existing patterns in the codebase

  • Commits are signed off and cryptographically signed (git commit -s -S) — GPG signing info
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: ArangoGutierrez Review duration: 1138m
    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
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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 #3118"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%
    Repository