Closed Bug 2078032 Opened 1 month ago Closed 9 days ago

[wpt-sync] Sync PR 63245 - Use the server process context for the stash

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox162 fixed)

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63245 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63245
Details from upstream follow.

Domenic Denicola <d@domenic.me> wrote:

Use the server process context for the stash

wpt serve selects a multiprocessing context for its server processes, defaulting to spawn, but starts the stash manager with the platform default instead. On Linux before Python 3.14 that default is fork, so the stash inherits unrelated open sockets and can keep their ports occupied after the parent closes them.

Pass the selected context to StashServer as well, so the stash follows the caller's process-start policy along with the HTTP and WebSocket servers.


This is part of a series of PRs to try to fix port-allocation races that jsdom has encountered while using wpt serve. I asked GPT-6 Astra Extra High to extract them into small, reviewable fixes, but I'm still not much of an expert in this code, so please review carefully.

Whiteboard: [wptsync downstream] → [wptsync downstream error]

PR 63245 applied with additional changes from upstream: 7120511adae8edcd71f947c11afe13277a922aa6

Whiteboard: [wptsync downstream error] → [wptsync downstream]

The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues

Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.