fix(nvlink): refresh NVL domain UUIDs for machines - #4525
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Summary by CodeRabbit
WalkthroughThe NVLink manager rejects nil Hello domain UUIDs. It updates machine NVLink information when the domain changes or chassis serial data is missing. It falls back to persisted serial data and skips machines without serial data. Tests cover these cases. ChangesNVLink domain and serial synchronization
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@crates/nvlink-manager/src/lib.rs`:
- Line 236: Update process_nmx_c_partition_monitor_group and the
existing-machine comparison around MachineNvLinkInfo so a missing snapshot
chassis serial falls back to the persisted chassis serial, allowing stale domain
UUIDs to be detected and refreshed. Add a scenario covering an absent snapshot
serial with a differing persisted domain UUID, and verify the machine
information is updated.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: b8dcb6e5-8e94-43ad-a4b6-700d8f85f500
📒 Files selected for processing (1)
crates/nvlink-manager/src/lib.rs
Signed-off-by: Jay Zhu <jayzhu@nvidia.com>
39d24a8 to
ec35089
Compare
NvlPartitionMonitorrefreshes NVL domain UUIDs for switches after each valid NMX-C Hello, but machines' NVL domain UUIDs were only populated when missing or nil. After an NVL domain UUID change, machines could therefore retain stale UUIDs.This change updates machines' NVL domain UUIDs whenever a valid NMX-C Hello reports a different value.
Related issues
Supports #4397
Type of Change
Breaking Changes
Testing