From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.gnu.org (lists.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 10D49CAC5B0 for ; Thu, 2 Oct 2025 14:35:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v4KNM-0007pN-8a; Thu, 02 Oct 2025 10:33:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v4KNB-0007oo-3P for qemu-devel@nongnu.org; Thu, 02 Oct 2025 10:33:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v4KMx-0007uP-Rg for qemu-devel@nongnu.org; Thu, 02 Oct 2025 10:33:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1759415588; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=G9M1wnfcOFKZh5afNYZ07DGGlQ8SVI2+G/Jc4X7u+0g=; b=EX8vog7UPw1YyAq+4dlBWaL0vNBz3IbTvwrhxiHP/P2hwmS2qGMAacKM4+jADxWcLdAN+L hzutTA1b6tRSPosxB5+pBzWkRRxOLJczpsQPgeU2zFiE6ejw3k8tiG4BH716GSrVjd+un/ oYWfo8y9pMA6Rq//krRR/2WUYZVwrpY= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-182-Nxev-N7zOqK7LGuxT923-w-1; Thu, 02 Oct 2025 10:33:06 -0400 X-MC-Unique: Nxev-N7zOqK7LGuxT923-w-1 X-Mimecast-MFC-AGG-ID: Nxev-N7zOqK7LGuxT923-w_1759415585 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-46e375dab7dso4666925e9.3 for ; Thu, 02 Oct 2025 07:33:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759415585; x=1760020385; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G9M1wnfcOFKZh5afNYZ07DGGlQ8SVI2+G/Jc4X7u+0g=; b=uZr4qA524j/iqCBKRfOgjhU+hV2peaNaJXC5AlIizbprPeoK8QKzHp01Ol3RlcDAOl UxxumorIhWVj766BplLUNZ/WsRhIKGUS/MnfIGPE7uJ3lmy9dnTxuYUjCHge0AlhISJM dVlIuiZxnha5Npu3Gr4jNZRetYflA45fqSAIHE3rXpbAB20yUpq1ji62uZOnpABqcPJ0 VLIcweWpSsbriODNhx2HIegmfyzVbD9CiMlV5NXuT3I8eYcIU+6UPqyDenNFIrOjrXRk Z4J/1N87cDXvyyapuHM8VKdf8lFikNbBSGn9QafdmUS9wnXT2ipzHb1Te61Hnr/Zd3P8 5b5Q== X-Forwarded-Encrypted: i=1; AJvYcCXgKh/2coNnWhYj/cMe1tdfoShd20/h1M4YolwqSpoSaulVIb7pkMfXGOznsWysQkSGPU6HwTB08iLh@nongnu.org X-Gm-Message-State: AOJu0YwG/OtjIB9LGxoA8AmeCHA6tAydpL23Sd3Ykw/jBOh6YuPNJIL/ y8kANOzQQxAmbCq1GQDdAgHKmMlh+4z+W6Y1etpYsfk65Bz5WjKmz3jKda5i7VZaycqmNUrm3IY MSHIgSwbtT/YdnSLlqoOlCUYhLE7lH+oYhI2+CevIew5UPxpDV6Bq2tkz3sWdT28K X-Gm-Gg: ASbGncu8/xLwfxmE0lm+lTm08B4U+4XzSuGK3ylAB3xaAY6alz+XPIMMpE2v+ZUdboK jraPVUvtnzI16+L8EsEptOEu8OueNN/VB97Z3DMggumII0IAVvcac6n6I4YKIqzfV1WJcTtpCxh xt7XgxbEO9mvWsigcvtfpSDVTu4YitSSdsKcjOurjlbTEAbKVLPRIFUw9h5KhkuUSK3Ky/JpwOP GQqihO8Yo/sAU+EdYqPofSZf94hUw7sJJRiCVIIBeukwkOk97PGcjVNsVz6hqsCk5VbrWQFfVrB BKHMhSRj5rI1MUQZrjePWbcQorPBVlqvOI12XyMIOAcdg6OG7dKavn33D3Nu8Pten34Kg7HJOao gD0pOSIezBg== X-Received: by 2002:a05:600c:8889:10b0:46e:67c8:729f with SMTP id 5b1f17b1804b1-46e67c879a8mr24340345e9.7.1759415585187; Thu, 02 Oct 2025 07:33:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHj1qnrC7qoeogip3PDEq+c7LKFMIdGLv6gCfkjDmtioLgI+3f2+HRfJaRjWDrtWPC0jAB95Q== X-Received: by 2002:a05:600c:8889:10b0:46e:67c8:729f with SMTP id 5b1f17b1804b1-46e67c879a8mr24340165e9.7.1759415584769; Thu, 02 Oct 2025 07:33:04 -0700 (PDT) Received: from [192.168.0.7] (ltea-047-064-114-056.pools.arcor-ip.net. [47.64.114.56]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4255d8a6b77sm3921718f8f.6.2025.10.02.07.33.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Oct 2025 07:33:04 -0700 (PDT) Message-ID: Date: Thu, 2 Oct 2025 16:33:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] tests/qemu-iotests: Improve the dry run list to speed up thorough testing To: Kevin Wolf Cc: qemu-block@nongnu.org, Hanna Czenczek , qemu-devel@nongnu.org References: <20250910153727.226217-1-thuth@redhat.com> <20250910153727.226217-3-thuth@redhat.com> From: Thomas Huth Content-Language: en-US Autocrypt: addr=thuth@redhat.com; keydata= xsFNBFH7eUwBEACzyOXKU+5Pcs6wNpKzrlJwzRl3VGZt95VCdb+FgoU9g11m7FWcOafrVRwU yYkTm9+7zBUc0sW5AuPGR/dp3pSLX/yFWsA/UB4nJsHqgDvDU7BImSeiTrnpMOTXb7Arw2a2 4CflIyFqjCpfDM4MuTmzTjXq4Uov1giGE9X6viNo1pxyEpd7PanlKNnf4PqEQp06X4IgUacW tSGj6Gcns1bCuHV8OPWLkf4hkRnu8hdL6i60Yxz4E6TqlrpxsfYwLXgEeswPHOA6Mn4Cso9O 0lewVYfFfsmokfAVMKWzOl1Sr0KGI5T9CpmRfAiSHpthhHWnECcJFwl72NTi6kUcUzG4se81 O6n9d/kTj7pzTmBdfwuOZ0YUSqcqs0W+l1NcASSYZQaDoD3/SLk+nqVeCBB4OnYOGhgmIHNW 0CwMRO/GK+20alxzk//V9GmIM2ACElbfF8+Uug3pqiHkVnKqM7W9/S1NH2qmxB6zMiJUHlTH gnVeZX0dgH27mzstcF786uPcdEqS0KJuxh2kk5IvUSL3Qn3ZgmgdxBMyCPciD/1cb7/Ahazr 3ThHQXSHXkH/aDXdfLsKVuwDzHLVSkdSnZdt5HHh75/NFHxwaTlydgfHmFFwodK8y/TjyiGZ zg2Kje38xnz8zKn9iesFBCcONXS7txENTzX0z80WKBhK+XSFJwARAQABzR5UaG9tYXMgSHV0 aCA8dGh1dGhAcmVkaGF0LmNvbT7CwXgEEwECACIFAlVgX6oCGwMGCwkIBwMCBhUIAgkKCwQW AgMBAh4BAheAAAoJEC7Z13T+cC21EbIP/ii9cvT2HHGbFRl8HqGT6+7Wkb+XLMqJBMAIG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eqoDZrNuhGbekQA0sAnCJ VPArerAZGArm63o39me/bRUQeQVSxEBmg66yshF9HkcUPGVeC4B0TPwz+HFcVhheo6hoJjLq knFOPLRj+0h+ZL+D0GenyqD3CyuyeTT5dGcNU9qT74bdSr20k/CklvI7S9yoQje8BeQAHtdV cvO8XCLrpGuw9SgOS7OP5oI26a0548M4KldAY+kqX6XVphEw3/6U1KTf7WxW5zYLTtadjISB X9xsRWSU+Yqs3C7oN5TIPSoj9tXMoxZkCIHWvnqGwZ7JhwARAQABwsFfBBgBAgAJBQJR+3lM AhsMAAoJEC7Z13T+cC21hPAQAIsBL9MdGpdEpvXs9CYrBkd6tS9mbaSWj6XBDfA1AEdQkBOn ZH1Qt7HJesk+qNSnLv6+jP4VwqK5AFMrKJ6IjE7jqgzGxtcZnvSjeDGPF1h2CKZQPpTw890k fy18AvgFHkVk2Oylyexw3aOBsXg6ukN44vIFqPoc+YSU0+0QIdYJp/XFsgWxnFIMYwDpxSHS 5fdDxUjsk3UBHZx+IhFjs2siVZi5wnHIqM7eK9abr2cK2weInTBwXwqVWjsXZ4tq5+jQrwDK cvxIcwXdUTLGxc4/Z/VRH1PZSvfQxdxMGmNTGaXVNfdFZjm4fz0mz+OUi6AHC4CZpwnsliGV ODqwX8Y1zic9viSTbKS01ZNp175POyWViUk9qisPZB7ypfSIVSEULrL347qY/hm9ahhqmn17 Ng255syASv3ehvX7iwWDfzXbA0/TVaqwa1YIkec+/8miicV0zMP9siRcYQkyTqSzaTFBBmqD oiT+z+/E59qj/EKfyce3sbC9XLjXv3mHMrq1tKX4G7IJGnS989E/fg6crv6NHae9Ckm7+lSs IQu4bBP2GxiRQ+NV3iV/KU3ebMRzqIC//DCOxzQNFNJAKldPe/bKZMCxEqtVoRkuJtNdp/5a yXFZ6TfE1hGKrDBYAm4vrnZ4CXFSBDllL59cFFOJCkn4Xboj/aVxxJxF30bn In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: 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 On 02/10/2025 16.04, Kevin Wolf wrote: > Am 10.09.2025 um 17:37 hat Thomas Huth geschrieben: >> From: Thomas Huth >> >> When running the tests in thorough mode, e.g. with: >> >> make -j$(nproc) check SPEED=thorough >> >> we currently always get a huge amount of total tests that the test >> runner tries to execute (2457 in my case), but a big bunch of them are >> only skipped (1099 in my case, meaning that only 1358 got executed). >> This happens because we try to run the whole set of iotests for multiple >> image formats while a lot of the tests can only run with one certain >> format only and thus are marked as SKIP during execution. This is quite a >> waste of time during each test run, and also unnecessarily blows up the >> displayed list of executed tests in the console output. >> >> Thus let's try to be a little bit smarter: If the "check" script is run >> with "-n" and an image format switch (like "-qed") at the same time (which >> is what we do already for discovering the tests for the meson test runner), >> only report the tests that likely support the given format instead of >> providing the whole list of all tests. We can determine whether a test >> supports a format or not by looking at the lines in the file that contain >> a "supported_fmt" or "unsupported_fmt" statement. This is only heuristics, >> of course, but it is good enough for running the iotests via "make >> check-block" - I double-checked that the list of executed tests does not >> get changed by this patch, it's only the tests that are skipped anyway that >> are now not run anymore. >> >> This way the amount of total tests drops from 2457 to 1432 for me, and >> the amount of skipped tests drops from 1099 to just 74 (meaning that we >> still properly run 1432 - 74 = 1358 tests as we did before). >> >> Signed-off-by: Thomas Huth >> --- >> tests/qemu-iotests/check | 35 ++++++++++++++++++++++++++++++++--- >> 1 file changed, 32 insertions(+), 3 deletions(-) > >> +def dry_run_list(test_dir, imgfmt, testlist): >> + for t in testlist: >> + if not imgfmt: >> + print('\n'.join([os.path.basename(t)])) >> + continue >> + # If a format has been given, we look for the "supported_fmt" >> + # and the "unsupported_fmt" lines in the test and try to find out >> + # whether the format is supported or not. This is only heuristics, >> + # but it should be good enough for "make check-block" > > I'm not completely sure if this is a good idea at all, but I think we > should at least mention the possible surprising cases where the > heuristics fails in this comment. Yeah, it's not perfect, but I also failed to come up with a better solution... do you have any other ideas? If not, would you be fine with the patch if I respin it with the comment here extended with some words about those surprising cases? Thomas