-
Notifications
You must be signed in to change notification settings - Fork 708
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
chore: Ocsp timeout adjustment #4866
Conversation
server = managed_process(S2N, server_options, timeout=2000) | ||
server = managed_process(S2N, server_options, timeout=90) | ||
client = managed_process(provider, client_options, | ||
timeout=2000, kill_marker=kill_marker) | ||
timeout=90, kill_marker=kill_marker) |
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.
Hmmm the original PR had 2000, but no explanation for it and none of the reviewers questioned it. @goatgoose any chance you remember the reasoning from almost 3 years ago? :P
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.
I do not remember sadly. I'm guessing it was a mistake though. 2,000 seems way too high to be intentional. Maybe leftover from debugging or something.
Description of changes:
While investigating a spike in integration test runtimes, I came across a single OCSP test that took 30 minutes, which appears intentional. The average runtime of the whole test suite is 65 seconds.
Dial back the wait time to 90 seconds and add a flaky mark with 3 retires, so if there is a hang, it gets cleaned up faster and retried. If there is more context or recommendation about a better timeout, let's bump it.
Testing:
How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?
Is this a refactor change? If so, how have you proved that the intended behavior hasn't changed?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.