Answer product-owner round 1: 1 🔴, 1 🟡 (1 misread); finish a chunk whose clean removed the worktree before failing, say its reason, and reword the help

This commit is contained in:
2026-12-03 13:07:27 +01:00
parent 0ea7c13673
commit d2bb2c56e1
5 changed files with 22 additions and 12 deletions
+10 -2
View File
@@ -767,7 +767,7 @@ class AChunkWhosePullRequestWaitsOnAGate(DoEpicTest):
def test_where_a_person_merges_it_parks_on_that_merge_and_works_again_once_merged(self) -> None:
self.repo_config.write_text(self.repo_config.read_text(encoding="utf-8") + 'merge = "human"\n', encoding="utf-8")
self.forges = [awaiting(), awaiting(decision="APPROVED"), awaiting(pulls=""), CLEANED]
self.forges = [awaiting(), awaiting(decision="APPROVED"), awaiting(pulls=""), awaiting(pulls=""), CLEANED]
fake = FakeEffects(streams=[self.worker(), self.worker()], claude=[judged("unfinished"), judged("finished")], git=UNREAD, windows=PARKED_WINDOW)
code, out, err, prompts = self.parked_run(fake)
self.assertEqual(code, 0, err)
@@ -948,8 +948,16 @@ class AChunkWhosePullRequestWaitsOnAGate(DoEpicTest):
self.assertEqual(main.landed_in("api", "ABC-12"), main.Landed.ON_EPIC_BRANCH)
self.assertEqual(main.landed_in(None, None), main.Landed.NOWHERE)
def test_a_merged_chunk_whose_clean_failed_after_removing_the_worktree_is_finished_and_the_reason_said(self) -> None:
self.forges = [awaiting(), awaiting(pulls="", clean_fails="its main checkout has uncommitted files"), CLEANED]
fake = FakeEffects(streams=[self.worker()], claude=[judged("finished")], git=UNREAD, windows=PARKED_WINDOW)
code, out, err, prompts = self.parked_run(fake)
self.assertEqual((code, len(prompts)), (0, 1), err)
self.assertIn("pull request merged: removed /code/api-ABC-20, but chunk-pr clean: its main checkout has uncommitted files\n", out)
self.assertFalse(self.file.exists())
def test_a_parked_chunk_whose_worktree_chunk_pr_keeps_goes_to_a_worker_as_before(self) -> None:
self.forges = [awaiting(), awaiting(pulls=""), CLEANED]
self.forges = [awaiting(), awaiting(pulls=""), awaiting(pulls=""), CLEANED]
fake = FakeEffects(streams=[self.worker(), self.worker()], claude=[judged("finished"), judged("finished")], git=UNREAD, windows=PARKED_WINDOW)
code, _, err, prompts = self.parked_run(fake)
self.assertEqual((code, len(prompts)), (0, 2), err)