Skip to content

fix(bundler): demote nodewright selector warnings to info severity#704

Merged
mchmarny merged 4 commits into
mainfrom
fix/info-severity-tier-686
Apr 28, 2026
Merged

fix(bundler): demote nodewright selector warnings to info severity#704
mchmarny merged 4 commits into
mainfrom
fix/info-severity-tier-686

Conversation

@mchmarny
Copy link
Copy Markdown
Member

Summary

Add info severity tier to the bundler validation framework and demote both nodewright-customizations selector warnings from warning to info. Info-level messages are logged via slog.Info (visible with --debug) but no longer surfaced as deployment warnings.

Motivation / Context

Every aicr bundle --intent training emits two nodewright warnings about missing --workload-selector and --accelerated-node-selector regardless of context. This universal-fire noise dilutes real warnings.

Fixes: #686
Related: N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Component(s) Affected

  • Bundlers (pkg/bundler, pkg/component/*)
  • Recipe engine / data (pkg/recipe)

Implementation Notes

  • Added "info" case to the severity switch in RunValidations() (pkg/bundler/validations/registry.go). Info-severity check results are logged via slog.Info but not appended to returned warnings/errors.
  • Changed both nodewright-customizations validations in recipes/registry.yaml from severity: warning to severity: info.
  • Updated TestComponentRegistry_Validations in pkg/recipe/components_test.go to expect the new severity.
  • No changes to check functions, bundler, CLI, or config — severity routing is handled entirely in RunValidations().

Testing

make qualify
  • pkg/bundler/validations: ALL PASS (including 2 new info-severity test cases)
  • pkg/recipe: ALL PASS
  • golangci-lint: 0 issues on changed packages
  • Pre-existing sandbox failures in pkg/trust (Sigstore TUF) and pkg/bundler/deployer/helm (mktemp) are unrelated

Coverage: pkg/bundler/validations maintains existing coverage with 2 additional test cases.

Risk Assessment

  • Low — Isolated change, well-tested, easy to revert

Rollout notes: N/A — advisory messages move from deployment notes to debug log; no behavioral change for bundle generation.

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

)

Add "info" severity tier to the bundler validation framework. Info-level
validations are logged via slog.Info (visible with --debug) but not
surfaced as deployment warnings, reducing noise for first-time users.

Demote both nodewright-customizations selector checks from "warning" to
"info" in registry.yaml.
@coderabbitai

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Coverage Report ✅

Metric Value
Coverage 75.2%
Threshold 70%
Status Pass
Coverage Badge
![Coverage](https://img.shields.io/badge/coverage-75.2%25-green)

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/NVIDIA/aicr/pkg/bundler/validations 84.68% (+0.07%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/NVIDIA/aicr/pkg/bundler/validations/registry.go 73.58% (+1.85%) 53 (+7) 39 (+6) 14 (+1) 👍

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

mchmarny and others added 2 commits April 28, 2026 08:32
Include validation.Function and validation.Message in the slog.Info call
for checkErrors in the info severity path, matching the context available
in the warning/error paths for traceability.
coderabbitai[bot]

This comment was marked as resolved.

@mchmarny mchmarny enabled auto-merge (squash) April 28, 2026 15:59
@mchmarny mchmarny merged commit af4df7c into main Apr 28, 2026
87 checks passed
@mchmarny mchmarny deleted the fix/info-severity-tier-686 branch April 28, 2026 16:00
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.

bundle --intent training always nags about nodewright selectors (dilutes real warnings)

3 participants