[all-commits] [llvm/llvm-project] 56fb74: [lldb/test] Increase pexpect termination timeouts
Pavel Labath via All-commits
all-commits at lists.llvm.org
Tue Mar 22 07:14:41 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56fb7456950d2564d16500e40c5719c954a6987a
https://github.com/llvm/llvm-project/commit/56fb7456950d2564d16500e40c5719c954a6987a
Author: Pavel Labath <pavel at labath.sk>
Date: 2022-03-22 (Tue, 22 Mar 2022)
Changed paths:
M lldb/packages/Python/lldbsuite/test/lldbpexpect.py
Log Message:
-----------
[lldb/test] Increase pexpect termination timeouts
By default these timeouts are extremely small (0.1s). This means that
100ms after sending an EOF, pexpect will start sending the process
increasingly aggressive signals, but the small timeouts mean that (on a
loaded machine) the kernel may not have enough time to process the
signal even if the overall effect of the signal is to kill the
application.
It turns out we were already relying on this signals (instead of regular
EOF quits) in our tests. In my experiments it was sufficient to block
SIGINT and SIGHUP to cause some test to become flaky. This was most
likely the reason of a couple of flakes on the lldb-x86_64-debian bot,
and is probably the reason why the pexpect tests are flaky on several
other (e.g. asan) bots.
This patch increses the timeout to 6 seconds (60-fold increase), which
is hopefully sufficient to avoid flakes even in the most extreme
situations.
More information about the All-commits
mailing list