-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 slowdown in tests waiting for server to close #8609
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8609 +/- ##
=======================================
Coverage 97.70% 97.70%
=======================================
Files 107 107
Lines 33438 33440 +2
Branches 3927 3927
=======================================
+ Hits 32672 32674 +2
Misses 555 555
Partials 211 211
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I thought the handler_cancellation=True stopped our tests from hanging. I also thought the only tests that take about 60s were the autobahn tests, which have never worked as they were not finished off. Maybe I missed another regression in my recent changes though.. |
I only noticed this because On master
This branch |
It was a regression in #8495, let me see if anything obvious stands out. I expected this change to only wait on less things, so unclear why it'd get slower. |
What do these changes do?
There were a few tests that had to wait 60s to teardown because we would wait for the server to close in places we were not testing the server close logic. This added a few minutes to the test runs (18 minutes vs 5 minutes). Set the timeout to the monotonic clock resolution to reduce test time.
Are there changes in behavior for the user?
no
Is it a substantial burden for the maintainers to support this?
no