Repository navigation
tests: the Debug lanes' other slow-runner reds: NavStep's caps, ExecPool's helper race, the bench's heavy frame - #1388
Merged
Conversation
…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.
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.
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-debugandlibcvc-debug-grpcjobs failed. Here is what failed them, counting every try (ctest runs each test up to 3 times):TilerBunny.TheTiledSlicesOfItsSdfAreTheBunnyTilerIntrinsicsAriadne…,AriadneBoatNode…,AriadneSceneWorld.ACrate…(300 s timeouts, 11-17/18)ExecPool.APassedDeadlineSkipsGroupsAndTheyGoFirstNextTimeAriadneAction.NavStepAsAnAsyncFunctionReturnsItsResult, including everyariadne_runtime_test_threads_autoand_slice256failurestate_exec_bench_smoke(mt.ariadne_docs t=0 docs=2 frame=heavy)cvcgl_ariadne_realizeMediaBackground.TheCoreBracketsTheContentAndNamesThePictureOnceLoadedAll 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-stepkernel can run past them. The caps then kill the action, andnav.resultis 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 thethreads=2pass, the thirdpump_allwakes helpers once the groups' last pumps totalinline_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 unguardedstd::vector. The test now pins the last pumps at 10 µs before that call, asTheHelperWakeFollowsTheLastPumpsdoes, so the caller pumps every group in the order the test checks. It also expectshelper_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-roundon_tickloop takes about 92 ms (docs=1: 370 ms for 4 frames), close toexec_pump_frame's 100 ms deadline. Att=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 overinline_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
-fsyntax-only -Wall -Wextra, with and without-DNDEBUG, reports no errors in the three files, and no warnings on the changed lines.