Flaky: test daemons sometimes take over 15 s to start ("daemon did not start") #66

Closed
opened 2026-10-02 12:55:07 +00:00 by jhgaylor · 1 comment
Owner

Found during #55. agentd/mod.rs wait_up's 15 s deadline was hit by mcp.rs what_failed_here_yesterday on the macOS runner (CI task 700, 7b91972); the next commit's run was green. M27's local just check hit the same message once in questions.rs an_agent_question_is_a_card_answered_by_its_fields. Possibly related to #64. Next steps: log what the daemon is doing when the deadline hits (its stderr, whether sock.path exists), and look for a slow startup step (control or tailnet probes, libghostty init, systemd-run probing) before raising the deadline.

Found during #55. agentd/mod.rs wait_up's 15 s deadline was hit by mcp.rs what_failed_here_yesterday on the macOS runner (CI task 700, 7b91972); the next commit's run was green. M27's local just check hit the same message once in questions.rs an_agent_question_is_a_card_answered_by_its_fields. Possibly related to #64. Next steps: log what the daemon is doing when the deadline hits (its stderr, whether sock.path exists), and look for a slow startup step (control or tailnet probes, libghostty init, systemd-run probing) before raising the deadline.
Author
Owner

Root cause: test harnesses picked ports by binding port 0 and releasing them, so under load the port was taken and the daemon exited with EADDRINUSE. --listen 127.0.0.1:0 now lets the daemon bind its own port and write it to state/listen, and all Rust harnesses use that. Not yet: --block-listen in sites.rs/editors.rs.

Root cause: test harnesses picked ports by binding port 0 and releasing them, so under load the port was taken and the daemon exited with EADDRINUSE. `--listen 127.0.0.1:0` now lets the daemon bind its own port and write it to state/listen, and all Rust harnesses use that. Not yet: --block-listen in sites.rs/editors.rs.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jhgaylor/illogical#66
No description provided.