fix(evidence): restore --cncf-submission behavioral evidence collection#322
Merged
mchmarny merged 1 commit intoNVIDIA:mainfrom Mar 10, 2026
Merged
Conversation
41acf49 to
a5be232
Compare
ece1c0e to
1f2caab
Compare
PR NVIDIA#290 (container-per-validator execution engine) inadvertently removed the --cncf-submission behavioral evidence collection added in PR NVIDIA#214 during the validation refactor. This restores it on top of the new engine. Restored: - pkg/evidence/collector.go — behavioral evidence collector - pkg/evidence/collector_test.go — unit tests - pkg/evidence/scripts/collect-evidence.sh — evidence collection script Bug fixes in the script: - DCGM metrics: port-forward with retry loop instead of flaky kubectl run - DCGM result: fixed stale variable reference causing false FAIL verdict - ASG lookup: instance ID fallback when EKS nodegroup tags are absent - ELB redaction: auto-redact public ELB hostnames from evidence output - NO_CLEANUP: pre-run cleanup always runs, post-run respects the flag - Robust operator: require healthy workload pods for PASS verdict - DRA evidence: show allocation details to avoid pending state confusion - Gateway CRDs: use name-grep instead of unreliable label selector - Cluster autoscaling: align narrative with configuration-level evidence CLI additions: - --cncf-submission flag to trigger behavioral evidence collection - --feature/-f flag for selective feature collection - --kubeconfig propagated to evidence script via KUBECONFIG env - Flag validation tests for regression prevention Also fixes YAML indentation in tests/uat/aws/config.yaml. Signed-off-by: yuanchen97@gmail.com
1f2caab to
428e098
Compare
23 tasks
mchmarny
approved these changes
Mar 10, 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
Restore the
--cncf-submissionbehavioral evidence collection feature that was inadvertently removed by PR #290 (container-per-validator execution engine), plus fix several pre-existing bugs in the evidence collection script.Motivation / Context
PR #290 refactored the validation engine and deleted the
--cncf-submissionflag,--featureflag,runCNCFSubmission()function, andpkg/evidence/collector.gothat were originally added in PR #214. The docs still reference these flags but the implementation was gone.Fixes: N/A
Related: #290, #214
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/)pkg/evidenceImplementation Notes
Restored files (from latest pre-PR#290 state, not the original PR #214):
pkg/evidence/collector.go— behavioral evidence collector (shell script orchestrator)pkg/evidence/collector_test.go— unit tests for feature resolution, script sections, collector optionspkg/evidence/scripts/collect-evidence.sh— 1237-line evidence collection scriptBug fixes in the script:
kubectl runcurl pod raced against DNS; DCGM container too minimal forkubectl execdcgm_podvariable reference after refactor todcgm_svceks:nodegroup-nametag; multi-lineNonebroke string comparisondescribe-auto-scaling-instancescleanup_nstakespre/postphase; pre-run always cleans stale resourcesCLI additions:
--cncf-submissionflag triggers behavioral evidence collection (bypasses normal validation)--feature/-fflag for selective feature collection--kubeconfigpropagated to evidence script viaKUBECONFIGenv var--cncf-submissionrequires--evidence-dir,--featurerequires--cncf-submissionTesting
Verified end-to-end on EKS cluster with H100 GPUs — all 8 evidence features collected successfully with all bug fixes confirmed.
Risk Assessment
Rollout notes: N/A — restores previously existing functionality
Checklist
make testwith-race)make lint)git commit -S)