Skip to content

[3.14] gh-155717: use spawn as the default start method for read-only filesystems (GH-155827) - #155886

Open
miss-islington wants to merge 2 commits into
python:3.14from
miss-islington:backport-c144799-3.14
Open

[3.14] gh-155717: use spawn as the default start method for read-only filesystems (GH-155827)#155886
miss-islington wants to merge 2 commits into
python:3.14from
miss-islington:backport-c144799-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

The "forkserver" start method (the default start method on non-Windows systems)
requires the ability to write temporary files, which is not possible if TMPDIR
is read-only (e.g., k8s containers mounted with readOnlyRootFilesystem=True).

On such filesystems, the default start method changes from "forkserver" to "spawn".
(cherry picked from commit c144799)

Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

…y filesystems (pythonGH-155827)

The "forkserver" start method (the default start method on non-Windows systems)
requires the ability to write temporary files, which is not possible if TMPDIR
is read-only (e.g., k8s containers mounted with `readOnlyRootFilesystem=True`).

On such filesystems, the default start method changes from "forkserver" to "spawn".
(cherry picked from commit c1447994a42004a81a8caca026218daf69d451c8)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@picnixz

picnixz commented Aug 16, 2026

Copy link
Copy Markdown
Member

Waiting until #155891 is merged.

Comment thread Lib/test/_test_multiprocessing.py
@picnixz
picnixz marked this pull request as ready for review August 16, 2026 09:45
@picnixz

picnixz commented Aug 16, 2026

Copy link
Copy Markdown
Member

!buildbot root

@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @picnixz for commit 0e1100c 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F155886%2Fmerge

The command will test the builders whose names match following regular expression: root

The builders matched are:

  • AMD64 Debian root PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants