Files
LocalAI/core/services
Ettore Di Giacinto 51e120c00d test(studio): give the fence probe turns a bound that fits a slow runner
The agent folder probes run one turn that calls about a hundred real file
tools on the stub tool harness. Under -race that turn takes 7 to 25 s, and
on a loaded CI runner it passed the 20 s bound of until, so the spec
"finds the token through the same probes when the agent has no folder"
failed with "timed out waiting for the turn to end". The turn always
ends; the time goes to race-instrumented SQLite statement parsing and a
one-time PDF engine compile, not to a wait or a lock.

Add untilWithin and use a five minute bound for the end of a probe turn
and for settling. The turn is still checked for its end, so a turn that
never ends still fails the spec.

Assisted-by: Claude:claude-sonnet-5-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-11-03 08:30:08 +00:00
..
2026-03-30 00:47:27 +02:00