Skip to content

feat(slinky-slurm): add AKS H100 recipe, Enroot/Pyxis support, and Gres/GPU config - #1744

Merged
kaynetu merged 1 commit into
NVIDIA:mainfrom
kaynetu:feat/slinky-slurm-gpu-isolation
Jul 15, 2026
Merged

kaynetu merged 1 commit into
NVIDIA:mainfrom
kaynetu:feat/slinky-slurm-gpu-isolation

Conversation

@kaynetu

@kaynetu kaynetu commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an H100 AKS Ubuntu training Slurm recipe and enables Enroot/Pyxis container execution by default for Slinky login and worker pods.

Completes GPU GRES and task/cgroup isolation across GPU-backed Slurm leaves, and extends slinky-slurm-health with a GPU-gated container execution check.

Motivation / Context

AICR had H100 Slurm leaves for EKS and GKE, but not AKS. The shared Slinky defaults also used the vanilla login and slurmd images, so srun --container-image was not available without manual image and plugstack overrides.

GPU leaves declared their node GRES and Kubernetes GPU limits, but did not consistently enable GresTypes=gpu or task/cgroup. That left srun --gpus behavior and allocated-device isolation incomplete. Conformance validated basic Slurm scheduling but did not prove that a GPU allocation could launch a Pyxis container.

Fixes: N/A
Related: #1394, #1539

