From 43809bcc0977c10be883b7f2c4bc58239bcf159a Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 18 Nov 2026 15:31:19 -0800 Subject: [PATCH] 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). --- scripts/matrix/matrix | 4 +++- scripts/matrix/test_matrix.py | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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)