Repository navigation
feat(slinky-slurm): add conformance validator and CUJ demo - #1394
Conversation
|
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:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR introduces a Estimated code review effort🎯 4 (Complex) | ⏱️ ~65 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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`:
- Line 11: The Markdown spans on line 11 and line 51 have malformed inline code
with unmatched bold markers. The pattern `**nodeGroup**` incorrectly places bold
delimiters inside backticks creating invalid Markdown. Fix this by either
removing the double asterisks and keeping only the backtick code formatting as
`nodeGroup`, or by repositioning the bold markers outside the backticks to
render as **`nodeGroup`** if bold emphasis is intended.
- Around line 154-158: Update the documented srun command timeout in the
conformance phase row of the table to match the actual implementation. Change
the timeout value from --time=0:01 to --time=0:03 in the conformance row to
align with what CheckSlinkySlurmHealth in
validators/conformance/slinky_slurm_health_check.go actually executes, ensuring
the documentation accurately reflects the validator's behavior.
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 263-316: The controllerRef field extraction in the
listSlinkySetsForController function at lines 287-288 discards error and found
return values from NestedString calls, which could hide type mismatches or other
errors. Refactor the controllerName and controllerNamespace extraction to
capture all three return values from NestedString instead of using blanks, then
add explicit error checking similar to the selector extraction pattern at lines
295-299. Check if the error is not nil and return an appropriate error, and
optionally verify that the fields are found before proceeding with the
controller name comparison logic.
🪄 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: d5da9b2a-04d2-4b28-ba2a-41fdfe830cba
⛔ Files ignored due to path filters (79)
go.sumis excluded by!**/*.sumvendor/github.com/gorilla/websocket/.gitignoreis excluded by!vendor/**vendor/github.com/gorilla/websocket/AUTHORSis excluded by!vendor/**vendor/github.com/gorilla/websocket/LICENSEis excluded by!vendor/**vendor/github.com/gorilla/websocket/README.mdis excluded by!vendor/**vendor/github.com/gorilla/websocket/client.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/compression.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/conn.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/doc.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/join.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/json.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/mask.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/mask_safe.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/prepared.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/proxy.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/server.gois excluded by!vendor/**vendor/github.com/gorilla/websocket/util.gois excluded by!vendor/**vendor/github.com/moby/spdystream/CONTRIBUTING.mdis excluded by!vendor/**vendor/github.com/moby/spdystream/LICENSEis excluded by!vendor/**vendor/github.com/moby/spdystream/MAINTAINERSis excluded by!vendor/**vendor/github.com/moby/spdystream/NOTICEis excluded by!vendor/**vendor/github.com/moby/spdystream/README.mdis excluded by!vendor/**vendor/github.com/moby/spdystream/connection.gois excluded by!vendor/**vendor/github.com/moby/spdystream/handlers.gois excluded by!vendor/**vendor/github.com/moby/spdystream/priority.gois excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/LICENSEis excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/PATENTSis excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/dictionary.gois excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/options.gois excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/read.gois excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/types.gois excluded by!vendor/**vendor/github.com/moby/spdystream/spdy/write.gois excluded by!vendor/**vendor/github.com/moby/spdystream/stream.gois excluded by!vendor/**vendor/github.com/moby/spdystream/utils.gois excluded by!vendor/**vendor/golang.org/x/net/internal/socks/client.gois excluded by!vendor/**vendor/golang.org/x/net/internal/socks/socks.gois excluded by!vendor/**vendor/golang.org/x/net/proxy/dial.gois excluded by!vendor/**vendor/golang.org/x/net/proxy/direct.gois excluded by!vendor/**vendor/golang.org/x/net/proxy/per_host.gois excluded by!vendor/**vendor/golang.org/x/net/proxy/proxy.gois excluded by!vendor/**vendor/golang.org/x/net/proxy/socks5.gois excluded by!vendor/**vendor/golang.org/x/net/websocket/client.gois excluded by!vendor/**vendor/golang.org/x/net/websocket/dial.gois excluded by!vendor/**vendor/golang.org/x/net/websocket/hybi.gois excluded by!vendor/**vendor/golang.org/x/net/websocket/server.gois excluded by!vendor/**vendor/golang.org/x/net/websocket/websocket.gois excluded by!vendor/**vendor/k8s.io/apimachinery/pkg/util/httpstream/doc.gois excluded by!vendor/**vendor/k8s.io/apimachinery/pkg/util/httpstream/httpstream.gois excluded by!vendor/**vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy/doc.gois excluded by!vendor/**vendor/k8s.io/apimachinery/pkg/util/httpstream/spdy/spdy.gois excluded by!vendor/**vendor/k8s.io/apimachinery/pkg/util/remotecommand/constants.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/OWNERSis excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/doc.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/errorstream.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/fallback.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/reader.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/remotecommand.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/resize.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/spdy.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/v1.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/v2.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/v3.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/v4.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/v5.gois excluded by!vendor/**vendor/k8s.io/client-go/tools/remotecommand/websocket.gois excluded by!vendor/**vendor/k8s.io/client-go/transport/spdy/spdy.gois excluded by!vendor/**vendor/k8s.io/client-go/transport/websocket/roundtripper.gois excluded by!vendor/**vendor/k8s.io/client-go/util/exec/exec.gois excluded by!vendor/**vendor/k8s.io/streaming/LICENSEis excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/doc.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/httpstream.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/spdy/connection.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/spdy/roundtripper.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/spdy/upgrade.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/wsstream/conn.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/wsstream/doc.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/httpstream/wsstream/stream.gois excluded by!vendor/**vendor/k8s.io/streaming/pkg/runtime/runtime.gois excluded by!vendor/**vendor/modules.txtis excluded by!vendor/**
📒 Files selected for processing (17)
demos/README.mddemos/cuj1-slinky-slurm.mddocs/contributor/validator.mddocs/user/component-catalog.mdgo.modrecipes/checks/slinky-slurm/health-check.yamlrecipes/evidence/gb200-eks-ubuntu-training.yamlrecipes/evidence/h100-gke-cos-training.yamlrecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlrecipes/overlays/h100-kind-training-slurm.yamlrecipes/validators/catalog.yamlvalidators/conformance/main.govalidators/conformance/pod_exec.govalidators/conformance/pod_exec_test.govalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.go
Recipe evidence checkAffected leaf overlays: 5
How to refresh evidenceRun on a cluster matching the recipe's aicr snapshot -o snapshot.yaml
aicr validate \
-r recipes/overlays/<slug>.yaml \
-s snapshot.yaml \
--emit-attestation ./out \
--push ghcr.io/<your-fork>/aicr-evidence
cp ./out/pointer.yaml recipes/evidence/<slug>.yamlThis gate is warning-only and never blocks merge. See ADR-007 for the trust model. |
mchmarny
left a comment
There was a problem hiding this comment.
Solid, well-tested addition. The check follows project patterns closely — pkg/errors with codes, fail-closed validators.Skip on missing Slinky API and KWOK-only nodes, test-injectable seams (newPodExecExecutor, slinkyExecCommand), and genuinely thorough table-driven tests (multi-failure aggregation, malformed controllerRef, custom CR selectors). Catalog 5m timeout and the 10m→7m assert trim under the 8m envelope are reasonable and well-documented in validator.md.
Two non-blocking comments inline: one medium robustness concern on first-container exec selection (pod_exec.go), one nit on a near-duplicate component-presence helper. Neither blocks merge.
CI: ClamAV + grype green; Tier-1 e2e still running at review time — worth a glance before merge.
ArangoGutierrez
left a comment
There was a problem hiding this comment.
Solid, well-tested validator — clean exec seam, exact-message assertions, KWOK skip, and selector-based pod discovery. go test ./validators/conformance/... is green locally.
One thing to settle before merge: the slurm overlays declare a validation.conformance.checks block, and the recipe merge replaces the inherited conformance phase rather than appending to it (pkg/recipe/metadata.go: s.Validation.Conformance = cloneValidationPhase(other.Validation.Conformance)). Net effect — each slurm leaf resolves to conformance = [slinky-slurm-health] only, dropping the 10 checks inherited from the eks/gke training parents (platform-health, gpu-operator-health, dra-support, secure-accelerator-access, …). That may be intended, but the overlay comments and the PR testing notes ("other inherited conformance checks failed/skipped on Kind — expected") read as if the checks are additive, which they aren't. Please confirm intent and either fix the comments or re-list the checks. Details plus two smaller notes (hardcoded namespace, first-container exec) are inline.
Non-blocking: catalog image is :latest (matches every existing entry, so out of scope here).
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 (4)
validators/conformance/pod_exec.go (1)
136-136: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winWrap non-exit stream failures with
pkg/errors.Line 136 returns the raw
remotecommanderror, so transport/stream failures lose the structured AICR error code and pod context. Wrap this path the same way the pre-stream failures are wrapped.Suggested fix
- return result, streamErr + return result, errors.Wrap(errors.ErrCodeInternal, + fmt.Sprintf("pod exec stream failed for %s/%s", namespace, podName), streamErr)As per coding guidelines, “Never return bare errors — wrap all errors with context using
errors.Wraporerrors.WrapWithContext.”🤖 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/pod_exec.go` at line 136, The return statement at line 136 returns the raw streamErr without wrapping it with pkg/errors, which causes loss of structured AICR error codes and pod context. Wrap the streamErr using errors.Wrap or errors.WrapWithContext (following the same pattern used for pre-stream failures elsewhere in the function) to ensure consistent error handling and preserve context information.Source: Coding guidelines
validators/conformance/slinky_slurm_health_check.go (3)
254-259: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winAvoid selecting a terminating or stale login pod.
Kubernetes list order is not stable. Returning the first
Running/Readypod can choose an older terminating login pod while a newer ready replacement exists, causing avoidable exec failures.Proposed fix
var summary strings.Builder - for _, pod := range pods { + var selected *corev1.Pod + for i := range pods { + pod := &pods[i] fmt.Fprintf(&summary, "%s phase=%s ready=%t node=%s\n", - pod.Name, pod.Status.Phase, podIsReady(&pod), valueOrUnknown(pod.Spec.NodeName)) - if pod.Status.Phase == corev1.PodRunning && podIsReady(&pod) { - return &pod, nil + pod.Name, pod.Status.Phase, podIsReady(pod), valueOrUnknown(pod.Spec.NodeName)) + if pod.DeletionTimestamp != nil || pod.Status.Phase == corev1.PodFailed { + continue + } + if pod.Status.Phase == corev1.PodRunning && podIsReady(pod) && + (selected == nil || pod.CreationTimestamp.After(selected.CreationTimestamp.Time)) { + selected = pod } } + if selected != nil { + return selected, nil + }As per coding guidelines, "Filter
DeletionTimestamp != nilandPodFailed, pick by youngestCreationTimestampwhen accessingpods.Items[0]after label-selector List"; this first-ready selection has the same list-order failure mode.🤖 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 254 - 259, The current logic in the pod selection loop returns the first pod that has Phase RunningI and is ready, but this is unreliable because Kubernetes list order is not stable and may return a terminating pod while a newer replacement exists. Instead of returning immediately when finding the first Running/Ready pod, modify the loop to collect candidate pods that meet the criteria (exclude pods with non-nil DeletionTimestamp, exclude pods with PodFailed status, and ensure Phase is Running and podIsReady returns true), then after the loop completes, select and return the pod with the youngest (most recent) CreationTimestamp from the candidates. This ensures you always get the newest healthy pod rather than the first one encountered.Source: Coding guidelines
284-288: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winDo not turn namespace 404s into skips.
discoverSlinkySetAPIsalready checks API availability before this list. ANotFoundhere can also mean the resolved Slurm namespace is missing, so returningvalidators.Skiphides a broken deployment as “not applicable.”Proposed fix
list, err := dynClient.Resource(gvr).Namespace(namespace).List(ctx.Ctx, metav1.ListOptions{}) if err != nil { - if apierrors.IsNotFound(err) { - return nil, validators.Skip(fmt.Sprintf("Slinky Slurm %s API not available", kind)) - } - return nil, errors.Wrap(errors.ErrCodeInternal, fmt.Sprintf("failed to list Slinky Slurm %ss", kind), err) + code := errors.ErrCodeInternal + if apierrors.IsNotFound(err) { + code = errors.ErrCodeNotFound + } + return nil, errors.Wrap(code, + fmt.Sprintf("failed to list Slinky Slurm %ss in namespace %s", kind, namespace), err) }🤖 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 284 - 288, The error handling in the dynamic client List operation is incorrectly treating NotFound errors as skip conditions, but since API availability is already verified by discoverSlinkySetAPIs, a NotFound error here indicates a missing Slinky Slurm namespace rather than an unavailable API. Remove the apierrors.IsNotFound check and corresponding validators.Skip return statement from the error handling block after the List call, so that NotFound errors are treated as real errors that indicate a broken deployment rather than being masked as "not applicable."
192-208: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winOnly skip KWOK when every NodeSet pod is bound to a KWOK node.
Line 194 ignores unbound NodeSet pods, but Line 207 skips when all resolved pods are KWOK. A pending/unbound worker plus one KWOK worker would bypass Slurm health validation even though not all NodeSet pods are on KWOK nodes.
Proposed fix
- if resolved > 0 && kwok == resolved { + if resolved == len(pods) && kwok == resolved { return validators.Skip("Slinky NodeSet pods are on KWOK nodes; skipping Slurm health validation") }🤖 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 192 - 208, The skip condition at line 207 checks whether all *resolved* pods are KWOK nodes, but doesn't account for unbound NodeSet pods that are skipped earlier. To fix this, count the total number of NodeSet pods at the beginning of the loop and change the condition to check whether all pods in the list (not just resolved ones) are on KWOK nodes. The skip should only occur when the kwok count equals the total number of pods, ensuring that every single NodeSet pod, including pending/unbound ones, is on a KWOK node before bypassing Slurm health validation.
🤖 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 141-143: The loop iterating over slinkySlurmHealthCommands does
not check for context cancellation before launching each slinkyExecCommand call.
Add a check for ctx.Ctx.Done() at the start of each loop iteration to
immediately stop execution and return if the context has been canceled, rather
than continuing to launch remaining Kubernetes exec calls and reporting them as
failures.
---
Outside diff comments:
In `@validators/conformance/pod_exec.go`:
- Line 136: The return statement at line 136 returns the raw streamErr without
wrapping it with pkg/errors, which causes loss of structured AICR error codes
and pod context. Wrap the streamErr using errors.Wrap or errors.WrapWithContext
(following the same pattern used for pre-stream failures elsewhere in the
function) to ensure consistent error handling and preserve context information.
In `@validators/conformance/slinky_slurm_health_check.go`:
- Around line 254-259: The current logic in the pod selection loop returns the
first pod that has Phase RunningI and is ready, but this is unreliable because
Kubernetes list order is not stable and may return a terminating pod while a
newer replacement exists. Instead of returning immediately when finding the
first Running/Ready pod, modify the loop to collect candidate pods that meet the
criteria (exclude pods with non-nil DeletionTimestamp, exclude pods with
PodFailed status, and ensure Phase is Running and podIsReady returns true), then
after the loop completes, select and return the pod with the youngest (most
recent) CreationTimestamp from the candidates. This ensures you always get the
newest healthy pod rather than the first one encountered.
- Around line 284-288: The error handling in the dynamic client List operation
is incorrectly treating NotFound errors as skip conditions, but since API
availability is already verified by discoverSlinkySetAPIs, a NotFound error here
indicates a missing Slinky Slurm namespace rather than an unavailable API.
Remove the apierrors.IsNotFound check and corresponding validators.Skip return
statement from the error handling block after the List call, so that NotFound
errors are treated as real errors that indicate a broken deployment rather than
being masked as "not applicable."
- Around line 192-208: The skip condition at line 207 checks whether all
*resolved* pods are KWOK nodes, but doesn't account for unbound NodeSet pods
that are skipped earlier. To fix this, count the total number of NodeSet pods at
the beginning of the loop and change the condition to check whether all pods in
the list (not just resolved ones) are on KWOK nodes. The skip should only occur
when the kwok count equals the total number of pods, ensuring that every single
NodeSet pod, including pending/unbound ones, is on a KWOK node before bypassing
Slurm health validation.
🪄 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: 0850e163-682f-4411-984d-0a2f3981031f
📒 Files selected for processing (9)
pkg/recipe/metadata_store_test.gorecipes/overlays/h100-eks-ubuntu-training-slurm.yamlrecipes/overlays/h100-gke-cos-training-slurm.yamlvalidators/conformance/pod_exec.govalidators/conformance/pod_exec_test.govalidators/conformance/robust_controller_check.govalidators/conformance/robust_controller_check_test.govalidators/conformance/slinky_slurm_health_check.govalidators/conformance/slinky_slurm_health_check_test.go
|
After the update, tested again on AWS H100 cluster |
mchmarny
left a comment
There was a problem hiding this comment.
Both of my earlier comments are addressed and verified at fa8e3781:
- Container selection (
pod_exec.go):selectExecContainernow honors thekubectl.kubernetes.io/default-containerannotation → preferred name → index-0 fallback, is actually wired intoexecPodCommand, and is covered byTestSelectExecContainer(incl. the sidecar-first case). - Duplicate helper (
slinky_slurm_health_check.go): consolidated onto the sharedrecipeHasComponent, which adopted theIsEnabled()gate package-wide.
Approving on that basis. Scoped to my two threads — I haven't done a full line-level pass of the rest of this large PR (other open CodeRabbit/namespace threads stand on their own).
Co-authored-by: Mark Chmarny <[email protected]>
Summary
Adds the
slinky-slurm-healthconformance validator (pod-exec checks forscontrol ping, idle/mixed node inventory, and boundedsrun), wires it into slurm training leaves and the validator catalog, documents the EKS/GKE/Kind CUJ indemos/cuj1-slinky-slurm.md, and tunes the Slurm deployment Chainsaw assert timeout under theexpected-resourcesenvelope.Motivation / Context
Slinky Slurm leaves already deploy via
--platform slurm, but conformance had no workload-specific signal that slurmctld is reachable, workers are idle/mixed, and a minimal job can run through slurmd. This closes that gap and documents the full recipe → bundle → deploy → validate workflow (without snapshot) for EKS, GKE, and Kind.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,validators/conformance)pkg/errors,pkg/k8s)docs/,demos/)recipes/validators/catalog.yaml,recipes/checks/slinky-slurm/, slurm overlays,vendor/Implementation Notes
slinky-slurm-healthconformance check — discovers login/worker pods via Slinky LoginSet/NodeSet CR selectors, then execs from the login pod:scontrol ping,sinfo -h -Ne -t idle,mix | grep -q ., andsrun --immediate=5 --time=0:03 hostname. Shared pod-exec helper invalidators/conformance/pod_exec.go(pulls ink8s.io/client-go/tools/remotecommand+ vendored deps).slinky-slurm-healthadded to slurm leaves'validation.conformance.checks; inheritedperformance.checkscleared ([]) so K8s-nativenccl-all-reduce-bwdoes not bypass slurmd. Deployment checks (includingexpected-resources+ Chainsaw health check) remain inherited from parent training leaves.recipes/checks/slinky-slurm/health-check.yamlassertreduced from 10m → 7m to fit under the 8mexpected-resourcescatalog envelope; contributor note added indocs/contributor/validator.md.demos/cuj1-slinky-slurm.mdcovers Query Mode recipe generation, bundle scheduling overrides for EKS/GKE/Kind, validate phases, and manualsrunsmoke.Testing
unset GITLAB_TOKEN make qualifyUnit / CI:
make qualifypassed locally (tests with-race, lint, e2e, scan).Live cluster — conformance — built and pushed a custom
conformancevalidator image to the cluster registry, then pointedaicr validateat it:(Kind runs used the same pattern with Kind-appropriate
REG, recipe path, and tolerations/node-selector from the CUJ.)Other inherited conformance checks failed/skipped on Kind (no GPU/DRA) — expected.
Kind — healthy stack (
slinky-slurm-healthpassed):EKS — healthy worker (
slinky-slurm-healthpassed):EKS — unhealthy worker (
slinky-slurm-healthfailed as expected):Manual smoke:
srunhostname on the login pod (documented indemos/cuj1-slinky-slurm.md).Risk Assessment
slinky-slurmcomponent presence; slurm leaves only. Vendor bump is indirect deps for pod-exec. No change to default non-slurm recipes.Rollout notes: Requires rebuilding/pushing the
conformancevalidator image for live testing off main CI tags. Slurm leaves pick up the check via recipe merge; no migration.Checklist
make testwith-race)make lint)slinky_slurm_health_check_test.go,pod_exec_test.go)demos/cuj1-slinky-slurm.md,docs/user/component-catalog.md,docs/contributor/validator.md)git commit -S)