Skip to content

tests: the Debug lanes' other slow-runner reds: NavStep's caps, ExecPool's helper race, the bench's heavy frame - #1388

Merged
transfix merged 1 commit into
masterfrom
ci/debug-slow-runner-deadlines
Nov 20, 2026
Merged

transfix merged 1 commit into
masterfrom
ci/debug-slow-runner-deadlines

Conversation

@transfix

Copy link
Copy Markdown
Owner

The other reds on the required Debug lanes, now that TilerBunny's is fixed (#1362).

Between 2026-11-17 and 11-19, 18 package-linux / libcvc-debug and libcvc-debug-grpc jobs failed. Here is what failed them, counting every try (ctest runs each test up to 3 times):

Test Failed tries Jobs where all 3 tries failed Fixed by
TilerBunny.TheTiledSlicesOfItsSdfAreTheBunny 18 6 #1362 (merged)
TilerIntrinsicsAriadne…, AriadneBoatNode…, AriadneSceneWorld.ACrate… (300 s timeouts, 11-17/18) 34 8 master's TIMEOUT 900 since then; they take 216–475 s on today's slow runners
ExecPool.APassedDeadlineSkipsGroupsAndTheyGoFirstNextTime 15 2 this PR
AriadneAction.NavStepAsAnAsyncFunctionReturnsItsResult, including every ariadne_runtime_test_threads_auto and _slice256 failure 7 + 11 1 this PR
state_exec_bench_smoke (mt.ariadne_docs t=0 docs=2 frame=heavy) 5 1 this PR
cvcgl_ariadne_realize 7 2 11-17's timeouts and failures are fixed on master. One abort at 484 s on 11-19 is left alone
MediaBackground.TheCoreBracketsTheContentAndNamesThePictureOnceLoaded 2 0 left alone (one try each, and the retry passed)

All three changes here are in tests only.

NavStep: Ariadne's action caps killed the action

The test either passes in 0.2–0.5 s or fails at its 5 s pump budget with "the parked action never resumed". There are no times in between. An await is charged its call's run and CPU time (STATE_EXEC_EXCEPTIONS.md 3.8), and the action runs under Ariadne's default caps of 0.1 s and 5000 steps. On a loaded Debug runner the nav-step kernel can run past them. The caps then kill the action, and nav.result is never set. AR01, AR02 and AR-3b in the same file lift both caps for exactly this reason ("no cap to run out on a loaded machine"), and the test now does the same. It also pumps for up to 30 s. If it still fails, it prints the action's warnings, so a kill says why.

ExecPool: two threads pushed to the hook's vector

The CI output: 3 of 4 pumps recorded, then double free or corruption (fasttop). In the threads=2 pass, the third pump_all wakes helpers once the groups' last pumps total inline_below (100 µs). g1's measured pump can pass that on a loaded runner. A helper then pumps beside the caller, and both push to an unguarded std::vector. The test now pins the last pumps at 10 µs before that call, as TheHelperWakeFollowsTheLastPumps does, so the caller pumps every group in the order the test checks. It also expects helper_wakes == 0, and a mutex guards the vector.

state_exec_bench_smoke: the heavy frame filled the 0.1 s frame deadline

It failed even on a quiet runner, and each time with the same check: bench.ari.d1 ticked 0 times in 4 frames. In coverage Debug the 500-round on_tick loop takes about 92 ms (docs=1: 370 ms for 4 frames), close to exec_pump_frame's 100 ms deadline. At t=0, d0 takes most of each frame and d1 starts with about 8 ms left. A group that has started is not a skipped one, so d1 never goes first, and it finishes no tick in 4 frames (4 × 100 ms = the 401 ms reported). In a Debug build the heavy loop is now 50 rounds, about 9 ms, which is still far over inline_below. Release keeps 500.

One thing for Joe to decide, not changed here: at t=0, a document whose tick needs more than one frame's remainder can be starved by an earlier one. N1 promises that every group starts within k frames, not that it finishes. Release ticks are short enough that this never shows.

Checked

  • clang-format 18.1.8 is clean on the changed lines.
  • g++ 16 -fsyntax-only -Wall -Wextra, with and without -DNDEBUG, reports no errors in the three files, and no warnings on the changed lines.
  • Neither old failure reproduced on a 20-core Windows Release build, even with 60–80 busy-loop processes. That machine is too fast to cross the 100 µs and 0.1 s lines, so this PR's own CI run is the test.

…ool's helper race, the bench's heavy frame

18 package-linux libcvc-debug and libcvc-debug-grpc jobs failed between
2026-11-17 and 11-19. Apart from TilerBunny (#1362), timeouts that
master has since raised, and two one-off reds, three tests caused them.
All three pass on a quiet runner and fail on a loaded one.

AriadneAction.NavStepAsAnAsyncFunctionReturnsItsResult failed 7 times,
and failed all three tries in one job. It is also every
ariadne_runtime_test_threads_auto and _slice256 failure (11 more). It
passes in 0.2-0.5 s, or fails at its 5 s pump budget with "the parked
action never resumed", with no time in between. An await is charged its
call's run and CPU time (docs/STATE_EXEC_EXCEPTIONS.md 3.8). The action
runs under Ariadne's default caps, 0.1 s and 5000 steps, and a loaded
Debug runner's nav-step kernel can pass them. The caps then kill the
action, and nav.result is never set. The test now lifts both caps, as
AR01, AR02 and AR-3b in the same file do ("no cap to run out on a loaded
machine"). It pumps for up to 30 s, and if it fails it prints the
action's warnings, so a kill says why.

ExecPool.APassedDeadlineSkipsGroupsAndTheyGoFirstNextTime failed 15
times, and failed all three tries in two jobs. It recorded 3 of 4 pumps,
then "double free or corruption". Its pump hook pushed to an unguarded
vector. In the threads=2 pass the third pump_all wakes helpers when the
groups' last pumps total inline_below (100 us). g1's measured pump can
pass that on a loaded runner. A helper then pumps beside the caller, in
no set order. The test now pins the last pumps at 10 us before that
call, as TheHelperWakeFollowsTheLastPumps does, so the caller pumps
every group in the order under test. It also expects no helper wake,
and guards the vector.

state_exec_bench_smoke failed 5 times, all three tries in one job, also
on a quiet runner. Each time the failing point was mt.ariadne_docs t=0
docs=2 frame=heavy: "bench.ari.d1 ticked 0 times in 4 frames". In
coverage Debug the 500-round on_tick loop takes about 92 ms, near
exec_pump_frame's 0.1 s deadline. d0 takes most of each frame, and d1
starts with the ~8 ms left (a group that has started is not a skipped
one, which would go first next frame). So d1 finishes no tick in the
smoke's 4 frames. In a Debug build the heavy loop is now 50 rounds,
still far over inline_below there. Release keeps 500.
@transfix
transfix enabled auto-merge (squash) November 20, 2026 00:48
@transfix
transfix merged commit 903dfc3 into master Nov 20, 2026
29 checks passed
@transfix
transfix deleted the ci/debug-slow-runner-deadlines branch November 20, 2026 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant