Skip to content

fix(playwright) :: let the kernel choose the ports - #1490

Open
81reap wants to merge 1 commit into
81reap/bound-portfrom
81reap/playwright-ports
Open

81reap wants to merge 1 commit into
81reap/bound-portfrom
81reap/playwright-ports

Conversation

@81reap

@81reap 81reap commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Before this was pinned to 8080 and 8081 which conflicted with any other program alerady on those ports.

Now each server binds to 127.0.0.1:0 and Playright's webServer.wait gets the port.

reuseExistingServer goes with the fixed ports, since there is no longer a known address for a stray server to answer on. The timeout rises to ten minutes because Playwright now starts the server itself, so that window has to cover a cold cargo run.


Stack created with GitHub Stacks CLI • Give Feedback 💬

@81reap
81reap added this pull request to stack #1492 September 24, 2026 05:42
@81reap
81reap force-pushed the 81reap/playwright-ports branch 2 times, most recently from 3a5609e to a97a6cb Compare September 24, 2026 13:23
@81reap
81reap force-pushed the 81reap/playwright-ports branch 2 times, most recently from 752fdf0 to e5b687b Compare September 24, 2026 13:57
@81reap
81reap force-pushed the 81reap/playwright-ports branch from e5b687b to 94b5af9 Compare September 24, 2026 15:17
@81reap
81reap force-pushed the 81reap/bound-port branch 2 times, most recently from 6a9bfec to ded5cb2 Compare September 24, 2026 15:17
@81reap
81reap force-pushed the 81reap/playwright-ports branch 2 times, most recently from 1848f7b to 39418ee Compare September 24, 2026 21:50
@81reap
81reap removed this pull request from stack #1492 September 24, 2026 21:50
Before this was pinned to `8080` and `8081` which conflicted with any other program alerady on those ports.

Now each server binds to `127.0.0.1:0` and Playright's `webServer.wait` gets the port.

`reuseExistingServer` goes with the fixed ports, since there is no longer a known address for a stray server to answer on. The timeout rises to ten minutes because Playwright now starts the server itself, so that window has to cover a cold `cargo run`.
@81reap
81reap force-pushed the 81reap/playwright-ports branch from 39418ee to 8790fe6 Compare September 24, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant