You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
e2e: free_port() TOCTOU can cause intermittent port-collision flakes #1065
Surfaced by the multi-agent review of #1053 (#1028).
crates/e2e/src/lib.rsfree_port() binds an ephemeral TCP port, drops the listener, then hands the number to anvil / the daemon. Between release and re-bind another process can claim the port. It's used ~4x per node run, so under parallel test load this is a real (if low-probability) intermittent flake — and now also gates chain_id uniqueness (#1053 derives chain_id = CHAIN_BASE + port).
Options: hold the listener until the child binds (SO_REUSEADDR handoff), retry on bind failure, or accept + document. Deferred from #1053.
Activity
test(e2e): harden fixtures — retries, exact assertions, accessors (#1061