e2e: specs with fixed ports collide when two worktrees run Playwright at once #67

Closed
opened 2026-10-02 15:41:41 +00:00 by jhgaylor · 1 comment
Owner

Found during #55. Many specs start extra daemons/servers on hard-coded ports (swarm-mvp uses 7775, and others use 7730–7791 and 7800+). Two worktrees running the full suite on one host fail with EADDRINUSE (seen: swarm-mvp.spec.ts on 7775 while another worktree's suite ran). E2E_PORT only moves the main daemon. Fix as #66 did for Rust tests: let each extra daemon bind 127.0.0.1:0 and read its port from state/listen (and let fake servers listen on 0), so a run needs no reserved ports.

Found during #55. Many specs start extra daemons/servers on hard-coded ports (swarm-mvp uses 7775, and others use 7730–7791 and 7800+). Two worktrees running the full suite on one host fail with EADDRINUSE (seen: swarm-mvp.spec.ts on 7775 while another worktree's suite ran). E2E_PORT only moves the main daemon. Fix as #66 did for Rust tests: let each extra daemon bind 127.0.0.1:0 and read its port from state/listen (and let fake servers listen on 0), so a run needs no reserved ports.
Author
Owner

Fixed in af36338: web/e2e/ports.ts; every extra daemon, control and fake server gets an OS-given port (daemons and control write theirs to state). A run reserves only E2E_PORT. Two full suites ran at once on 7720 and 7724 with no EADDRINUSE.

Fixed in af36338: web/e2e/ports.ts; every extra daemon, control and fake server gets an OS-given port (daemons and control write theirs to state). A run reserves only E2E_PORT. Two full suites ran at once on 7720 and 7724 with no EADDRINUSE.
jhgaylor referenced this issue from a commit 2026-10-02 17:01:03 +00:00
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#67
No description provided.