← Back to Pull requests

CNTRLPLANE-4009: feat(test): add HyperShift presubmit e2e test and nightly version support #6456

Closed
unknown closed this pull request without merging on Aug 13, 2026 10:00 UTC
View on GitHub
unknown unknown commented on Aug 06, 2026 13:26 UTC
Author

Summary

  • Adds HypershiftPresubmit label and hypershift-presubmit/parallel test suite for running ARO-HCP e2e tests triggered by openshift/hypershift PRs

  • Adds a version-agnostic e2e test (cluster_create_hypershift_presubmit.go) that creates a cluster with CPO override, verifies viability, creates a nodepool, and runs a web app verification

  • Adds ARO_HCP_OPENSHIFT_VERSION_ID env var to override the default OCP minor version (4.20) used for nightly release stream resolution — hypershift main targets OCP 5.0, so the presubmit CI needs to query 5.0.0-0.nightly-multi instead of 4.20.0-0.nightly-multi

  • Excludes HypershiftPresubmit tests from integration/stage/prod suites — these tests require CPO_IMAGE_OVERRIDE and nightly channel group env vars only set in the presubmit job

  • Makes the e2e suite configurable via ARO_HCP_E2E_SUITE env var (defaults to rp-api-compat-all/parallel) so the presubmit job can run hypershift-presubmit/parallel
  • Why

    CNTRLPLANE-4009 / CNTRLPLANE-3980

    We need a CI job on openshift/hypershift PRs that tests HO and CPO from the PR against an ARO-HCP environment. CPO is not backwards compatible — it needs a matching nightly release image from the same OCP development stream. The approach uses the existing nightly channel group support in Cluster Service and the test framework (ARO_HCP_OPENSHIFT_CHANNEL_GROUP=nightly), with the CPO override flowing through the existing ARM API experimental tag pipeline.

    Companion PR: https://github.com/openshift/release/pull/83108 (CI job and step registry changes)

    Test plan

  • Verify go build ./util/framework/ compiles

  • Verify go test ./util/framework/ passes

  • Verify the new test file builds with go build -tags E2Etests ./e2e/...

  • Verify TestMainListSuitesForEachSuite passes — hypershift presubmit test only in hypershift-presubmit/parallel, not in integration/stage/prod

  • Verify make e2e-local/run still defaults to rp-api-compat-all/parallel
  • 🤖 Generated with Claude Code

    Diff: 271 lines (+203 / -68) across 3 files Reviewer: bennerv Review duration: 9874m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 271 lines diff across 3 files
    0.39
    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.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6456"
    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: 39.5% (MEDIUM) · Higher = larger blast radius
    39.5%
    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: 15.6% · Safe to merge
    15.6%
    Repository