refactor(validator): remove Job-based checks from readiness phase, keep constraint-only gate#195
Merged
mchmarny merged 5 commits intoNVIDIA:mainfrom Feb 24, 2026
Merged
Conversation
…ep constraint-only gate
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
Remove Job-based checks from the readiness validation phase, making it a fast, offline, constraint-only gate. Readiness now evaluates recipe constraints inline against snapshot data (K8s version, OS, kernel) with no cluster access, no Kubernetes Jobs, and no pre-compiled test binaries.
Motivation / Context
The readiness phase previously did two things:
gpu-hardware-detection,kernel-parameters,os-prerequisites)The Job-based checks added complexity (pre-compiled test binary, Dockerfile build step, RBAC) without value — GPU detection and similar hardware checks are better handled by the deployment phase or constraints. Removing the Job infrastructure from readiness makes it a fast, offline gate that runs before any cluster interaction.
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
Deleted:
pkg/validator/checks/readiness/gpu_detection.go— the only readiness check implementationgpu_detection_test.go— its testsModified:
pkg/validator/phases.govalidateReadiness()of the entire Job deployment block (~60 lines removed)ctx context.Contextparameter to_ context.Context(unused without Jobs)Checks: []CheckResult{}fromPhaseResultinitializationModified:
Dockerfile.validatorreadiness.testpre-compilation from build stageCOPY readiness.testfrom final imageModified:
pkg/validator/checks/runner.go"readiness"case fromHasCheck()switchModified:
pkg/validator/checks/registration_test.go"readiness"fromphaseDirsModified: Test files
phases_test.go— simplifiedTestValidateReadinessto constraint-only assertionsrunner_test.go— removed readiness test cases fromTestTestRunner_HasCheckregistry_test.go— replaced readiness mock data with deployment/conformance entriesmetadata_test.go— replacedos-prerequisitescheck with constraint in merge testbuilder_test.go— extractedgoconstlint fix for repeated stringModified: Documentation
DEVELOPMENT.md— updated readiness phase descriptiondocs/user/cli-reference.md— updated phase table and output examples (removed readiness checks)docs/integrator/recipe-development.md— removed readiness checks from validation exampleexamples/recipes/eks-gb200-ubuntu-training-with-validation.yaml— removed readiness checks blockpkg/validator/README.md— updated phase table, execution diagram, examples, design rationalepkg/validator/checks/README.md— updated phase table, directory structure, naming conventions, examplespkg/validator/agent/README.md— updated RBAC, usage examplesBehavioral Changes
readiness.testbinaryctxparameter_)PhaseResult.ChecksTesting
Risk Assessment
Rollout notes: Any recipe overlay that defines
validation.readiness.checkswill have those checks silently ignored at runtime (theChecksfield still exists on the sharedValidationPhasestruct butvalidateReadiness()no longer reads it). No existing overlays define readiness checks.Checklist
make testwith-race)make lint)git commit -S)