matrix: the Windows build is sized from its measured runs, 10 GiB and 15 minutes
Its jobs reserved 16 GiB for 60 minutes. Measured on the mini: a peak of 6.7 GiB and 29 s, 4m02s and 3m45s a run (m3-max-48387, -48266, -48124); the longest cargo build of the 50 runs the matrix keeps took 6m45s (29 crates compiled). 10 GiB is 1.5 times the peak, and 15 minutes over twice the longest build, for a cold one. The minutes stay the floor of the measured sizing, and a run that wants more RAM still runs again with twice its room, up to the default. Verified: test_matrix (the sizing and retry tests at the new defaults).
This commit is contained in:
1 parent
d3bfe3815d
commit
43809bcc09
2 files changed
+6
-4
No files matched your search
@@ -78,7 +78,9 @@ FROZEN_CRATES = ("metal2vulkan-harness", "metal2vulkan-runtime")
|
||||
#: A node's Vulkan driver manifest by PCI vendor, and whether Mesa's device select picks the GPU.
|
||||
ICDS = {"1002": ("radeon", True), "10de": ("nvidia", False), "8086": ("intel", False)}
|
||||
#: (RAM GiB, minutes) of each job kind before a run of it was measured; the minutes stay its floor.
|
||||
DEFAULTS = {"build": (16, 30), "gpu": (4, 15), "time": (4, 20), "lavapipe": (32, 60), "lint": (16, 60), "winbuild": (16, 60),
|
||||
#: The Windows build's, from its measured runs on the mini: a peak of 6.7 GiB, 29 s to 4 min a run
|
||||
#: (m3-max-48387, -48266, -48124), and 6m45s the longest build of the 50 runs kept (29 crates).
|
||||
DEFAULTS = {"build": (16, 30), "gpu": (4, 15), "time": (4, 20), "lavapipe": (32, 60), "lint": (16, 60), "winbuild": (10, 15),
|
||||
"winrun": (4, 15), "wintime": (4, 20)}
|
||||
#: The awk filter between nextest and the job's log: every line up to the summary, then only the
|
||||
#: captured output of tests that did not pass, and the records of those that did.
|
||||
|
||||
@@ -39,7 +39,7 @@ class SizeTests(unittest.TestCase):
|
||||
def test_a_build_is_sized_from_whole_builds_alone(self):
|
||||
# Incremental builds peaked near 2 GiB: their peaks size nothing, so the default stands.
|
||||
incremental = [recorded(3, 2.1), recorded(3, 2.0), recorded(3, 2.2)]
|
||||
self.assertEqual(run_of({"winbuild@host": incremental}).size("winbuild", "host"), (16, 60))
|
||||
self.assertEqual(run_of({"winbuild@host": incremental}).size("winbuild", "host"), (10, 15))
|
||||
# A whole build that peaked at 9.5 GiB: 1.3 times it, rounded up.
|
||||
whole = incremental + [recorded(16, 9.5, full=True)]
|
||||
self.assertEqual(run_of({"winbuild@host": whole}).size("winbuild", "host")[0], 13)
|
||||
@@ -76,8 +76,8 @@ class RetryTests(unittest.TestCase):
|
||||
mock.patch.object(matrix, "log"):
|
||||
run.rdir = Path(rdir)
|
||||
code, _, _ = run.job("winbuild", "host", "true", "winbuild-leg", space="winbuild")
|
||||
# Sized from its whole build's 2 GiB peak, then doubled up to the default, 16 GiB.
|
||||
self.assertEqual(asked, [4, 8, 16])
|
||||
# Sized from its whole build's 2 GiB peak, then doubled up to the default, 10 GiB.
|
||||
self.assertEqual(asked, [4, 8, 10])
|
||||
self.assertEqual(code, 137)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user