feat(evidence): split ai_service_metrics and fix imagePullPolicy for local images#463
Merged
yuanchen8911 merged 1 commit intoNVIDIA:mainfrom Mar 25, 2026
Conversation
5411437 to
21bdffd
Compare
3928487 to
ea75dda
Compare
9123d9f to
e30cd7d
Compare
5585b03 to
b80d266
Compare
b80d266 to
41c855e
Compare
…local images Split accelerator_metrics/ai_service_metrics evidence into separate paths with auto-detection of inference (Dynamo) vs training (PyTorch) workloads. Fix imagePullPolicy regression from NVIDIA#438: local images (ko.local, kind.local, localhost) now use IfNotPresent instead of Always, preventing 5-minute pull timeout per validator on nvkind CI clusters. Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
41c855e to
65adaa1
Compare
dims
approved these changes
Mar 25, 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
Split
accelerator_metrics/ai_service_metricsevidence collection into separate paths with auto-detection of inference (Dynamo) vs training (PyTorch) workloads. FiximagePullPolicyregression from #438 that caused GPU CI tests to timeout.Motivation / Context
Evidence split: The CNCF AI Conformance
ai_service_metricsrequirement asks for "discovering and collecting metrics from workloads exposing Prometheus format." Previously both requirements shared a single evidence file. This split provides dedicated evidence showing real AI workload metrics from both inference and training platforms.imagePullPolicy fix: PR #438 changed
imagePullPolicytoAlwaysfor:latesttagged images. On nvkind CI, validators useko.local:*images (locally built, side-loaded into kind). WithPullAlways, the kubelet attempts to pull from the non-existentko.localregistry on every validator pod, timing out after ~5 minutes before falling back to the cached image. This turned a 2-minute conformance run into 50+ minutes, exceeding the CI job timeout. All GPU CI tests have been failing/cancelled since March 19 (#438 merge date).Fixes: N/A
Related: #460, #438, cncf/k8s-ai-conformance#79
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
imagePullPolicy fix (
pkg/validator/job/deployer.go)Local images (
ko.local,kind.local,localhost) now always useIfNotPresent. Remote images with:latesttag still useAlways. This restores the pre-#438 behavior for CI while preserving the dev-build freshness guarantee for remote registries.Before (all GPU CI tests timing out since March 19):
After:
Evidence collection (
pkg/evidence)Auto-detection of workload type:
:9090/metrics+ frontend:8000/metrics):8080/metricsvia ServiceMonitor)Embedded manifests (
pkg/evidence/scripts/manifests/):dynamo-vllm-agg.yaml— DynamoGraphDeployment with DRA ResourceClaim + KAI queuetrainer-pytorch-test.yaml— Standalone PyTorch pod exposingtraining_step_total,training_loss,training_throughput_samples_per_sec,training_gpu_memory_*metricsPrometheus query scoping:
jobprefixdynamo-system/dynamo-job=pytorch-training-metrics, metrics queried with{job="pytorch-training-metrics"}labelE2E tested on:
aicr-cuj2(inference): Dynamo vLLM → 10 requests → non-zerodynamo_component_*+dynamo_frontend_*metrics in Prometheusaicr-cuj1(training): PyTorch training → 100 steps →training_step_total=100,training_loss=1.33,training_throughput=549K samples/sin PrometheusTesting
Risk Assessment
Rollout notes: The
metricsalias now maps toaccelerator-metrics(wasmetricsscript section). Use-f service-metricsfor AI service metrics.Checklist
make testwith-race)make lint)git commit -S) — GPG signing info