Answer product-owner round 2: 0 🔴, 0 🟡 (0 misread); approved with one nit: a patch cut's ci.sh failure says to fix the reason and rerun, which fits a ci.sh that never started
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-27 14:47:59 +01:00
parent 37a87eb15e
commit 66aa74097f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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:])
+1 -1
View File
@@ -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"))