OPRUN-4436: fix(test): update PolarionID:87224 for 4.23/5.0 upgrade boundary#766
OPRUN-4436: fix(test): update PolarionID:87224 for 4.23/5.0 upgrade boundary#766tmshort wants to merge 1 commit into
Conversation
…grade boundary Fix GetNextMinorVersion to return "5.1" for 4.23 clusters instead of "4.24": OCP 4.23 and 5.0 are co-released equivalents whose only upgrade target is 5.1. Remove the redundant `&& strings.Contains(message, "5")` guard from the Upgradeable message poll — the expectedPattern built from GetNextMinorVersion now encodes the full version string and is sufficient on its own. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
|
@tmshort: This pull request references OPRUN-4436 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/hold |
WalkthroughThe changes special-case OCP 4.23 to return version 5.1 as the next minor target and broaden the ChangesOpenShift upgrade test adjustments
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tmshort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
openshift/tests-extension/test/qe/util/tools.go (1)
593-598: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winAdd regression coverage for the 4.23 boundary.
Please cover
4.23 → 5.1, alongside adjacent cases such as4.22 → 4.23and5.0 → 5.1, so this release-specific mapping cannot regress.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@openshift/tests-extension/test/qe/util/tools.go` around lines 593 - 598, Add regression test coverage for the release-target calculation function containing the 4.23 special case. Include assertions for 4.22→4.23, 4.23→5.1, and 5.0→5.1, preserving the expected error behavior for valid inputs.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@openshift/tests-extension/test/qe/util/tools.go`:
- Around line 593-598: Add regression test coverage for the release-target
calculation function containing the 4.23 special case. Include assertions for
4.22→4.23, 4.23→5.1, and 5.0→5.1, preserving the expected error behavior for
valid inputs.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 91a3c3be-dd91-420f-a6a8-797b7e056f80
📒 Files selected for processing (2)
openshift/tests-extension/test/qe/specs/olmv1_ce.goopenshift/tests-extension/test/qe/util/tools.go
Fix GetNextMinorVersion to return "5.1" for 4.23 clusters instead of "4.24": OCP 4.23 and 5.0 are co-released equivalents whose only upgrade target is 5.1.
Remove the redundant
&& strings.Contains(message, "5")guard from the Upgradeable message poll — the expectedPattern built from GetNextMinorVersion now encodes the full version string and is sufficient on its own.Summary by CodeRabbit
Bug Fixes
Tests