diff --git a/scripts/matrix/matrix b/scripts/matrix/matrix index 7be21f368..c92829914 100755 --- a/scripts/matrix/matrix +++ b/scripts/matrix/matrix @@ -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. diff --git a/scripts/matrix/test_matrix.py b/scripts/matrix/test_matrix.py index 53b9756fe..f4c1fa06d 100644 --- a/scripts/matrix/test_matrix.py +++ b/scripts/matrix/test_matrix.py @@ -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)