flybrain/services/flysim/crates/flybus/tests
acamilo 8afeaf6c92 bus: wait for the teardown the disconnect test asserts
caller_disconnect_cleanup_works_before_and_after_consumption failed 37 times
in 240 runs under load: the reply raced the router's own teardown. op_reply
reports routed:false only once disconnect has marked the call detached, and
the router runs that when its connection task reads EOF, while Client::close
waits for this client's reader only. The reply could therefore reach a
connection that was still closing and be routed. Nothing escaped -- teardown
releases those roots -- but the flag was read one step early.

The test now settles on the caller's connection being gone before asserting
the section 6 sentence, which is the poll the rest of the file already uses.
360 runs after the fix, 0 failures.

bus-conformance.md records the mechanism, the counts and the two other
intermittent failures seen in the same sweep, which are left to the bus slice.
2026-09-22 14:29:57 +00:00
..
common test(flybus): the BUS acceptance bullets that were unproven, and transport traces 2026-09-22 12:01:34 +00:00
artifacts.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
bus_acceptance.rs test(flybus): prove the two section 9 rows a review found cited but unproven 2026-09-22 12:39:07 +00:00
conformance_artifacts.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
conformance_routing.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
conformance_wire.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
example_demo.rs test(flybus): assert the example's output, and split the frame measurement up 2026-09-22 12:01:43 +00:00
integration.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
perf.rs test(flybus): assert the example's output, and split the frame measurement up 2026-09-22 12:01:43 +00:00
pubsub.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
rpc.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00
sol_rereview_regressions.rs fix(flybus): stop connection teardown being starved by the frame it waits for 2026-09-22 12:01:24 +00:00
sol_review_races.rs bus: wait for the teardown the disconnect test asserts 2026-09-22 14:29:57 +00:00
wire.rs feat(flybus): add standalone IPC bus and conformance tests 2026-09-22 03:46:27 +00:00