Merge pull request #90793 from pohly/flaky-mount-volume-calls

mock e2e test: reduce flakiness by not testing all calls
This commit is contained in:
Kubernetes Prow Robot 2020-05-19 15:22:19 -07:00 committed by GitHub
commit 0e8a2d2244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,17 +770,23 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
createVolume := "CreateVolume" createVolume := "CreateVolume"
deleteVolume := "DeleteVolume" deleteVolume := "DeleteVolume"
publishVolume := "NodePublishVolume" // publishVolume := "NodePublishVolume"
unpublishVolume := "NodeUnpublishVolume" unpublishVolume := "NodeUnpublishVolume"
stageVolume := "NodeStageVolume" // stageVolume := "NodeStageVolume"
unstageVolume := "NodeUnstageVolume" unstageVolume := "NodeUnstageVolume"
// These calls are assumed to occur in this order for // These calls are assumed to occur in this order for
// each test run. // each test run. NodeStageVolume and
// NodePublishVolume should also be deterministic and
// only get called once, but sometimes kubelet calls
// both multiple times, which breaks this test
// (https://github.com/kubernetes/kubernetes/issues/90250).
// Therefore they are temporarily commented out until
// that issue is resolved.
deterministicCalls := []string{ deterministicCalls := []string{
createVolume, createVolume,
stageVolume, // stageVolume,
publishVolume, // publishVolume,
unpublishVolume, unpublishVolume,
unstageVolume, unstageVolume,
deleteVolume, deleteVolume,
@ -794,8 +800,9 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
lateBinding: test.lateBinding, lateBinding: test.lateBinding,
enableTopology: test.topology, enableTopology: test.topology,
// Not strictly necessary, but without it, the external-attacher takes two minutes to detach // Not strictly necessary, but runs a bit faster this way
// the volume?! Looks like a bug. // and for a while there also was a problem with a two minuted delay
// due to a bug (https://github.com/kubernetes-csi/csi-test/pull/250).
disableAttach: true, disableAttach: true,
registerDriver: true, registerDriver: true,
} }