Add task-bench, which has Haiku fix planted bugs at a base and a head and prints what each side took
CI / tests (pull_request) Failing after 4m9s

This commit is contained in:
2026-11-21 01:05:50 +01:00
parent a8933b9ab3
commit 089e9b683b
14 changed files with 1355 additions and 9 deletions
Executable
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env python3
import os
import pathlib
import signal
import sys
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parent))
from task_bench import main
# Python ends on SIGTERM or SIGHUP without running a finally, which would leave the bench's containers, network and image. As
# SystemExit, the run unwinds as on Ctrl-C.
for number in (signal.SIGHUP, signal.SIGTERM):
signal.signal(number, lambda number, frame: sys.exit(128 + number))
sys.exit(main.main(sys.argv[1:], os.environ))