gh-119727: Add --single-process option to regrtest#119728
Conversation
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Alternative names are --singleprocess and --no-multiprocess, which more accurately describe the effect, but this is up to you.
I think that the implementation can be simplified by reusing the same destination variable. It is more common in such cases.
Sorry, something went wrong.
|
My first thought is to use something like This is similar to pytest-xdist ( |
Sorry, something went wrong.
Currently, -j1 runs tests sequentially but spawn a new process for each test file: see #119727 (comment). I'm open to consider changing this behavior. |
Sorry, something went wrong.
|
Do you think anyone will realistically want to run sequentially and spawn a new process for each? My guess is not. |
Sorry, something went wrong.
|
I'm a little bit worried that some projects currently run tests with According to the discussion, the least bad choice is |
Sorry, something went wrong.
|
Then I'd include a hyphen for readability/accessibility: We have a mixture of options with and without hyphens, so consistency isn't a problem :) |
Sorry, something went wrong.
|
I updated the PR to use |
Sorry, something went wrong.
|
It does not really matter. It was just a tiny nitpick from my side. Use the name that you like if you are sure that it will not create problems in future. |
Sorry, something went wrong.
…aZM.rst Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
|
I'll submit a backport of this because it would be useful for the iOS and Android buildbots – #122992 (comment). |
Sorry, something went wrong.
(cherry picked from commit 4e8aa32)
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
|
Sorry, @vstinner, I could not cleanly backport this to |
Sorry, something went wrong.
--single-processoption to regrtest to always run tests sequentially (ignore-jNoption) #119727