Answer the product-owner review's first round

This commit is contained in:
2026-10-01 22:39:51 +02:00
parent 2f3b2f0f6c
commit be2d96a808
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -377,12 +377,12 @@ class Cycles(unittest.TestCase):
self.assertEqual(run.code, 130)
self.assertEqual(run.sleeps, [60, 60, 60, 60])
run = checkout.run([worker(), judge(exit=1, stderr="judge down"), judge(stdout="{}"), judge(verdict={"interrupt": False})])
run = checkout.run([worker(), judge(exit=1, stderr="judge down"), judge(stdout=""), judge(verdict={"interrupt": False})])
self.assertEqual(run.code, 1)
self.assertEqual(run.roles(), ["worker", "judge", "judge", "judge"])
self.assertEqual(run.sleeps, [60, 60])
self.assertIn("retrying the judge in a minute: judge down", run.stderr)
self.assertIn("retrying the judge in a minute: the judge returned no verdict; it replied: {}\n", run.stderr)
self.assertIn("retrying the judge in a minute: the judge returned no verdict; it replied: nothing\n", run.stderr)
self.assertEqual(run.stderr.strip().splitlines()[-1], 'the judge failed three times running: the judge\'s verdict has no evidence of type string; it replied: {"structured_output": {"interrupt": false}}')
def test_retries_the_judge_alone_when_its_verdict_quotes_nothing_in_the_transcript(self):