diff --git a/.github/workflows/provider-plan.yml b/.github/workflows/provider-plan.yml index 3c56ff8691..0ecb15571c 100644 --- a/.github/workflows/provider-plan.yml +++ b/.github/workflows/provider-plan.yml @@ -160,11 +160,12 @@ jobs: # cold build is 5 to 10% slower. The sampled memory of each job is in # docs/developer/build.md (Job sizes). # - # While sizes are off, the 9 blocking test jobs ask without a size, as - # before. The build jobs and Cluster Release Build Checks are `required`: - # while sizes are off they keep Blacksmith without asking. The lanes are in + # While sizes are off, every lane asks without a size and gets the + # approval's pinned macOS size (12 vCPU / 32 GiB on 2026-11-05, the class of + # the Blacksmith fallback). If the approval pins a smaller size, the build + # jobs and Cluster Release Build Checks get that size too. The lanes are in # the order the DARKBLOOM_MACOS_LANES cap keeps them: the critical-path test - # shards first, then the `required` jobs. + # shards first, then the build jobs and Cluster Release Build Checks. route: needs: [tested, components] if: ${{ !cancelled() }} @@ -179,6 +180,6 @@ jobs: test-provider-2 macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.provider == 'true' && 1 || 0 }} 4x24 test-cluster-1 macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} 4x16 test-provider-1 macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.provider == 'true' && 1 || 0 }} 4x16 - build-cluster macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.cluster == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_cluster == 'true')) && 1 || 0 }} 8x16 required - build-provider macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.provider == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_provider == 'true')) && 1 || 0 }} 12x32 required - cluster-release-checks macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} 8x16 required + build-cluster macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.cluster == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_cluster == 'true')) && 1 || 0 }} 8x16 + build-provider macos_arm64 blacksmith-12vcpu-macos-27 ${{ (needs.components.outputs.provider == 'true' || (github.event_name == 'push' && needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_provider == 'true')) && 1 || 0 }} 12x32 + cluster-release-checks macos_arm64 blacksmith-12vcpu-macos-27 ${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} 8x16 diff --git a/.github/workflows/provider-tests.yml b/.github/workflows/provider-tests.yml index 506e78667e..ff3f6eb7f7 100644 --- a/.github/workflows/provider-tests.yml +++ b/.github/workflows/provider-tests.yml @@ -53,8 +53,9 @@ jobs: # soon as their products are up. A push whose tree a pull request run # already tested runs no test job; the build job then builds only the # components the push changed, to refresh the branch's caches. The build - # jobs need a large Mac: their lanes ask only with their size, while job - # sizes are on; otherwise they run on Blacksmith (provider-plan.yml). + # jobs need a large Mac: while job sizes are on, their lanes ask with + # their size; while sizes are off, they ask without one and get the + # approval's pinned macOS size (provider-plan.yml). name: Build cluster test products if: ${{ inputs.cluster == 'true' || (github.event_name == 'push' && inputs.skip == 'true' && inputs.changed_cluster == 'true') }} runs-on: ${{ fromJSON(inputs.routes)['build-cluster'] }} @@ -858,9 +859,9 @@ jobs: # their own: no test job waits for them. The build is reused across runs: # SwiftPM rebuilds what changed, and source timestamps are restored only # for files whose contents match the cached build's - # (scripts/provider-release-cache.py). Its lane asks only with its size, - # while job sizes are on, as the build jobs' lanes do; otherwise it runs - # on Blacksmith (provider-plan.yml). + # (scripts/provider-release-cache.py). Its lane asks as the build jobs' + # lanes do: with its size while job sizes are on, without one otherwise + # (provider-plan.yml). name: Cluster Release Build Checks if: ${{ inputs.cluster == 'true' }} runs-on: ${{ fromJSON(inputs.routes)['cluster-release-checks'] }} diff --git a/changelog.d/ci-build-lanes-routed.md b/changelog.d/ci-build-lanes-routed.md new file mode 100644 index 0000000000..a247fe97af --- /dev/null +++ b/changelog.d/ci-build-lanes-routed.md @@ -0,0 +1,5 @@ +### Provider CI: build lanes route to Darkbloom while job sizes are off + +- Build cluster test products, Build provider test products and Cluster Release Build Checks no longer keep `blacksmith-12vcpu-macos-27` without asking while `DARKBLOOM_JOB_SHAPES` is off. Their lanes `build-cluster`, `build-provider` and `cluster-release-checks` now ask without a size, as the test lanes do, and get the approval's pinned macOS size (12 vCPU / 32 GiB on 2026-11-05). If the approval pins a smaller macOS size, they get that size. +- While sizes are on, they still ask for 8x16 (build-cluster, cluster-release-checks) and 12x32 (build-provider). +- A run that tests every component asks for 12 macOS jobs. diff --git a/docs/developer/build.md b/docs/developer/build.md index 3d6321f8dc..8fac3fa749 100644 --- a/docs/developer/build.md +++ b/docs/developer/build.md @@ -376,10 +376,10 @@ one. It is the only CI job with `issues: write`. Cluster GPU Tests never fail their jobs, so they never report there. Close the issue when `dev` passes again; the next failure opens a new one. -A full run takes about 13 minutes and 110 macOS job-minutes: about 31 on -Blacksmith (the build jobs, Cluster Release Build Checks and Cluster GPU Tests) -and about 79 on routed Macs (the 9 blocking test shards, which fall back to -Blacksmith when the plane grants no Mac). +A full run takes about 13 minutes and 110 macOS job-minutes: about 31 for the +build jobs, Cluster Release Build Checks and Cluster GPU Tests, and about 79 +for the 9 blocking test shards. Every macOS job but Cluster GPU Tests is +routed, and falls back to Blacksmith when the plane grants no Mac. ### Build Once @@ -387,14 +387,14 @@ Each lane builds its debug test products once, on a large runner, and its test jobs run them with `swift test --skip-build`. No test job compiles the provider or the cluster packages. Every job below but `test-cluster-gpu` reads its runner from the route ([CI Runner Routing](#ci-runner-routing)). Its -fallback is `blacksmith-12vcpu-macos-27`. While job sizes are off, a -`required` job keeps its fallback without asking ([Job sizes](#job-sizes)). +fallback is `blacksmith-12vcpu-macos-27`. While job sizes are off, every job +asks without a size ([Job sizes](#job-sizes)). | Job | Runner | Needs | Does | |---|---|---|---| -| `build-cluster` (Build cluster test products) | routed, `required` | - | Builds the cluster lane (`.github/actions/provider-ci-build`), uploads `cluster-test-products` | -| `build-provider` (Build provider test products) | routed, `required` | - | Builds the provider lane, uploads `provider-test-products` | -| `cluster-release-checks` (Cluster Release Build Checks) | routed, `required` | - | Compiles the release build of the worker capability and prefill schedule checks, and runs them | +| `build-cluster` (Build cluster test products) | routed | - | Builds the cluster lane (`.github/actions/provider-ci-build`), uploads `cluster-test-products` | +| `build-provider` (Build provider test products) | routed | - | Builds the provider lane, uploads `provider-test-products` | +| `cluster-release-checks` (Cluster Release Build Checks) | routed | - | Compiles the release build of the worker capability and prefill schedule checks, and runs them | | `test-provider`, shards 1 and 2 | routed | `build-provider` | The provider selections, Prompt Parity, the native gates, the audit and coverage | | `test-cluster`, shards 1 to 5 | routed | `build-cluster` | The blocking cluster selections | | `test-cluster-gpu`, shards 1 to 3 | `blacksmith-12vcpu-macos-27`, not routed | `build-cluster` | The non-blocking cluster GPU selections | @@ -566,9 +566,9 @@ gate run on `ubuntu-24.04`. Cluster GPU Tests run on `blacksmith-12vcpu-macos-27 not routed ([Job sizes](#job-sizes)). A lane without a size gets the approval's pinned image size for its profile (one for macOS, one for Linux). The macOS one measured 12 vCPU / 32 GiB on 2026-11-05 (run 42105290034, -attempt 1); it is not a fixed default. The build jobs and Cluster Release -Build Checks ran on Blacksmith before sizes, so they ask only with their size -([Job sizes](#job-sizes)). +attempt 1), the class of the Blacksmith 12-vCPU fallback; it is not a fixed +default. While sizes are off, the build jobs and Cluster Release Build Checks +get this size too ([Job sizes](#job-sizes)). Jobs on Darkbloom Sandboxes use GitHub's Actions cache, not Blacksmith's colocated cache, so their first runs start without cached build products. @@ -586,14 +586,18 @@ repository variable `DARKBLOOM_JOB_SHAPES` is exactly `on`. While it is off: - The request has no size. It is byte for byte the request of a lane table without sizes. -- The 9 blocking test jobs ask without a size, as before sizes. Their runners - do not change. +- Every lane asks without a size and gets the approval's pinned macOS size + ([CI Runner Routing](#ci-runner-routing)): the 9 blocking test jobs, the + build jobs and Cluster Release Build Checks. +- Risk: the build jobs need a large Mac. If the approval pins a smaller macOS + size, they get that smaller size, and a cold build takes longer. - A lane marked `required` keeps its fallback without asking. It takes no - place under the `DARKBLOOM_MACOS_LANES` cap. + place under the `DARKBLOOM_MACOS_LANES` cap. No CI lane is marked + `required` now. The lane table in the `route` job of `provider-plan.yml` is the one place that names each job's lane and size. The lanes are in cap order: the critical-path -test shards first, then the `required` jobs. +test shards first, then the build jobs and Cluster Release Build Checks. Each size is the smallest signed size (4x16, 4x24, 8x16, 12x32) that holds the job's used memory times 1.25, on which the job takes at most 5% longer than on @@ -616,13 +620,12 @@ and memory pressure stayed normal. | `test-provider-2` | 1 | 4x24 | 16.17 in one sample, about 9 otherwise | asks without a size | | `test-cluster-1` | 1 | 4x16 | 11.97 | asks without a size | | `test-provider-1` | 1 | 4x16 | 11.03 | asks without a size | -| `build-cluster` | 1 | 8x16 | 10.91; a cold build takes 5 to 10% longer on 8 vCPUs | Blacksmith, not asked | -| `build-provider` | 1 | 12x32 | 17.50; 8x24 is not signed, and a cold build takes 20% longer on 8 vCPUs | Blacksmith, not asked | -| `cluster-release-checks` | 1 | 8x16 | 9.65 with a reused build; a cold release compile (run 42041608780: 11.33 GiB, 11.4 busy vCPUs at p95 of 12) takes 26% longer on 4 vCPUs and 5.5% on 8 | Blacksmith, not asked | +| `build-cluster` | 1 | 8x16 | 10.91; a cold build takes 5 to 10% longer on 8 vCPUs | asks without a size | +| `build-provider` | 1 | 12x32 | 17.50; 8x24 is not signed, and a cold build takes 20% longer on 8 vCPUs | asks without a size | +| `cluster-release-checks` | 1 | 8x16 | 9.65 with a reused build; a cold release compile (run 42041608780: 11.33 GiB, 11.4 busy vCPUs at p95 of 12) takes 26% longer on 4 vCPUs and 5.5% on 8 | asks without a size | -A run that tests every component asks for 12 macOS jobs while sizes are on, -and 9 while they are off. The three Cluster GPU Tests shards are not routed: -they run on `blacksmith-12vcpu-macos-27` (12 vCPU, 48 GiB). Shard 2 uses +A run that tests every component asks for 12 macOS jobs, while sizes are on +or off. The three Cluster GPU Tests shards are not routed: they run on `blacksmith-12vcpu-macos-27` (12 vCPU, 48 GiB). Shard 2 uses 41.99 GiB, which no signed size holds, and one lane carries one size for every shard (shard 1 used 17.40 GiB when it ran the whole real-geometry rows check; shards 1 and 3 each run half of it now). diff --git a/docs/developer/test.md b/docs/developer/test.md index cb261d5bc4..d74338e652 100644 --- a/docs/developer/test.md +++ b/docs/developer/test.md @@ -2054,7 +2054,8 @@ grants, HTTP errors, the single retry, timeouts, untrusted or plain-HTTP planes and hostile reply text. It covers [job sizes](build.md#job-sizes) both ways: while `DARKBLOOM_JOB_SHAPES` is not exactly `on`, CI's request is byte for byte the request without sizes; while it is on, each lane sends its size and takes -only the labels of that size. It also covers bad sizes and the macOS cap order. +only the labels of that size. It also covers bad sizes, the macOS cap order and +a `required` lane, which keeps its fallback without asking while sizes are off. It also pins each routed job's lanes (one per provider or cluster shard, matching the job's matrix), size, fallback, timeout and read-only permissions, and keeps release workflows and Cluster GPU Tests on literal Blacksmith diff --git a/scripts/test-darkbloom-route.py b/scripts/test-darkbloom-route.py index 6f41b017aa..5f0e12cec9 100755 --- a/scripts/test-darkbloom-route.py +++ b/scripts/test-darkbloom-route.py @@ -92,11 +92,11 @@ def built(component): # Every routed macOS job of CI: lane -> (count, size, required), each size # from the job's sampled memory (provider-plan.yml). The 9 blocking test jobs -# come first, critical path first; while sizes are off they ask without a -# size. Two shards share each of the lanes test-cluster-2 (runtime shards 2 -# and 3), test-cluster-3 (runtime shards 4 and 5) and test-cluster-focused, -# lanes the approval names. Then the build jobs and the release build checks, -# `required`: while sizes are off they keep Blacksmith without asking. +# come first, critical path first. Two shards share each of the lanes +# test-cluster-2 (runtime shards 2 and 3), test-cluster-3 (runtime shards 4 +# and 5) and test-cluster-focused, lanes the approval names. Then the build +# jobs and the release build checks. No lane is `required`: while sizes are +# off, every lane asks without a size. PLAN_LANES = { "test-cluster-2": (requested("cluster", 2), "12x32", False), "test-cluster-3": (requested("cluster", 2), "4x24", False), @@ -104,18 +104,21 @@ def built(component): "test-provider-2": (requested("provider"), "4x24", False), "test-cluster-1": (requested("cluster"), "4x16", False), "test-provider-1": (requested("provider"), "4x16", False), - "build-cluster": (built("cluster"), "8x16", True), - "build-provider": (built("provider"), "12x32", True), - "cluster-release-checks": (requested("cluster"), "8x16", True), + "build-cluster": (built("cluster"), "8x16", False), + "build-provider": (built("provider"), "12x32", False), + "cluster-release-checks": (requested("cluster"), "8x16", False), } -# The request CI sent before sizes, with every lane's jobs running: the request -# must stay byte for byte this one while sizes are off. +# The request CI sends while sizes are off, with every lane's jobs running: byte +# for byte the request of the lane table without sizes. UNSIZED_PLAN_REQUEST = [{"lane": "test-cluster-2", "profile": "macos_arm64", "count": 2}, {"lane": "test-cluster-3", "profile": "macos_arm64", "count": 2}, {"lane": "test-cluster-focused", "profile": "macos_arm64", "count": 2}, {"lane": "test-provider-2", "profile": "macos_arm64", "count": 1}, {"lane": "test-cluster-1", "profile": "macos_arm64", "count": 1}, - {"lane": "test-provider-1", "profile": "macos_arm64", "count": 1}] + {"lane": "test-provider-1", "profile": "macos_arm64", "count": 1}, + {"lane": "build-cluster", "profile": "macos_arm64", "count": 1}, + {"lane": "build-provider", "profile": "macos_arm64", "count": 1}, + {"lane": "cluster-release-checks", "profile": "macos_arm64", "count": 1}] # Cluster GPU Tests are not routed: shard 2 uses more memory than any signed # size, and one lane would carry one size for every shard. UNROUTED_MACOS = {("provider-tests.yml", "test-cluster-gpu")} @@ -594,9 +597,8 @@ def test_invalid_lane_configuration_fails_before_any_request(self): def test_job_sizes_are_sent_only_when_the_switch_is_exactly_on(self): lanes = plan_lanes_text() - # The lane table before sizes: the test lanes alone, without a size. - unsized = "".join(re.sub(r" [0-9]+x[0-9]+$", "", line) + "\n" - for line in lanes.splitlines() if line and not line.endswith(" required")) + # The lane table without sizes. + unsized = "".join(re.sub(r" [0-9]+x[0-9]+$", "", line) + "\n" for line in lanes.splitlines() if line) expected = (json.dumps({"repository": "Layr-Labs/d-inference", "run_id": 40408691758, "run_attempt": 2, "lanes": UNSIZED_PLAN_REQUEST}, separators=(",", ":")) + "\n").encode() # The plane offers every lane its unsized labels; a lane takes only what it asked for. @@ -616,8 +618,8 @@ def test_job_sizes_are_sent_only_when_the_switch_is_exactly_on(self): summary) self.assertIn("| `test-cluster-2` | macos_arm64 | 2 | - | `self-hosted, macOS, ARM64, " "darkbloom-macos-arm64` | darkbloom: granted |", summary) - self.assertIn("| `cluster-release-checks` | macos_arm64 | 1 | - | `blacksmith-12vcpu-macos-27` | " - "fallback: needs its size, and job sizes are off (DARKBLOOM_JOB_SHAPES) |", summary) + self.assertIn("| `cluster-release-checks` | macos_arm64 | 1 | - | `self-hosted, macOS, ARM64, " + "darkbloom-macos-arm64` | darkbloom: granted |", summary) # Byte for byte the request of the table without sizes, for every value but `on`. self.assertEqual([request["body"] for request in plane.requests], [expected] * (1 + len(values))) @@ -673,14 +675,28 @@ def grant(labels): def test_macos_cap_keeps_the_test_lanes_first_with_sizes_on_or_off(self): lanes = plan_lanes_text() - tests = [lane for lane, (_, _, required) in PLAN_LANES.items() if not required] + tests = [lane for lane in PLAN_LANES if lane.startswith("test-")] cases = (("on", "", list(PLAN_LANES)), ("on", "12", list(PLAN_LANES)), ("on", "11", [*tests, "build-cluster", "build-provider"]), ("on", "10", [*tests, "build-cluster"]), ("on", "9", tests), # A lane that does not fit is passed over; a later, smaller one can still fit. ("on", "3", ["test-cluster-2", "test-provider-2"]), + ("", "", list(PLAN_LANES)), ("", "11", [*tests, "build-cluster", "build-provider"]), + ("", "9", tests)) + self.assert_cap_cases(lanes, cases, held=()) + + def test_a_required_lane_keeps_its_fallback_while_sizes_are_off(self): + # No CI lane is `required`; the build lanes are marked so here. + builds = [lane for lane in PLAN_LANES if not lane.startswith("test-")] + tests = [lane for lane in PLAN_LANES if lane.startswith("test-")] + lanes = "".join(line.rstrip() + (" required" if line.split()[0] in builds else "") + "\n" + for line in plan_lanes_text().splitlines() if line) + cases = (("on", "", list(PLAN_LANES)), ("on", "11", [*tests, "build-cluster", "build-provider"]), # Held lanes take no place under the cap. ("", "", tests), ("", "9", tests)) + self.assert_cap_cases(lanes, cases, held=builds) + + def assert_cap_cases(self, lanes, cases, held): for shapes, cap, asked in cases: with self.subTest(shapes=shapes, cap=cap), self.plane() as plane: result, routes, summary = self.route(plane.url, lanes=lanes, JOB_SHAPES=shapes, MACOS_LANES=cap) @@ -692,10 +708,10 @@ def test_macos_cap_keeps_the_test_lanes_first_with_sizes_on_or_off(self): continue self.assertEqual(routes[lane], MACOS_FALLBACK) row = next(line for line in summary.splitlines() if line.startswith(f"| `{lane}` |")) - self.assertTrue(row.endswith("| fallback: over the macOS lane cap (DARKBLOOM_MACOS_LANES) |" - if shapes == "on" else - "| fallback: needs its size, and job sizes are off " - "(DARKBLOOM_JOB_SHAPES) |"), row) + self.assertTrue(row.endswith("| fallback: needs its size, and job sizes are off " + "(DARKBLOOM_JOB_SHAPES) |" + if shapes != "on" and lane in held else + "| fallback: over the macOS lane cap (DARKBLOOM_MACOS_LANES) |"), row) def test_plane_text_cannot_inject_workflow_commands_or_markdown(self): hostile = "busy\n::error::forged | [link](https://example.invalid) `code`" @@ -911,14 +927,15 @@ def test_ci_routes_every_job_that_runs_code_through_one_plan(self): def test_ci_sizes_every_routed_macos_job_and_asks_for_the_test_lanes_first(self): sizes = {size for _, size, _ in PLAN_LANES.values()} self.assertLessEqual(sizes, VALID_SIZES) - # 12 macOS jobs ask while sizes are on: the 9 blocking test jobs, which - # ask without a size while sizes are off, then the 3 `required` jobs. - unsized = [lane for lane, (_, _, required) in PLAN_LANES.items() if not required] + # 12 macOS jobs ask, with sizes on or off: the 9 blocking test jobs, + # then the 2 build jobs and the release build checks. No lane is + # `required`, so none keeps Blacksmith while sizes are off. + tests = [lane for lane in PLAN_LANES if lane.startswith("test-")] + self.assertFalse(any(required for _, _, required in PLAN_LANES.values())) self.assertEqual(sum(lane_jobs(count) for count, _, _ in PLAN_LANES.values()), 12) - self.assertEqual(sum(lane_jobs(PLAN_LANES[lane][0]) for lane in unsized), 9) - self.assertTrue(all(lane.startswith("test-") for lane in unsized)) - # The cap keeps lanes in table order: every test lane comes before the `required` lanes. - self.assertEqual(list(PLAN_LANES)[:len(unsized)], unsized) + self.assertEqual(sum(lane_jobs(PLAN_LANES[lane][0]) for lane in tests), 9) + # The cap keeps lanes in table order: every test lane comes before the build lanes. + self.assertEqual(list(PLAN_LANES)[:len(tests)], tests) def test_release_and_credentialed_workflows_keep_literal_runners(self): for filename in UNROUTED: diff --git a/scripts/test-provider-ci-workflow.py b/scripts/test-provider-ci-workflow.py index 419d3ff61d..df795ff554 100644 --- a/scripts/test-provider-ci-workflow.py +++ b/scripts/test-provider-ci-workflow.py @@ -717,8 +717,8 @@ def test_cluster_metadata_runners_run_every_runner_and_fail_on_any(self): self.assertIn(" name: Cluster Focused Checks (shard ${{ matrix.shard }})\n", focused) self.assertIn(" name: Cluster Release Build Checks\n", release) # Both shards read the lane the approval names, requested for 2 jobs. - # The release build checks ask only with their size, while job sizes - # are on. + # The release build checks ask with their size while job sizes are on, + # and without one while they are off. self.assertIn(" runs-on: ${{ fromJSON(inputs.routes)['test-cluster-focused'] }}\n", focused) self.assertIn(" matrix:\n shard: [1, 2]\n", focused) self.assertRegex(self.jobs["route"], re.escape( @@ -727,7 +727,7 @@ def test_cluster_metadata_runners_run_every_runner_and_fail_on_any(self): self.assertIn(" runs-on: ${{ fromJSON(inputs.routes)['cluster-release-checks'] }}\n", release) self.assertRegex(self.jobs["route"], re.escape( f" cluster-release-checks macos_arm64 {BLACKSMITH_MAC} " - "${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} ") + LANE_SIZE + r" required\n") + "${{ needs.components.outputs.cluster == 'true' && 1 || 0 }} ") + LANE_SIZE + r"\n") for job in (focused, release): self.assertIn(" if: ${{ inputs.cluster == 'true' }}\n", job) self.assertNotRegex(job, r"(?m)^ needs:") @@ -808,10 +808,10 @@ def test_cluster_metadata_runners_run_every_runner_and_fail_on_any(self): self.assertIn('--jobs "$task_jobs"', support) def test_each_lane_builds_once_and_its_test_jobs_run_its_products(self): - # Each lane builds once, on a large runner (its lane asks only with its - # size, while job sizes are on), and uploads its products only when its - # tests run; a push of a tested tree builds the components it changed - # only to refresh the caches (David, 2026-11-05). + # Each lane builds once, on a large runner (its lane asks with its size + # while job sizes are on, without one otherwise), and uploads its + # products only when its tests run; a push of a tested tree builds the + # components it changed only to refresh the caches (David, 2026-11-05). self.assertNotIn("refresh-caches", self.jobs) for job_id, lane in BUILD_JOBS.items(): with self.subTest(job=job_id): @@ -825,7 +825,7 @@ def test_each_lane_builds_once_and_its_test_jobs_run_its_products(self): f" {job_id} macos_arm64 {BLACKSMITH_MAC} " f"${{{{ (needs.components.outputs.{lane} == 'true' || (github.event_name == 'push' && " f"needs.tested.outputs.skip == 'true' && needs.components.outputs.changed_{lane} == 'true'))" - " && 1 || 0 }} ") + LANE_SIZE + r" required\n") + " && 1 || 0 }} ") + LANE_SIZE + r"\n") self.assertNotRegex(job, r"(?m)^ (needs|strategy):") steps = step_blocks(job) builds = [step for step in steps if field(step, "uses") == BUILD_ACTION]