Repository navigation
ci: watch component manifests/values in bom-freshness path filter - #2927
Conversation
The bom check-paths filter watched recipes/registry.yaml but not the per-component manifests/ and values.yaml files that tools/bom/main.go reads directly via repoRoot joins. A PR changing only recipes/components/<name>/manifests/** (the shape of every kubernetes-manager digest bump) yielded bom=false and skipped bom-freshness, letting the committed BOM doc go stale until the next scheduled bom-refresh run. Signed-off-by: Mike Cook <micook@nvidia.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configurationConfiguration used: Repository: NVIDIA/aicr/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/aicr/.coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe merge gate BOM path filter now watches component Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The expanded filter covers the BOM inputs identified in the generator; no actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This PR moves the gke-nccl-tcpxo installer to ubuntu:26.04@sha256:da6fc2be but left docs/user/container-images.md naming the old 9559ceb7 digest, so merging it would have put a stale BOM on main. Regenerated with `make bom-docs`. Two of the three changed lines are not this PR's. #2932 bumped the busybox digest in the gpu-operator and network-operator manifests to cac8f90b without updating the BOM, and main has carried the stale dc2d74b2 entry since. It merged one commit before #2927 widened the bom-freshness path filter to cover component manifests, so it went through the exact gap #2919 describes. Those lines arrived here through a merge from main. They cannot be split off: bom-freshness regenerates the whole file and compares, so an ubuntu-only change would still fail on the busybox lines. Merging this fixes main's BOM as a side effect. Signed-off-by: Mark Chmarny <mark@chmarny.com>
Summary
Watch each component's
manifests/directory andvalues.yamlin thebommerge-gate path filter, matching the filestools/bom/main.goactually reads.Motivation / Context
The
bomcheck-pathsfilter only watchedrecipes/registry.yaml, so a PR touching onlyrecipes/components/<name>/manifests/**or.../values.yaml(e.g. a Renovate digest/tag bump) skippedbom-freshnesseven thoughtools/bom/main.goreads those files directly, letting the committeddocs/user/container-images.mdgo stale with a green gate.Fixes: #2919
Related: N/A
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)pkg/errors,pkg/k8s)docs/,examples/).github/workflows/merge-gate.yaml(bompath filter)Implementation Notes
Derived the fix from
tools/bom/main.go's actualfilepath.Join(repoRoot, ...)calls rather than guessing: it readsrecipes/registry.yaml,recipes/components/<name>/values.yaml, andrecipes/components/<name>/manifests/**. Only the first was in the filter; added the other two and a comment naming why.Testing
# Commands run (prefer `make qualify` for non-trivial changes) make qualifymake qualifysucceeded. Change is workflow-YAML only (no.gofiles), so the Go lint/coverage gates are not applicable; validated the YAML separately withyamllintandyq(no new warnings).Risk Assessment
Rollout notes: N/A — widens an existing CI gate's trigger paths only; no runtime or deploy impact.
Checklist
make testwith-race)make lint)git commit -S) — GPG signing info