From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@buildroot.org
Cc: Jimmy Durand Wesolowski <jimmy.wesolowski@mobileye.com>,
Fiona Klute <fiona.klute@gmx.de>,
Ricardo Martincoski <ricardo.martincoski@datacom.com.br>
Subject: Re: [Buildroot] [PATCH] support/testing/run-tests: unbreak on Debian testing/unstable
Date: Mon, 02 Mar 2026 13:21:20 +0100 [thread overview]
Message-ID: <871pi2mngf.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20260301134538.3030668-1-peter@korsgaard.com> (Peter Korsgaard's message of "Sun, 1 Mar 2026 14:45:36 +0100")
>>>>> "Peter" == Peter Korsgaard <peter@korsgaard.com> writes:
> Commit 3d2141bcee("support/testing/run-tests: specify multiprocessing
> method") added a call to multiprocessing.set_start_method('fork') as a
> workaround for python 3.14, which changed the default start method to
> forkserver - Which is incompatible with the nose2 setup.
> multiprocessing.set_start_method() is only supposed to be called a maximum
> of 1 time per process and throws a RuntimeError if called more than that
> (even with the same arguments):
>>>> import multiprocessing
>>>> multiprocessing.set_start_method('fork')
>>>> multiprocessing.set_start_method('fork')
> Traceback (most recent call last):
> File "<python-input-2>", line 1, in <module>
> multiprocessing.set_start_method('fork')
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
> File "/usr/lib/python3.13/multiprocessing/context.py", line 247, in set_start_method
> raise RuntimeError('context has already been set')
> Debian included a similar patch in python3-nose2 0.51.1-2 (currently in
> testing/unstable) which adds its own call to set_start_method():
> https://salsa.debian.org/python-team/packages/nose2/-/blob/debian/0.15.1-2/debian/patches/0004-plugins-mp-set-context-to-fork-for-Python-3.14-mp-AP.patch?ref_type=tags
> Which comes from:
> https://github.com/nose-devs/nose2/pull/644
> As discussed in the upstream PR, this is not a correct fix is wrong and
> breaks various use cases. An issue has been opened to get this fixed in the
> Debian packaging at:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1129350
> But until that is done, rework the patch to:
> - Only override set_start_method() if needed to limit impact
> - Monkey patch set_start_method() so additional calls are ignored
> To unbreak run-test on affected Debian systems and add some documentation to
> make it clear why this is done.
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Committed after changing the logic to use the optional allow_none /
force arguments as pointed out by Julien, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-03-02 12:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-01 13:45 [Buildroot] [PATCH] support/testing/run-tests: unbreak on Debian testing/unstable Peter Korsgaard
2026-03-02 12:21 ` Peter Korsgaard [this message]
2026-03-06 19:53 ` Thomas Perale via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871pi2mngf.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=fiona.klute@gmx.de \
--cc=jimmy.wesolowski@mobileye.com \
--cc=ricardo.martincoski@datacom.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.