Skip to content

Commit 8889c1e

Browse files
authored
Prioritize bigmem tests on bigmem workers (#589)
This ensures those tests run first, shortening the entire run. The test set to prioritize is a bit different between Unix and Windows, this is based on actual observed runtimes of those tests. I took tests that take >5 minutes to execute. Unrelatedly, mark ambv-bb-win11 as unavailable between 7:20am UTC - 9:20am UTC so that it can restart in peace without interrupting running builds.
1 parent 2d24cdb commit 8889c1e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

master/custom/factories.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,10 @@ class UnixBuildWithoutDocStrings(UnixBuild):
266266

267267
class UnixBigmemBuild(UnixBuild):
268268
buildersuffix = ".bigmem"
269-
testFlags = ["-M60g", "-j4", "-uall,extralargefile"]
269+
testFlags = [
270+
"-M60g", "-j4", "-uall,extralargefile",
271+
"--prioritize=test_bigmem,test_lzma,test_bz2,test_re,test_array"
272+
]
270273
test_timeout = TEST_TIMEOUT * 4
271274
factory_tags = ["bigmem"]
272275

@@ -650,7 +653,10 @@ class Windows64Build(BaseWindowsBuild):
650653
class Windows64BigmemBuild(BaseWindowsBuild):
651654
buildersuffix = ".bigmem"
652655
buildFlags = ["-p", "x64"]
653-
testFlags = ["-p", "x64", "-M33g", "-uall,extralargefile"]
656+
testFlags = [
657+
"-p", "x64", "-M33g", "-uall,extralargefile",
658+
"--prioritize=test_bigmem,test_lzma,test_bz2,test_array,test_hashlib,test_zlib"
659+
]
654660
test_timeout = TEST_TIMEOUT * 4
655661
cleanFlags = ["-p", "x64"]
656662
factory_tags = ["win64", "bigmem"]

master/master.cfg

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,16 @@ for branch_num, (git_url, branchname, git_branch) in enumerate(git_branches):
320320
locks=[cpulock.access("counting")],
321321
)
322322

323-
# This worker runs pyperformance at 12am. If a build is scheduled between
324-
# 10pm and 2am, it will be delayed at 2am.
323+
# This worker runs pyperformance at 12am UTC. If a build is scheduled between
324+
# 10pm UTC and 2am UTC, it will be delayed to 2am UTC.
325325
if worker_name == "diegorusso-aarch64-bigmem":
326326
builder.canStartBuild = no_builds_between("22:00", "2:00")
327+
328+
# This worker restarts every day at 9am UTC to work around issues stemming from
329+
# failing bigmem tests trashing disk space and fragmenting RAM. Builds scheduled
330+
# between 07:20am - 9:20am UTC will be delayed to 9:20am UTC.
331+
if worker_name == "ambv-bb-win11":
332+
builder.canStartBuild = no_builds_between("7:20", "9:20")
327333

328334
c["builders"].append(builder)
329335

0 commit comments

Comments
 (0)