Type of Change

  • 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)
  • Bundlers (pkg/bundler, pkg/component/*)
  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)
  • Validator (pkg/validator)
  • Core libraries (pkg/errors, pkg/k8s)
  • Docs/examples (docs/, examples/)
  • Other: Slinky component values, Slurm leaf overlays, and validators/conformance

Implementation Notes

  • Adds h100-aks-ubuntu-training-slurm, including the Slinky CRDs, operator, cluster, eight-GPU H100 NodeSet configuration, inherited deployment/conformance checks, and AKS bundle guidance.
  • Switches the shared Slinky login and slurmd defaults to the pinned login-pyxis and slurmd-pyxis images and loads Pyxis through configFiles.plugstack.conf.
  • Configures GresTypes=gpu and TaskPlugin=task/cgroup,task/affinity for the GB200 EKS and H100 AKS/EKS/GKE Slurm leaves. The existing ConstrainDevices=yes setting then restricts jobs to their allocated GPU devices.
  • Extends slinky-slurm-health to reuse the discovered runnable NodeSet pods, detect positive nvidia.com/gpu requests or limits, and append a bounded one-GPU srun --container-image=docker://alpine:3.20 check only on GPU-backed clusters. CPU-only Kind and KWOK paths do not run it.
  • Adds recipe and validator regression coverage for the AKS leaf, GRES/task-cgroup configuration, Pyxis defaults, GPU detection, command selection, inventory recording, and the shared IMEX NodeSet discovery path.
  • Updates the Slinky CUJ, component and validator documentation, generated recipe-health report, and container-image inventory.

Testing

make qualify

make qualify passed locally.

After pinning the conformance image to Alpine 3.20:

GOFLAGS=-mod=vendor go test -race ./validators/conformance -run TestCheckSlinkySlurmHealth -count=1
golangci-lint run -c .golangci.yaml ./validators/conformance/...

Both focused checks passed.

Live GB200 cluster — GPU device isolation: requested two GPUs in an interactive Slurm allocation and confirmed that nvidia-smi exposed exactly two GB200 devices:

$ srun --gpus=2 --pty bash
root@slinky-1:/tmp# nvidia-smi
NVIDIA-SMI 580.126.20    Driver Version: 580.126.20    CUDA Version: 13.0

GPU 0  NVIDIA GB200
GPU 1  NVIDIA GB200

Live GB200 cluster — GPU container conformance: before the image reference was pinned, the check ran with alpine:latest from the login pod, received a GPU allocation, launched Alpine through Pyxis/Enroot, and exited successfully. The submitted implementation now pins alpine:3.20 for reproducibility:

Command: srun --immediate=30 --time=1:00 --nodes=1 --ntasks=1 \
  --cpus-per-task=1 --mem=128M --gpus=1 \
  --container-image=docker://alpine:latest cat /etc/os-release
ExitCode: 0

stdout:
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.24.1
PRETTY_NAME="Alpine Linux v3.24"

Risk Assessment

  • 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: Generated Slinky bundles now use the Pyxis-enabled login and slurmd images by default. GPU-backed Slurm leaves enable GPU GRES plus task/cgroup isolation, while CPU-only leaves omit those GPU-specific controller settings. Rebuild and publish the conformance validator image before expecting the new live GPU container check; stage the updated Slinky workloads before production rollout.

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 cryptographically signed (git commit -S) — GPG signing info

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

Recipe evidence check

Other affected recipes without evidence yet: 5

These recipes are affected by this PR but carry no committed evidence pointer, so there is
nothing to verify. This is expected — evidence is hardware-gated and added over time.

  • gb200-eks-ubuntu-training-slurm
  • h100-aks-ubuntu-training-slurm
  • h100-eks-ubuntu-training-slurm
  • h100-gke-cos-training-slurm
  • h100-kind-training-slurm

This gate is warning-only and never blocks merge. See ADR-007 for the trust model.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Adds an H100 AKS training recipe with Slurm operator components, GPU GRES/task-plugin settings, conformance checks, and deployment metadata. Updates Slurm configurations to use Pyxis images and plugstack settings. Extends Slurm health validation with conditional GPU container smoke tests and runnable NodeSet pod handling. Removes bundler serial deployment configuration and updates related documentation and tests.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

  • NVIDIA/aicr#1746: Directly overlaps the bundler serial and deployment-order plumbing changed here.

Suggested labels: theme/recipes, theme/deployer

Suggested reviewers: mchmarny, yuanchen8911, njhensley

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately captures the main changes: an AKS H100 recipe plus Pyxis/Enroot and GPU/Gres configuration updates.
Description check ✅ Passed The description is clearly related and summarizes the AKS recipe, Pyxis support, GPU GRES/task-cgroup updates, and validator/docs work.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@recipes/overlays/h100-gke-cos-training-slurm.yaml`:
- Around line 101-104: Merge the duplicate controller mappings in the Slurm
configuration into a single controller entry. Preserve GresTypes and TaskPlugin
from the first mapping, and add TopologyPlugin and inplaceReconfigure from the
later overrides mapping under the same controller.extraConfMap; remove the
duplicate key and ensure the YAML remains valid and yamllint-compliant.

In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 80-97: Update slinkySlurmGPUContainerHealthCommand to use an
NVIDIA CUDA-capable container image and execute nvidia-smi instead of the Alpine
image and cat /etc/os-release, while preserving the existing GPU allocation
options and stdout requirement.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 263da943-df69-4831-81f6-14f027814e47

📥 Commits

Reviewing files that changed from the base of the PR and between 3b3e3a3 and 4e814bb.

📒 Files selected for processing (18)
  • demos/cuj1-slinky-slurm.md
  • docs/integrator/recipe-development.md
  • docs/user/component-catalog.md
  • docs/user/container-images.md
  • docs/user/recipe-health.md
  • pkg/recipe/deployment_order_guard_test.go
  • pkg/recipe/metadata_store_test.go
  • pkg/recipe/metadata_test.go
  • recipes/components/slinky-slurm/values.yaml
  • recipes/overlays/gb200-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-aks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-gke-cos-training-slurm.yaml
  • recipes/validators/README.md
  • recipes/validators/catalog.yaml
  • validators/conformance/slinky_slurm_health_check.go
  • validators/conformance/slinky_slurm_health_check_test.go
  • validators/conformance/slinky_slurm_imex_channel_check.go

@kaynetu
kaynetu force-pushed the feat/slinky-slurm-gpu-isolation branch from 4e814bb to a27d53e Compare July 14, 2026 18:15

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
validators/conformance/slinky_slurm_health_check.go (1)

240-267: 🚀 Performance & Scalability | 🟠 Major | ⚡ Quick win

Sequential per-pod Node Get calls with no cancellation check.

The resolve loop issues one blocking Nodes().Get call per NodeSet pod sequentially, with no ctx.Done() check between iterations and no concurrent fan-out. As per coding guidelines, this repo requires "Always check ctx.Done() in loops and long-running operations in Go code" and "Use errgroup.WithContext for concurrent fan-out of independent work instead of sequential calls." On a large NodeSet (e.g., GB200/H100 clusters with many nodes) this adds unnecessary latency and won't respect cancellation mid-loop.

♻️ Proposed fix using errgroup for concurrent, cancellation-aware node resolution
-	var resolved, kwok int
-	for _, pod := range pods {
-		if pod.Spec.NodeName == "" {
-			continue
-		}
-		node, getErr := ctx.Clientset.CoreV1().Nodes().Get(ctx.Ctx, pod.Spec.NodeName, metav1.GetOptions{})
-		if getErr != nil {
-			return nil, errors.Wrap(errors.ErrCodeInternal,
-				fmt.Sprintf("failed to get node %s for NodeSet pod %s", pod.Spec.NodeName, pod.Name), getErr)
-		}
-		resolved++
-		if _, ok := node.Annotations[kwokNodeAnnotation]; ok {
-			kwok++
-		}
-	}
+	g, gctx := errgroup.WithContext(ctx.Ctx)
+	var mu sync.Mutex
+	var resolved, kwok int
+	for _, pod := range pods {
+		pod := pod
+		if pod.Spec.NodeName == "" {
+			continue
+		}
+		g.Go(func() error {
+			node, getErr := ctx.Clientset.CoreV1().Nodes().Get(gctx, pod.Spec.NodeName, metav1.GetOptions{})
+			if getErr != nil {
+				return errors.Wrap(errors.ErrCodeInternal,
+					fmt.Sprintf("failed to get node %s for NodeSet pod %s", pod.Spec.NodeName, pod.Name), getErr)
+			}
+			mu.Lock()
+			resolved++
+			if _, ok := node.Annotations[kwokNodeAnnotation]; ok {
+				kwok++
+			}
+			mu.Unlock()
+			return nil
+		})
+	}
+	if err := g.Wait(); err != nil {
+		return nil, err
+	}

As per coding guidelines: "Use errgroup.WithContext for concurrent fan-out of independent work instead of sequential calls" and "Always check ctx.Done() in loops and long-running operations in Go code."

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@validators/conformance/slinky_slurm_health_check.go` around lines 240 - 267,
Update runnableSlinkyNodeSetPods to resolve NodeSet pod nodes with an
errgroup.WithContext fan-out instead of sequential Get calls. Use the derived
context for each node lookup, check cancellation before launching work and
propagate cancellation or lookup errors, while preserving the resolved/kwok
counts and existing skip behavior.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@demos/cuj1-slinky-slurm.md`:
- Around line 116-136: Update the AKS example’s accelerated node selector to use
the same agentpool label key as the system and CPU selectors, changing the
nodeGroup reference in the command to agentpool=gpu-worker while preserving the
existing GPU pool value.

---

Outside diff comments:
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 240-267: Update runnableSlinkyNodeSetPods to resolve NodeSet pod
nodes with an errgroup.WithContext fan-out instead of sequential Get calls. Use
the derived context for each node lookup, check cancellation before launching
work and propagate cancellation or lookup errors, while preserving the
resolved/kwok counts and existing skip behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: f72f8b1a-56ca-4cf4-b789-912c5fb7199a

📥 Commits

Reviewing files that changed from the base of the PR and between 4e814bb and a27d53e.

📒 Files selected for processing (18)
  • demos/cuj1-slinky-slurm.md
  • docs/integrator/recipe-development.md
  • docs/user/component-catalog.md
  • docs/user/container-images.md
  • docs/user/recipe-health.md
  • pkg/recipe/deployment_order_guard_test.go
  • pkg/recipe/metadata_store_test.go
  • pkg/recipe/metadata_test.go
  • recipes/components/slinky-slurm/values.yaml
  • recipes/overlays/gb200-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-aks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-gke-cos-training-slurm.yaml
  • recipes/validators/README.md
  • recipes/validators/catalog.yaml
  • validators/conformance/slinky_slurm_health_check.go
  • validators/conformance/slinky_slurm_health_check_test.go
  • validators/conformance/slinky_slurm_imex_channel_check.go

Comment thread demos/cuj1-slinky-slurm.md Resolved
@kaynetu
kaynetu force-pushed the feat/slinky-slurm-gpu-isolation branch from a27d53e to a4dae2d Compare July 14, 2026 20:10
@kaynetu kaynetu changed the title feat(slinky-slurm): add AKS H100 recipe, Pyxis support, and GPU isolation feat(slinky-slurm): add AKS H100 recipe, Enroot/Pyxis support, and Gres/GPU config Jul 14, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
recipes/validators/catalog.yaml (1)

219-225: 🚀 Performance & Scalability | 🔵 Trivial

Description update looks good; consider the timeout margin for GPU-backed clusters.

The slinky-slurm-health timeout stays at 5m while now potentially running a fourth command (--immediate=30 --time=1:00 GPU container job) on top of the three baseline commands. Worst-case this adds up to ~90s plus exec/image-pull overhead — likely fine normally, but worth confirming there's enough margin under scheduler contention on GPU-backed clusters.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@recipes/validators/catalog.yaml` around lines 219 - 225, The
slinky-slurm-health validator timeout may be too tight after adding the GPU
container job. Review the timeout configured for slinky-slurm-health and
increase it from 5m if needed to provide margin for the fourth command,
scheduler contention, and image-pull or exec overhead, while preserving the
existing arguments and behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 80-97: In slinkySlurmGPUContainerHealthCommand, replace the
floating docker://alpine:latest container image reference with a pinned Alpine
image tag or digest. Leave the existing container execution and GPU-related
command arguments unchanged.

---

Outside diff comments:
In `@recipes/validators/catalog.yaml`:
- Around line 219-225: The slinky-slurm-health validator timeout may be too
tight after adding the GPU container job. Review the timeout configured for
slinky-slurm-health and increase it from 5m if needed to provide margin for the
fourth command, scheduler contention, and image-pull or exec overhead, while
preserving the existing arguments and behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: e0c4e400-4c5f-4960-af1c-d02f85b2214a

📥 Commits

Reviewing files that changed from the base of the PR and between a27d53e and a4dae2d.

📒 Files selected for processing (18)
  • demos/cuj1-slinky-slurm.md
  • docs/integrator/recipe-development.md
  • docs/user/component-catalog.md
  • docs/user/container-images.md
  • docs/user/recipe-health.md
  • pkg/recipe/deployment_order_guard_test.go
  • pkg/recipe/metadata_store_test.go
  • pkg/recipe/metadata_test.go
  • recipes/components/slinky-slurm/values.yaml
  • recipes/overlays/gb200-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-aks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-gke-cos-training-slurm.yaml
  • recipes/validators/README.md
  • recipes/validators/catalog.yaml
  • validators/conformance/slinky_slurm_health_check.go
  • validators/conformance/slinky_slurm_health_check_test.go
  • validators/conformance/slinky_slurm_imex_channel_check.go

@kaynetu
kaynetu force-pushed the feat/slinky-slurm-gpu-isolation branch from a4dae2d to 57dbfa8 Compare July 14, 2026 20:22

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
validators/conformance/slinky_slurm_health_check.go (1)

249-258: 🚀 Performance & Scalability | 🟠 Major | ⚡ Quick win

Parallelize the Node lookups and cache by NodeName. These GETs are independent, so fan them out with errgroup.WithContext(ctx.Ctx) and resolve each node once; the current serial loop can burn through the validator budget on larger NodeSets.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@validators/conformance/slinky_slurm_health_check.go` around lines 249 - 258,
Update the pod-processing loop to parallelize independent node lookups using
errgroup.WithContext(ctx.Ctx), while preserving cancellation and propagating
lookup errors. Add a NodeName-keyed cache so each node is fetched at most once,
then reuse the resolved node when calculating results in the existing validation
flow.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@recipes/overlays/h100-gke-cos-training-slurm.yaml`:
- Around line 101-112: Remove the seeded SwitchName=aicr-preseed entry from the
topology.conf seed in the H100 training Slurm overlay, leaving the seed
comment-only. Preserve TopologyPlugin and controller.inplaceReconfigure so real
Topograph data is reloaded when available.

---

Outside diff comments:
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 249-258: Update the pod-processing loop to parallelize independent
node lookups using errgroup.WithContext(ctx.Ctx), while preserving cancellation
and propagating lookup errors. Add a NodeName-keyed cache so each node is
fetched at most once, then reuse the resolved node when calculating results in
the existing validation flow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 489ec069-470b-4b61-94e8-57673f65b1af

📥 Commits

Reviewing files that changed from the base of the PR and between a4dae2d and 57dbfa8.

📒 Files selected for processing (18)
  • demos/cuj1-slinky-slurm.md
  • docs/integrator/recipe-development.md
  • docs/user/component-catalog.md
  • docs/user/container-images.md
  • docs/user/recipe-health.md
  • pkg/recipe/deployment_order_guard_test.go
  • pkg/recipe/metadata_store_test.go
  • pkg/recipe/metadata_test.go
  • recipes/components/slinky-slurm/values.yaml
  • recipes/overlays/gb200-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-aks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-gke-cos-training-slurm.yaml
  • recipes/validators/README.md
  • recipes/validators/catalog.yaml
  • validators/conformance/slinky_slurm_health_check.go
  • validators/conformance/slinky_slurm_health_check_test.go
  • validators/conformance/slinky_slurm_imex_channel_check.go

@mchmarny mchmarny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid, complete change — the AKS leaf mirrors the EKS/GKE shape exactly, the four-place GRES/isolation wiring is well documented in the overlay comments, and the live GB200 verification of both device isolation and the Pyxis launch path is exactly the right evidence for this kind of change. The KWOK-skip refactor (runnableSlinkyNodeSetPods returning the pods it already listed) is a nice cleanup too.

Four comments inline: one medium (GPU check downgrade is silent — a GPU leaf that loses its nvidia.com/gpu limit would pass conformance without exercising Pyxis), one on the conformance image (Docker Hub egress dependency + Alpine pin consistency), and two doc-level questions/nits. Nothing blocks merge. Branch is behind main — please rebase before merging per repo policy.

Comment thread docs/user/recipe-health.md Resolved
Comment thread demos/cuj1-slinky-slurm.md Resolved

@yuanchen8911 yuanchen8911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for four issues, each detailed inline:

  1. The GPU container smoke test silently downgrades to CPU-only commands when NodeSet pods lack GPU resources, allowing a false pass on cloud GPU Slurm recipes.
  2. The smoke-test image docker://alpine:3.20 is hardcoded with no registry override and is invisible to the mirror/BOM inventory.
  3. The new Pyxis image overrides are tag-only; ADR-006 requires digest pins and the chart exposes a digest field.
  4. The new AKS leaf resolves to Kubernetes >= 1.32.4 against the >= 1.34 DRA-GA floor stated in aks.yaml.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
validators/conformance/slinky_slurm_health_check.go (1)

317-325: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Check cancellation before each Node lookup.

A canceled context currently reaches Nodes().Get and is reclassified as ErrCodeInternal. Stop dispatching I/O and preserve timeout semantics.

Proposed fix
 	for _, pod := range pods {
+		select {
+		case <-ctx.Ctx.Done():
+			return nil, errors.Wrap(errors.ErrCodeTimeout,
+				"canceled while resolving NodeSet pod nodes", ctx.Ctx.Err())
+		default:
+		}
 		if pod.Spec.NodeName == "" {
 			continue
 		}

As per coding guidelines, always check ctx.Done() in Go loops and long-running operations.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@validators/conformance/slinky_slurm_health_check.go` around lines 317 - 325,
In the pod loop that performs node lookups via Nodes().Get, check ctx.Done()
immediately before each lookup and return the context’s cancellation or deadline
error without wrapping it as ErrCodeInternal. Preserve the existing node-fetch
error handling for non-cancellation failures.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/user/air-gap-mirror.md`:
- Around line 276-283: Add a blockquote marker to the blank line at the start of
the runtime validation image block in docs/user/air-gap-mirror.md, preserving
the existing paragraph break and text unchanged.

In `@pkg/bundler/handler_test.go`:
- Around line 401-463: Refactor TestStreamZipResponseContext_CleanupFailure so
the two cleanup scenarios are represented as table entries and executed through
one shared t.Run setup and assertion harness. Keep each case’s distinct context
cancellation, expected primary/internal error, cleanup-cause assertion, and
warning-call expectation in the table, while preserving the existing dependency
and response-writer setup.

In `@validators/conformance/slinky_slurm_imex_channel_check.go`:
- Around line 103-105: Update the call to runnableSlinkyNodeSetPods in the IMEX
conformance check to treat ErrCodeNotFound as an opt-out condition by returning
validators.Skip(...) instead of propagating the error. Preserve propagation of
all other errors and continue the IMEX checks only when NodeSet pods are
available.

---

Outside diff comments:
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 317-325: In the pod loop that performs node lookups via
Nodes().Get, check ctx.Done() immediately before each lookup and return the
context’s cancellation or deadline error without wrapping it as ErrCodeInternal.
Preserve the existing node-fetch error handling for non-cancellation failures.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 97809cd6-68f3-4ce2-9ce5-e0e65beec719

📥 Commits

Reviewing files that changed from the base of the PR and between 57dbfa8 and 361b9aa.

📒 Files selected for processing (29)
  • demos/cuj1-slinky-slurm.md
  • docs/integrator/data-flow.md
  • docs/integrator/recipe-development.md
  • docs/user/air-gap-mirror.md
  • docs/user/api-reference.md
  • docs/user/cli-reference.md
  • docs/user/component-catalog.md
  • docs/user/container-images.md
  • docs/user/recipe-health.md
  • pkg/bundler/bundler.go
  • pkg/bundler/config/config.go
  • pkg/bundler/config/config_test.go
  • pkg/bundler/deployer/argocdhelm/argocdhelm.go
  • pkg/bundler/handler.go
  • pkg/bundler/handler_test.go
  • pkg/cli/bundle.go
  • pkg/recipe/deployment_order_guard_test.go
  • pkg/recipe/metadata_store_test.go
  • pkg/recipe/metadata_test.go
  • recipes/components/slinky-slurm/values.yaml
  • recipes/overlays/gb200-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-aks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-gke-cos-training-slurm.yaml
  • recipes/validators/README.md
  • recipes/validators/catalog.yaml
  • validators/conformance/slinky_slurm_health_check.go
  • validators/conformance/slinky_slurm_health_check_test.go
  • validators/conformance/slinky_slurm_imex_channel_check.go

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 3

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
validators/conformance/slinky_slurm_health_check.go (1)

317-325: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Check cancellation before each Node lookup.

A canceled context currently reaches Nodes().Get and is reclassified as ErrCodeInternal. Stop dispatching I/O and preserve timeout semantics.

Proposed fix
 	for _, pod := range pods {
+		select {
+		case <-ctx.Ctx.Done():
+			return nil, errors.Wrap(errors.ErrCodeTimeout,
+				"canceled while resolving NodeSet pod nodes", ctx.Ctx.Err())
+		default:
+		}
 		if pod.Spec.NodeName == "" {
 			continue
 		}

As per coding guidelines, always check ctx.Done() in Go loops and long-running operations.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@validators/conformance/slinky_slurm_health_check.go` around lines 317 - 325,
In the pod loop that performs node lookups via Nodes().Get, check ctx.Done()
immediately before each lookup and return the context’s cancellation or deadline
error without wrapping it as ErrCodeInternal. Preserve the existing node-fetch
error handling for non-cancellation failures.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/user/air-gap-mirror.md`:
- Around line 276-283: Add a blockquote marker to the blank line at the start of
the runtime validation image block in docs/user/air-gap-mirror.md, preserving
the existing paragraph break and text unchanged.

In `@pkg/bundler/handler_test.go`:
- Around line 401-463: Refactor TestStreamZipResponseContext_CleanupFailure so
the two cleanup scenarios are represented as table entries and executed through
one shared t.Run setup and assertion harness. Keep each case’s distinct context
cancellation, expected primary/internal error, cleanup-cause assertion, and
warning-call expectation in the table, while preserving the existing dependency
and response-writer setup.

In `@validators/conformance/slinky_slurm_imex_channel_check.go`:
- Around line 103-105: Update the call to runnableSlinkyNodeSetPods in the IMEX
conformance check to treat ErrCodeNotFound as an opt-out condition by returning
validators.Skip(...) instead of propagating the error. Preserve propagation of
all other errors and continue the IMEX checks only when NodeSet pods are
available.

---

Outside diff comments:
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 317-325: In the pod loop that performs node lookups via
Nodes().Get, check ctx.Done() immediately before each lookup and return the
context’s cancellation or deadline error without wrapping it as ErrCodeInternal.
Preserve the existing node-fetch error handling for non-cancellation failures.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 97809cd6-68f3-4ce2-9ce5-e0e65beec719

📥 Commits

Reviewing files that changed from the base of the PR and between 57dbfa8 and 361b9aa.

📒 Files selected for processing (29)
  • demos/cuj1-slinky-slurm.md
  • docs/integrator/data-flow.md
  • docs/integrator/recipe-development.md
  • docs/user/air-gap-mirror.md
  • docs/user/api-reference.md
  • docs/user/cli-reference.md
  • docs/user/component-catalog.md
  • docs/user/container-images.md
  • docs/user/recipe-health.md
  • pkg/bundler/bundler.go
  • pkg/bundler/config/config.go
  • pkg/bundler/config/config_test.go
  • pkg/bundler/deployer/argocdhelm/argocdhelm.go
  • pkg/bundler/handler.go
  • pkg/bundler/handler_test.go
  • pkg/cli/bundle.go
  • pkg/recipe/deployment_order_guard_test.go
  • pkg/recipe/metadata_store_test.go
  • pkg/recipe/metadata_test.go
  • recipes/components/slinky-slurm/values.yaml
  • recipes/overlays/gb200-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-aks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-eks-ubuntu-training-slurm.yaml
  • recipes/overlays/h100-gke-cos-training-slurm.yaml
  • recipes/validators/README.md
  • recipes/validators/catalog.yaml
  • validators/conformance/slinky_slurm_health_check.go
  • validators/conformance/slinky_slurm_health_check_test.go
  • validators/conformance/slinky_slurm_imex_channel_check.go
🛑 Comments failed to post (3)
docs/user/air-gap-mirror.md (1)

276-283: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix the blank line inside the blockquote.

Add a blockquote marker on Line 276 to satisfy markdownlint MD028 while preserving the paragraph break.

Proposed fix
- 
+>
> **Runtime validation image:** `slinky-slurm-health` launches
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

>
> **Runtime validation image:** `slinky-slurm-health` launches
> `docker.io/library/alpine:3.23.3` dynamically through `srun` on GPU-backed
> NodeSets. Because the reference is not part of a rendered chart or manifest,
> it does not appear in `aicr mirror list`. Mirror it separately and set
> `AICR_VALIDATOR_IMAGE_REGISTRY` to the destination registry; the validator
> preserves the `library/alpine:3.23.3` repository and tag. Without a registry
> override, Slurm workers need Docker Hub egress for this check.
🧰 Tools
🪛 markdownlint-cli2 (0.23.0)

[warning] 276-276: Blank line inside blockquote

(MD028, no-blanks-blockquote)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/user/air-gap-mirror.md` around lines 276 - 283, Add a blockquote marker
to the blank line at the start of the runtime validation image block in
docs/user/air-gap-mirror.md, preserving the existing paragraph break and text
unchanged.

Source: Linters/SAST tools

pkg/bundler/handler_test.go (1)

401-463: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Make the cleanup-failure cases table-driven.

This test covers two independent outcomes in separate subtests. Move the cases into a table and share the setup/assertion harness, as required for Go tests with multiple outcomes.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/bundler/handler_test.go` around lines 401 - 463, Refactor
TestStreamZipResponseContext_CleanupFailure so the two cleanup scenarios are
represented as table entries and executed through one shared t.Run setup and
assertion harness. Keep each case’s distinct context cancellation, expected
primary/internal error, cleanup-cause assertion, and warning-call expectation in
the table, while preserving the existing dependency and response-writer setup.

Source: Coding guidelines

validators/conformance/slinky_slurm_imex_channel_check.go (1)

103-105: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
rg -n -A35 -B10 \
  'func runnableSlinkyNodeSetPods|runnableSlinkyNodeSetPods\(' \
  validators/conformance/slinky_slurm_health_check.go \
  validators/conformance/slinky_slurm_imex_channel_check.go \
  validators/conformance/*_test.go

Repository: NVIDIA/aicr

Length of output: 12254


🏁 Script executed:

rg -n -A40 -B10 'runnableSlinkyNodeSetPods|Slinky NodeSet pods are on KWOK nodes|no NodeSet pods were found' validators/conformance/*_test.go validators/conformance/slinky_slurm_health_check.go validators/conformance/slinky_slurm_imex_channel_check.go

Repository: NVIDIA/aicr

Length of output: 15762


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Map the relevant files first
ast-grep outline validators/conformance/slinky_slurm_health_check.go --view expanded || true
ast-grep outline validators/conformance/slinky_slurm_imex_channel_check.go --view expanded || true

# Show tests and direct references to the helper/skip behavior
rg -n -A8 -B8 \
  'runnableSlinkyNodeSetPods|Slinky NodeSet pods are on KWOK nodes|no NodeSet pods were found|slinky-slurm component not present in recipe|IMEX' \
  validators/conformance/*_test.go validators/conformance/slinky_slurm_health_check.go validators/conformance/slinky_slurm_imex_channel_check.go

Repository: NVIDIA/aicr

Length of output: 50367


🏁 Script executed:

rg -n -A12 -B8 'no NodeSet pods were found|KWOK|runnableSlinkyNodeSetPods|Skip\(' validators/conformance/slinky_slurm_health_check.go validators/conformance/*_test.go

Repository: NVIDIA/aicr

Length of output: 17106


Handle the no-NodeSet case before IMEX checks validators/conformance/slinky_slurm_imex_channel_check.go:103-105 — runnableSlinkyNodeSetPods returns ErrCodeNotFound when no NodeSet pods exist, so CPU-only or KWOK-only setups will error here instead of skipping. Return validators.Skip(...) (or translate that not-found error at the call site) so this check stays opt-in.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@validators/conformance/slinky_slurm_imex_channel_check.go` around lines 103 -
105, Update the call to runnableSlinkyNodeSetPods in the IMEX conformance check
to treat ErrCodeNotFound as an opt-out condition by returning
validators.Skip(...) instead of propagating the error. Preserve propagation of
all other errors and continue the IMEX checks only when NodeSet pods are
available.

@kaynetu
kaynetu force-pushed the feat/slinky-slurm-gpu-isolation branch from 361b9aa to 9e45cac Compare July 15, 2026 20:39
@kaynetu
kaynetu force-pushed the feat/slinky-slurm-gpu-isolation branch from 9e45cac to 6e135c1 Compare July 15, 2026 20:49

@yuanchen8911 yuanchen8911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking follow-ups on the latest push, detailed inline: an inaccuracy in the new air-gap wording, the pending family-wide AKS K8s-floor follow-up, and a suggested regression test for the new floor.

Comment thread docs/user/air-gap-mirror.md Resolved
@kaynetu
kaynetu force-pushed the feat/slinky-slurm-gpu-isolation branch from 6e135c1 to 5ce154b Compare July 15, 2026 22:54

@yuanchen8911 yuanchen8911 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All requested changes and follow-ups are addressed and verified: fail-closed GPU gating with recorded decisions and per-tier tests, registry-configurable smoke image aligned with the component's Alpine pin plus a sidecar lockstep guard, digest-pinned Pyxis images with the BOM regenerated, the AKS leaf at Kubernetes >= 1.34 with a floor regression test, corrected air-gap/mirror docs, and the family-wide floor follow-up filed as #1772.

@kaynetu
kaynetu merged commit 7e54fca into NVIDIA:main Jul 15, 2026
295 of 297 checks passed
@kaynetu
kaynetu deleted the feat/slinky-slurm-gpu-isolation branch July 15, 2026 23:16
njhensley added a commit that referenced this pull request Jul 16, 2026
mohityadav8 pushed a commit to mohityadav8/aicr that referenced this pull request Jul 21, 2026
mohityadav8 pushed a commit to mohityadav8/aicr that referenced this pull request Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants