fix(api-model): recognize hyphenated BlueField-3 DPU models - #4829
Merged
Conversation
Reuse the shared DpuModel parser when identifying DPUs so Redfish chassis models such as "BlueField-3 DPU" classify as BlueField3. This lets the BF3 BMC eth0 PF0 MAC fallback run when the system-image MAC is unavailable and changes model() from "unknown" to "bluefield3". Cover both BF3 spellings, BF2 and unknown models, the BF3 topology guard, and PF MAC derivation. The process-local site-explorer integration executable was not run locally and remains covered by CI. Fixes NVIDIA#4804
Contributor
|
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 (2)
Summary by CodeRabbit
WalkthroughThe change returns parsed DPU models directly and expands BlueField-3 coverage. Tests cover model variants, unknown systems, locally administered BMC MACs, and PF MAC derivation from BMC ChangesBlueField detection and MAC fallback
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 |
poroh
approved these changes
Aug 11, 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.
Redfish reports from affected BF3 cards use the chassis model
BlueField-3 DPU.EndpointExplorationReport::identify_dpu()previously duplicated model parsing and only recognized the space-separated form, so these reports were classified asUnknown. That prevented the BF3 BMCeth0PF0 MAC fallback from running when the system-image MAC was unavailable.This change reuses the shared
DpuModelparser, which normalizes hyphens, and covers both model spellings through DPU identification, BF3/BF4 topology discrimination, and PF MAC derivation. It also changesEndpointExplorationReport::model()for affected reports fromunknowntobluefield3.Related issues
Fixes #4804
Type of Change
Breaking Changes
Testing
Unit tests added/updated
Integration tests added/updated
Manual testing performed
No testing required (docs, internal refactor, etc.)
cargo fmt --checkcargo test -p carbide-api-model identify_dpuLinux with PostgreSQL:
cargo test -p carbide-api-model -p carbide-site-explorer --lib— 424 and 59 tests passedLinux with PostgreSQL:
cargo test -p carbide-firmware --lib— 23 tests passedcargo clippy -p carbide-api-model --all-targetsLinux:
cargo clippy -p carbide-api-model -p carbide-site-explorer --all-targetsAdditional Notes
EndpointExplorationReport::model()feeds firmware config lookup: site exploration stores its result on the report, andFirmwareConfig::find_fw_info_for_host_report()also invokes it as a fallback. That entry point has no direct unit coverage; it is exercised through preingestion-manager’s PostgreSQL-backed integration tests in CI.FirmwareConfig::find()independently normalizes model strings throughDpuModel::from, so lookups already handled both spellings.The process-local SQLx integration executable in
crates/site-explorer/tests/integration/main.rswas not run locally. CI provides its PostgreSQL-backed integration coverage.