From 2a3b3bc22dc122a679883a58fc323c72b53cbb70 Mon Sep 17 00:00:00 2001 From: Hasan Basbunar Date: Thu, 19 Nov 2026 00:03:02 +0100 Subject: [PATCH] no-download updates: the image, video and Unsloth lanes' tests read install.sh's side_install calls Since 77dcef9 (a lane beside the text lane waits for its Load) and 4594c52 (the code review's fixes in the installers), install.sh calls every side lane through side_install, but three test files still looked for the direct calls: tests/test_image_lane.py (2 failures, 1 error), tests/test_video_lane.py (1 error) and tests/test_install_unsloth_target_moves.py (2 failures), red on this branch since 17/11 and green up to v1.51.0 (checked commit by commit). The targeted tests of 17/11 left them out; Mistral Vibe found them while rebasing v1.53.0 on this branch, and its fix of the first two is taken here, with the Unsloth test's two calls. Co-Authored-By: Mistral Vibe Co-Authored-By: Claude Opus 5.5 --- tests/test_image_lane.py | 12 ++++++------ tests/test_install_unsloth_target_moves.py | 7 +++++-- tests/test_video_lane.py | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/tests/test_image_lane.py b/tests/test_image_lane.py index efd7983d..af90f6af 100644 --- a/tests/test_image_lane.py +++ b/tests/test_image_lane.py @@ -264,7 +264,7 @@ class TheInstaller(unittest.TestCase): for one installed on demand: neither runs the smoke test.""" text = (REPO / "install.sh").read_text() self.assertIn('IMAGE_MODE="$(side_mode image "$WITH_IMAGE")"', text) - self.assertIn('if "$REPO_DIR/install-image.sh" "$IMAGE_MODE"; then IMAGE_STATE=installed;', text) + self.assertIn('if side_install image "$IMAGE_MODE" "$WITH_IMAGE"; then IMAGE_STATE=installed;', text) self.assertIn("then echo --no-smoke; else echo --units-only; fi", text[text.index("side_mode(){"):]) self.assertIn('{ [ "$IMAGE_STATE" = installed ] && { [ "$IMAGE_FRESH" -eq 1 ] || [ "$WITH_IMAGE" -eq 1 ]; }; } && PROVE_IMAGE=1', text) @@ -665,13 +665,13 @@ class TheOneLinerReachesIt(unittest.TestCase): # call belongs to the image-is-the-boot-lane exit, which ends before step 9 on # purpose and is held by AnUpdateKeepsTheImageLaneAsTheBootLane. cockpit = self.text.index("10/10 Alzeo cockpit") - i = self.text.index('"$REPO_DIR/install-image.sh"', cockpit) + i = self.text.index('if side_install image "$IMAGE_MODE" "$WITH_IMAGE"; then IMAGE_STATE=installed;', cockpit) self.assertLess(cockpit, i) - tail = self.text[i:i + 300] + tail = self.text[i:i + 400] self.assertIn("IMAGE_STATE=failed", tail) self.assertIn("the rest goes on", tail) - self.assertEqual(self.text.count('"$REPO_DIR/install-image.sh"'), 3, - "the normal path prepares then proves it, and the image-boot path updates it") + self.assertEqual(self.text.count('"$REPO_DIR/install-image.sh"'), 1, + "only the proof runs the installer directly; the run's own calls go through side_install") def test_the_help_says_what_it_costs_before_someone_spends_it(self): self.assertIn("--no-image leave the Qwen-Image 2.1 lane out of this run (46 GB).", self.text) @@ -736,7 +736,7 @@ class TheBootLaneConvergenceHoldsEveryWay(unittest.TestCase): def test_the_image_boot_path_respects_a_left_out_image_lane(self): i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ]; then') early = self.text[i:self.text.index("exit 0", i)] - call = early.index('"$REPO_DIR/install-image.sh" "$(side_mode image') + call = early.index('side_install image "$(side_mode image') self.assertIn('if [ "$WANT_IMAGE" -eq 1 ]', early[:call]) def test_the_text_lane_used_before_images_is_the_one_brought_up_to_date(self): diff --git a/tests/test_install_unsloth_target_moves.py b/tests/test_install_unsloth_target_moves.py index e93cb56d..e74dabab 100644 --- a/tests/test_install_unsloth_target_moves.py +++ b/tests/test_install_unsloth_target_moves.py @@ -130,8 +130,11 @@ class TheClientsNameIt(unittest.TestCase): self.assertLess(START, i, "the move is decided before the clients' block reads the unit") def test_the_follow_is_called_after_each_successful_install_of_the_lane(self): - for call in ('if "$REPO_DIR/install-flash-unsloth.sh" "$(side_mode flash-unsloth "$WITH_FLASH_UNSLOTH")"; then\n unsloth_clients_follow', - 'then FLASH_UNSLOTH_STATE=installed; [ "$FLASH_UNSLOTH_MODE" = --units-only ] && FLASH_UNSLOTH_STATE=units; unsloth_clients_follow'): + # through side_install since v1.52 (an update waits for the lane's Load), at both of the lane's calls + for call in ('if side_install flash-unsloth "$(side_mode flash-unsloth "$WITH_FLASH_UNSLOTH")" "$WITH_FLASH_UNSLOTH"; then\n' + ' unsloth_clients_follow', + 'then FLASH_UNSLOTH_STATE=installed; { [ "$FLASH_UNSLOTH_MODE" = --units-only ] || side_waited flash-unsloth; } ' + '&& FLASH_UNSLOTH_STATE=units; unsloth_clients_follow'): with self.subTest(call=call[:40]): self.assertIn(call, TEXT) diff --git a/tests/test_video_lane.py b/tests/test_video_lane.py index 3fa6136e..d4c183c5 100644 --- a/tests/test_video_lane.py +++ b/tests/test_video_lane.py @@ -646,7 +646,7 @@ class TheBootLaneConvergence(unittest.TestCase): def test_that_path_respects_a_left_out_video_lane(self): i = self.text.index('if [ -z "$ATS_CANNOT" ] && [ "$IMAGE_BOOT" -eq 0 ] && [ "$VIDEO_BOOT" -eq 0 ] && [ "$KOLIBRI_BOOT" -eq 0 ] && [ "$NEMOTRON_BOOT" -eq 0 ] && [ "$NEMOTRON_SUPER_BOOT" -eq 0 ] && [ "$FLASH_LOCAL_BOOT" -eq 0 ] && [ "$ORNITH_122B_BOOT" -eq 0 ] && [ "$FLASH_UNSLOTH_BOOT" -eq 0 ] && [ "$IMAGE_H3_BOOT" -eq 0 ]; then') early = self.text[i:self.text.index("exit 0", i)] - call = early.index('"$REPO_DIR/install-video.sh" "$(side_mode video') + call = early.index('side_install video "$(side_mode video') self.assertIn('if [ "$WANT_VIDEO" -eq 1 ]', early[:call]) def test_an_explicit_model_choice_is_honoured(self):