SPLAT-2655: Report worker rollout progress and surface stalled old-worker deletion #96
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 379 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.355
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #96"
general
weight: 0.35
jcpowermac
Summary
Closes the remaining gaps for SPLAT-2655 (Worker Node Rolling Replacement — IPI). The existing
WorkloadMigratedphase already creates target worker MachineSets, waits for readiness, rolls the control plane, and scales down/deletes source MachineSets. This PR hardens the two gaps against the acceptance criteria:1. Worker rollout progress in status — the target-worker wait now reports readiness counts instead of a static message:
Waiting for target workers (machines 5/6 ready, nodes 4/6 ready)2. Stalled old-worker deletion (PDB-blocked drains) — when old machines/nodes linger after scale-down, the condition message names the machines with age and error reason (this is where drain/PDB violations surface), logs per-machine detail at V(1), and emits a debounced
Warning OldWorkersStalledevent (at most one per 5 minutes per distinct lingering-machine set).No changes to the ordered-condition workflow, CRD, RBAC, or requeue intervals.
Changes
internal/openshift/machines.go: newListMachinesForMachineSet(metadata-preserving machine listing)internal/controller/vmwarecloudfoundationmigration_controller.go:-
checkWorkerReadinessreturns aggregate machine/node readiness counts feeding the progress message- new
oldWorkerStallDetailhelper builds per-MachineSet stall detail + a stable debounce key-
logControlPlaneMachinerenamed tologMachineDetail(shared by rollout and stall logging)- debounced
OldWorkersStalledWarning event on the reconciler (in-memory; a leader restart may re-emit one event, which is harmless)ListMachinesForMachineSet; new orchestration cases for the progress message, stall detail, and event debouncedocs/plans/splat-2655-worker-rolling-replacement.md: implementation planVerification
make fmt,make vet,make lint(0 issues),make test(all packages + envtest),go build ./...— all passing on the branch<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
New Features
Added detailed diagnostics for stalled old-worker deletion, including machine names, ages, remaining nodes, and error reasons.
Added bounded, deduplicated warning events for stalled rollouts.
Improved worker rollout progress reporting with aggregate machine and node readiness counts.
Bug Fixes
Improved detection and reporting of machines associated with a worker machine set.
Tests
Added coverage for readiness reporting, stall diagnostics, machine matching, and warning-event debouncing.
Documentation
Added an implementation plan for addressing worker rollout gaps.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->