fix(tests): widen hang limits for a slow runner #278
No reviewers
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/agent-foundry!278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/report-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Maintenance workflow failed on
mainin Maintenance run 150 withnot ok - incomplete base metrics suppress numeric deltas in cases and totals (exit 124), though the report code was right. Four tests wrap acall in a fixed 10- or 20-second
timeout, there to turn a hang into afailure. 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.shcall, which starts Python about ten times, came closeto 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, andtests/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/python3and made executable:Then, at base
82ddcfcand at branch tipb058b0e:On the base it fails 5 of 41 tests with
exit 124, the reported oneamong them; on the tip all 41 pass. Both were run as written; each run
takes about seven minutes.
The checks of
docs/MAINTENANCE.mdpass on the tip: 427 agentconfiguration 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.shhas 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.