Archive each judge run's prompt and json reply beside the verdict it gave, and replay from the archived prompt
CI / tests (pull_request) Failing after 2m45s
CI / tests (pull_request) Failing after 2m45s
This commit is contained in:
@@ -342,7 +342,9 @@ class Checkout:
|
||||
for archived in (copy, kept):
|
||||
self.test.assertEqual(stat.S_IMODE(archived.stat().st_mode), 0o600)
|
||||
stamped = re.sub(r"^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ ", "<UTC> ", kept.read_text(), flags=re.MULTILINE)
|
||||
outcomes[copy.read_text()] = re.sub(r"^Config: .*$", "Config: <config>", stamped, flags=re.MULTILINE)
|
||||
configured = re.sub(r"^Config: .*$", "Config: <config>", stamped, flags=re.MULTILINE)
|
||||
# The judge's run is named by the hash of its prompt, which test_loop_claude.py checks.
|
||||
outcomes[copy.read_text()] = re.sub(r"^Judge run: judge/[0-9a-f]{64}\.json\n", "", configured, flags=re.MULTILINE)
|
||||
return outcomes
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user