From 7671b7958974ccf4d4fd931d8f056e0eb3e46b62 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Aug 2026 17:00:53 +0000 Subject: [PATCH] test: accept the parallel setup sub-make in the lint slot-lock assertion The slot-lock test pinned lint-install and lint-fetch-base as declared prerequisites of lint-inner. This branch runs them from lint-inner's recipe instead, under their own -j 2 sub-make, so the pair overlaps while lint-checks keeps its own width. Assert the setup is reached from lint-inner either way, which is what the test is actually for: nothing runs before the slot is held. --- tests/test_litellm/test_gate_slot_lock.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_litellm/test_gate_slot_lock.py b/tests/test_litellm/test_gate_slot_lock.py index 17fa8547ce7..77bfcae4287 100644 --- a/tests/test_litellm/test_gate_slot_lock.py +++ b/tests/test_litellm/test_gate_slot_lock.py @@ -328,6 +328,7 @@ def test_direct_make_lint_takes_a_slot_before_any_setup() -> None: lint_prerequisites, lint_recipe = _make_rule("lint") assert lint_prerequisites == [] assert any("$(GATE_SLOT_LOCK)" in line for line in lint_recipe) - inner_prerequisites, _ = _make_rule("lint-inner") - assert "lint-install" in inner_prerequisites - assert "lint-fetch-base" in inner_prerequisites + inner_prerequisites, inner_recipe = _make_rule("lint-inner") + inner_work = (*inner_prerequisites, *inner_recipe) + assert any("lint-install" in item for item in inner_work) + assert any("lint-fetch-base" in item for item in inner_work)