Skip to content

Commit d1e04d5

Browse files
committed
Use spawn instead of forkserver
This avoids forkserver errors of the form: OSError: AF_UNIX path too long Bug: https://bugs.gentoo.org/941956 Signed-off-by: Zac Medico <[email protected]>
1 parent 1c36945 commit d1e04d5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,7 @@ jobs:
9696
export PYTEST_ADDOPTS="-vv -ra -l -o console_output_style=count -n $(nproc) --dist=worksteal"
9797
# Use pytest-rerunfailures to workaround pytest-xdist worker crashes with spawn start-method (bug 924416).
9898
[[ "${{ matrix.start-method }}" == "spawn" ]] && PYTEST_ADDOPTS+=" --reruns 5 --only-rerun 'worker .* crashed while running'"
99+
[[ "${{ matrix.start-method }}" == "fork" ]] &&
100+
[[ "${{ matrix.python-version }}" == "3.14-dev" ]] &&
101+
PYTEST_ADDOPTS+=" --reruns 5 --only-rerun 'node down: Not properly terminated'"
99102
meson test -C /tmp/build --verbose

Diff for: lib/portage/process.py

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
import os as _os
2020
import warnings
2121

22+
if multiprocessing.get_start_method() == "forkserver":
23+
multiprocessing.set_start_method("spawn", force=True)
24+
2225
from dataclasses import dataclass
2326
from functools import lru_cache, partial
2427
from typing import Any, Optional, Callable, Union

0 commit comments

Comments
 (0)