The Playwright web e2e lane binds fixed ports and is not concurrency-safe
app/scripts/e2e-web-session.sh:11-17 defaults E2E_MOCK_PORT=18473,
OPENHUMAN_CORE_PORT=17788, E2E_WEB_PORT=4173. With more than one session running, the second
binds nothing but still CONNECTS to the first worker's core and mock. Nothing errors; the spec runs
against another build's backend state and the failures read exactly like product bugs
("Session validation failed", "Connection refused", "Core startup failed"). Confirmed with lsof.
Suggested fix: derive the three ports from a E2E_PORT_BASE or the PID, and FAIL LOUDLY when a
port is already bound instead of silently attaching to whatever is listening.
Found during a fleet-wide e2e coverage pass. Severity P2, category harness.
The Playwright web e2e lane binds fixed ports and is not concurrency-safe. With more than one session running, the second binds nothing but still CONNECTS to the first worker's core and mock, causing failures that read like product bugs.
Labelled priority: p1.
Picking this one up.
Plan is to let a run choose its own port block instead of the three hardcoded ones, and to make the session stop with a clear message when something is already listening on one of them, rather than quietly carrying on against the other run's backend.