Repository navigation
test(roadmap): run the limit and monitor tests with small limits - #4931
Conversation
Before and after measurementsBoth sides ran in the devcontainer with The 13 limit tests (14 cases)
The audit of 2026-11-11 measured 5.3 to 11.6 s for each of the 12 slowest of these tests on a quieter host, with no coverage. The CPU ratio (0.045) gives about 0.2 to 0.5 s for each test there. This is an estimate, not a measurement on a quiet host. The 9 implement-world tests that waited out the watch
The remaining time of these tests comes from the job itself (real git and the gate), and not from the watch. The covering filesThe 8 changed or affected test files (318 tests) pass on the branch: No fail-to-pass run: the title is Owner steps: none. |
run_step, run_fix_step and ToolboxClient take usage_limits, a pydantic-ai UsageLimits, with the loop guards of the jobs as the default. The tests that reach a limit pass small limits, and the implement world waits three poll intervals for the checks, so a watch that times out polls 4 times, not 121. Refs #4688
2082064 to
0a02923
Compare
CI measurement (Tests & Coverage, with coverage)Each shard prints its 10 slowest tests.
The first run failed on one test, |
The tests of the run limits drove the limits of the jobs through a scripted model: 500 requests and 1,500 tool calls for an implement step, and 200 tool calls for a toolbox run of the stage job. Each test made hundreds of model requests, and each request ran real git. Nine tests of the implement world also waited out the watch of the checks: 121 polls of the pull request.
run_step,run_fix_stepandToolboxClienttakeusage_limits, a pydantic-aiUsageLimits. The default is the constants, so the jobs run at the same limits. The tests that reach a limit pass small limits and keep their relative asserts, and one test proves that the defaults equal the constants. The implement world setsroadmap.implement.monitor_timeout_secondsto three poll intervals (WATCH_SECONDS), so a watch that times out polls 4 times.Closes #4688
Change:
openspec/changes/archive/2026-11-12-4688-run-the-limit-and-monitor-tests/