← Back to Pull requests

fix: allow same Y-version prerelease control plane version pins #8159

Closed
unknown closed this pull request without merging on Nov 17, 2026 19:02 UTC
View on GitHub
unknown unknown commented on Nov 17, 2026 15:38 UTC
Author

ARO-30842

What


Allow same Y-version prerelease builds to be assigned through the ExactVersion pin without requiring them to appear in the cluster’s previous installation history.

Pre-releases versions such as 4.20.0-0.nightly-2026-11-11-125558 and 4.20.0-rc.1 sort below stable 4.20 releases in SemVer. Previously, rollback validation rejected this target on both freshly provisioned 4.20.46 clusters and clusters upgraded from 4.20.15 to 4.20.46.

Why

This change exempts pre-release targets, including 0.nightly-multi-*, from rollback-history validation. The major/minor release-line restriction remains unchanged: a 4.20 cluster cannot be pinned to a 4.21 nightly. Stable releases and other prereleases retain the existing rollback checks. The shared validator applies to individual and bulk cluster pinning.

Testing

Validation: go test -count=1 -v ./handlers/hcp passes, including regression tests for both scenarios, fresh 4.20.1 clusters, multi-architecture nightlies, and rejection of cross-minor targets and other prereleases.

  • New tests added with validation of new cross stable-nightly version pinning scenarios

  • The Y-version validation is still active when pinning for nightly versions, meaning:
  • 4.20 cluster → 4.20.0-0.nightly-…: allowed.

    4.20 cluster → 4.21.0-0.nightly-… or 4.21.10: rejected.

    Diff: 173 lines (+129 / -44) across 2 files Reviewer: deads2k Review duration: 203m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 173 lines diff across 2 files
    0.35
    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.309
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #8159"
    general weight: 0.35
    Reviewers
    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: 35.3% (MEDIUM) · Higher = larger blast radius
    35.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: 14.0% · Safe to merge
    14.0%
    Repository