Answer stability round 1: 0 🔴, 5 🟡 (0 misread); park the window first, resend a failed DM, reword docstrings and trim two tests
This commit is contained in:
@@ -6,7 +6,7 @@ import unittest
|
||||
|
||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
||||
|
||||
from do_epic.scheduler import Chunk, CHUNK_FLAG, chunks, Epic, refusal, RepoRoom, resume, start_chunks, Started, Waits
|
||||
from do_epic.scheduler import Chunk, CHUNK_FLAG, chunks, Epic, HUMAN_WAIT, refusal, RepoRoom, resume, start_chunks, Started, Waits
|
||||
from do_epic import chunk_prompt
|
||||
from do_epic.backend.protocol import EpicIssue
|
||||
from failure import Failure
|
||||
@@ -189,7 +189,7 @@ class StartingAnEpicsChunks(unittest.TestCase):
|
||||
def test_a_human_task_with_a_window_that_awaits_it_starts_no_second_window(self) -> None:
|
||||
run = Tmux(("epic-ABC-12", "ABC-19 awaits a human's task", False, ""))
|
||||
found = self.start(self.epic(1, api=1), [issue("ABC-19", "do-epic-human"), issue("ABC-21", "repo:api", blockers=("ABC-19",))], run)
|
||||
self.assertEqual(found, Started([], [Waits("ABC-19", "it is a human's task; do-epic polls until its issue closes"), Waits("ABC-21", "ABC-19 blocks it")]))
|
||||
self.assertEqual(found, Started([], [Waits("ABC-19", HUMAN_WAIT), Waits("ABC-21", "ABC-19 blocks it")]))
|
||||
self.assertEqual(run.started(), [])
|
||||
|
||||
def test_a_parked_chunk_that_starts_again_leaves_the_epics_cap_to_the_others(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user