summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-26 06:40:25 (GMT)
committerGitHub <noreply@github.com>2019-04-26 06:40:25 (GMT)
commit3cde440f20a9db75fb2c4e65e8e4d04a53216a2d (patch)
treec867159d768e27d5c92bd7dc4bef8d749255baa6 /Misc
parent87d23a041d9efb743c5680ac23305ddddf300e51 (diff)
downloadcpython-3cde440f20a9db75fb2c4e65e8e4d04a53216a2d.zip
cpython-3cde440f20a9db75fb2c4e65e8e4d04a53216a2d.tar.gz
cpython-3cde440f20a9db75fb2c4e65e8e4d04a53216a2d.tar.bz2
bpo-36725: Refactor regrtest multiprocessing code (GH-12961)
Rewrite run_tests_multiprocess() function as a new MultiprocessRunner class with multiple methods to better report errors and stop immediately when needed. Changes: * Worker processes are now killed immediately if tests are interrupted or if a test does crash (CHILD_ERROR): worker processes are killed. * Rewrite how errors in a worker thread are reported to the main thread. No longer ignore BaseException or parsing errors silently. * Remove 'finished' variable: use worker.is_alive() instead * Always compute omitted tests. Add Regrtest.get_executed() method.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2019-04-26-04-12-29.bpo-36725.B8-ghi.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2019-04-26-04-12-29.bpo-36725.B8-ghi.rst b/Misc/NEWS.d/next/Tests/2019-04-26-04-12-29.bpo-36725.B8-ghi.rst
new file mode 100644
index 0000000..b632c46
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2019-04-26-04-12-29.bpo-36725.B8-ghi.rst
@@ -0,0 +1,3 @@
+When using mulitprocessing mode (-jN), regrtest now better reports errors if
+a worker process fails, and it exits immediately on a worker thread failure
+or when interrupted.