8000 Reduce refleak timeout from 3h20 to 45min (#543) · python/buildmaster-config@c49ec21 · GitHub
[go: up one dir, main page]

Skip to content

Commit c49ec21

Browse files
authored
Reduce refleak timeout from 3h20 to 45min (#543)
1 parent b128897 commit c49ec21

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

master/custom/factories.py

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
# This (default) timeout is for each individual test file.
2424
# It is a bit more than the default faulthandler timeout in regrtest.py
2525
# (the latter isn't easily changed under Windows).
26-
TEST_TIMEOUT = 20 * 60
26+
TEST_TIMEOUT = 20 * 60 # 20 minutes
27+
28+
# Refleak timeout (-R 3:3) for each individual test file.
29+
REFLEAK_TIMEOUT = 45 * 60 # 45 minutes
2730

2831

2932
def step_timeout(timeout):
@@ -154,10 +157,7 @@ class UnixVintageParserBuild(UnixBuild):
154157
class UnixRefleakBuild(UnixBuild):
155158
buildersuffix = ".refleak"
156159
testFlags = ["-R", "3:3", "-u-cpu"]
157-
# -R 3:3 is supposed to only require timeout x 6, but in practice,
158-
# it's much more slower. Use timeout x 10 to prevent timeout
159-
# caused by --huntrleaks.
160-
test_timeout = TEST_TIMEOUT * 10
160+
test_timeout = REFLEAK_TIMEOUT
161161
factory_tags = ["refleak"]
162162

163163

@@ -174,10 +174,7 @@ class UnixNoGilRefleakBuild(UnixBuild):
174174
buildersuffix = ".refleak.nogil"
175175
configureFlags = ["--with-pydebug", "--disable-gil"]
176176
testFlags = ["-R", "3:3", "-u-cpu"]
177-
# -R 3:3 is supposed to only require timeout x 6, but in practice,
178-
# it's much more slower. Use timeout x 10 to prevent timeout
179-
# caused by --huntrleaks.
180-
test_timeout = TEST_TIMEOUT * 10
177+
test_timeout = REFLEAK_TIMEOUT
181178
factory_tags = ["nogil", "refleak"]
182179

183180

@@ -617,10 +614,7 @@ class WindowsBuild(BaseWindowsBuild):
617614
class WindowsRefleakBuild(BaseWindowsBuild):
618615
buildersuffix = ".x32.refleak"
619616
testFlags = ["-j2", "-R", "3:3", "-u-cpu"]
620-
# -R 3:3 is supposed to only require timeout x 6, but in practice,
621-
# it's much more slower. Use timeout x 10 to prevent timeout
622-
# caused by --huntrleaks.
623-
test_timeout = TEST_TIMEOUT * 10
617+
test_timeout = REFLEAK_TIMEOUT
624618
factory_tags = ["win32", "refleak"]
625619

626620

@@ -648,10 +642,7 @@ class Windows64BigmemBuild(BaseWindowsBuild):
648642
class Windows64RefleakBuild(Windows64Build):
649643
buildersuffix = ".refleak"
650644
testFlags = ["-p", "x64", *WindowsRefleakBuild.testFlags]
651-
# -R 3:3 is supposed to only require timeout x 6, but in practice,
652-
# it's much more slower. Use timeout x 10 to prevent timeout
653-
# caused by --huntrleaks.
654-
test_timeout = TEST_TIMEOUT * 10
645+
test_timeout = REFLEAK_TIMEOUT
655646
factory_tags = ["win64", "refleak"]
656647

657648

0 commit comments

Comments
 (0)
0