NE-2789: Add a guard to skip IngressControllerMultipleHAProxyVersions tests if IngressController CRD lacks haproxyVersion field#31424
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@rhamini3: This pull request references NE-2789 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. |
WalkthroughThe multi-HAProxy test now inspects the IngressController CRD during setup and skips when the ChangesHAProxy CRD Compatibility
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 13 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (13 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@test/extended/router/multi-haproxy.go`:
- Around line 68-69: Update the CRD lookup in BeforeEach to create a context
with a bounded timeout using context.WithTimeout, defer its cancel function, and
pass the timed context to ApiextensionsV1().CustomResourceDefinitions().Get
instead of the unbounded context.Background().
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 5074c4b5-db36-4dc8-86b6-3d1d6e46c56d
📒 Files selected for processing (1)
test/extended/router/multi-haproxy.go
|
this is a straightforward fix that will allow openshift/api#2947 to pass CI. Thanks! But let's only apply the |
|
/testwith openshift/origin/master/e2e-gcp-ovn openshift/api#2947 |
|
@gcs278, |
|
/testwith openshift/origin/main/e2e-gcp-ovn openshift/api#2947 |
|
/testwith openshift/origin/main/e2e-gcp-ovn openshift/api#2947 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gcs278, rhamini3 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 |
|
@rhamini3 just one nit pick about the title, it's skipping if the CRD lacks the field, not if the feature is enabled, maybe change to:
|
|
idk why the pipeline hasn't triggered yet. /pipeline required |
|
Scheduling required tests: |
|
/testwith openshift/origin/main/e2e-gcp-ovn openshift/api#2947 |
|
infra failures: |
With the introduction of featuregate
IngressControllerMultipleHAProxyVersionsorigin tests, we want to make sure the tests are backwards compatible and dont start to fail during featuregate promotion.this change is adding a guard to check the IngressController CRD to confirm the haproxyVersion field is present before trying to run the tests
Summary by CodeRabbit