[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 00/16] tests: enable meson test timeouts to improve debuggabil
From: |
Thomas Huth |
Subject: |
[PATCH v3 00/16] tests: enable meson test timeouts to improve debuggability |
Date: |
Fri, 15 Dec 2023 08:03:41 +0100 |
This is a respin of Daniel's series that re-enables the meson test
runner timeouts. To make sure that we do not get into trouble on
older systems, I ran all the tests with "make check SPEED=slow -j32"
on my laptop that has only 16 SMT threads, so each test was running
quite a bit slower than with a normal "-j$(nproc)" run. I think
that these timeouts should now work in most cases - if not, we still
can adjust them easily later.
Daniel's original patch series description follows:
---------------------------- 8< -------------------------------------
Perhaps the most painful of all the GitLab CI failures we see are
the enforced job timeouts:
"ERROR: Job failed: execution took longer than 1h15m0s seconds"
https://gitlab.com/qemu-project/qemu/-/jobs/4387047648
when that hits the CI log shows what has *already* run, but figuring
out what was currently running (or rather stuck) is an horrendously
difficult.
The initial meson port disabled the meson test timeouts, in order to
limit the scope for introducing side effects from the port that would
complicate adoption.
Now that the meson port is basically finished we can take advantage of
more of its improved features. It has the ability to set timeouts for
test programs, defaulting to 30 seconds, but overridable per test. This
is further helped by fact that we changed the iotests integration so
that each iotests was a distinct meson test, instead of having one
single giant (slow) test.
We already set overrides for a bunch of tests, but they've not been
kept up2date since we had timeouts disabled. So this series first
updates the timeout overrides such that all tests pass when run in
my test gitlab CI pipeline. Then it enables use of meson timeouts.
We might still hit timeouts due to non-deterministic performance of
gitlab CI runners. So we'll probably have to increase a few more
timeouts in the short term. Fortunately this is going to be massively
easier to diagnose. For example this job during my testing:
https://gitlab.com/berrange/qemu/-/jobs/4392029495
we can immediately see the problem tests
Summary of Failures:
6/252 qemu:qtest+qtest-i386 / qtest-i386/bios-tables-test
TIMEOUT 120.02s killed by signal 15 SIGTERM
7/252 qemu:qtest+qtest-aarch64 / qtest-aarch64/bios-tables-test
TIMEOUT 120.03s killed by signal 15 SIGTERM
64/252 qemu:qtest+qtest-aarch64 / qtest-aarch64/qom-test
TIMEOUT 300.03s killed by signal 15 SIGTERM
The full meson testlog.txt will show each individual TAP log output,
so we can then see exactly which test case we got stuck on.
---------------------------- 8< -------------------------------------
Daniel P. Berrangé (12):
qtest: bump min meson timeout to 60 seconds
qtest: bump migration-test timeout to 8 minutes
qtest: bump qom-test timeout to 15 minutes
qtest: bump npcm7xx_pwn-test timeout to 5 minutes
qtest: bump test-hmp timeout to 4 minutes
qtest: bump pxe-test timeout to 10 minutes
qtest: bump prom-env-test timeout to 6 minutes
qtest: bump boot-serial-test timeout to 3 minutes
qtest: bump qos-test timeout to 2 minutes
qtest: bump aspeed_smc-test timeout to 6 minutes
qtest: bump bios-table-test timeout to 9 minutes
mtest2make: stop disabling meson test timeouts
Thomas Huth (4):
tests/qtest: Bump the device-introspect-test timeout to 12 minutes
tests/unit: Bump test-aio-multithread test timeout to 2 minutes
tests/unit: Bump test-crypto-block test timeout to 5 minutes
tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes
scripts/mtest2make.py | 3 ++-
tests/fp/meson.build | 2 +-
tests/qtest/meson.build | 25 +++++++++++++------------
tests/unit/meson.build | 2 ++
4 files changed, 18 insertions(+), 14 deletions(-)
--
2.43.0
- [PATCH v3 00/16] tests: enable meson test timeouts to improve debuggability,
Thomas Huth <=
- [PATCH v3 01/16] qtest: bump min meson timeout to 60 seconds, Thomas Huth, 2023/12/15
- [PATCH v3 02/16] qtest: bump migration-test timeout to 8 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 03/16] qtest: bump qom-test timeout to 15 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 04/16] qtest: bump npcm7xx_pwn-test timeout to 5 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 10/16] qtest: bump aspeed_smc-test timeout to 6 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 07/16] qtest: bump prom-env-test timeout to 6 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 11/16] qtest: bump bios-table-test timeout to 9 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 12/16] tests/qtest: Bump the device-introspect-test timeout to 12 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 14/16] tests/unit: Bump test-crypto-block test timeout to 5 minutes, Thomas Huth, 2023/12/15
- [PATCH v3 06/16] qtest: bump pxe-test timeout to 10 minutes, Thomas Huth, 2023/12/15