* [PULL 00/22] testing and misc updates
@ 2024-01-12 11:04 Alex Bennée
2024-01-12 11:04 ` [PULL 01/22] tests/avocado: Add a test for a little-endian microblaze machine Alex Bennée
` (21 more replies)
0 siblings, 22 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Alex Bennée
The following changes since commit f614acb7450282a119d85d759f27eae190476058:
Merge tag 'pull-target-arm-20240111' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2024-01-11 11:05:44 +0000)
are available in the Git repository at:
https://gitlab.com/stsquad/qemu.git tags/pull-testing-updates-120124-1
for you to fetch changes up to b4960adfbd8975579016c94a087eb2f6bece7eda:
Revert "tests/avocado: remove skips from replay_kernel" (2024-01-12 10:08:16 +0000)
----------------------------------------------------------------
testing and misc updates
- add LE microblaze test to avocado
- use modern snapshot=on to avoid trashing disk image
- use plain bool for fe_is_open
- various updates to qtest timeouts
- enable meson test timeouts
- tweak the readthedocs environment
- revert the revert of flaky replay tests
----------------------------------------------------------------
Alex Bennée (5):
tests/avocado: use snapshot=on in kvm_xen_guest
gitlab: include microblazeel in testing
chardev: use bool for fe_is_open
readthodocs: fully specify a build environment
Revert "tests/avocado: remove skips from replay_kernel"
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_pwm-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 (5):
tests/avocado: Add a test for a little-endian microblaze machine
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
docs/requirements.txt | 2 ++
include/chardev/char-fe.h | 19 ++++++++++++-------
chardev/char-fe.c | 16 ++++++++--------
chardev/char.c | 2 +-
.gitlab-ci.d/buildtest.yml | 4 ++--
.readthedocs.yml | 19 ++++++++++++-------
scripts/mtest2make.py | 3 ++-
tests/avocado/kvm_xen_guest.py | 2 +-
tests/avocado/machine_microblaze.py | 26 ++++++++++++++++++++++++++
tests/avocado/replay_kernel.py | 11 +++++++++++
tests/fp/meson.build | 2 +-
tests/qtest/meson.build | 25 +++++++++++++------------
tests/unit/meson.build | 2 ++
13 files changed, 93 insertions(+), 40 deletions(-)
create mode 100644 docs/requirements.txt
--
2.39.2
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PULL 01/22] tests/avocado: Add a test for a little-endian microblaze machine
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest Alex Bennée
` (20 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Thomas Huth, Alex Bennée, Edgar E. Iglesias, Cleber Rosa,
Philippe Mathieu-Daudé, Wainer dos Santos Moschetta,
Beraldo Leal
From: Thomas Huth <thuth@redhat.com>
We've already got a test for a big endian microblaze machine, but so
far we lack one for a little endian machine. Now that the QEMU advent
calendar featured such an image, we can test the little endian mode,
too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215161851.71508-1-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/avocado/machine_microblaze.py b/tests/avocado/machine_microblaze.py
index 8d0efff30d2..807709cd11e 100644
--- a/tests/avocado/machine_microblaze.py
+++ b/tests/avocado/machine_microblaze.py
@@ -5,6 +5,8 @@
# This work is licensed under the terms of the GNU GPL, version 2 or
# later. See the COPYING file in the top-level directory.
+import time
+from avocado_qemu import exec_command, exec_command_and_wait_for_pattern
from avocado_qemu import QemuSystemTest
from avocado_qemu import wait_for_console_pattern
from avocado.utils import archive
@@ -33,3 +35,27 @@ def test_microblaze_s3adsp1800(self):
# The kernel sometimes gets stuck after the "This architecture ..."
# message, that's why we don't test for a later string here. This
# needs some investigation by a microblaze wizard one day...
+
+ def test_microblazeel_s3adsp1800(self):
+ """
+ :avocado: tags=arch:microblazeel
+ :avocado: tags=machine:petalogix-s3adsp1800
+ """
+
+ self.require_netdev('user')
+ tar_url = ('http://www.qemu-advent-calendar.org/2023/download/'
+ 'day13.tar.gz')
+ tar_hash = '6623d5fff5f84cfa8f34e286f32eff6a26546f44'
+ file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
+ archive.extract(file_path, self.workdir)
+ self.vm.set_console()
+ self.vm.add_args('-kernel', self.workdir + '/day13/xmaton.bin')
+ self.vm.add_args('-nic', 'user,tftp=' + self.workdir + '/day13/')
+ self.vm.launch()
+ wait_for_console_pattern(self, 'QEMU Advent Calendar 2023')
+ time.sleep(0.1)
+ exec_command(self, 'root')
+ time.sleep(0.1)
+ exec_command_and_wait_for_pattern(self,
+ 'tftp -g -r xmaton.png 10.0.2.2 ; md5sum xmaton.png',
+ '821cd3cab8efd16ad6ee5acc3642a8ea')
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
2024-01-12 11:04 ` [PULL 01/22] tests/avocado: Add a test for a little-endian microblaze machine Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-08-01 9:48 ` David Woodhouse
2024-01-12 11:04 ` [PULL 03/22] gitlab: include microblazeel in testing Alex Bennée
` (19 subsequent siblings)
21 siblings, 1 reply; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Alex Bennée, Philippe Mathieu-Daudé, David Woodhouse,
Paul Durrant, Cleber Rosa, Wainer dos Santos Moschetta,
Beraldo Leal, Paolo Bonzini, open list:Overall KVM CPUs
This ensures the rootfs is never permanently changed as we don't need
persistence between tests anyway.
Message-Id: <20240103173349.398526-3-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/tests/avocado/kvm_xen_guest.py b/tests/avocado/kvm_xen_guest.py
index 5391283113e..f8cb458d5db 100644
--- a/tests/avocado/kvm_xen_guest.py
+++ b/tests/avocado/kvm_xen_guest.py
@@ -59,7 +59,7 @@ def common_vm_setup(self):
def run_and_check(self):
self.vm.add_args('-kernel', self.kernel_path,
'-append', self.kernel_params,
- '-drive', f"file={self.rootfs},if=none,format=raw,id=drv0",
+ '-drive', f"file={self.rootfs},if=none,snapshot=on,format=raw,id=drv0",
'-device', 'xen-disk,drive=drv0,vdev=xvda',
'-device', 'virtio-net-pci,netdev=unet',
'-netdev', 'user,id=unet,hostfwd=:127.0.0.1:0-:22')
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 03/22] gitlab: include microblazeel in testing
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
2024-01-12 11:04 ` [PULL 01/22] tests/avocado: Add a test for a little-endian microblaze machine Alex Bennée
2024-01-12 11:04 ` [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 04/22] chardev: use bool for fe_is_open Alex Bennée
` (18 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Alex Bennée, Thomas Huth, Philippe Mathieu-Daudé,
Wainer dos Santos Moschetta, Beraldo Leal
This reverts aeb5f8f248e (gitlab: build the correct microblaze target)
now we actually have a little-endian test in avocado thanks to this
years advent calendar.
Message-Id: <20240103173349.398526-4-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index 91663946de4..ef71dfe8665 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -41,7 +41,7 @@ build-system-ubuntu:
variables:
IMAGE: ubuntu2204
CONFIGURE_ARGS: --enable-docs
- TARGETS: alpha-softmmu microblaze-softmmu mips64el-softmmu
+ TARGETS: alpha-softmmu microblazeel-softmmu mips64el-softmmu
MAKE_CHECK_ARGS: check-build
check-system-ubuntu:
@@ -61,7 +61,7 @@ avocado-system-ubuntu:
variables:
IMAGE: ubuntu2204
MAKE_CHECK_ARGS: check-avocado
- AVOCADO_TAGS: arch:alpha arch:microblaze arch:mips64el
+ AVOCADO_TAGS: arch:alpha arch:microblazeel arch:mips64el
build-system-debian:
extends:
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 04/22] chardev: use bool for fe_is_open
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (2 preceding siblings ...)
2024-01-12 11:04 ` [PULL 03/22] gitlab: include microblazeel in testing Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 05/22] qtest: bump min meson timeout to 60 seconds Alex Bennée
` (17 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Alex Bennée, Philippe Mathieu-Daudé,
Marc-André Lureau, Paolo Bonzini
The function qemu_chr_fe_init already treats be->fe_open as a bool and
if it acts like a bool it should be one. While we are at it make the
variable name more descriptive and add kdoc decorations.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231211145959.93759-1-alex.bennee@linaro.org>
diff --git a/include/chardev/char-fe.h b/include/chardev/char-fe.h
index 0ff6f875116..ecef1828355 100644
--- a/include/chardev/char-fe.h
+++ b/include/chardev/char-fe.h
@@ -7,8 +7,12 @@
typedef void IOEventHandler(void *opaque, QEMUChrEvent event);
typedef int BackendChangeHandler(void *opaque);
-/* This is the backend as seen by frontend, the actual backend is
- * Chardev */
+/**
+ * struct CharBackend - back end as seen by front end
+ * @fe_is_open: the front end is ready for IO
+ *
+ * The actual backend is Chardev
+ */
struct CharBackend {
Chardev *chr;
IOEventHandler *chr_event;
@@ -17,7 +21,7 @@ struct CharBackend {
BackendChangeHandler *chr_be_change;
void *opaque;
int tag;
- int fe_open;
+ bool fe_is_open;
};
/**
@@ -156,12 +160,13 @@ void qemu_chr_fe_set_echo(CharBackend *be, bool echo);
/**
* qemu_chr_fe_set_open:
+ * @be: a CharBackend
+ * @is_open: the front end open status
*
- * Set character frontend open status. This is an indication that the
- * front end is ready (or not) to begin doing I/O.
- * Without associated Chardev, do nothing.
+ * This is an indication that the front end is ready (or not) to begin
+ * doing I/O. Without associated Chardev, do nothing.
*/
-void qemu_chr_fe_set_open(CharBackend *be, int fe_open);
+void qemu_chr_fe_set_open(CharBackend *be, bool is_open);
/**
* qemu_chr_fe_printf:
diff --git a/chardev/char-fe.c b/chardev/char-fe.c
index 7789f7be9c8..20222a4cad5 100644
--- a/chardev/char-fe.c
+++ b/chardev/char-fe.c
@@ -211,7 +211,7 @@ bool qemu_chr_fe_init(CharBackend *b, Chardev *s, Error **errp)
}
}
- b->fe_open = false;
+ b->fe_is_open = false;
b->tag = tag;
b->chr = s;
return true;
@@ -257,7 +257,7 @@ void qemu_chr_fe_set_handlers_full(CharBackend *b,
bool sync_state)
{
Chardev *s;
- int fe_open;
+ bool fe_open;
s = b->chr;
if (!s) {
@@ -265,10 +265,10 @@ void qemu_chr_fe_set_handlers_full(CharBackend *b,
}
if (!opaque && !fd_can_read && !fd_read && !fd_event) {
- fe_open = 0;
+ fe_open = false;
remove_fd_in_watch(s);
} else {
- fe_open = 1;
+ fe_open = true;
}
b->chr_can_read = fd_can_read;
b->chr_read = fd_read;
@@ -336,7 +336,7 @@ void qemu_chr_fe_set_echo(CharBackend *be, bool echo)
}
}
-void qemu_chr_fe_set_open(CharBackend *be, int fe_open)
+void qemu_chr_fe_set_open(CharBackend *be, bool is_open)
{
Chardev *chr = be->chr;
@@ -344,12 +344,12 @@ void qemu_chr_fe_set_open(CharBackend *be, int fe_open)
return;
}
- if (be->fe_open == fe_open) {
+ if (be->fe_is_open == is_open) {
return;
}
- be->fe_open = fe_open;
+ be->fe_is_open = is_open;
if (CHARDEV_GET_CLASS(chr)->chr_set_fe_open) {
- CHARDEV_GET_CLASS(chr)->chr_set_fe_open(chr, fe_open);
+ CHARDEV_GET_CLASS(chr)->chr_set_fe_open(chr, is_open);
}
}
diff --git a/chardev/char.c b/chardev/char.c
index 185b5ea2556..3c43fb1278f 100644
--- a/chardev/char.c
+++ b/chardev/char.c
@@ -762,7 +762,7 @@ static int qmp_query_chardev_foreach(Object *obj, void *data)
value->label = g_strdup(chr->label);
value->filename = g_strdup(chr->filename);
- value->frontend_open = chr->be && chr->be->fe_open;
+ value->frontend_open = chr->be && chr->be->fe_is_open;
QAPI_LIST_PREPEND(*list, value);
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 05/22] qtest: bump min meson timeout to 60 seconds
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (3 preceding siblings ...)
2024-01-12 11:04 ` [PULL 04/22] chardev: use bool for fe_is_open Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 06/22] qtest: bump migration-test timeout to 8 minutes Alex Bennée
` (16 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
Even some of the relatively fast qtests can sometimes hit the 30 second
timeout in GitLab CI under high parallelism/load conditions. Bump the
min to 60 seconds to give a higher margin for reliability.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20230717182859.707658-2-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-2-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index f25bffcc20a..df013a36b32 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -1,12 +1,7 @@
slow_qtests = {
- 'ahci-test' : 60,
'bios-tables-test' : 120,
- 'boot-serial-test' : 60,
'migration-test' : 150,
'npcm7xx_pwm-test': 150,
- 'prom-env-test' : 60,
- 'pxe-test' : 60,
- 'qos-test' : 60,
'qom-test' : 300,
'test-hmp' : 120,
}
@@ -383,8 +378,8 @@ foreach dir : target_dirs
env: qtest_env,
args: ['--tap', '-k'],
protocol: 'tap',
- timeout: slow_qtests.get(test, 30),
- priority: slow_qtests.get(test, 30),
+ timeout: slow_qtests.get(test, 60),
+ priority: slow_qtests.get(test, 60),
suite: ['qtest', 'qtest-' + target_base])
endforeach
endforeach
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 06/22] qtest: bump migration-test timeout to 8 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (4 preceding siblings ...)
2024-01-12 11:04 ` [PULL 05/22] qtest: bump min meson timeout to 60 seconds Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 07/22] qtest: bump qom-test timeout to 15 minutes Alex Bennée
` (15 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The migration test should take between 1 min 30 and 2 mins on reasonably
modern hardware. The test is not especially compute bound, rather its
running time is dominated by the guest RAM size relative to the
bandwidth cap, which forces each iteration to take at least 30 seconds.
None the less under high load conditions with multiple QEMU processes
spawned and competing with other parallel tests, the worst case running
time might be somewhat extended. Bumping the timeout to 8 minutes gives
us good headroom, while still catching stuck tests relatively quickly.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20230717182859.707658-3-berrange@redhat.com>
[thuth: Bump timeout to 8 minutes to make it work on very loaded systems, too]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-3-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index df013a36b32..2d2b37c2a78 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -1,6 +1,6 @@
slow_qtests = {
'bios-tables-test' : 120,
- 'migration-test' : 150,
+ 'migration-test' : 480,
'npcm7xx_pwm-test': 150,
'qom-test' : 300,
'test-hmp' : 120,
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 07/22] qtest: bump qom-test timeout to 15 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (5 preceding siblings ...)
2024-01-12 11:04 ` [PULL 06/22] qtest: bump migration-test timeout to 8 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 08/22] qtest: bump npcm7xx_pwm-test timeout to 5 minutes Alex Bennée
` (14 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The qom-test is periodically hitting the 5 minute timeout when running
on the aarch64 emulator under GitLab CI. With an --enable-debug build
it can take over 10 minutes for arm/aarch64 targets. Setting timeout
to 15 minutes gives enough headroom to hopefully make it reliable.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20230717182859.707658-4-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-4-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 2d2b37c2a78..bb9d599e4dc 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -2,7 +2,7 @@ slow_qtests = {
'bios-tables-test' : 120,
'migration-test' : 480,
'npcm7xx_pwm-test': 150,
- 'qom-test' : 300,
+ 'qom-test' : 900,
'test-hmp' : 120,
}
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 08/22] qtest: bump npcm7xx_pwm-test timeout to 5 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (6 preceding siblings ...)
2024-01-12 11:04 ` [PULL 07/22] qtest: bump qom-test timeout to 15 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 09/22] qtest: bump test-hmp timeout to 4 minutes Alex Bennée
` (13 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The npcm7xx_pwm-test takes 3 & 1/2 minutes in a --enable-debug build.
Bumping to 5 minutes will give more headroom.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20230717182859.707658-5-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-5-thuth@redhat.com>
[AJB: s/pwn/pwm]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index bb9d599e4dc..823a8ac38d0 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -1,7 +1,7 @@
slow_qtests = {
'bios-tables-test' : 120,
'migration-test' : 480,
- 'npcm7xx_pwm-test': 150,
+ 'npcm7xx_pwm-test': 300,
'qom-test' : 900,
'test-hmp' : 120,
}
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 09/22] qtest: bump test-hmp timeout to 4 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (7 preceding siblings ...)
2024-01-12 11:04 ` [PULL 08/22] qtest: bump npcm7xx_pwm-test timeout to 5 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 10/22] qtest: bump pxe-test timeout to 10 minutes Alex Bennée
` (12 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The hmp test takes just under 3 minutes in a --enable-debug
build. Bumping to 4 minutes will give more headroom.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20230717182859.707658-6-berrange@redhat.com>
[thuth: fix copy-n-paste error in the description]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-6-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 823a8ac38d0..3ea8279527c 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -3,7 +3,7 @@ slow_qtests = {
'migration-test' : 480,
'npcm7xx_pwm-test': 300,
'qom-test' : 900,
- 'test-hmp' : 120,
+ 'test-hmp' : 240,
}
qtests_generic = [
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 10/22] qtest: bump pxe-test timeout to 10 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (8 preceding siblings ...)
2024-01-12 11:04 ` [PULL 09/22] qtest: bump test-hmp timeout to 4 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 11/22] qtest: bump prom-env-test timeout to 6 minutes Alex Bennée
` (11 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The pxe-test uses the boot_sector_test() function, and that already
uses a timeout of 600 seconds. So adjust the timeout on the meson
side accordingly.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
[thuth: Bump timeout to 600s and adjust commit description]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-7-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 3ea8279527c..3f56b205181 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -4,6 +4,7 @@ slow_qtests = {
'npcm7xx_pwm-test': 300,
'qom-test' : 900,
'test-hmp' : 240,
+ 'pxe-test': 600,
}
qtests_generic = [
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 11/22] qtest: bump prom-env-test timeout to 6 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (9 preceding siblings ...)
2024-01-12 11:04 ` [PULL 10/22] qtest: bump pxe-test timeout to 10 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 12/22] qtest: bump boot-serial-test timeout to 3 minutes Alex Bennée
` (10 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The prom-env-test can take more than 5 minutes in a --enable-debug
build on a loaded system. Bumping to 6 minutes will give more headroom.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
[thuth: Bump timeout to 6 minutes instead of 3]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-8-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 3f56b205181..b3b2e3857bd 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -5,6 +5,7 @@ slow_qtests = {
'qom-test' : 900,
'test-hmp' : 240,
'pxe-test': 600,
+ 'prom-env-test': 360,
}
qtests_generic = [
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 12/22] qtest: bump boot-serial-test timeout to 3 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (10 preceding siblings ...)
2024-01-12 11:04 ` [PULL 11/22] qtest: bump prom-env-test timeout to 6 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 13/22] qtest: bump qos-test timeout to 2 minutes Alex Bennée
` (9 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The boot-serial-test takes about 1 + 1/2 minutes in a --enable-debug
build. Bumping to 3 minutes will give more headroom.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20230717182859.707658-9-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-9-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index b3b2e3857bd..6d89bac722b 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -6,6 +6,7 @@ slow_qtests = {
'test-hmp' : 240,
'pxe-test': 600,
'prom-env-test': 360,
+ 'boot-serial-test': 180,
}
qtests_generic = [
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 13/22] qtest: bump qos-test timeout to 2 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (11 preceding siblings ...)
2024-01-12 11:04 ` [PULL 12/22] qtest: bump boot-serial-test timeout to 3 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 14/22] qtest: bump aspeed_smc-test timeout to 6 minutes Alex Bennée
` (8 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The qos-test takes just under 1 minute in a --enable-debug
build. Bumping to 2 minutes will give more headroom.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20230717182859.707658-10-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-10-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 6d89bac722b..eaa2cf64a3f 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -7,6 +7,7 @@ slow_qtests = {
'pxe-test': 600,
'prom-env-test': 360,
'boot-serial-test': 180,
+ 'qos-test': 120,
}
qtests_generic = [
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 14/22] qtest: bump aspeed_smc-test timeout to 6 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (12 preceding siblings ...)
2024-01-12 11:04 ` [PULL 13/22] qtest: bump qos-test timeout to 2 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 15/22] qtest: bump bios-table-test timeout to 9 minutes Alex Bennée
` (7 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
On a loaded system with --enable-debug, this test can take longer than
5 minutes. Raising the timeout to 6 minutes gives greater headroom for
such situations.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
[thuth: Increase the timeout to 6 minutes for very loaded systems]
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-11-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index eaa2cf64a3f..c86a997b954 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -1,4 +1,5 @@
slow_qtests = {
+ 'aspeed_smc-test': 360,
'bios-tables-test' : 120,
'migration-test' : 480,
'npcm7xx_pwm-test': 300,
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 15/22] qtest: bump bios-table-test timeout to 9 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (13 preceding siblings ...)
2024-01-12 11:04 ` [PULL 14/22] qtest: bump aspeed_smc-test timeout to 6 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 16/22] tests/qtest: Bump the device-introspect-test timeout to 12 minutes Alex Bennée
` (6 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Thomas Huth, Alex Bennée,
Laurent Vivier, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
This is reliably hitting the current 2 minute timeout in GitLab CI,
and for the TCI job, it even hits a 6 minute timeout.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20230717182859.707658-12-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-12-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index c86a997b954..9e0ad15dfc9 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -1,6 +1,6 @@
slow_qtests = {
'aspeed_smc-test': 360,
- 'bios-tables-test' : 120,
+ 'bios-tables-test' : 540,
'migration-test' : 480,
'npcm7xx_pwm-test': 300,
'qom-test' : 900,
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 16/22] tests/qtest: Bump the device-introspect-test timeout to 12 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (14 preceding siblings ...)
2024-01-12 11:04 ` [PULL 15/22] qtest: bump bios-table-test timeout to 9 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 17/22] tests/unit: Bump test-aio-multithread test timeout to 2 minutes Alex Bennée
` (5 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Thomas Huth, Alex Bennée, Laurent Vivier, Paolo Bonzini
From: Thomas Huth <thuth@redhat.com>
When running the test in slow mode on a very loaded system with the
arm/aarch64 target and with --enable-debug, it can take longer than
10 minutes to finish the introspection test. Bump the timeout to twelve
minutes to make sure that it also finishes in such situations.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-13-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 9e0ad15dfc9..fd40136fa9c 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -1,6 +1,7 @@
slow_qtests = {
'aspeed_smc-test': 360,
'bios-tables-test' : 540,
+ 'device-introspect-test' : 720,
'migration-test' : 480,
'npcm7xx_pwm-test': 300,
'qom-test' : 900,
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 17/22] tests/unit: Bump test-aio-multithread test timeout to 2 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (15 preceding siblings ...)
2024-01-12 11:04 ` [PULL 16/22] tests/qtest: Bump the device-introspect-test timeout to 12 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 18/22] tests/unit: Bump test-crypto-block test timeout to 5 minutes Alex Bennée
` (4 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Thomas Huth, Alex Bennée
From: Thomas Huth <thuth@redhat.com>
When running the tests in slow mode on a very loaded system and with
--enable-debug, the test-aio-multithread can take longer than 1 minute.
Bump the timeout to two minutes to make sure that it also passes in
such situations.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-14-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index 69f9c050504..937e1ebd356 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -172,6 +172,7 @@ test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
slow_tests = {
+ 'test-aio-multithread' : 120,
'test-crypto-tlscredsx509': 45,
'test-crypto-tlssession': 45
}
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 18/22] tests/unit: Bump test-crypto-block test timeout to 5 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (16 preceding siblings ...)
2024-01-12 11:04 ` [PULL 17/22] tests/unit: Bump test-aio-multithread test timeout to 2 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 19/22] tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes Alex Bennée
` (3 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Thomas Huth, Alex Bennée
From: Thomas Huth <thuth@redhat.com>
When running the tests in slow mode on a very loaded system and with
--enable-debug, the test-crypto-block can take longer than 4 minutes.
Bump the timeout to 5 minutes to make sure that it also passes in
such situations.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-15-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/unit/meson.build b/tests/unit/meson.build
index 937e1ebd356..06595321223 100644
--- a/tests/unit/meson.build
+++ b/tests/unit/meson.build
@@ -173,6 +173,7 @@ test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
slow_tests = {
'test-aio-multithread' : 120,
+ 'test-crypto-block' : 300,
'test-crypto-tlscredsx509': 45,
'test-crypto-tlssession': 45
}
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 19/22] tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (17 preceding siblings ...)
2024-01-12 11:04 ` [PULL 18/22] tests/unit: Bump test-crypto-block test timeout to 5 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 20/22] mtest2make: stop disabling meson test timeouts Alex Bennée
` (2 subsequent siblings)
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Thomas Huth, Alex Bennée, Aurelien Jarno, Peter Maydell
From: Thomas Huth <thuth@redhat.com>
When running the tests in slow mode with --enable-debug on a very loaded
system, the fp-test-mulAdd test can take longer than 2 minutes. Bump the
timeout to three minutes to make sure it passes in such situations, too.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-16-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/fp/meson.build b/tests/fp/meson.build
index 4ab89aaa960..114b4b483ea 100644
--- a/tests/fp/meson.build
+++ b/tests/fp/meson.build
@@ -124,7 +124,7 @@ test('fp-test-mulAdd', fptest,
# no fptest_rounding_args
args: fptest_args +
['f16_mulAdd', 'f32_mulAdd', 'f64_mulAdd', 'f128_mulAdd'],
- suite: ['softfloat-slow', 'softfloat-ops-slow', 'slow'], timeout: 90)
+ suite: ['softfloat-slow', 'softfloat-ops-slow', 'slow'], timeout: 180)
executable(
'fp-bench',
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 20/22] mtest2make: stop disabling meson test timeouts
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (18 preceding siblings ...)
2024-01-12 11:04 ` [PULL 19/22] tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 21/22] readthodocs: fully specify a build environment Alex Bennée
2024-01-12 11:04 ` [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel" Alex Bennée
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Daniel P. Berrangé, Philippe Mathieu-Daudé, Thomas Huth,
Alex Bennée, John Snow, Cleber Rosa, Paolo Bonzini
From: Daniel P. Berrangé <berrange@redhat.com>
The mtest2make.py script passes the arg '-t 0' to 'meson test' which
disables all test timeouts. This is a major source of pain when running
in GitLab CI and a test gets stuck. It will stall until GitLab kills the
CI job. This leaves us with little easily consumable information about
the stalled test. The TAP format doesn't show the test name until it is
completed, and TAP output from multiple tests it interleaved. So we
have to analyse the log to figure out what tests had un-finished TAP
output present and thus infer which test case caused the hang. This is
very time consuming and error prone.
By allowing meson to kill stalled tests, we get a direct display of what
test program got stuck, which lets us more directly focus in on what
specific test case within the test program hung.
The other issue with disabling meson test timeouts by default is that it
makes it more likely that maintainers inadvertantly introduce slowdowns.
For example the recent-ish change that accidentally made migrate-test
take 15-20 minutes instead of around 1 minute.
The main risk of this change is that the individual test timeouts might
be too short to allow completion in high load scenarios. Thus, there is
likely to be some short term pain where we have to bump the timeouts for
certain tests to make them reliable enough. The preceeding few patches
raised the timeouts for all failures that were immediately apparent
in GitLab CI.
Even with the possible short term instability, this should still be a
net win for debuggability of failed CI pipelines over the long term.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20230717182859.707658-13-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20231215070357.10888-17-thuth@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py
index 179dd548718..eb01a05ddbd 100644
--- a/scripts/mtest2make.py
+++ b/scripts/mtest2make.py
@@ -27,7 +27,8 @@ def names(self, base):
.speed.slow = $(foreach s,$(sort $(filter-out %-thorough, $1)), --suite $s)
.speed.thorough = $(foreach s,$(sort $1), --suite $s)
-.mtestargs = --no-rebuild -t 0
+TIMEOUT_MULTIPLIER = 1
+.mtestargs = --no-rebuild -t $(TIMEOUT_MULTIPLIER)
ifneq ($(SPEED), quick)
.mtestargs += --setup $(SPEED)
endif
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 21/22] readthodocs: fully specify a build environment
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (19 preceding siblings ...)
2024-01-12 11:04 ` [PULL 20/22] mtest2make: stop disabling meson test timeouts Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:04 ` [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel" Alex Bennée
21 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel; +Cc: Alex Bennée, qemu-stable
This is now expected by rtd so I've expanded using their example as
22.04 is one of our supported platforms. I tried to work out if there
was an easy way to re-generate a requirements.txt from our
pythondeps.toml but in the end went for the easier solution.
Cc: <qemu-stable@nongnu.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231221174200.2693694-1-alex.bennee@linaro.org>
diff --git a/docs/requirements.txt b/docs/requirements.txt
new file mode 100644
index 00000000000..691e5218ec7
--- /dev/null
+++ b/docs/requirements.txt
@@ -0,0 +1,2 @@
+sphinx==5.3.0
+sphinx_rtd_theme==1.1.1
diff --git a/.readthedocs.yml b/.readthedocs.yml
index 7fb7b8dd61a..0b262469ce6 100644
--- a/.readthedocs.yml
+++ b/.readthedocs.yml
@@ -5,16 +5,21 @@
# Required
version: 2
+# Set the version of Python and other tools you might need
+build:
+ os: ubuntu-22.04
+ tools:
+ python: "3.11"
+
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py
+# We recommend specifying your dependencies to enable reproducible builds:
+# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
+python:
+ install:
+ - requirements: docs/requirements.txt
+
# We want all the document formats
formats: all
-
-# For consistency, we require that QEMU's Sphinx extensions
-# run with at least the same minimum version of Python that
-# we require for other Python in our codebase (our conf.py
-# enforces this, and some code needs it.)
-python:
- version: 3.6
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel"
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
` (20 preceding siblings ...)
2024-01-12 11:04 ` [PULL 21/22] readthodocs: fully specify a build environment Alex Bennée
@ 2024-01-12 11:04 ` Alex Bennée
2024-01-12 11:13 ` Peter Maydell
21 siblings, 1 reply; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 11:04 UTC (permalink / raw)
To: qemu-devel
Cc: Alex Bennée, Pavel Dovgalyuk, Paolo Bonzini, Cleber Rosa,
Philippe Mathieu-Daudé, Wainer dos Santos Moschetta,
Beraldo Leal
This reverts commit c2ef5ee89d76f0ab77c4dd6a1c9eeed4d35d20ed.
While the fixes for #2010 and #2013 have improved things locally it
seems GitLab still continues to be flaky.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
index 6fdcbd6ac3d..1eaa36444cb 100644
--- a/tests/avocado/replay_kernel.py
+++ b/tests/avocado/replay_kernel.py
@@ -98,10 +98,13 @@ def test_i386_pc(self):
self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
+ # See https://gitlab.com/qemu-project/qemu/-/issues/2010
+ @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck')
def test_x86_64_pc(self):
"""
:avocado: tags=arch:x86_64
:avocado: tags=machine:pc
+ :avocado: tags=flaky
"""
kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
'/linux/releases/29/Everything/x86_64/os/images/pxeboot'
@@ -132,6 +135,8 @@ def test_mips_malta(self):
self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
+ # See https://gitlab.com/qemu-project/qemu/-/issues/2013
+ @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
def test_mips64el_malta(self):
"""
This test requires the ar tool to extract "data.tar.gz" from
@@ -147,6 +152,7 @@ def test_mips64el_malta(self):
:avocado: tags=arch:mips64el
:avocado: tags=machine:malta
+ :avocado: tags=flaky
"""
deb_url = ('http://snapshot.debian.org/archive/debian/'
'20130217T032700Z/pool/main/l/linux-2.6/'
@@ -194,10 +200,13 @@ def test_arm_virt(self):
self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=1)
+ @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
+
def test_arm_cubieboard_initrd(self):
"""
:avocado: tags=arch:arm
:avocado: tags=machine:cubieboard
+ :avocado: tags=flaky
"""
deb_url = ('https://apt.armbian.com/pool/main/l/'
'linux-5.10.16-sunxi/linux-image-current-sunxi_21.02.2_armhf.deb')
@@ -345,6 +354,7 @@ def test_m68k_mcf5208evb(self):
file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
self.do_test_advcal_2018(file_path, 'sanity-clause.elf')
+ @skip("Test currently broken") # Console stuck as of 5.2-rc1
def test_microblaze_s3adsp1800(self):
"""
:avocado: tags=arch:microblaze
@@ -379,6 +389,7 @@ def test_or1k_sim(self):
file_path = self.fetch_asset(tar_url, asset_hash=tar_hash)
self.do_test_advcal_2018(file_path, 'vmlinux')
+ @skip("nios2 emulation is buggy under record/replay")
def test_nios2_10m50(self):
"""
:avocado: tags=arch:nios2
--
2.39.2
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel"
2024-01-12 11:04 ` [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel" Alex Bennée
@ 2024-01-12 11:13 ` Peter Maydell
2024-01-12 13:11 ` Alex Bennée
0 siblings, 1 reply; 26+ messages in thread
From: Peter Maydell @ 2024-01-12 11:13 UTC (permalink / raw)
To: Alex Bennée
Cc: qemu-devel, Pavel Dovgalyuk, Paolo Bonzini, Cleber Rosa,
Philippe Mathieu-Daudé, Wainer dos Santos Moschetta,
Beraldo Leal
On Fri, 12 Jan 2024 at 11:11, Alex Bennée <alex.bennee@linaro.org> wrote:
>
> This reverts commit c2ef5ee89d76f0ab77c4dd6a1c9eeed4d35d20ed.
>
> While the fixes for #2010 and #2013 have improved things locally it
> seems GitLab still continues to be flaky.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
> index 6fdcbd6ac3d..1eaa36444cb 100644
> --- a/tests/avocado/replay_kernel.py
> +++ b/tests/avocado/replay_kernel.py
> @@ -98,10 +98,13 @@ def test_i386_pc(self):
>
> self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
>
> + # See https://gitlab.com/qemu-project/qemu/-/issues/2010
> + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck')
> def test_x86_64_pc(self):
> """
> :avocado: tags=arch:x86_64
> :avocado: tags=machine:pc
> + :avocado: tags=flaky
> """
> kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
> '/linux/releases/29/Everything/x86_64/os/images/pxeboot'
> @@ -132,6 +135,8 @@ def test_mips_malta(self):
>
> self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
>
> + # See https://gitlab.com/qemu-project/qemu/-/issues/2013
> + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
> def test_mips64el_malta(self):
> """
> This test requires the ar tool to extract "data.tar.gz" from
These gitlab issues are both currently closed -- if we think the
problem is still present and are re-introducing the skip lines,
we should re-open the issues, I think.
thanks
-- PMM
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel"
2024-01-12 11:13 ` Peter Maydell
@ 2024-01-12 13:11 ` Alex Bennée
0 siblings, 0 replies; 26+ messages in thread
From: Alex Bennée @ 2024-01-12 13:11 UTC (permalink / raw)
To: Peter Maydell
Cc: qemu-devel, Pavel Dovgalyuk, Paolo Bonzini, Cleber Rosa,
Philippe Mathieu-Daudé, Wainer dos Santos Moschetta,
Beraldo Leal
Peter Maydell <peter.maydell@linaro.org> writes:
> On Fri, 12 Jan 2024 at 11:11, Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>> This reverts commit c2ef5ee89d76f0ab77c4dd6a1c9eeed4d35d20ed.
>>
>> While the fixes for #2010 and #2013 have improved things locally it
>> seems GitLab still continues to be flaky.
>>
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>>
>> diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py
>> index 6fdcbd6ac3d..1eaa36444cb 100644
>> --- a/tests/avocado/replay_kernel.py
>> +++ b/tests/avocado/replay_kernel.py
>> @@ -98,10 +98,13 @@ def test_i386_pc(self):
>>
>> self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
>>
>> + # See https://gitlab.com/qemu-project/qemu/-/issues/2010
>> + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test sometimes gets stuck')
>> def test_x86_64_pc(self):
>> """
>> :avocado: tags=arch:x86_64
>> :avocado: tags=machine:pc
>> + :avocado: tags=flaky
>> """
>> kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora'
>> '/linux/releases/29/Everything/x86_64/os/images/pxeboot'
>> @@ -132,6 +135,8 @@ def test_mips_malta(self):
>>
>> self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5)
>>
>> + # See https://gitlab.com/qemu-project/qemu/-/issues/2013
>> + @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab')
>> def test_mips64el_malta(self):
>> """
>> This test requires the ar tool to extract "data.tar.gz" from
>
> These gitlab issues are both currently closed -- if we think the
> problem is still present and are re-introducing the skip lines,
> we should re-open the issues, I think.
Hmm - I certainly fixed some bugs under those two. I think I'll re-spin
with a new bug raised.
>
>
> thanks
> -- PMM
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest
2024-01-12 11:04 ` [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest Alex Bennée
@ 2024-08-01 9:48 ` David Woodhouse
0 siblings, 0 replies; 26+ messages in thread
From: David Woodhouse @ 2024-08-01 9:48 UTC (permalink / raw)
To: Alex Bennée, qemu-devel
Cc: Philippe Mathieu-Daudé, Paul Durrant, Cleber Rosa,
Wainer dos Santos Moschetta, Beraldo Leal, Paolo Bonzini,
open list:Overall KVM CPUs
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
On Fri, 2024-01-12 at 11:04 +0000, Alex Bennée wrote:
> This ensures the rootfs is never permanently changed as we don't need
> persistence between tests anyway.
>
> Message-Id: <20240103173349.398526-3-alex.bennee@linaro.org>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>
> diff --git a/tests/avocado/kvm_xen_guest.py b/tests/avocado/kvm_xen_guest.py
> index 5391283113e..f8cb458d5db 100644
> --- a/tests/avocado/kvm_xen_guest.py
> +++ b/tests/avocado/kvm_xen_guest.py
> @@ -59,7 +59,7 @@ def common_vm_setup(self):
> def run_and_check(self):
> self.vm.add_args('-kernel', self.kernel_path,
> '-append', self.kernel_params,
> - '-drive', f"file={self.rootfs},if=none,format=raw,id=drv0",
> + '-drive', f"file={self.rootfs},if=none,snapshot=on,format=raw,id=drv0",
> '-device', 'xen-disk,drive=drv0,vdev=xvda',
> '-device', 'virtio-net-pci,netdev=unet',
> '-netdev', 'user,id=unet,hostfwd=:127.0.0.1:0-:22')
I don't even understand why it needs to be writable at all. Could we just fix that?
[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5965 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2024-08-01 9:49 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-12 11:04 [PULL 00/22] testing and misc updates Alex Bennée
2024-01-12 11:04 ` [PULL 01/22] tests/avocado: Add a test for a little-endian microblaze machine Alex Bennée
2024-01-12 11:04 ` [PULL 02/22] tests/avocado: use snapshot=on in kvm_xen_guest Alex Bennée
2024-08-01 9:48 ` David Woodhouse
2024-01-12 11:04 ` [PULL 03/22] gitlab: include microblazeel in testing Alex Bennée
2024-01-12 11:04 ` [PULL 04/22] chardev: use bool for fe_is_open Alex Bennée
2024-01-12 11:04 ` [PULL 05/22] qtest: bump min meson timeout to 60 seconds Alex Bennée
2024-01-12 11:04 ` [PULL 06/22] qtest: bump migration-test timeout to 8 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 07/22] qtest: bump qom-test timeout to 15 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 08/22] qtest: bump npcm7xx_pwm-test timeout to 5 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 09/22] qtest: bump test-hmp timeout to 4 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 10/22] qtest: bump pxe-test timeout to 10 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 11/22] qtest: bump prom-env-test timeout to 6 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 12/22] qtest: bump boot-serial-test timeout to 3 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 13/22] qtest: bump qos-test timeout to 2 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 14/22] qtest: bump aspeed_smc-test timeout to 6 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 15/22] qtest: bump bios-table-test timeout to 9 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 16/22] tests/qtest: Bump the device-introspect-test timeout to 12 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 17/22] tests/unit: Bump test-aio-multithread test timeout to 2 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 18/22] tests/unit: Bump test-crypto-block test timeout to 5 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 19/22] tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes Alex Bennée
2024-01-12 11:04 ` [PULL 20/22] mtest2make: stop disabling meson test timeouts Alex Bennée
2024-01-12 11:04 ` [PULL 21/22] readthodocs: fully specify a build environment Alex Bennée
2024-01-12 11:04 ` [PULL 22/22] Revert "tests/avocado: remove skips from replay_kernel" Alex Bennée
2024-01-12 11:13 ` Peter Maydell
2024-01-12 13:11 ` Alex Bennée
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).