fix(tests): widen hang limits for a slow runner #278

Merged
claudiomaradonna merged 1 commit from fix/report-timeout into main 2026-12-03 15:31:00 +01:00
Collaborator

Why

The Maintenance workflow failed on main in Maintenance run 150 with
not ok - incomplete base metrics suppress numeric deltas in cases and totals (exit 124), though the report code was right. Four tests wrap a
call in a fixed 10- or 20-second timeout, there to turn a hang into a
failure. The forge's runner runs the suite about 40 times slower than a
workstation (11 to 13 minutes against 18 seconds), and the slowest
evals/report.sh call, which starts Python about ten times, came close
to 20 seconds and once passed it.

What changed

Each of the four limits is now 60 seconds, about three times the slowest
call the runner has shown: in tests/agent-config/evals-report.sh (two),
tests/agent-config/main-checkout-guard.sh, and
tests/agent-config/evals-graders.sh. A call that hangs still fails,
after 60 seconds instead of 10 or 20.

How to verify

Simulate a slow runner by making each Python start two seconds slower,
with this wrapper saved as /tmp/slowpy/python3 and made executable:

#!/usr/bin/env bash
sleep 2
exec /usr/bin/python3 "$@"

Then, at base 82ddcfc and at branch tip b058b0e:

PATH=/tmp/slowpy:$PATH bash tests/agent-config/evals-report.sh

On the base it fails 5 of 41 tests with exit 124, the reported one
among them; on the tip all 41 pass. Both were run as written; each run
takes about seven minutes.

The checks of docs/MAINTENANCE.md pass on the tip: 427 agent
configuration tests, the work-folder check tests, the shell check,
Prettier, the static validator, and git diff --check main.

Considerations

A regression that made every call of one of these tests hang now takes
longer to fail: 43 hanging grader calls would reach the job's 20-minute
limit instead of failing one by one. tests/agent-config/evals-runner.sh
has short time limits of its own; they run only where bubblewrap starts
a sandbox, and the forge's runner skips them, so they stay as they are.

## Why The Maintenance workflow failed on `main` in Maintenance run 150 with `not ok - incomplete base metrics suppress numeric deltas in cases and totals (exit 124)`, though the report code was right. Four tests wrap a call in a fixed 10- or 20-second `timeout`, there to turn a hang into a failure. The forge's runner runs the suite about 40 times slower than a workstation (11 to 13 minutes against 18 seconds), and the slowest `evals/report.sh` call, which starts Python about ten times, came close to 20 seconds and once passed it. ## What changed Each of the four limits is now 60 seconds, about three times the slowest call the runner has shown: in `tests/agent-config/evals-report.sh` (two), `tests/agent-config/main-checkout-guard.sh`, and `tests/agent-config/evals-graders.sh`. A call that hangs still fails, after 60 seconds instead of 10 or 20. ## How to verify Simulate a slow runner by making each Python start two seconds slower, with this wrapper saved as `/tmp/slowpy/python3` and made executable: ```bash #!/usr/bin/env bash sleep 2 exec /usr/bin/python3 "$@" ``` Then, at base `82ddcfc` and at branch tip `b058b0e`: ```bash PATH=/tmp/slowpy:$PATH bash tests/agent-config/evals-report.sh ``` On the base it fails 5 of 41 tests with `exit 124`, the reported one among them; on the tip all 41 pass. Both were run as written; each run takes about seven minutes. The checks of `docs/MAINTENANCE.md` pass on the tip: 427 agent configuration tests, the work-folder check tests, the shell check, Prettier, the static validator, and `git diff --check main`. ## Considerations A regression that made every call of one of these tests hang now takes longer to fail: 43 hanging grader calls would reach the job's 20-minute limit instead of failing one by one. `tests/agent-config/evals-runner.sh` has short time limits of its own; they run only where bubblewrap starts a sandbox, and the forge's runner skips them, so they stay as they are.
fix(tests): widen hang limits for a slow runner
Some checks failed
Maintenance / checks (pull_request) Successful in 16m6s
Maintenance / checks (push) Successful in 15m53s
Maintenance / publish (pull_request) Has been skipped
Maintenance / publish (push) Has been cancelled
b058b0e2a7
Four tests wrapped calls in a fixed 10- or 20-second timeout to fail a
hang. The forge's runner runs the suite about 40 times slower than a
workstation, so the slowest evals report call came close to 20 seconds
and once passed it, in Maintenance run 150. Sixty seconds leaves about
three times the slowest call seen there, and still fails a hang.
claudiomaradonna deleted branch fix/report-timeout 2026-12-03 15:31:13 +01:00
Sign in to join this conversation.
No description provided.