-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
fix flake in detach tests #107924
fix flake in detach tests #107924
Conversation
@gnufied: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The 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. |
/release-note-none |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied 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 |
/kind flake |
cc @BenTheElder |
/retest |
|
||
node := string(nodeName) | ||
volumeNodes, exist := fv.VolumesAttached[volumeName] | ||
if !exist || !volumeNodes.Has(node) { | ||
return fmt.Errorf("trying to detach volume %q that is not attached to the node %q", volumeName, node) | ||
} | ||
|
||
fv.DetachCallCount++ |
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.
without understanding the mechanics of the tests, this is not counting all calls to detach, the volume fails to be attached or doesn't exist we don't consider that call
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.
Yep that sounds right. The test is somewhat racy and detach can get called more than once for same volume, while we wait for detach in tests. Not counting calls of already detached volumes fixes the flake.
tricky! |
nah, it should be fine. This is simple enough change. /hold cancel |
/lgtm nice |
Fixes #99877
Before - flakes
After:
/sig storage