[release-4.19] OCPBUGS-104577: Backport node_e2e test migrations - #31484
[release-4.19] OCPBUGS-104577: Backport node_e2e test migrations#31484Chandan9112 wants to merge 1 commit into
Conversation
Bulk backport of node_e2e test case migrations from main (OCP 5.0) to release-4.19. These tests were previously backported to release-4.22 (PR openshift#31306, merged), release-4.21 (PR openshift#31426, merged), and release-4.20 (PR openshift#31430, merged). Key adaptations for 4.19: - Created minimal imagepolicy_helpers.go with MCP helper functions since test/extended/imagepolicy/ directory does not exist in 4.19 - Removed ote.Informing() decorators since openshift-tests-extension package is not available in 4.19 - Moved k8s.io/kubelet from indirect to direct dependency Co-authored-by: Cursor <cursoragent@cursor.com>
|
Skipping CI for Draft Pull Request. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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: Chandan9112 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 |
|
@Chandan9112: This pull request references Jira Issue OCPBUGS-104577, which is valid. The bug has been moved to the POST state. 7 validation(s) were run on this bug
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. |
|
@Chandan9112: This pull request references Jira Issue OCPBUGS-104577, which is valid. 7 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. |
Summary
Bulk backport of node_e2e test case migrations from
main(OCP 5.0) torelease-4.19.These tests were previously backported to
release-4.22via PR #31306 (merged ✅),release-4.21via PR #31426 (merged ✅), andrelease-4.20via PR #31430 (merged ✅). This PR performs the same backport torelease-4.19.Jira
OCPBUGS-104577
Related PRs
Changes (18 files)
New test files (
test/extended/node/node_e2e/)container_runtime_config.goimage_mirror_set.goimage_registry_config.goinitcontainer.gonetns_cleanup.gonode.gopdb_drain.goprobe_termination.goHelper files added
node_utils.go— Helper functions (ExecOnNodeWithChroot, WaitForMCP, etc.)node_mcp_helpers.go— Custom MCP creation/cleanup (NodeHasCustomRole)imagepolicy/imagepolicy_helpers.go— MCP config helper functions (GetMCPCurrentSpecConfigName, WaitForMCPConfigSpecChangeAndUpdated)Modified files
include.go— Addednode/node_e2eblank import for test registrationgo.mod— Movedk8s.io/kubeletfrom indirect to direct dependencyREADME.md— Documentation for running node testsbindata.go— Regenerated to include new testdatazz_generated.annotations.go— Regenerated test annotationsTestdata
testdata/node/node_e2e/pod-dev-fuse.yaml— Test fixture for devfuse test4.19-Specific Adaptations
Since
release-4.19has a different dependency baseline compared to 4.20+, the following adaptations were made:Created
imagepolicy/imagepolicy_helpers.go: Thetest/extended/imagepolicy/directory does not exist in 4.19. A minimal helper file was created with justGetMCPCurrentSpecConfigNameandWaitForMCPConfigSpecChangeAndUpdatedfunctions (used bycontainer_runtime_config.go,image_mirror_set.go, andimage_registry_config.go).Removed
ote.Informing()decorators: Theopenshift-tests-extensionpackage is not available in 4.19's dependency tree. Theote.Informing()test decorator was removed from 4 files (image_mirror_set.go,netns_cleanup.go,pdb_drain.go,probe_termination.go). The tests function identically without this decorator.Moved
k8s.io/kubeletto direct dependency:node_utils.godirectly imports kubelet config types.Feature Verification
All backported tests target features available in OCP 4.19:
[Suite:openshift/disruptive-longrunning]or standard[sig-node]suite tagsTesting
To validate, trigger the disruptive-longrunning payload job: