Repository navigation
tests: IntentsMaybeSetFromAnotherThread waits for its writer - #1325
Merged
Merged
Conversation
…intent The test runs 120 frames while a writer thread replaces vehicle a's intent, then expects a to be moving. A thread can start late: on a busy machine all 120 frames (a few tens of milliseconds) passed before the writer ran, no intent reached a, and only the last 6 frames moved it. That reads 0.10766078436440293 m/s, which is what recipe / windows-2022 / Release read on #1318, and what a writer held back until the frames end reads here, bit for bit. The frames now start once the writer has landed an intent (10 s at most). A failure says a's speed after the threaded frames, how many intents landed during them, and whether a existed. It passes with the writer started 300 ms late.
…s mid-run After its first intent the writer may still be descheduled for all 120 frames (a few tens of milliseconds on a busy machine), which would fail the check that an intent landed while the world stepped. The world now steps on, a frame at a time, until one does (10 s at most).
transfix
enabled auto-merge (squash)
November 16, 2026 15:49
transfix
added a commit
that referenced
this pull request
Nov 17, 2026
One conflict, in ci.yml's SAN_CXX_TESTS: this branch added stream_test, net_ws_client_test and ariadne_host_test to the sanitizer legs' list, and #1292 added gradient_vector_diffusion_test, critical_points_test and seed_generators_test (reflowing the lines). Kept both. ci.yml's line 1271 (the arigl-web path filter's files.h/files.cpp line) also goes back to master's bytes: master stores ci.yml with CRLF but that one line LF-only, and an earlier merge here had given it a CR, a whitespace-only change in this PR's diff.
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.
AriadneWorldVehicles.IntentsMaybeSetFromAnotherThreadruns 120 frames while a writer thread replaces vehiclea's intent, then expectsato be moving. The frames take a few tens of milliseconds. On a busy machine the writer can start, or be descheduled, for all of them. Then no intent reachesa, which sits still, and only the last 6 frames move it: speed 0.10766078436440293 m/s.That's what
recipe / windows-2022 / Releaseread on #1318, on all 3 ctest tries (job 133254944922). A writer held back until the frames end reads the same value bit for bit. The test is unchanged on master, so it can fail any PR's Windows job the same way.Change (test only,
src/cvc/tests/ariadne_scene_world_test.cpp):a's speed after the threaded frames, how many intents landed during them, and whetheraexisted.The same two commits are on #1317 (
feat/scene-wind, 4b5b01b and f4fbf22), so that branch merges with this one cleanly.Checked: MSVC Release. AriadneWorldVehicles 15/15 pass, and this test passes 20/20 with
--gtest_repeat=20. On the wind branch it also passes with the writer deliberately started 300 ms late.