[nodeconfig] Remove CniStateDir from delete test assertion - #4407
[nodeconfig] Remove CniStateDir from delete test assertion#4407ranjithrajaram wants to merge 1 commit into
Conversation
The CniStateDir (C:\var\lib\cni) removal in removeDirectories() is best-effort and swallows errors, matching the same pattern used for K8sDir. The checkDirsDoNotExist test was incorrectly asserting that CniStateDir is removed, causing vsphere-proxy-e2e-operator failures on BYOH nodes where the removal may not always succeed. Remove CniStateDir from checkDirsDoNotExist so the test matches the production contract. Only RequiredDirectories are asserted. Fixes https://issues.redhat.com/browse/OCPBUGS-65625
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ranjithrajaram 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 |
|
Hi @ranjithrajaram. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
📝 WalkthroughWalkthroughThe end-to-end deletion test now checks only Suggested reviewers: 🚥 Pre-merge checks | ✅ 20✅ Passed checks (20 passed)
✨ 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 |
|
/lgtm |
|
@ranjithrajaram: 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. |
The CniStateDir (C:\var\lib\cni) removal in removeDirectories() is best-effort and swallows errors, matching the same pattern used for K8sDir. The checkDirsDoNotExist test was incorrectly asserting that CniStateDir is removed, causing vsphere-proxy-e2e-operator failures on BYOH nodes where the removal may not always succeed.
Remove CniStateDir from checkDirsDoNotExist so the test matches the production contract. Only RequiredDirectories are asserted.
This PR commit updates the actual #4278
Summary by CodeRabbit