-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Fix TestSwarmClusterRotateUnlockKey #39616
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
Conversation
thaJeztah
left a comment
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.
heh 😂 that was the issue all this time? LGTM
@thaJeztah No, this retry for allowing this error (that shouldn't really be allowed to happen) was added last week @dperny There's an identical check in TestSwarmRotateUnlockKey |
andrewhsu
left a comment
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
|
Is it worth logging the first 5 attempts if we know converging takes some time? (it already logs a failure if 5 attempts failed) |
tonistiigi
left a comment
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.
TestSwarmClusterRotateUnlockKey had been identified as a flaky test. It turns out that the test code was wrong: where we should have been checking the string output of a command, we were instead checking the value of the error. This means that the error case we were expecting was not being matched, and the test was failing when it should have just retried. Signed-off-by: Drew Erny <[email protected]>
db55ead to
b79adac
Compare
|
Fixed the other test in the same way. |
|
Looks like this test is still flaky #39883 (comment) |
TestSwarmClusterRotateUnlockKey had been identified as a flaky test. It turns out that the test code was wrong: where we should have been checking the string output of a command, we were instead checking the value of the error. This means that the error case we were expecting was not being matched, and the test was failing when it should have just retried.