-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: enable csi-proxy.exe in workflow and enable windows unit tests #556
test: enable csi-proxy.exe in workflow and enable windows unit tests #556
Conversation
Hi @mayankshah1607. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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/test-infra repository. |
a84855a
to
631ce7e
Compare
3c6ea79
to
99aae52
Compare
8f8e316
to
bf952ec
Compare
test/utils/testutil/testutil.go
Outdated
return TestError{ | ||
LinuxError: linuxError, | ||
WindowsError: windowsError, | ||
DarwinError: darwinError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is DarwinError
necessary? I thought it's same as LinuxError.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed in this PR that some test cases have slight variation in the error message across Darwin and Linux, so I thought it might make sense to have a separate field in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe not, let's remove it first. Usually macos test error should be same as linux.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and also pls squash commits, thanks.
03bb668
to
8eb38a8
Compare
@andyzhangx I've made the changes. This PR is ready :) |
/ok-to-test |
/retest |
961d74c
to
2dcd839
Compare
/retest |
/retest |
2dcd839
to
14b2fa1
Compare
/retest |
14b2fa1
to
b93d973
Compare
Signed-off-by: Mayank Shah <[email protected]>
b93d973
to
430a46a
Compare
/retest |
@mayankshah1607 can you change this value to azuredisk-csi-driver/test/e2e/testsuites/dynamically_provisioned_azuredisk_detach_tester.go Line 92 in 18ae134
|
pkg/azuredisk/nodeserver_test.go
Outdated
desc: "Staging target missing ", | ||
req: csi.NodeUnstageVolumeRequest{VolumeId: "vol_1"}, | ||
expectedErr: testutil.TestError{ | ||
LinuxError: status.Error(codes.InvalidArgument, "Staging target not provided"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use a defaultError, similar to https://github.com/kubernetes-csi/csi-driver-smb/blob/36a4dbce197fa7dcb82b27d5548479c21b67c9e4/pkg/smb/nodeserver_test.go#L374, otherwise need to write twice for every test error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andyzhangx The issue with that is that in some cases, Windows has a nil
error. In that case, we need an explicit mention. For example -
WindowsError: nil, // different mount behaviour on windows, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's not an error case, we could skip that case on Windows, e.g. https://github.com/kubernetes-csi/csi-driver-smb/blob/36a4dbce197fa7dcb82b27d5548479c21b67c9e4/pkg/smb/nodeserver_test.go#L474
otherwise need to copy the error message for every case, that's a burden to write a test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I have added the relevant changes. Thanks
already fixed by #563 |
/test pull-azuredisk-csi-driver-e2e-migration-windows |
8c05ecc
to
5b24dd3
Compare
Signed-off-by: Mayank Shah <[email protected]>
5b24dd3
to
79843a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, mayankshah1607 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
there is a random failure on Windows:
|
/retest |
1 similar comment
/retest |
Signed-off-by: Mayank Shah [email protected]
What type of PR is this?
/kind test
What this PR does / why we need it:
Enable windows unit tests and add CSI proxy mount to workflow
Which issue(s) this PR fixes:
Fixes #525
Requirements:
Special notes for your reviewer:
Release note: