fix: suppress HCPKASAvailableBurn alerts for clusters with non-empty deletionTimestamp #7237
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.59) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 650 lines diff across 8 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
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #7237"
general
weight: 0.35
tmstff
What
https://redhat.atlassian.net/browse/ARO-29170: Suppress HCPKASAvailableBurn alerts for HCP clusters that are deleting with non-empty deletionTimestamp
Why
These alerts create noise for SRE on-call, consume error budget the cluster no longer "deserves", and mask the real, distinct problem. There is already a PR for handling deleting clusters here https://github.com/Azure/ARO-HCP/pull/6092#top.
Testing
Healthy Cluster Deletion - Passed
- userJourneyKubeApiserverAvailability1h5m –-for 10m: 0 series, 0 samples, no data
- userJourneyKubeApiserverAvailability6h30m - for 30m: 0 series, 0 samples, no data
- userJourneyKubeApiserverAvailability3d6h -for 3h: 0 series, 0 samples, no data
Deletion signal exists. The metric is emitting, the value is 2 because there are two prometheus replica.
Query: hostedClusterAPI_deleting{name="ecardena", deletion_timestamp!=""}
<img width="2734" height="1814" alt="image" src="https://github.com/user-attachments/assets/6f5d9e60-670d-48c5-9b7f-16ea74fbe678" />
The empty window means SLI output is suppressed when deletionTimestamp is set.
<img width="2734" height="1814" alt="image" src="https://github.com/user-attachments/assets/acd4cfbf-21e7-423a-aed2-1f5561538d58" />
Unhealthy Cluster Deletion (Zombie cluster) - Passed
Confirming cluster is in Deleting state starting 2026-10-01t00:22:02
% curl -sS -G "$ENDPOINT/api/v1/query_range" \-H "Authorization: Bearer $TOKEN" \
--data-urlencode "query=hostedClusterAPI_deleting{${SEL}}" \
--data-urlencode "start=$START" --data-urlencode "end=$END" --data-urlencode "step=60s" \
| jq '{series: (.data.result|length),
deletion_timestamp: .data.result[0].metric.deletion_timestamp,
first_sample: (.data.result[0].values[0][0] | todate),
last_sample: (.data.result[0].values[-1][0] | todate)}'
{
"deletion_timestamp": "2026-10-01t00:22:02z",
"first_sample": "2026-10-01T00:23:00Z",
"last_sample": "2026-10-01T01:00:00Z",
"series": 2
}
<img width="1364" height="1002" alt="image" src="https://github.com/user-attachments/assets/faaa9f5b-c593-4e34-a6da-293b7d7fb02d" />
sli_sum_5m series stopped producing data after deletion.
<img width="1364" height="1002" alt="image" src="https://github.com/user-attachments/assets/941f623b-9884-4f8d-8504-1558bffec88a" />
The alert expressions below return no data after deletion of zombie cluster.
<img width="1364" height="1002" alt="image" src="https://github.com/user-attachments/assets/65ce831c-cd93-4596-8b6c-377fa57d2fcb" />
Special notes for your reviewer
Detailed testing and screenshots are included in the jira ticket comments.
PR Checklist
If E2E tests are included:
demonstrate that the test is able to detect a defect/error and fail with
proper error message and logs which communicates nature of the problem.
Co-authored-by: Cursor <cursoragent@cursor.com>