Repository navigation
feat(slinky-slurm): add AKS H100 recipe, Enroot/Pyxis support, and Gres/GPU config - #1744
Conversation
Recipe evidence checkOther affected recipes without evidence yet: 5These recipes are affected by this PR but carry no committed evidence pointer, so there is
This gate is warning-only and never blocks merge. See ADR-007 for the trust model. |
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds 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
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (18)
demos/cuj1-slinky-slurm.mddocs/integrator/recipe-development.mddocs/user/component-catalog.mddocs/user/container-images.mddocs/user/recipe-health.mdpkg/recipe/deployment_order_guard_test.gopkg/recipe/metadata_store_test.gopkg/recipe/metadata_test.gorecipes/components/slinky-slurm/values.yamlrecipes/overlays/gb200-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-aks-ubuntu-training-slurm.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/validators/README.mdrecipes/validators/catalog.yamlvalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.govalidators/conformance/slinky_slurm_imex_channel_check.go
4e814bb to
a27d53e
Compare
There was a problem hiding this comment.
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 winSequential per-pod Node
Getcalls with no cancellation check.The resolve loop issues one blocking
Nodes().Getcall per NodeSet pod sequentially, with noctx.Done()check between iterations and no concurrent fan-out. As per coding guidelines, this repo requires "Always checkctx.Done()in loops and long-running operations in Go code" and "Useerrgroup.WithContextfor 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.WithContextfor concurrent fan-out of independent work instead of sequential calls" and "Always checkctx.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
📒 Files selected for processing (18)
demos/cuj1-slinky-slurm.mddocs/integrator/recipe-development.mddocs/user/component-catalog.mddocs/user/container-images.mddocs/user/recipe-health.mdpkg/recipe/deployment_order_guard_test.gopkg/recipe/metadata_store_test.gopkg/recipe/metadata_test.gorecipes/components/slinky-slurm/values.yamlrecipes/overlays/gb200-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-aks-ubuntu-training-slurm.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/validators/README.mdrecipes/validators/catalog.yamlvalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.govalidators/conformance/slinky_slurm_imex_channel_check.go
a27d53e to
a4dae2d
Compare
There was a problem hiding this comment.
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 | 🔵 TrivialDescription update looks good; consider the timeout margin for GPU-backed clusters.
The
slinky-slurm-healthtimeout stays at5mwhile now potentially running a fourth command (--immediate=30 --time=1:00GPU 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
📒 Files selected for processing (18)
demos/cuj1-slinky-slurm.mddocs/integrator/recipe-development.mddocs/user/component-catalog.mddocs/user/container-images.mddocs/user/recipe-health.mdpkg/recipe/deployment_order_guard_test.gopkg/recipe/metadata_store_test.gopkg/recipe/metadata_test.gorecipes/components/slinky-slurm/values.yamlrecipes/overlays/gb200-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-aks-ubuntu-training-slurm.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/validators/README.mdrecipes/validators/catalog.yamlvalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.govalidators/conformance/slinky_slurm_imex_channel_check.go
a4dae2d to
57dbfa8
Compare
There was a problem hiding this comment.
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 winParallelize the Node lookups and cache by
NodeName. These GETs are independent, so fan them out witherrgroup.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
📒 Files selected for processing (18)
demos/cuj1-slinky-slurm.mddocs/integrator/recipe-development.mddocs/user/component-catalog.mddocs/user/container-images.mddocs/user/recipe-health.mdpkg/recipe/deployment_order_guard_test.gopkg/recipe/metadata_store_test.gopkg/recipe/metadata_test.gorecipes/components/slinky-slurm/values.yamlrecipes/overlays/gb200-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-aks-ubuntu-training-slurm.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/validators/README.mdrecipes/validators/catalog.yamlvalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.govalidators/conformance/slinky_slurm_imex_channel_check.go
mchmarny
left a comment
There was a problem hiding this comment.
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.
yuanchen8911
left a comment
There was a problem hiding this comment.
Requesting changes for four issues, each detailed inline:
- 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.
- The smoke-test image
docker://alpine:3.20is hardcoded with no registry override and is invisible to the mirror/BOM inventory. - The new Pyxis image overrides are tag-only; ADR-006 requires digest pins and the chart exposes a digest field.
- The new AKS leaf resolves to Kubernetes
>= 1.32.4against the>= 1.34DRA-GA floor stated in aks.yaml.
57dbfa8 to
361b9aa
Compare
There was a problem hiding this comment.
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 winCheck cancellation before each Node lookup.
A canceled context currently reaches
Nodes().Getand is reclassified asErrCodeInternal. 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
📒 Files selected for processing (29)
demos/cuj1-slinky-slurm.mddocs/integrator/data-flow.mddocs/integrator/recipe-development.mddocs/user/air-gap-mirror.mddocs/user/api-reference.mddocs/user/cli-reference.mddocs/user/component-catalog.mddocs/user/container-images.mddocs/user/recipe-health.mdpkg/bundler/bundler.gopkg/bundler/config/config.gopkg/bundler/config/config_test.gopkg/bundler/deployer/argocdhelm/argocdhelm.gopkg/bundler/handler.gopkg/bundler/handler_test.gopkg/cli/bundle.gopkg/recipe/deployment_order_guard_test.gopkg/recipe/metadata_store_test.gopkg/recipe/metadata_test.gorecipes/components/slinky-slurm/values.yamlrecipes/overlays/gb200-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-aks-ubuntu-training-slurm.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/validators/README.mdrecipes/validators/catalog.yamlvalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.govalidators/conformance/slinky_slurm_imex_channel_check.go
There was a problem hiding this comment.
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 winCheck cancellation before each Node lookup.
A canceled context currently reaches
Nodes().Getand is reclassified asErrCodeInternal. 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
📒 Files selected for processing (29)
demos/cuj1-slinky-slurm.mddocs/integrator/data-flow.mddocs/integrator/recipe-development.mddocs/user/air-gap-mirror.mddocs/user/api-reference.mddocs/user/cli-reference.mddocs/user/component-catalog.mddocs/user/container-images.mddocs/user/recipe-health.mdpkg/bundler/bundler.gopkg/bundler/config/config.gopkg/bundler/config/config_test.gopkg/bundler/deployer/argocdhelm/argocdhelm.gopkg/bundler/handler.gopkg/bundler/handler_test.gopkg/cli/bundle.gopkg/recipe/deployment_order_guard_test.gopkg/recipe/metadata_store_test.gopkg/recipe/metadata_test.gorecipes/components/slinky-slurm/values.yamlrecipes/overlays/gb200-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-aks-ubuntu-training-slurm.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/validators/README.mdrecipes/validators/catalog.yamlvalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.govalidators/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.goRepository: 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.goRepository: 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.goRepository: 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.goRepository: NVIDIA/aicr
Length of output: 17106
Handle the no-NodeSet case before IMEX checks
validators/conformance/slinky_slurm_imex_channel_check.go:103-105—runnableSlinkyNodeSetPodsreturnsErrCodeNotFoundwhen no NodeSet pods exist, so CPU-only or KWOK-only setups will error here instead of skipping. Returnvalidators.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.
361b9aa to
9e45cac
Compare
9e45cac to
6e135c1
Compare
yuanchen8911
left a comment
There was a problem hiding this comment.
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.
…es/GPU config Signed-off-by: Kayne Tu <[email protected]>
6e135c1 to
5ce154b
Compare
yuanchen8911
left a comment
There was a problem hiding this comment.
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.
…1744)" (#1788) Signed-off-by: Nathan Hensley <[email protected]>
…es/GPU config (NVIDIA#1744) Signed-off-by: Kayne Tu <[email protected]>
…VIDIA#1744)" (NVIDIA#1788) Signed-off-by: Nathan Hensley <[email protected]>
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/cgroupisolation across GPU-backed Slurm leaves, and extendsslinky-slurm-healthwith 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-imagewas not available without manual image and plugstack overrides.GPU leaves declared their node GRES and Kubernetes GPU limits, but did not consistently enable
GresTypes=gpuortask/cgroup. That leftsrun --gpusbehavior 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
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/)validators/conformanceImplementation Notes
h100-aks-ubuntu-training-slurm, including the Slinky CRDs, operator, cluster, eight-GPU H100 NodeSet configuration, inherited deployment/conformance checks, and AKS bundle guidance.login-pyxisandslurmd-pyxisimages and loads Pyxis throughconfigFiles.plugstack.conf.GresTypes=gpuandTaskPlugin=task/cgroup,task/affinityfor the GB200 EKS and H100 AKS/EKS/GKE Slurm leaves. The existingConstrainDevices=yessetting then restricts jobs to their allocated GPU devices.slinky-slurm-healthto reuse the discovered runnable NodeSet pods, detect positivenvidia.com/gpurequests or limits, and append a bounded one-GPUsrun --container-image=docker://alpine:3.20check only on GPU-backed clusters. CPU-only Kind and KWOK paths do not run it.Testing
make qualifypassed 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-smiexposed exactly two GB200 devices:Live GB200 cluster — GPU container conformance: before the image reference was pinned, the check ran with
alpine:latestfrom the login pod, received a GPU allocation, launched Alpine through Pyxis/Enroot, and exited successfully. The submitted implementation now pinsalpine:3.20for reproducibility:Risk Assessment
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
make testwith-race)make lint)git commit -S) — GPG signing info