feat(dpu-remediation): count executor failures#3962
Conversation
DPU remediation now exposes executor failures as a bounded per-stage counter while retaining the existing retry diagnostics. - Covers status decoding, local apply/report, response validation, remediation fetch, and Forge client creation failures. - Keeps machine and remediation identifiers, error text, and response booleans in log context rather than metric labels. - Leaves delivered script failures and timeouts on the existing result-reporting path instead of counting them as executor failures. - Covers every `failure_stage` with table-driven log and counter assertions. Tests added! This supports NVIDIA#3911 Signed-off-by: Chet Nichols III <chetn@nvidia.com>
|
@coderabbitai full_review, thanks! |
|
✅ Action performedFull review finished. Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 5 minutes. |
WalkthroughThe DPU remediation executor adds stage-labeled failure metrics and structured events for status decoding, application, response validation, fetching, and client creation. Event emission replaces selected error logging, with unit tests and core metric documentation added. ChangesDPU remediation observability
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/ok-to-test |
|
@coderabbitai full_review, thanks! |
|
🐇 ✅ Action performedFull review finished. |
|
🌿 Preview your docs: https://nvidia-preview-pull-request-3962.docs.buildwithfern.com/infra-controller |
DPU remediation now exposes executor failures as a bounded per-stage counter while retaining the existing retry diagnostics.
failure_stagewith table-driven log and counter assertions.Related issues
This supports #3911
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 test -p carbide-dpu-remediationcargo make format-nightlycargo make clippycargo make carbide-lintscargo make check-event-namescargo xtask check-metric-docscargo xtask check-workspace-depscargo make check-licensescargo make check-bansAdditional Notes
A remediation script reporting failure remains a delivered script result and does not increment the executor-failure counter by itself.
This replaces #3956 after GitHub stopped synchronizing that PR's fork head following its hosted-review amendment. The two CodeRabbit nitpicks from that review are included here.
Closes #3911