fix(health): preserve Redfish OEM extensions in log records - #4749
fix(health): preserve Redfish OEM extensions in log records#4749jayzhudev wants to merge 1 commit into
Conversation
Summary by CodeRabbit
WalkthroughHealth log conversion now preserves Redfish OEM extensions in SSE and periodic collection modes. OEM data is serialized under the ChangesRedfish OEM log preservation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Signed-off-by: Jay Zhu <jayzhu@nvidia.com>
c108699 to
588b3de
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
crates/health/src/collectors/logs/periodic.rs (1)
429-434: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd periodic OEM regression coverage.
Add a test that supplies a deserialized
LogEntrywithOem.Nvidia, runs periodic collection, and asserts that the emittedLogRecordcontains theredfish.oemattribute.🤖 Prompt for 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. In `@crates/health/src/collectors/logs/periodic.rs` around lines 429 - 434, Add periodic collector regression coverage around the OEM handling in the periodic collection test suite: construct a deserialized LogEntry containing Oem.Nvidia, run periodic collection, and assert the emitted LogRecord includes the redfish.oem attribute populated from additional_properties.Source: Path instructions
🤖 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.
Nitpick comments:
In `@crates/health/src/collectors/logs/periodic.rs`:
- Around line 429-434: Add periodic collector regression coverage around the OEM
handling in the periodic collection test suite: construct a deserialized
LogEntry containing Oem.Nvidia, run periodic collection, and assert the emitted
LogRecord includes the redfish.oem attribute populated from
additional_properties.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 512bb9ad-c08e-48e4-854b-149399310716
📒 Files selected for processing (2)
crates/health/src/collectors/logs/periodic.rscrates/health/src/collectors/logs/sse.rs
Preserve OEM extensions when
healthconverts Redfish events into log records. This helps downstream log consumers access vendor error identifiers or other OEM diagnostics.Related issues
Resolves #4748
Type of Change
Breaking Changes
Testing