ROSAENG-63034 | test: version-gate subnet-per-AZ e2e tests for CPO dedup fix #3446
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
reedcort
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
- 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
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:
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
Breaking Changes
Developer Verification Checklist
[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 -->