Skip to content

ci: watch component manifests/values in bom-freshness path filter - #2927

Merged
mchmarny merged 3 commits into
NVIDIA:mainfrom
mikecook:fix/bom-freshness-path-filter
Sep 23, 2026
Merged

mchmarny merged 3 commits into
NVIDIA:mainfrom
mikecook:fix/bom-freshness-path-filter

Conversation

@mikecook

Copy link
Copy Markdown
Contributor

Summary

Watch each component's manifests/ directory and values.yaml in the bom merge-gate path filter, matching the files tools/bom/main.go actually reads.

Motivation / Context

The bom check-paths filter only watched recipes/registry.yaml, so a PR touching only recipes/components/<name>/manifests/** or .../values.yaml (e.g. a Renovate digest/tag bump) skipped bom-freshness even though tools/bom/main.go reads those files directly, letting the committed docs/user/container-images.md go stale with a green gate.

Fixes: #2919
Related: N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring (no functional changes)
  • Build/CI/tooling

Component(s) Affected

  • CLI (cmd/aicr, pkg/cli)
  • API server (cmd/aicrd, pkg/server)
  • Recipe engine / data (pkg/recipe)
  • Bundlers (pkg/bundler, pkg/component/*)
  • Collectors / snapshotter (pkg/collector, pkg/snapshotter)
  • Validator (pkg/validator)
  • Core libraries (pkg/errors, pkg/k8s)
  • Docs/examples (docs/, examples/)
  • Other: .github/workflows/merge-gate.yaml (bom path filter)

Implementation Notes

Derived the fix from tools/bom/main.go's actual filepath.Join(repoRoot, ...) calls rather than guessing: it reads recipes/registry.yaml, recipes/components/<name>/values.yaml, and recipes/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 qualify

make qualify succeeded. Change is workflow-YAML only (no .go files), so the Go lint/coverage gates are not applicable; validated the YAML separately with yamllint and yq (no new warnings).

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert
  • Medium — Touches multiple components or has broader impact
  • High — Breaking change, affects critical paths, or complex rollout

Rollout notes: N/A — widens an existing CI gate's trigger paths only; no runtime or deploy impact.

Checklist

  • Tests pass locally (make test with -race)
  • Linter passes (make lint)
  • I did not skip/disable tests to make CI green
  • I added/updated tests for new functionality
  • I updated docs if user-facing behavior changed
  • Changes follow existing patterns in the codebase
  • Commits are cryptographically signed (git commit -S) — GPG signing info

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>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration

Configuration used: Repository: NVIDIA/aicr/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 8bded47d-109d-4521-8fb9-0efbe523857a

📥 Commits

Reviewing files that changed from the base of the PR and between f9244c8 and 772713c.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: NVIDIA/aicr/.coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 04b807ed-bbd1-4fb4-8773-8b404190504a

📥 Commits

Reviewing files that changed from the base of the PR and between b4d7a3c and f9244c8.

📒 Files selected for processing (1)
  • .github/workflows/merge-gate.yaml

Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review.


📝 Walkthrough

Walkthrough

The merge gate BOM path filter now watches component manifests/ directories and values.yaml files. Changes to these paths can trigger the BOM freshness check.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: mchmarny

Merge Risk: ⚪ Minimal · up to f9244

The expanded filter covers the BOM inputs identified in the generator; no actionable merge risk remains.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue [#2919] requires the bom path filter to cover component manifests and notes that component values.yaml files may also affect BOM output. .github/workflows/merge-gate.yaml now includes `rec…
Out of Scope Changes check ✅ Passed The diff changes only the bom path filter and its explanatory comment in .github/workflows/merge-gate.yaml. Both additions directly support issue [#2919].
Title check ✅ Passed The title clearly states that the CI path filter will watch component manifests and values files for BOM freshness checks.
Description check ✅ Passed The description explains the missing BOM freshness triggers, the files added to the filter, and the reported validation.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@mikecook
mikecook marked this pull request as ready for review September 22, 2026 23:22
@mikecook
mikecook requested a review from a team as a code owner September 22, 2026 23:22

@mchmarny mchmarny left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve: no findings against f9244c8.

@mchmarny
mchmarny enabled auto-merge (squash) September 23, 2026 13:08
@mchmarny
mchmarny merged commit e629186 into NVIDIA:main Sep 23, 2026
43 checks passed
mchmarny added a commit that referenced this pull request Sep 23, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bom-freshness path filter does not watch the manifests the BOM reads

2 participants