Pick the chunks that may run at once by predicted parts, and record each prediction beside what the merged chunk touched #545

Merged
lilleman merged 9 commits from item-373 into main 2026-11-15 03:08:14 +01:00
Showing only changes of commit c38810e06e - Show all commits
@@ -326,9 +326,9 @@ class EntryTest(unittest.TestCase):
def test_replaces_the_entry_of_the_same_items_and_keeps_the_others(self) -> None:
store = MemoryStore("")
for items, head in (([5], "aaaaaaa"), ([5, 6], "bbbbbbb"), ([7], "ccccccc"), ([5], "ddddddd")):
for items, head in (([5], "aaaaaaa"), ([5, 6], "bbbbbbb"), ([7], "ccccccc"), ([5], "ddddddd"), ([5, 6], "eeeeeee")):
record.append(store, items, record.entry(items, "2026-11-15T10:00:00Z", head, None, {}))
self.assertEqual([line.split(" at ")[1] for line in store.text.splitlines() if line.startswith("## ")], ["bbbbbbb", "ccccccc", "ddddddd"])
self.assertEqual([line.split(" at ")[1] for line in store.text.splitlines() if line.startswith("## ")], ["ccccccc", "ddddddd", "eeeeeee"])
self.assertEqual(store.text.count("\n\n\n"), 0)
def test_a_record_that_cannot_be_read_is_a_failure(self) -> None: