Rename loop-claude to build-release, with no alias
This commit is contained in:
+10
-10
@@ -141,12 +141,12 @@ class TheCommand(DoEpicTest):
|
||||
|
||||
def test_starts_the_chunks_and_says_why_each_other_issue_waits(self) -> None:
|
||||
fake = FakeEffects(on_terminal=False)
|
||||
code, out, _ = self.run_main(["ABC-12"], fake, {"LOOP_CLAUDE_WORKER_MODEL": "m"})
|
||||
code, out, _ = self.run_main(["ABC-12"], fake, {"BUILD_RELEASE_WORKER_MODEL": "m"})
|
||||
self.assertEqual(code, 0)
|
||||
self.assertIn("started ABC-21 in the tmux session epic-ABC-12\n", out)
|
||||
self.assertIn("ABC-20 waits: it is a human's task\n", out)
|
||||
started = [args for args in fake.tmux_calls if args[0] == "new-session"]
|
||||
self.assertEqual(started, [["new-session", "-d", "-s", "epic-ABC-12", "-n", "ABC-21", "-c", str(self.home / ".local/state/do-epic/ABC-12"), "-e", "LOOP_CLAUDE_WORKER_MODEL=m", "-e", "CHUNK_PR_PARKS=1", "-P", "-F", "#{window_id}", "--", "/b/do-epic", "--chunk", "ABC-21", "ABC-12"]])
|
||||
self.assertEqual(started, [["new-session", "-d", "-s", "epic-ABC-12", "-n", "ABC-21", "-c", str(self.home / ".local/state/do-epic/ABC-12"), "-e", "BUILD_RELEASE_WORKER_MODEL=m", "-e", "CHUNK_PR_PARKS=1", "-P", "-F", "#{window_id}", "--", "/b/do-epic", "--chunk", "ABC-21", "ABC-12"]])
|
||||
# The session is no checkout's, so nothing marks it as one's.
|
||||
self.assertNotIn(tmux.OWNER, [args[3] for args in fake.tmux_calls if args[0] == "set-option"])
|
||||
|
||||
@@ -228,8 +228,8 @@ class ACycleOfAChunkWithoutARepo(DoEpicTest):
|
||||
self.assertEqual(cycle.project.rung.model, "claude-opus-5-5")
|
||||
self.assertEqual(cycle.route, Route(cycle.project.worker_rung(3), 21, 3, 5))
|
||||
self.assertEqual(cycle.judge.model, "claude-opus-5-5")
|
||||
self.assertEqual(self.cycle({"LOOP_CLAUDE_WORKER_MODEL": "off-the-ladder"}).route, Route(Rung("off-the-ladder")))
|
||||
self.assertEqual(self.cycle({"LOOP_CLAUDE_JUDGE_MODEL": "claude-fable-5-2"}).judge.model, "claude-fable-5-2")
|
||||
self.assertEqual(self.cycle({"BUILD_RELEASE_WORKER_MODEL": "off-the-ladder"}).route, Route(Rung("off-the-ladder")))
|
||||
self.assertEqual(self.cycle({"BUILD_RELEASE_JUDGE_MODEL": "claude-fable-5-2"}).judge.model, "claude-fable-5-2")
|
||||
|
||||
def test_keeps_the_route_and_the_evidence_its_run_holds(self) -> None:
|
||||
kept = Route(Rung("claude-opus-5-5", "xhigh"), 21, 3, 5)
|
||||
@@ -241,7 +241,7 @@ class ACycleOfAChunkWithoutARepo(DoEpicTest):
|
||||
self.assertIs(cycle.prompts, chunk_prompt.WORKER)
|
||||
self.assertEqual(cycle.facts, "")
|
||||
|
||||
def test_works_in_the_epics_folder_and_archives_apart_from_loop_claude(self) -> None:
|
||||
def test_works_in_the_epics_folder_and_archives_apart_from_build_release(self) -> None:
|
||||
cycle = self.cycle()
|
||||
self.assertEqual((cycle.root, cycle.project_archive, cycle.records), (str(self.home / ".local/state/do-epic/ABC-12"), self.home / ".claude/do-epic-transcripts/ABC-12", ""))
|
||||
|
||||
@@ -275,7 +275,7 @@ class ACycleOfAChunkWithoutARepo(DoEpicTest):
|
||||
|
||||
|
||||
UNREAD = [Failure("no git")] * 20
|
||||
MODELS = {"LOOP_CLAUDE_JUDGE_MODEL": "claude-opus-5-5", "LOOP_CLAUDE_WORKER_MODEL": "claude-opus-5-5", "TMUX_PANE": "%1"}
|
||||
MODELS = {"BUILD_RELEASE_JUDGE_MODEL": "claude-opus-5-5", "BUILD_RELEASE_WORKER_MODEL": "claude-opus-5-5", "TMUX_PANE": "%1"}
|
||||
|
||||
|
||||
class TheHumansRun(DoEpicTest):
|
||||
@@ -351,7 +351,7 @@ class TheHumansRun(DoEpicTest):
|
||||
clones = [what for seam, what in fake.calls if seam == "git" and "clone" in what]
|
||||
self.assertEqual([what[what.index("--") + 1:] for what in clones], [["git@host.example:team/web", str(self.home / "code/web")]])
|
||||
|
||||
def test_names_a_checkout_as_loop_claude_does_whatever_way_its_config_spells_it(self) -> None:
|
||||
def test_names_a_checkout_as_build_release_does_whatever_way_its_config_spells_it(self) -> None:
|
||||
real = self.home / "code" / "api"
|
||||
real.mkdir(parents=True)
|
||||
(self.home / "work").mkdir()
|
||||
@@ -428,7 +428,7 @@ class AChunksRun(DoEpicTest):
|
||||
judged_with = [" ".join(what[0]) + (what[1] or "") for seam, what in fake.calls if seam == "claude"]
|
||||
self.assertEqual((len(prompts), len(judged_with)), (3, 3))
|
||||
for text in (*prompts, *judged_with, *fake.dms, *[str(what) for seam, what in fake.calls if seam == "input"]):
|
||||
self.assertNotIn("loop-claude", text)
|
||||
self.assertNotIn("build-release", text)
|
||||
self.assertNotIn("None", text)
|
||||
self.assertIn(" do-epic runs you on claude-", prompts[1])
|
||||
self.assertIn("The human answered your question at do-epic's terminal:\nUse B.", prompts[2])
|
||||
@@ -699,7 +699,7 @@ class AChunksRun(DoEpicTest):
|
||||
|
||||
|
||||
class WhatAWorkerJudgeAndHumanRead(DoEpicTest):
|
||||
def test_every_prompt_names_do_epic_and_never_loop_claude(self) -> None:
|
||||
def test_every_prompt_names_do_epic_and_never_build_release(self) -> None:
|
||||
cycle = ACycleOfAChunkWithoutARepo.cycle(self) # type: ignore[arg-type]
|
||||
prompts = cycle.prompts
|
||||
texts = [
|
||||
@@ -710,7 +710,7 @@ class WhatAWorkerJudgeAndHumanRead(DoEpicTest):
|
||||
str(judge.judge_schema(prompts.driver)),
|
||||
]
|
||||
for text in texts:
|
||||
self.assertNotIn("loop-claude", text)
|
||||
self.assertNotIn("build-release", text)
|
||||
self.assertIn(f"do-epic runs you on {cycle.route.rung}, routed by the issue's L of 3. Where a sentence below names item 21, it means the issue.", texts[0])
|
||||
self.assertRegex(texts[0], r"it means the issue\.( \S|\n\n)")
|
||||
self.assertNotIn("Chunk items:", texts[1])
|
||||
|
||||
Reference in New Issue
Block a user