[CONTP-2261] Make health controller more reliable: reduce flapping and avoid false resolution of issues #3690
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 544 lines diff across 6 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.377
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3690"
general
weight: 0.35
adel121
What does this PR do?
Makes the health component controller more reliable by avoiding emitting resolution signal to the backend too early, avoiding issues flapping (Active -> Resolved -> Active -> Resolved ...).
This happens particularly in cases such as container being killed due to OOM, and keeps restarting, resolving the issue, and then OOM'ing after a few seconds.
After this change, an issue is RESOLVED only after it has never been detected as active during 5 minutes.
Log levels have been adjusted as well to avoid noisy logs in case of flapping.
Additional Notes
This stops flapping snapshotting, not flapping internal state. In other words, the controller still sees and logs flapping states, but snapshots stable states only.
Describe your test plan
Use this spec:
Before the fix, there was false RESOLVE signals emitted:
After this change, this should stop happening, it should become stable:
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits