fix: count an in-window reboot recovery seen after the deadline #3652
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 234 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.327
Real PR Conversation Timeline
1 comments
"Review active on #3652"
general
weight: 0.35
HarshithaMS005
Fixes #3533
Description
The reboot controller checked the phase deadline before it looked at the node. A node that rejoined inside the observation window was still marked
recovery_timeoutand replaced when the next reconcile ran after the window, including after a controller restart.Recovery is now evaluated first. A new boot ID and
Ready=Truewhose transition is at or before the end of the window becomesRebootSucceeded, even if that reconcile runs later. AReadytransition after the window still ends asrecovery_timeout. AReadytransition from before issuance counts as issuance time, so a fast reboot that never leavesReady=Trueis still inside the window.The same ordering applies while the reboot is still being issued. If the provider returns an error but the node reboots anyway, a check after the 5-minute issuance timeout moves the reboot into observation instead of replacing the node with
provider_error.How was this change tested?
go test ./pkg/controllers/nodeclaim/reboot/ -count=1Covers:
recovery_timeoutrecovery_timeoutAI Disclosure <!-- Per https://www.kubernetes.dev/docs/guide/pull-requests/#ai-guidance. Only check the boxes that apply. -->
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.