← Back to Pull requests

ROSAENG-63034 | test: version-gate subnet-per-AZ e2e tests for CPO dedup fix #3446

Closed
unknown closed this pull request without merging on Aug 04, 2026 17:28 UTC
View on GitHub
unknown unknown commented on Aug 04, 2026 14:36 UTC
Author

PR Summary

Version-gate 4 same-AZ subnet e2e test scenarios to account for the CPO subnet dedup fix (OCPBUGS-82443). Tests now expect success on fixed OCP versions instead of always expecting 400.

Detailed Description of the Issue

The subnet-per-AZ preflight validation was relaxed in clusters-service (ROSAENG-58045) for OCP versions 4.22.4+, 4.21.25+, 4.20.31+. The ROSA CLI e2e tests in test_rosacli_cluster.go test cluster creation with same-AZ subnets using --dry-run and version: "latest", which now resolves to a fixed version. These tests fail because they always expect a 400 error.

Related Issues and PRs

  • Jira: ROSAENG-63034

  • Related PR(s):

  • - clusters-service guardrail relaxation: https://gitlab.cee.redhat.com/service/uhc-clusters-service/-/merge_requests/11512 (merged)
    - ocm-backend-tests update: https://gitlab.cee.redhat.com/service/ocm-backend-tests/-/merge_requests/2051

    Type of Change

  • test - adds or updates tests only.
  • Previous Behavior

    All 4 same-AZ subnet test scenarios always expected a 400 error with "more than one private subnet" message.

    Behavior After This Change

    Tests extract the version from the rosalCommand and version-gate expectations:

  • Fixed versions (4.22.4+, 4.21.25+, 4.20.31+): expect success

  • Unfixed versions: expect 400 with the original error
  • How to Test (Step-by-Step)

    Preconditions

    ROSA CLI e2e test environment

    Test Steps

    1. Run test [id:72538] against a cluster with version >= 4.22.4
    2. Run test [id:72538] against a cluster with version < 4.22.4

    Expected Results

  • Fixed versions: all 4 same-AZ scenarios pass (dry-run succeeds)

  • Unfixed versions: all 4 same-AZ scenarios fail with 400 (existing behavior)
  • Breaking Changes

  • No breaking changes
  • Developer Verification Checklist

  • Commit subject/title follows [JIRA-TICKET] | [TYPE]: <MESSAGE>.

  • PR description clearly explains both what changed and why.

  • Relevant Jira/GitHub issues and related PRs are linked.

  • make install-hooks has been run in this clone.

  • Tests were added/updated where appropriate.

  • I manually tested the change.

  • make test passes.

  • make lint passes.

  • make rosa passes.

  • Documentation or repo-local agent guidance was added/updated where appropriate.

  • Any risk, limitation, or follow-up work is documented.
  • [ROSAENG-63034]: https://redhat.atlassian.net/browse/ROSAENG-63034?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    [ROSAENG-58045]: https://redhat.atlassian.net/browse/ROSAENG-58045?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Bug Fixes
    Improved HCP cluster subnet validation to support duplicate private subnets within an availability zone on supported platform versions.
    Preserved validation errors for older or unrecognized platform versions to ensure compatibility and predictable cluster creation behavior.

    Tests
    * Expanded coverage for version-specific subnet validation and cluster creation scenarios.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 421 lines (+315 / -106) across 5 files Reviewer: reedcort Review duration: 172m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 421 lines diff across 5 files
    0.45
    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.362
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3446"
    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: 45% (MEDIUM) · Higher = larger blast radius
    45%
    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.8% · Safe to merge
    17.8%
    Repository