[wpt-sync] Sync PR 63245 - Use the server process context for the stash
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox162 fixed)
| 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.
| Assignee | ||
Updated•17 days ago
|
| Assignee | ||
Comment 1•14 days ago
|
||
PR 63245 applied with additional changes from upstream: 7120511adae8edcd71f947c11afe13277a922aa6
| Assignee | ||
Updated•14 days ago
|
| Assignee | ||
Comment 2•14 days ago
|
||
| Assignee | ||
Comment 3•14 days ago
|
||
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Comment 5•9 days ago
|
||
| bugherder | ||
Description
•