Repository navigation
state_exec async test: SL-7 times the sleeper from just before a warm sleep - #1282
Merged
Merged
Conversation
… sleep Slices.SL07_ABetterPriorityPreempts failed all three tries in #1246's recipe / macos-latest / Release job (run 43708365932): the runner made 62, 37 and 42 ticks past the sleeper's due time, against a limit of 32. The test timed the due time from (arm), the step before a first (sleep 0.02). The scheduler's due time is the sleep's own clock reading plus 20 ms, and in a fresh process (one test per ctest run) the code between the two readings runs for the first time there: the runner's ticks over that gap counted as lateness. On an idle Windows machine, fresh processes counted 9-24 that way; the macOS runner, 37-62. Now (arm) is the sleep's argument, (sleep (arm)), so it reads the clock just before the sleep does, and a (sleep 0.001) first warms the sleep's path. The same machine counts 1-5 in fresh processes (40 runs), 0-12 warm (300), and 0-10 in fresh processes with 66 busy loops on its 22 CPUs (30). The limit stays 32, and the count is printed.
transfix
enabled auto-merge (squash)
November 15, 2026 22:03
…h kill waits for its warning AriadneAsyncFn.ActionCapsAreTreeSettingsAndChargeAsyncCalls failed three times running on package-linux / libcvc-debug: the 200-round loop was killed with time_limit_exceeded. The default time cap (0.1 s) is wall time, and a loaded Debug runner spent it on the loop. - The step-cap checks raise ariadne.limits.action_max_time to 30 s, so only steps decide them. - The default time cap gets its own check: ten million rounds with no step cap, which run into 0.1 s on any machine (time_limit_exceeded). - Each button is clicked alone, by its label (button_click clicked every button, so each click ran every program), and a kill waits up to 30 s for its own warning instead of a fixed 1 s. - The second spin kill has its own key: a kill warns once per message. Locally (Windows, MSVC Release): 5/5, and 160/160 with 32 copies running at once (slowest 403 ms).
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
…#1307) One conflict, in ariadne_runtime_test.cpp's ActionCapsAreTreeSettingsAndChargeAsyncCalls: this branch cut its loop to 20 rounds so it fit the 0.1 s time cap on Linux debug CI, and master (#1282) rewrote the test, raising the time cap to 30 s wherever the loop must finish. Master's fix covers the same flake, so the test is master's as it stands, 200 rounds again. tools/singleton_scan is master's (#1276); the auto-merged net, CI, test and doc files keep both sides.
transfix
added a commit
that referenced
this pull request
Nov 16, 2026
… sleep (#1282) * state_exec async test: SL-7 times the sleeper from just before a warm sleep Slices.SL07_ABetterPriorityPreempts failed all three tries in #1246's recipe / macos-latest / Release job (run 43708365932): the runner made 62, 37 and 42 ticks past the sleeper's due time, against a limit of 32. The test timed the due time from (arm), the step before a first (sleep 0.02). The scheduler's due time is the sleep's own clock reading plus 20 ms, and in a fresh process (one test per ctest run) the code between the two readings runs for the first time there: the runner's ticks over that gap counted as lateness. On an idle Windows machine, fresh processes counted 9-24 that way; the macOS runner, 37-62. Now (arm) is the sleep's argument, (sleep (arm)), so it reads the clock just before the sleep does, and a (sleep 0.001) first warms the sleep's path. The same machine counts 1-5 in fresh processes (40 runs), 0-12 warm (300), and 0-10 in fresh processes with 66 busy loops on its 22 CPUs (30). The limit stays 32, and the count is printed. * Ariadne action-caps test: steps checked with the time cap raised; each kill waits for its warning AriadneAsyncFn.ActionCapsAreTreeSettingsAndChargeAsyncCalls failed three times running on package-linux / libcvc-debug: the 200-round loop was killed with time_limit_exceeded. The default time cap (0.1 s) is wall time, and a loaded Debug runner spent it on the loop. - The step-cap checks raise ariadne.limits.action_max_time to 30 s, so only steps decide them. - The default time cap gets its own check: ten million rounds with no step cap, which run into 0.1 s on any machine (time_limit_exceeded). - Each button is clicked alone, by its label (button_click clicked every button, so each click ran every program), and a kill waits up to 30 s for its own warning instead of a fixed 1 s. - The second spin kill has its own key: a kill warns once per message. Locally (Windows, MSVC Release): 5/5, and 160/160 with 32 copies running at once (slowest 403 ms). (cherry picked from commit a5e83b1)
This was referenced Nov 16, 2026
Merged
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
…1319) SegmentationIntrinsicsAriadne.AnActionStartsItUnderTheDefaultLimits runs a 160^3 seeded segmentation through an action's frame loop, which it bounds at 300 s of wall time, the same as ctest's default timeout. In Debug jobs it takes 93-101 s (#1282's and #1299's runs). On a loaded runner it went past 300 s in all three tries (#1301's package-linux / libcvc-debug, job 133118449718), failing a docs-only PR. - port tests: segmentation_intrinsics_test's tests are discovered with TIMEOUT 900, as ocean_ewave_test's are with 1200 (#1261). - The test's own loop allows 900 s. The volume stays 160^3, so the test still spans many frames and the threaded job's chunks.
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.
Slices.SL07_ABetterPriorityPreemptsfailed all three tries in #1246'srecipe / macos-latest / Releasejob (run 43708365932, job 132794319979). It failsafter_due_at_seen <= 32with 62, 37 and 42: the busy, lower-priority process's ticks after the sleeper's due time. The same job passed it on #1253 and #1255 earlier today. #1246 doesn't touchstate_exec. The test came in with #1192.What the test measured
(arm), the step before a first(sleep 0.02).async_scheduler::sleep, called straight from the intrinsic).The change (test only)
(arm)is now the sleep's argument,(sleep (arm)), and returns the 20 ms. It reads the clock just before the sleep does.(sleep 0.001)first runs the sleep path once, so nothing between the two readings runs for the first time.SL-7: the runner made N ticks past the sleeper's due time, M in all.Checked locally (Windows, MSVC Release)
git clang-format HEAD) leaves the changed lines alone.Also: the Ariadne action-caps test (db0fbfc)
This PR's libcvc-debug run failed
AriadneAsyncFn.ActionCapsAreTreeSettingsAndChargeAsyncCallsthree times: the 200-round loop hit the default 0.1 s time cap, which is wall time, on a loaded Debug runner.button_clickclicked every button.Locally (Windows, MSVC Release): 5/5, and 160/160 with 32 copies running at once.
The same run also failed
Groups.PA01_TwoCallersShareThePool, which #1280 fixes.