v8/tools/testrunner/testproc
Michael Achenbach 4a2d9b1b20 [test] Abort testing immediately on interrupt and sigterm
This is a partial revert of:
https://crrev.com/c/890938 and https://crrev.com/c/893982

Before this CL, the test runner blocked on ongoing tests in order to
process their results after an internal timeout. However, the logic
required for this feature was overly complicated and prevented an
acceptable implementation for fast aborts. Furthermore, also the fuzzers
suffered from timeouts on swarming due to hanging tests.

Instead, we now abort immediately on internal timeout (used on
fuzzers), SIGINT (Ctrl-C) and SIGTERM. Ongoing tests are immediately
terminated and their results are disregarded. On SIGTERM and SIGINT,
we return with non-zero exit codes, and zero on internal timeout.

This will also properly return json output, when the external hard
timeout is reached on swarming (causes SIGTERM).

TBR=sergiyb@chromium.org

Bug: v8:7423, chromium:813065
Change-Id: Ib20f835f58a0970693bdd3b21dc5d766d8e115d8
Reviewed-on: https://chromium-review.googlesource.com/924852
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51399}
2018-02-20 18:02:25 +00:00
..
__init__.py [test] Introduce test processors 2018-01-08 11:27:47 +00:00
base.py [test] Added signal handling to test processors 2018-01-31 10:39:06 +00:00
combiner.py [test] Add combine tests option to numfuzz 2018-01-25 15:50:24 +00:00
execution.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
expectation.py [test] Forgive tests timing out on num-fuzzers 2018-02-08 23:08:05 +00:00
filter.py [test] Fix args parsing and name filter 2018-01-17 10:32:12 +00:00
fuzzer.py [test] Add thread-pool-size numfuzzer 2018-02-16 20:49:17 +00:00
loader.py [test] Simplify passing results between test processors. 2018-01-15 08:51:40 +00:00
progress.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
rerun.py [test] Added signal handling to test processors 2018-01-31 10:39:06 +00:00
result.py [test] Move command from test to the result 2018-01-17 12:59:54 +00:00
seed.py [test] Stressing random seed with multiple subtests in parallel 2018-01-31 12:06:11 +00:00
shard.py [test] Implement shard processor 2018-01-16 11:33:03 +00:00
sigproc.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
timeout.py [test] Abort testing immediately on interrupt and sigterm 2018-02-20 18:02:25 +00:00
variant.py [test] Do not pass unnecessary results 2018-01-17 11:32:12 +00:00