NE-2131: Migrate dualstack e2e tests from openshift/origin to tests-extension#1412
NE-2131: Migrate dualstack e2e tests from openshift/origin to tests-extension#1412lihongan wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🚫 Review skipped — only excluded labels are configured. (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/testwith pull-ci-openshift-installer-release-4.22-e2e-aws-ovn-dualstack-ipv4-primary-techpreview /testwith pull-ci-openshift-installer-release-4.22-e2e-aws-ovn-dualstack-ipv6-primary-techpreview |
|
@lihongan, |
|
/testwith openshift/installer/main/e2e-aws-ovn-dualstack-ipv6-primary-techpreview openshift/installer#10467 |
Add a lightweight CLI test framework (framework.go) that replicates key exutil.CLI functionality without depending on k8s.io/kubernetes or openshift/origin. The framework provides: - OAuth-first user authentication with ServiceAccount impersonation fallback when User/OAuth APIs are unavailable - ProjectRequest-first namespace provisioning with plain Namespace fallback, including pod security labels and cleanup - Cached typed client accessors (AdminKubeClient, KubeClient, AdminConfigClient, AdminOperatorClient, RouteClient, etc.) - oc CLI wrapper with method chaining (AsAdmin/Run/Args/Execute/Output) - Automatic BeforeEach/AfterEach registration for project setup and teardown Shared helper functions are split into separate files: - test/util.go: generic utilities (exec pod, DNS resolution, curl checks) - test/ingress_util.go: ingress/route helpers (shard deploy, route creation, admission wait, router log dump) - test/dualstack.go: test cases and dualstack-specific helpers Migrate the dual-stack e2e tests (NLB and Classic LB) using this framework, replacing ~70 lines of manual client setup per test with a single NewCLI() call. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
b96c623 to
c1f5410
Compare
|
/testwith openshift/installer/main/e2e-aws-ovn-dualstack-ipv6-primary-techpreview openshift/installer#10467 openshift/origin#30968 |
|
@lihongan: This pull request references NE-2131 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 "4.22.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. |
|
@lihongan: The following tests failed, say
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. |
|
I can see the migrated tests were executed and passed correctly |
|
Yes, so far there is no periodic job for AWS dual-stack TechPreview, and we just need to run the installer presubmit to check the two migrated tests. Other failing e2e jobs are unrelated to the change, let me retest them |
|
/retest-required |
|
@lihongan: Cannot trigger testing until a trusted user reviews the PR and leaves an 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 kubernetes-sigs/prow repository. |
|
/close |
|
@lihongan: Closed this PR. 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 kubernetes-sigs/prow repository. |
Add a lightweight CLI test framework (framework.go) that replicates key
exutil.CLI functionality without depending on k8s.io/kubernetes or
openshift/origin. The framework provides:
fallback when User/OAuth APIs are unavailable
fallback, including pod security labels and cleanup
AdminConfigClient, AdminOperatorClient, RouteClient, etc.)
teardown
Shared helper functions are split into separate files:
creation, admission wait, router log dump)
Migrate the dual-stack e2e tests (NLB and Classic LB) using this
framework, replacing ~70 lines of manual client setup per test with
a single NewCLI() call.