Recommend running the test suite in parallel #1917
All commit authors signed the Contributor License Agreement.
<!-- CLA BOT SIGNING COMMENT DO NOT EDIT -->
<!-- readthedocs-55693 -->
Documentation build overview
📚 CPython devguide | 🛠️ Build #35451980 | 📁 Comparing 519d915509c78c5d4475779950e1e779fb7d4fca against latest (2439c5ff4529531db6773b6d604d0bff8a234385)
<kbd> 🔍 Preview build </kbd>
<details open>
<summary>3 files changed</summary>
<br>
<code>±</code> <a href="https://cpython-devguide--1917.org.readthedocs.build/versions/index.html"><code>versions/index.html</code></a><br>
<code>±</code> <a href="https://cpython-devguide--1917.org.readthedocs.build/developer-workflow/c-api/index.html"><code>developer-workflow/c-api/index.html</code></a><br>
<code>±</code> <a href="https://cpython-devguide--1917.org.readthedocs.build/testing/run-write-tests/index.html"><code>testing/run-write-tests/index.html</code></a><br>
</details>
Can you please add a section expanding how to run tests not in parallel?
To run tests sequentially, omit -j0 from the command.
I pushed such a section.
Approved these changes.
@StanFromIreland Is this "one worker process per CPU core"?
Thank you @harshit-s-gowda, and congrats on your first contribution to the devguide.
@StanFromIreland Please double check my question. Feel free to merge after. Thanks.
-j0 is actually ((os.process_cpu_count() or 1) + 2) worker processes.
Rather than trying to specify all of that, maybe just something like
By default, ``-j0`` runs tests in parallel using a number of worker processes based on available CPU core count,
Thanks @zware for the clarification. I like the suggested wording too.
Merged, thanks all!
StanFromIreland
harshit-s-gowda
Summary
-j0in the main test-running examples.Issue
Closes #1895