CI: pin Python 3.12 to avoid multiprocessing forkserver regression in 3.14 - #83
Open
neteler wants to merge 1 commit into
Open
CI: pin Python 3.12 to avoid multiprocessing forkserver regression in 3.14#83neteler wants to merge 1 commit into
neteler wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Python 3.14 introduced a regression in the
multiprocessingforkserver start method. When GRASS's temporal RPC server (grass/pygrass/rpc/base.pythread_checker) tries to restart the server during cleanup viaProcess.start(), the forkserver address file is no longer found:This causes test runs to fail with an unhandled exception in a background thread, even though the tests themselves pass.
Solution
Pin the CI Docker image to use Python 3.12 instead of the default Python 3.14 from Alpine edge. Python 3.12 is available in Alpine repos and does not have the forkserver regression.
The
python3.12package is installed explicitly and the venv is created withpython3.12 -m venvto ensure all test dependencies use the correct Python version.PR is AI-assisted with OpenCode (Deepseek v4 Flash)