-
Notifications
You must be signed in to change notification settings - Fork 490
fix(tests): Adjust skeleton test timeouts to reduce flakyness #4417
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
base: main
Are you sure you want to change the base?
Conversation
7fa8944 to
caffc1a
Compare
Question: were you able to reproduce the issue before your changes? |
There are some pipelines that failed |
caffc1a to
a13104b
Compare
| // Create an curl event checker with a limit or 10 events or 30 seconds, whichever comes first | ||
| curlChecker := curlEventChecker(kversion).WithEventLimit(100).WithTimeLimit(30 * time.Second) | ||
| // Create an curl event checker with a limit or 200 events or 120 seconds, whichever comes first | ||
| curlChecker := curlEventChecker(kversion).WithEventLimit(200).WithTimeLimit(120 * time.Second) |
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.
Adjusted the time to make it more stable. It will not affect the time when it works, only give more chances to success when the infraestructure/network is a bit slower
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.
should the time limit be the same as the wait limit nearby Wait(60*time.Second)? So 120 s everywhere or 200 s everywhere? I don't exactly knows what .Wait does on a checker out of the top of my head.
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.
Hey @mtardy!
Thanks for your comment. The .Wait method defines how long to wait for the checker to start. So it can be shorter as it should start almost instantly once the gRPC connection is established
We can also update it to 120s, that shouldn't affect the execution time either but I didn't see any timeout related to the checker starting phase, so it is unnecessary IMO
Please let me know if you have other opinions :)
Increase the curl event checker time limit from 30 to 120 seconds. Signed-off-by: Daniel Gomez <[email protected]>
a13104b to
0f0d884
Compare
Increase the curl event checker time limit from 30 to 60 seconds and change the curl container imagePullPolicy from Always to IfNotPresent.
Tested several times:
Found several pipelines failing due to timeout issue so I increased them. The execution time should not be affected when the network is working properly, the current change just add additional changes to make the tests work