Skip to content

Commit

Permalink
Reduce refleak timeout from 3h20 to 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Oct 17, 2024
1 parent b128897 commit d17ab84
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 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 = 60 * 60 # 1 hour


def step_timeout(timeout):
Expand Down Expand Up @@ -157,7 +160,7 @@ class UnixRefleakBuild(UnixBuild):
# -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 +177,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 +617,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 +645,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

0 comments on commit d17ab84

Please sign in to comment.