← Back to Pull requests

feat: surface Hypershift NodePool status during node pool create operation #7077

Closed
unknown closed this pull request without merging on Sep 24, 2026 14:12 UTC
View on GitHub
unknown unknown commented on Sep 22, 2026 13:15 UTC
Author

<!-- Link to Jira issue -->
https://redhat.atlassian.net/browse/ARO-28524

What

  • Add a Hypershift NodePool source to the node pool create operation controller, mirroring the update operation controller.

  • Wire unionReadDesireLister into NewOperationNodePoolCreateController.

  • Extract state calculation into operation_node_pool_create_state_calculation.go with spec and status checks:

  • - Spec: labels, taints, replicas/autoscaling
    - Status: replicas, AllNodesHealthy, AllMachinesReady
  • Skip machine-health condition checks for node pools scaled to zero (same guard as update).

  • Add unit tests at the same granularity as update (integration-style + per-leaf-function tables).
  • Why

    Node pool create operations only relied on Cluster Service's status/message, which is often empty when CS gets stuck in a non-terminal state (e.g. on an Azure Policy denial). When that happens, the CreateOperationCompletionDeadline timeout fires with a generic message and customers get an opaque InternalServerError with no way to diagnose the failure.
    HyperShift's AllMachinesReady condition carries the real underlying error. Surfacing it gives customers an actionable message instead of a black box

    Testing

  • Verified end-to-end on a live cluster: an Azure Policy VM-creation denial now surfaces RequestDisallowedByPolicy details through the operation-status API instead of the generic deadline message.
  • Unit tests passed
  • PR Checklist

  • [X] PR is scoped to a single task (no mixed concerns)

  • [X] Title follows Conventional Commits format

  • [X] Summary explains the "Why" behind the change

  • [X] Linked to relevant ticket/issue

  • Screenshots included (if dashboards or other UI changes)

  • [X] Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • [X] Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented

  • Specific reviewers tagged

  • All comment threads resolved before merge
  • Diff: 262 lines (+196 / -66) across 3 files Reviewer: miguelsorianod Review duration: 2937m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 262 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.333
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #7077"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44.3% (MEDIUM) · Higher = larger blast radius
    44.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.5% · Safe to merge
    17.5%
    Repository