Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5319EC982D7 for ; Fri, 18 Sep 2026 22:30:36 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x7h66-0007oM-B9; Fri, 18 Sep 2026 18:30:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x7h64-0007o4-Tj for qemu-devel@nongnu.org; Fri, 18 Sep 2026 18:30:21 -0400 Received: from smtp-out1.suse.de ([2a07:de40:b251:101:10:150:64:1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1x7h62-0000Xq-U6 for qemu-devel@nongnu.org; Fri, 18 Sep 2026 18:30:20 -0400 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B067121EE0; Fri, 18 Sep 2026 22:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1789770612; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iIia9LF/FU6W/WcOdcz2d8EjzufmNNdj0WLEnEAJ3Tc=; b=nvhbntEye2eu6PYV81Q8T5ahb01/AjLuLBl5Ps+qyv8UTvMRUIcZiFfOop42etp/KwtQRr h3e32fHcLqx6OHRC7ix77RKSgkFmNKu6df82UmT3skJ9UpOiBqMIpQlqaOfDLujnQ1RtRU OaUq3AMu1leM6yghzzdvjDpDnUgcTqQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1789770612; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iIia9LF/FU6W/WcOdcz2d8EjzufmNNdj0WLEnEAJ3Tc=; b=t1jkIag+iXw7Zq0FqBtp5Ikcg6saGVg3sOif3KWh57o7hZQDGauCulZJe7QfYqRZPAgvtF c+jqRIHm/Qk75gBg== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=XQLaGBSb; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=w+v6I+ye DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1789770608; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iIia9LF/FU6W/WcOdcz2d8EjzufmNNdj0WLEnEAJ3Tc=; b=XQLaGBSbIZCigj35i3yD+Mp0HqMwFPJ5Hu63gKQhjc/pxY9Q3ZwKGyLefvC5z+kuGTkIQI xfHEFRVhWsKweIwoAZrKm4oT+SwleQw1p9jN7npPRRLo1D0auGsex6qt4mar/ZIyjViV9N tga0xW5dKcX3EzoWzcHgw4HpD+5sbho= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1789770608; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iIia9LF/FU6W/WcOdcz2d8EjzufmNNdj0WLEnEAJ3Tc=; b=w+v6I+yeaS2OuBUsEVNUZrsDlaugcXJiPpnYon5sxMI3W5Jf0Vr2LEord26OQ6HTFfruQY VI8sPpG3n5wa3VBw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 969D513927; Fri, 18 Sep 2026 22:30:06 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id hQIbBW27rWrsdQAAD6G6ig:T2 (envelope-from ); Fri, 18 Sep 2026 22:30:06 +0000 From: Fabiano Rosas To: qemu-devel@nongnu.org Cc: Markus Armbruster , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Cleber Rosa , Kevin Wolf , Hanna Reitz Subject: [RFC PATCH 01/14] meson: Fix meson suites invocation from make check Date: Fri, 18 Sep 2026 19:29:48 -0300 Message-ID: <20260918223002.1892021-2-farosas@suse.de> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260918223002.1892021-1-farosas@suse.de> References: <20260918223002.1892021-1-farosas@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Action: no action X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Queue-Id: B067121EE0 X-Spamd-Result: default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[8]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; URIBL_BLOCKED(0.00)[suse.de:dkim,suse.de:email,suse.de:mid,mtest2make.py:url,meson.build:url,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,suse.de:email,suse.de:mid,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[suse.de:+] Received-SPF: pass client-ip=2a07:de40:b251:101:10:150:64:1; envelope-from=farosas@suse.de; helo=smtp-out1.suse.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org make check is currently by default running tests tagged "slow". Running make check with no SPEED variable set should be equivalent to SPEED=quick and run the meson 'quick' test setup, which explicitly excludes slow tests: add_test_setup('quick', exclude_suites: ['slow', 'thorough'] ... The problem is that the mtest2make.py script is effectively overriding the "meson test --setup" setting by using --suite which takes precedence over --setup according to meson documentation. Fix by excluding suites directly with the "--no-suite" option while generating Makefile.mtest. Although the 'exclude_suites' in meson.build are useless for make check, they still help when running 'meson test' from the command-line, so keep them around. For the configure line I'm using: make check goes from 1100 to 996 tests make SPEED=slow check stays at 2158 tests make SPEED=thorough check stays at 2279 tests (the rest of the test targets look sane, but maintainers please double-check) Signed-off-by: Fabiano Rosas --- - With this change we obviously lose coverage in make check. I suggest we use this opportunity to review what gets put in the quick suite. For migration, I want to keep only the smoke tests in make check. I'll send a patch adding them back if this change is accepted. - Some of the suffixes from functional tests could probably be removed and rely on having the tests in the proper suite instead. I.e. use 'slow' instead of 'foobar_slow'. --- scripts/mtest2make.py | 11 +++++++++-- tests/qemu-iotests/meson.build | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/mtest2make.py b/scripts/mtest2make.py index 383ea68b16..a61a83f775 100644 --- a/scripts/mtest2make.py +++ b/scripts/mtest2make.py @@ -26,6 +26,11 @@ def names(self, base): .speed.slow = $(sort $(filter-out %-thorough, $1)) .speed.thorough = $(sort $1) +.speed_exclude_suites.quick = --no-suite slow --no-suite thorough \ + --no-suite optional +.speed_exclude_suites.slow = --no-suite thorough +.speed_exclude_suites.thorough = + TIMEOUT_MULTIPLIER ?= 1 .mtestargs = --no-rebuild -t $(TIMEOUT_MULTIPLIER) ifneq ($(SPEED), quick) @@ -34,7 +39,8 @@ def names(self, base): .mtestargs += $(subst -j,--num-processes , $(filter-out -j, $(lastword -j1 $(filter -j%, $(MAKEFLAGS))))) .check.mtestargs = $(MTESTARGS) $(.mtestargs) $(if $(V),--verbose,--print-errorlogs) \ - $(foreach s, $(sort $(.check.mtest-suites)), --suite $s) + $(foreach s, $(sort $(.check.mtest-suites)), --suite $s) \ + $(.speed_exclude_suites.$(SPEED)) .bench.mtestargs = $(MTESTARGS) $(.mtestargs) --benchmark --verbose \ $(foreach s, $(sort $(.bench.mtest-suites)), --suite $s)''') @@ -102,7 +108,8 @@ def emit_suite(name, suite, prefix): targets += f' {prefix} {prefix}-report.junit.xml' print(f'ifneq ($(filter {targets}, $(MAKECMDGOALS)),)') # for the "base" suite possibly add FOO-slow and FOO-thorough - print(f".{prefix}.mtest-suites += {name} $(call .speed.$(SPEED), {names})") + print(f".{prefix}.mtest-suites += {name} $(call .speed.$(SPEED), {names}) " + ".speed_exclude_suites.$(SPEED)") print(f'endif') targets = {t['id']: [os.path.relpath(f) for f in t['filename']] diff --git a/tests/qemu-iotests/meson.build b/tests/qemu-iotests/meson.build index 8857f25f29..34cfcdc53b 100644 --- a/tests/qemu-iotests/meson.build +++ b/tests/qemu-iotests/meson.build @@ -68,7 +68,7 @@ foreach driver, speed: qemu_iotests_drivers endif # Every driver gets put in the driver specific suite - suites = ['block-' + driver + '-optional'] + suites = ['block-' + driver + '-optional', 'optional'] # Any driver tagged quick or slow also gets added to slow # otherwise its tagged thorough if speed != 'thorough' -- 2.53.0