feat(nic-health-monitor): add portStateHoldDown so short port blips are not reported #1996
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 337 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1996"
general
weight: 0.35
KaivalyaMDabhadkar
Summary
Closes #1993.
A port that drops for a few seconds and recovers is reported fatal at once, so a short fabric blip can cordon a node. This adds
portStateHoldDown(chart value, TOML[stateCheck] portStateHoldDown), a duration a port must stay unhealthy beforeInfiniBandStateCheckorEthernetStateCheckreports it."0s"keeps today's behaviour.nic_health_monitor_port_state_blips_total{node,check,device,port}.link_downednote requested on the issue.Type of Change
Component(s) Affected
Testing
Checklist
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added an optional hold period before unhealthy Ethernet and InfiniBand port states are reported. Recovery remains immediate, and ports that recover during the hold are not reported as unhealthy.
Added a metric to track ports that recover before the hold period expires.
Documentation
* Documented the hold-period setting, its default of off, its effects on port and card events, and that in-progress holds restart after a service restart.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->