diff --git a/bin/deploy_release/patch.py b/bin/deploy_release/patch.py index 29528a2e..d8c874e9 100644 --- a/bin/deploy_release/patch.py +++ b/bin/deploy_release/patch.py @@ -224,7 +224,7 @@ def run_ci(worktree: pathlib.Path, ref: str, ci: Ci) -> Failure | None: return Failure("the patch holds no ci.sh to test it with") ran = ci(worktree) if isinstance(ran, Failure): - return Failure(f"{ran.reason}. Nothing is tagged: rerun once ci.sh passes.") + return Failure(f"{ran.reason}. Nothing is tagged: fix that and rerun.") if ran.code == 0: return None tail = "\n".join(ran.output.strip().splitlines()[-30:]) diff --git a/bin/deploy_release/test_deploy_release.py b/bin/deploy_release/test_deploy_release.py index f88ec4d9..5cf69ada 100644 --- a/bin/deploy_release/test_deploy_release.py +++ b/bin/deploy_release/test_deploy_release.py @@ -807,7 +807,7 @@ class PatchCi(unittest.TestCase): def test_a_ci_sh_that_could_not_run_or_was_stopped_tags_nothing_and_gives_the_runners_reason(self): (self.worktree / "ci.sh").write_text("exit 0\n") failed = patch.run_ci(self.worktree, "origin/main", lambda worktree: Failure("ci.sh still ran after 30 minutes and was stopped; /state/run-ci.log holds its output")) - self.assertEqual(failed, Failure("ci.sh still ran after 30 minutes and was stopped; /state/run-ci.log holds its output. Nothing is tagged: rerun once ci.sh passes.")) + self.assertEqual(failed, Failure("ci.sh still ran after 30 minutes and was stopped; /state/run-ci.log holds its output. Nothing is tagged: fix that and rerun.")) def test_refuses_a_patch_without_ci_sh_before_running_anything(self): self.assertEqual(patch.run_ci(self.worktree, "origin/main", lambda worktree: self.fail("ran")), Failure("the patch holds no ci.sh to test it with"))