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
Add some extra checking in the tests to prevent flakes. #26123
Conversation
@jsafrane since he was also looking @ this. |
GCE e2e build/test passed for commit 88663fc. |
LGTM, thanks for the fix! |
// Call the tested function | ||
err := test.test(ctrl, reactor, test) | ||
if err != nil { | ||
t.Errorf("Test %q initial test call failed: %v", test.name, err) | ||
} | ||
|
||
reactor.waitTest() | ||
for reactor.getChangeCount() < count+expectedChanges[ix] { |
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.
@brendandburns Drive-by comment. What prevents this from entering an endless loop?
buildcop says: this seems to make tests better, so marking p2 so it jumps the queue. |
@alex-mohr Can somebody answer my question above before merging this please.
Q |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
GCE e2e build/test passed for commit 88663fc. |
Automatic merge from submit-queue |
Attempts to fix #25967
The hypothesis is that somehow waitTest() catches an idle that occurs before all changes have been applied. This will block until the expected number of changes have arrived.