refactor(recipes): lift validation blocks from ubuntu leaves to intent overlays#493
Merged
yuanchen8911 merged 1 commit intoApr 6, 2026
Merged
Conversation
lockwobr
approved these changes
Apr 6, 2026
…t overlays Move validation blocks (deployment, performance, conformance checks) from three -ubuntu-training leaf overlays to their intent-level parents: h100-eks-ubuntu-training → h100-eks-training gb200-eks-ubuntu-training → gb200-eks-training h100-aks-ubuntu-training → h100-aks-training Validation checks are not OS-specific — they apply regardless of Ubuntu vs other OS variants. Placing them at the intent layer means all OS variants and platform children inherit them, eliminating ~67 redundant lines without changing any hydrated recipe output. h100-gke-cos-training already defines its own validation at the intent level (it has no ubuntu intermediate), so no change is needed there. Golden-file comparison of all affected overlay combinations confirms zero semantic change to constraints, components, validation, and deployment order. Signed-off-by: Yuan Chen <[email protected]>
895cfb9 to
5bce690
Compare
This was referenced Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Move validation blocks from three
-ubuntu-trainingleaf overlays to their{accel}-{service}-trainingintent-level parents. Validation checks are not OS-specific — this places them at the correct architectural level and eliminates ~67 redundant lines.Motivation / Context
Validation blocks (deployment checks, performance checks, conformance checks) were defined in the ubuntu training leaves because that's where the inheritance tree bottoms out before platform-specific overlays. But these checks apply regardless of OS — they should be inherited by all OS variants and platform children from the intent layer.
This is Phase 1 (structure cleanup) of the revised ADR-005 (#439).
Fixes: N/A
Related: #439, #305
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/api,pkg/server)pkg/recipe)pkg/bundler,pkg/component/*)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
Validation moved from → to:
h100-eks-ubuntu-trainingh100-eks-traininggb200-eks-ubuntu-traininggb200-eks-trainingh100-aks-ubuntu-trainingh100-aks-trainingh100-gke-cos-trainingalready defines validation at the intent level (no ubuntu intermediate), so no change needed.No code changes — YAML-only restructuring. The validation merge uses phase-replacement semantics, so children that don't define their own validation inherit from the parent unchanged.
Testing
Golden-file comparison of all 9 affected overlay combinations (3 intent + 3 ubuntu + 3 kubeflow) confirms zero semantic change to hydrated recipe output (constraints, components, validation, deployment order).
Risk Assessment
Rollout notes: No migration needed. Validation content moves up the inheritance chain; all children produce identical hydrated output.
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info