Repository navigation
ari test: a program may run as long as the run's timeout, not a running app's 0.1 s - #1003
Merged
Merged
Conversation
…ng app's 0.1 s ari_chat_component failed every ctest attempt on a Debug CI runner with "did not complete: time_limit_exceeded" on different subtests each time, though it passes in about a second on other Debug runs and in 0.2 s locally. ari test runs each test program as an action, and an action gets ariadne.limits.action_max_time, 0.1 s of (mostly CPU) time. The chat component's tests take a few thousand steps each: a few milliseconds in a Release build, close to the 0.1 s in a Debug one, and past it on a runner that ran the whole suite about twice as slowly as usual. The same subtests fail locally once the budget is cut to a millisecond. A test checks what a document does, not how fast. Under ari test a program's time backstop is now the run's own --timeout (30 s by default), while the step cap (action_max_steps) still stops a runaway. --action-time S sets it: 0.1 holds a document to what a running app allows, and 0 lifts it. Tests: AriTest.AProgramMayRunAsLongAsTheTimeout (the default and 0 pass, a millionth of a second kills the same program, a bad value is refused) and AriadneHostCli.ActionTimeIsSecondsFromZero.
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ari_chat_componentfailed all three ctest attempts on #995'spackage-linux / libcvc-debug-grpcjob (run 41586658335). Each attempt reporteddid not complete: time_limit_exceeded, on a different set of subtests. Nothing in #995 touches thechat or users components or
ari test.ari testruns each test program as an action. An action getsariadne.limits.action_max_time:0.1 s, charged mostly as the thread's CPU time.
The chat component's test programs take a few thousand steps each. That's a few milliseconds in
a Release build, close to 0.1 s in a Debug build, and past it on a slow runner.
That runner ran the whole suite in 3558 s, against 1579–2220 s on other runs. Unrelated tests took
about twice as long (
PI09_BoostThroughWaiterEdge6.41 s vs 3.20 s).On other branches' Debug jobs
ari_chat_componentpasses in 0.86–1.19 s; on this one it took1.7–1.86 s.
Locally (Release), the same subtests fail the same way once the budget is cut to a millisecond:
--action-timeshows_the_room,appends_only_what_is_new,another_run_rebuilds_the_view…time_limit_exceededThis can hit any PR whose Debug job lands on a slow runner.
What changes
ari test, a program's time backstop is the run's own--timeout(30 s bydefault) instead of a running app's 0.1 s. A test checks what a document does, not how fast. The
step cap (
action_max_steps, 5000) still stops a runaway, and--timeoutstill bounds the run.--action-time S: sets the backstop explicitly.0.1holds a document to what a running appallows, and
0lifts it. It is parsed with the other host flags, inhost_cli.ari test's usage text anddocs/ARIADNE.md§13 say so.Tests
AriTest.AProgramMayRunAsLongAsTheTimeout, which runs the builtari:--action-time 0;--action-time 0.000001it is killed withtime_limit_exceeded;AriadneHostCli.ActionTimeIsSecondsFromZero: parsing (unset, 0.1, 0, and -1/soon/2s/inf refused).AriTest.*,AriQuit.*andAriRun.*suites;ari_chat_component,ari_docsetandari_url_document;ariadne_host_test(54) andari_net_test(8).The flake is a slow Debug runner, which I didn't reproduce locally. The table above shows the same
failure mode with the budget scaled to this machine.