← Back to Pull requests

test: add E2E matrix for control plane y-stream then z-stream upgrade #7656

Open
unknown opened this pull request with 428 lines diff across 5 files
View on GitHub
unknown unknown commented on Oct 21, 2026 09:38 UTC
Author

https://redhat.atlassian.net/browse/ARO-30325

What

Adds an E2E test (test/e2e/control_plane_yz_stream_upgrade.go) that, for a cluster with no node pool:

1. Installs the cluster at a given minor (<installMinor>.latest).
2. Y-stream upgrades the control plane to the next minor (<cpMinor>.latest-1).
3. Z-stream upgrades the control plane to the latest patch on that minor (<cpMinor>.latest).

It is a DescribeTable over a small, deliberate slice of the supported minors (4.20 through 5.0), including the cross-major 4.22 -> 5.0 hop. Entries whose target minor is not yet published (4.22 -> 4.23, 4.23 -> 5.1, 5.0 -> 5.1) self-skip through the version-resolution guards, so the table documents intended coverage without failing on unpublished versions.

Verification:

  • The y-stream step joins the guest-side clusterversion history check with the new VerifyClusterActiveVersionsSettledAtMinor, which reads the cluster's ARM activeVersions (derived by the backend ControlPlaneActiveVersions controller from HostedCluster status.controlPlaneVersion). activeVersions reports control-plane completion independent of data-plane health.

  • The z-stream step uses VerifyHostedControlPlaneReachedVersion (exact match in clusterversion history), because ARM activeVersions is only major.minor granular and cannot distinguish a z-stream hop within one minor.
  • Why

    We need to ensure a cluster whose control plane was y-stream upgraded can then take a z-stream upgrade, with no node pool present (no worker capacity to settle the data plane). Relying on the guest CVO alone is unreliable here — without functional workers it can report Partial indefinitely — so the y-stream check also reads the backend-published activeVersions, which reflects the control plane's own progress.

    Testing

  • E2E tests: a new DescribeTable E2E spec (3 covered entries 4.20->4.21, 4.21->4.22, 4.22->5.0; 3 self-skipping entries for not-yet-published minors).
  • Special notes for your reviewer

    Split into two commits: (1) the DescribeTable matrix refactor, (2) adoption of the ARM activeVersions verifier. The activeVersions verifier mirrors the one introduced in #7766; if that PR merges first this file will need to be reconciled to avoid a duplicate.

    PR Checklist

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

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Screenshots included (if dashboards or other UI changes)

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented

  • Specific reviewers tagged

  • All comment threads resolved before merge
  • If E2E tests are included:

  • E2E tests follow Principles of Good E2E Test Case Design

  • If new E2E use case is covered (via a new test or new check/verifier),

  • 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.

    🤖 Generated with Claude Code

    Diff: 428 lines (+321 / -107) across 5 files Reviewer: ahitacat Review duration: 58164m
    All Vouch review confidence checks passed
    Residual risk 0.32 = Change Risk (0.57) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 428 lines diff across 5 files
    0.57
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    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.363
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #7656"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% 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: 57.1% (MEDIUM) · Higher = larger blast radius
    57.1%
    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: 44.7% · Lower = rushed or shallow review
    44.7%
    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: 31.6% · Safe to merge
    31.6%
    Repository