Answer product-owner round 2: 0 🔴, 1 🟡 (0 misread); exit 0 on awaited merges, so the finished chunk's window closes and the next run reads the plan

This commit is contained in:
Lilleman
2026-11-19 23:30:30 +01:00
parent 1a23aa05b0
commit 356ae263e1
6 changed files with 34 additions and 19 deletions
+2 -2
View File
@@ -61,9 +61,9 @@ class ChunkWindows(unittest.TestCase):
windows = [tmux.Listed(f"item-{n}", "", False) for n in (1, 2, 3)]
self.assertEqual(chunk_windows.room_of(windows, "item-1", False, 2).left, 0)
def test_stops_on_the_pull_requests_where_every_item_left_awaits_a_persons_merge_and_nothing_runs(self):
def test_starts_no_chunk_without_an_item_where_every_item_left_awaits_a_persons_merge(self):
awaited = next_chunk.NoItem("every item of release 1.0.0 waits. Pull request #7 awaits a person's merge.", True)
self.assertEqual(chunk_windows.may_start(awaited, [], set(), 1), Failure(awaited.why))
self.assertEqual(chunk_windows.may_start(awaited, [], set(), 1), [], "chunks_to_start stops the loop there")
self.assertEqual(chunk_windows.may_start(awaited, ["item-5"], set(), 1), [], "a running or restarted chunk goes on, and no chunk without an item joins it")
def test_starts_no_item_that_overlaps_a_running_chunks_items(self):