]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-36670, regrtest: Fix WindowsLoadTracker() for partial line (GH-16550) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Oct 2019 15:44:52 +0000 (08:44 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 15:44:52 +0000 (08:44 -0700)
commitf9016e5fc9424d41c8e53de84f8699e78769a14a
tree5a1cdd47a3259c186bc6118c168c88446b4339f5
parentab98cd8aee5a5a7222b82ff13d61f0d33e72a889
[3.8] bpo-36670, regrtest: Fix WindowsLoadTracker() for partial line (GH-16550) (GH-16560)

* bpo-36670, regrtest: Fix WindowsLoadTracker() for partial line (GH-16550)

WindowsLoadTracker.read_output() now uses a short buffer for
incomplete line.

(cherry picked from commit 3e04cd268ee9a57f95dc78d8974b21a6fac3f666)

* bpo-36670: Enhance regrtest WindowsLoadTracker (GH-16553)

The last line is now passed to the parser even if it does not end
with a newline, but only if it's a valid value.

(cherry picked from commit c65119d5bfded03f80a9805889391b66fa7bf551)

* bpo-36670: Enhance regrtest (GH-16556)

* Add log() method: add timestamp and load average prefixes
  to main messages.
* WindowsLoadTracker:

  * LOAD_FACTOR_1 is now computed using SAMPLING_INTERVAL
  * Initialize the load to the arithmetic mean of the first 5 values
    of the Processor Queue Length value (so over 5 seconds), rather
    than 0.0.
  * Handle BrokenPipeError and when typeperf exit.

* format_duration(1.5) now returns '1.5 sec', rather than
  '1 sec 500 ms'

(cherry picked from commit 098e25672f1c3578855d5ded4f5147795c9ed956)
(cherry picked from commit de3195c937d5fca0d79cc93dbafa76c0f89ca5b8)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/libregrtest/utils.py
Lib/test/libregrtest/win_utils.py
Lib/test/test_regrtest.py