fix(infra): give kubelet-ds rollout room on fresh management clusters (ARO-30377) #7843
All Vouch review confidence checks passed
Residual risk 0.44 = Change Risk (0.80) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.80 · 602 lines diff across 7 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.383
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.080
Real PR Conversation Timeline
1 comments
"Review active on #7843"
general
weight: 0.35
geoberle
ARO-30377
Supersedes #7839
The runner budget/off-by-one work is folded into this PR rather than split out into a separate change.
What
Bump the kubelet-ds Helm step's rollout budget from the default 5m to
15m(the same budget themitigationsstep already uses for this class of first-install slowness), and add the Helm rollout-wait error (not ready. status:) to the step'sautomatedRetrypatterns so a rollout that misses the deadline is retried (upgrade + wait again) instead of failing the provision run.Also fix the local pipeline runner (
tooling/templatize) so that budget is actually honored across retries: the runner's outer step context capped the entire step — all attempts and backoffs — at 30 minutes, and only Istio steps'timeoutwas visible to it. The per-attempt context is nowmax(declared timeout, 30m); the 30m floor preserves the previous allowance, which matters because Helm grants the timeout to the rollout wait and to every hook separately. The outer budget now scales for every step withautomatedRetry:attempt × maximumRetryCount + backoff × (maximumRetryCount − 1). That also widens steps without a declared timeout when retries are configured — e.g.kusto-grant-ingest(7 attempts × 30m + 6 × 1m) goes from a 30m cap to a 216m ceiling — so a genuinely hung attempt can take correspondingly longer to be detected. The runner also no longer backs off after the final permitted attempt, which is what makes themaximumRetryCount − 1backoff term exact.Why
On freshly provisioned (CI/DEV) management clusters the first kubelet-ds release races worker-node bring-up. Straggler pods can still be Pending when the default 5m Helm deadline expires:
(7 of 578 DEV e2e runs in 2026-10-08..15, plus occurrences back to 2026-09-16 with
0/18,0/15,11/15,13/15.) The rollout typically completes a few minutes past the deadline — the run fails on a wait, not on a defect.The straggler root cause — the DaemonSet's unpinned docker.io
alpineimage hitting per-IP pull throttling on shared CI egress — is fixed by #6009 (digest-pinnedmcr.microsoft.com/aks/command/runtime). This PR is the pipeline-side complement: it absorbs residual bring-up slowness (late node join, image-pull backoff, kubelet restarts at first install) so a recovering straggler no longer fails the provision step.Without the runner fix, the retry configuration is not realizable: with a 15m Helm wait, the second attempt would be cancelled when the outer 30-minute budget expires, and the third attempt would never start (
maximumRetryCount: 3needs ~92m of budget under the 30m per-attempt floor).Testing
go test ./tooling/templatize/pkg/pipeline/...— green, including newTestStepAttemptTimeout/TestStepOuterTimeoutcovering the kubelet-ds shape (15m × 3 attempts + 1m backoffs) andTestExecuteNodeDoesNotWaitAfterFinalAttemptcovering the final-backoff off-by-one (mutation-checked: removing the fix makes the test fail withcontext canceledreplacing the step error);go test ./tooling/helmtest/...— green;make lint— 0 issuese2e-parallelexercises the step on live management clusters — observed via post-merge DEV e2e flake rateSpecial notes for your reviewer
Retry semantics verified in the deployer (
Azure/ARO-Toolstools/helm): the default rollout-wait timeout is 5m, and a step re-run finds the existing release history and takes the upgrade path with the full timeout again.The runner's outer budget now scales with the configured retry count for any step, whether or not it declares its own
timeout. Steps that succeed quickly are unaffected in practice, but their worst-case failure-detection time grows withmaximumRetryCount × 30m; for the widest current case (kusto-grant-ingest, 7 attempts) that is 216m instead of 30m.PR Checklist
🤖 Generated with Claude Code