From cef8b345e327452ed5c5bd101e58158a0452069d Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 25 Oct 2024 11:40:59 +0200 Subject: [PATCH] Increase timeout for 3.9 and 3.10 Refleaks runs (#545) These version have monolithic `test_asyncio` and some builders are hitting the 45min limit. Fix-up for c49ec218aa6abacb58103696d6c2aadfd7d10c9f --- master/custom/factories.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/master/custom/factories.py b/master/custom/factories.py index d4e703e7..23dd1228 100644 --- a/master/custom/factories.py +++ b/master/custom/factories.py @@ -72,6 +72,11 @@ def setup(self, parallel, branch, test_with_PTY=False, **kwargs): # Adjust the timeout for this worker self.test_timeout *= kwargs.get("timeout_factor", 1) + # In 3.9 and 3.10, test_asyncio wasn't split out, and refleaks tests + # need more time. + if branch in ("3.9", "3.10") and has_option("-R", self.testFlags): + self.test_timeout *= 2 + if self.build_out_of_tree: self.addStep( ShellCommand(