OCPBUGS-85344: Add version gates for 4.22 backward compatibility in e2e tests#8466
OCPBUGS-85344: Add version gates for 4.22 backward compatibility in e2e tests#8466csrwng wants to merge 1 commit intoopenshift:mainfrom
Conversation
The CAPI condition bubbling validation and Reason/Message checks for AllMachinesReady/AllNodesHealthy were introduced in 4.23. Gate these behind IsGreaterThanOrEqualTo(Version423) so the e2e binary from main can run against 4.22 clusters without false failures. Add ShouldRunKarpenterTests helper to gate Karpenter tests behind 4.23 since the karpenter.hypershift.openshift.io/v1 API only exists on main. When RUN_KARPENTER_TESTS=true is set (e.g. in e2e-aws-4-22 CI jobs where the operator is from main), the gate is lowered to 4.22. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
Skipping CI for Draft Pull Request. |
|
@csrwng: This pull request references Jira Issue OCPBUGS-85344, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng 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 |
|
/jira refresh |
|
@csrwng: This pull request references Jira Issue OCPBUGS-85344, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis pull request modifies Karpenter e2e test execution logic and version gating across three files. It introduces a new Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 1 warning)
✅ Passed checks (10 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8466 +/- ##
=======================================
Coverage 37.53% 37.53%
=======================================
Files 751 751
Lines 92003 92025 +22
=======================================
+ Hits 34531 34543 +12
- Misses 54831 54841 +10
Partials 2641 2641 see 2 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@csrwng: This pull request references Jira Issue OCPBUGS-85344, which is valid. 3 validation(s) were run on this bug
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. |
|
/lgtm |
|
Scheduling tests matching the |
Set RUN_KARPENTER_TESTS=true in the e2e-aws test env for the release-4.22 config. This allows the karpenter e2e tests to run against 4.22 clusters when the operator is built from main. Depends on: openshift/hypershift#8466 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Set RUN_KARPENTER_TESTS=true in the e2e-aws-4-22 test env in the main config. This allows the karpenter e2e tests to run against 4.22 hosted clusters when the operator is built from main. Depends on: openshift/hypershift#8466 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Set RUN_KARPENTER_TESTS=true in the e2e-aws-4-22 test env in the main config. This allows the karpenter e2e tests to run against 4.22 hosted clusters when the operator is built from main. Depends on: openshift/hypershift#8466 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Test Resultse2e-aws
e2e-aks
|
|
@csrwng: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/verified by e2e |
What this PR does / why we need it:
The e2e test binary from main fails when run against 4.22 hosted clusters. This was discovered when openshift/release#78912 changed the 4.22 CI config to use the pre-built e2e binary from main instead of building from the 4.22 branch.
Changes:
nodepool_test.go): GatevalidateCAPIConditionBubblingDuringProvisioningand the AllMachinesReady/AllNodesHealthy Reason/Message checks behindIsGreaterThanOrEqualTo(Version423), since the CAPI v1 condition aggregation logic only exists in 4.23+.karpenter_test.go): AddShouldRunKarpenterTestshelper that gates on 4.23 by default (thekarpenter.hypershift.openshift.io/v1API only exists on main), but lowers the gate to 4.22 whenRUN_KARPENTER_TESTS=trueis set — for CI jobs likee2e-aws-4-22where the operator is built from main but tested against 4.22 clusters.Which issue(s) this PR fixes:
Fixes https://issues.redhat.com/browse/OCPBUGS-85344
Special notes for your reviewer:
Depends on openshift/release#78912 for the CI config change that switches the 4.22 branch to use the e2e binary from main.
Checklist:
Summary by CodeRabbit