Rename do-epic to build-epic, with no alias, and its config folder with it
CI / tests (pull_request) Successful in 4m34s
CI / tests (pull_request) Successful in 4m34s
This commit is contained in:
@@ -136,11 +136,11 @@ def start_chunks(loop_run: LoopRun, leaving: bool, paths: Paths, env: typing.Map
|
||||
|
||||
|
||||
def refusal(session: str, windows: list[tmux.Listed], root: str, run: tmux.Tmux) -> Failure | None:
|
||||
"""Why no chunk of the checkout root may start in session, whose windows are windows: another checkout's chunks run in the session, or do-epic runs chunks in root."""
|
||||
"""Why no chunk of the checkout root may start in session, whose windows are windows: another checkout's chunks run in the session, or build-epic runs chunks in root."""
|
||||
if windows and (owned := tmux.owner(session, run)) != root:
|
||||
return Failure(f"the tmux session {session} runs the chunks of {owned or 'another checkout'}, whose key maps to the same session name; rename one of the two checkouts' folders")
|
||||
if theirs := epic_chunks(root, run):
|
||||
return Failure(f"do-epic runs chunks in {root}: {', '.join(f'{placed.window.name} of {placed.session}' for placed in theirs)}; build-release doesn't start a chunk there until those chunks finish")
|
||||
return Failure(f"build-epic runs chunks in {root}: {', '.join(f'{placed.window.name} of {placed.session}' for placed in theirs)}; build-release doesn't start a chunk there until those chunks finish")
|
||||
return None
|
||||
|
||||
|
||||
|
||||
@@ -181,9 +181,9 @@ class StartChunks(unittest.TestCase):
|
||||
self.assertEqual(self.starts(fake), [])
|
||||
self.assertIn(["show-options", "-qv", "-t", f"={self.session}:", "@loop-root"], fake.tmux_calls)
|
||||
|
||||
def test_refuses_a_checkout_do_epic_runs_chunks_in(self):
|
||||
def test_refuses_a_checkout_build_epic_runs_chunks_in(self):
|
||||
fake = FakeEffects(windows=f"epic-ABC-12\tABC-34 ?\t0\t@4\t{self.root}\nepic-ABC-12\tABC-35\t0\t@5\t/c/other\nepic-ABC-12\tABC-36\t1\t@6\t{self.root}\nloop-x\titem-1\t0\t@7\t{self.root}\n")
|
||||
self.assertEqual(self.start(fake), Failure(f"do-epic runs chunks in {self.root}: ABC-34 of epic-ABC-12; build-release doesn't start a chunk there until those chunks finish"))
|
||||
self.assertEqual(self.start(fake), Failure(f"build-epic runs chunks in {self.root}: ABC-34 of epic-ABC-12; build-release doesn't start a chunk there until those chunks finish"))
|
||||
self.assertEqual(self.starts(fake), [])
|
||||
|
||||
def test_leaves_out_the_items_a_running_chunk_names_on_its_chunk_items_line(self):
|
||||
|
||||
Reference in New Issue
Block a user