Stop the judge rather than show it under 50,000 characters of the transcript, read a twice-named record once, test the forge timeout and decide the merge stop from the pull requests found

This commit is contained in:
Lilleman
2026-11-20 00:45:49 +01:00
parent 5ed3a55e3a
commit f3af5e23fd
8 changed files with 56 additions and 19 deletions
+5
View File
@@ -13,6 +13,7 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from failure import Failure
from loop_effects import child_shells
from loop_effects.effects import run_python, say, start_timer, StreamingClaude, system_effects
@@ -104,6 +105,10 @@ class ForgeEffect(unittest.TestCase):
with tempfile.TemporaryDirectory() as folder:
self.assertEqual(system_effects(pathlib.Path.home(), os.environ).forge(folder)(["pwd", "-P"]), os.path.realpath(folder) + "\n")
def test_stops_a_command_of_the_forges_cli_that_outlasts_its_timeout(self):
with tempfile.TemporaryDirectory() as folder:
self.assertEqual(system_effects(pathlib.Path.home(), os.environ, forge_timeout=0.1).forge(folder)(["sleep", "5"]), Failure("sleep 5: stopped after 0.1 s"))
class TmuxEffect(unittest.TestCase):
"""Each test runs a fake tmux off its own PATH, without $TMUX, so the human's tmux server is never reached."""