Repository navigation
ari/arigl snapshot --settle S; deflake AriNet.SnapshotWaitsThroughWorkBetweenRequests - #920
Merged
Merged
Conversation
…Requests no longer races the 10 s cap The test's work between two requests (a 30000-iteration loop) must outlast three drains, each a 0.1 s pump: 0.53 s optimized, but 9.5 s in a Debug build on an idle 32-core machine, so a Debug coverage lane on a busy runner ran past snapshot's 10 s settle and lost the second reply (seen on #912's package-linux / libcvc-debug, 3 of 3 retries). - --settle S (host_cli, any runtime): with the network on, snapshot waits at most S seconds for the document to go idle; default kDefaultSettleSeconds (10), as before. ari and arigl (window and --terminal) pass it to AppRuntime::settle. - The test keeps its workload and runs with --settle 120.
# Conflicts: # inc/cvc/ariadne/host_cli.h # src/ari/main.cpp # src/cvc/ariadne/host_cli.cpp # src/cvc/tests/ariadne_host_test.cpp
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.
AriNet.SnapshotWaitsThroughWorkBetweenRequestsfailed all 3 retries on #912'spackage-linux / libcvc-debuglane, the Debug coverage build, at about 10.7 s each. The output wasfirst: 401with an emptysecond:, and only one request reached the server. The same lane passed on #911, #902 and #905.Cause. Between its two requests the document runs a 30000-iteration loop, which must outlast three drains (each pumps the scheduler for 0.1 s) so the test proves that settle waits while a program is busy with nothing in flight. Measured with
ari snapshoton that loop:Settle itself behaves correctly: it keeps waiting while the program is runnable and stops at its cap. The test's workload simply doesn't fit the cap in a slow build. Reproduced locally in Debug with every core loaded: with the default cap the loop is cut off (
done:empty, 10.4 s); with--settle 120it finishes (23 s).Change.
--settle S, a general host flag (host_cli): with the network on,snapshotwaits at most S seconds for the document to go idle. The default,kDefaultSettleSeconds, is 10 as before.ari, andariglin a window and with--terminal, pass it toAppRuntime::settle. It also helps a snapshot against a slow server.--settle 120.Tests.
AriadneHostCli.SettleIsSecondsAboveZero.ari_net_test(8) andariadne_host_test(23) pass in RelWithDebInfo.Docs: docs/ARIADNE.md §10.3 and the usage text.
Not done here.
time-elapsed,step-countand the other resource intrinsics readictx.proc, which in Ariadne's action and resident lanes is a placeholder process that never runs, so they report 0 there. A loop bounded by(time-elapsed)would otherwise have been the build-independent way to write this test. Left as a separate fix.