Answer architecture round 1: 0 🔴, 4 🟡 (0 misread); chunks_to_start and the epic's folder take the resolved paths; branch_summaries and reviewer_breaches wait for item 300
CI / tests (pull_request) Successful in 5m19s

This commit is contained in:
2026-12-03 19:45:15 +01:00
parent 55f87fb34e
commit a014e75101
15 changed files with 72 additions and 67 deletions
+5 -2
View File
@@ -15,6 +15,7 @@ from release_plan.release_standing import DefaultPlan, LastCut, UNSEEN_RELEASES
from failure import Failure
from loop_effects.doubles import FakeEffects, ran, STAMP
from build_release.chunk import fresh_prompt
from project_config.main import located
from build_release.doubles import NO_CUT, TODO
from loop_state import paths
from plan_store.todo_md import plan_of
@@ -100,9 +101,11 @@ class RouteSources(unittest.TestCase):
self.assertEqual([(item.id, item.awaits_merge) for item in held.plan.items], [(7, ""), (3, "#12 https://github.com/o/r/pull/12"), (1, "")])
self.assertEqual(fake.made("forge")[0][:4], [root, "gh", "pr", "list"])
self.assertIsNone(chunk_start.plan_item(held, None, fake.effects()), "items 7 and 3 wait, so no item of the next release routes the chunk")
window = chunk_windows.next_plan(root, folder.parents[2], {}, dataclasses.replace(fake.effects(), git=git))
config = located(root, folder.parents[2], {})
assert not isinstance(config, Failure), config
window = chunk_windows.next_plan(root, config, dataclasses.replace(fake.effects(), git=git))
self.assertEqual((window.awaits_merge, fake.made("forge")[1][:4]), (True, [root, "gh", "pr", "list"]), "a window starts by the same pick")
stopped = chunk_windows.chunks_to_start([], reload.LoopRun(1, root, "do it", ""), False, 1, paths.paths_from(folder.parents[2], {}), {}, dataclasses.replace(fake.effects(), git=git))
stopped = chunk_windows.chunks_to_start([], reload.LoopRun(1, root, "do it", ""), False, config, paths.paths_from(folder.parents[2], {}), dataclasses.replace(fake.effects(), git=git))
self.assertEqual(stopped, chunk_windows.AwaitedMerges(window.why), "so the loop starts no chunk, and says which pull requests it waits on")
def test_reads_a_plan_outside_the_checkout_as_it_stands_and_stops_without_a_config(self):