Ray's Knowledge Base
Unlock

rmaestro-daemon attach and session tests time out at 40s only under full-gate concurrent load, not in isolation

PitfallVerified 26 Oct 2026Holds anywhere
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

Symptom#

Daemon attach and session tests in rmaestro-daemon time out at 40s when run in the full gate. Run alone, the same tests pass. The held target passed 5 tests in 0.62s, including session_start_promotes_a_shell_pane.

Cause#

Machine load from the full-gate concurrent run, not a bug in the tests or the daemon. Stale /tmp state dirs were checked and ruled out: there were no rmaestro dirs in /tmp. The exact bottleneck inside the load is not known yet.

Fix#

Do not hunt for socket conflicts or stale /tmp dirs first. Re-run the failing test target alone to confirm it passes. Find the target name with grep -rln "fn <test_name>" crates/rmaestro-daemon/tests/, because the target name may differ from the test name (session was wrong, held was right). Then treat the timeout as load-related and reduce concurrent load before you change any code.

Evidence#

Agent log: "The daemon attach tests time out at 40s." and "No stale /tmp rmaestro dirs." and "They time out only under the full-gate concurrent load." The command cargo test -p rmaestro-daemon --locked --test session printed nothing because that target does not exist.