Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 8 additions & 17 deletions master/custom/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
# This (default) timeout is for each individual test file.
# It is a bit more than the default faulthandler timeout in regrtest.py
# (the latter isn't easily changed under Windows).
TEST_TIMEOUT = 20 * 60
TEST_TIMEOUT = 20 * 60 # 20 minutes

# Refleak timeout (-R 3:3) for each individual test file.
REFLEAK_TIMEOUT = 45 * 60 # 45 minutes


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


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


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


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


Expand Down
Loading