From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795176978; cv=none; d=zohomail.com; s=zohoarc; b=O7SqGUylNR41v82jZTssstmGJlinAQd1QW9iCQsII6mxhjYQZz+/7WcXAshf80gptvuyLNOVhvLFq7LutEpGOLyxRMVY/EWgyZTcR/Q8XgSucTZBx+6ldTYAAGXbQIjT3e2jmMpagKgU6mfCdX9vE8KitasNTdTn3gC4/1nZRwg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795176978; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=suzoopdqan50R0SIScAYiDstdK4Hx9GdSB8vUj/WSfA=; b=QLlvXxtH4vWQINWMNUuQgg5NGi149T2A3YpWVECDhol/qwLSShubBKrcv6REMZzx6B82H5NXCAto9mTzQdeBH+ouplsYyyX8/gW9ovf5XUNEXh6QcdX6yBE7SPFaMKzaMkW3uyuxoslRk8gDxsSggErPx7sQdPQMWEwE2oQBGUI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795176978360528.6941389654854; Fri, 20 Nov 2026 04:16:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNWt-0006M0-87; Fri, 20 Nov 2026 07:15:48 -0500 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 1xUNWU-0006Cr-F3 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:22 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNWR-0006CY-Bp for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:21 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-393-lAOvEFzYNAyqIi_T9KB-nA-1; Fri, 20 Nov 2026 12:15:14 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id BCCB618005A9; Fri, 20 Nov 2026 12:15:11 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id DC4373000223; Fri, 20 Nov 2026 12:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176918; 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; bh=suzoopdqan50R0SIScAYiDstdK4Hx9GdSB8vUj/WSfA=; b=hcHQF5at7DU1iMSWj87XhMNm1d6rRRTzgXTBiN0HSvxT4YxEaInGoYcNS/0A6oRnaP/huh tA/VmEDB18osRECGC6uiBxI5XWjlEfHmK0+RJxL0OF5IRk149wyEKgG2A6WK7T5KtXHdGY M2q54c/1H66LK1+vtpJDVug7J8OoObA= X-MC-Unique: lAOvEFzYNAyqIi_T9KB-nA-1 X-Mimecast-MFC-AGG-ID: lAOvEFzYNAyqIi_T9KB-nA_1795176912 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 01/12] tests/functional: update to newer sunxi kernel package Date: Fri, 20 Nov 2026 12:14:47 +0000 Message-ID: <20261120121458.3723625-2-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795176979749158500 The version we currently reference has been deleted from the the apt.armbian.com host. 6.6.44 is the next oldest build that is available. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Thomas Huth --- tests/functional/arm/test_bpim2u.py | 19 ++++++++++--------- tests/functional/arm/test_cubieboard.py | 15 ++++++++------- tests/functional/arm/test_orangepi.py | 19 ++++++++++--------- tests/functional/arm/test_replay.py | 12 ++++++------ 4 files changed, 34 insertions(+), 31 deletions(-) diff --git a/tests/functional/arm/test_bpim2u.py b/tests/functional/arm/tes= t_bpim2u.py index 9192a2fbec4..e6fd80ae9d0 100755 --- a/tests/functional/arm/test_bpim2u.py +++ b/tests/functional/arm/test_bpim2u.py @@ -14,9 +14,10 @@ class BananaPiMachine(LinuxKernelTest): =20 ASSET_DEB =3D Asset( - ('https://apt.armbian.com/pool/main/l/linux-6.6.16/' - 'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359= -Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'), - '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22') + ('https://apt.armbian.com/pool/main/l/linux-6.6.44/' + 'linux-image-current-sunxi_24.8.2_armhf__6.6.44-' + 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'), + 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78') =20 ASSET_INITRD =3D Asset( ('https://github.com/groeck/linux-build-test/raw/' @@ -37,8 +38,8 @@ class BananaPiMachine(LinuxKernelTest): def test_arm_bpim2u(self): self.set_machine('bpim2u') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' 'sun8i-r40-bananapi-m2-ultra.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) =20 @@ -56,8 +57,8 @@ def test_arm_bpim2u(self): def test_arm_bpim2u_initrd(self): self.set_machine('bpim2u') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' 'sun8i-r40-bananapi-m2-ultra.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) initrd_path =3D self.uncompress(self.ASSET_INITRD) @@ -89,8 +90,8 @@ def test_arm_bpim2u_gmac(self): =20 deb_path =3D self.ASSET_DEB.fetch() kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' 'sun8i-r40-bananapi-m2-ultra.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) rootfs_path =3D self.uncompress(self.ASSET_ROOTFS) diff --git a/tests/functional/arm/test_cubieboard.py b/tests/functional/arm= /test_cubieboard.py index b536c2f77a0..eeafc26f90d 100755 --- a/tests/functional/arm/test_cubieboard.py +++ b/tests/functional/arm/test_cubieboard.py @@ -13,9 +13,10 @@ class CubieboardMachine(LinuxKernelTest): =20 ASSET_DEB =3D Asset( - ('https://apt.armbian.com/pool/main/l/linux-6.6.16/' - 'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359= -Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'), - '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22') + ('https://apt.armbian.com/pool/main/l/linux-6.6.44/' + 'linux-image-current-sunxi_24.8.2_armhf__6.6.44-' + 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'), + 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78') =20 ASSET_INITRD =3D Asset( ('https://github.com/groeck/linux-build-test/raw/' @@ -37,8 +38,8 @@ class CubieboardMachine(LinuxKernelTest): def test_arm_cubieboard_initrd(self): self.set_machine('cubieboard') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun4i-a10-cubieboard.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) initrd_path =3D self.uncompress(self.ASSET_INITRD) @@ -68,8 +69,8 @@ def test_arm_cubieboard_initrd(self): def test_arm_cubieboard_sata(self): self.set_machine('cubieboard') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun4i-a10-cubieboard.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) =20 diff --git a/tests/functional/arm/test_orangepi.py b/tests/functional/arm/t= est_orangepi.py index 09780236553..c9cfdbd67aa 100755 --- a/tests/functional/arm/test_orangepi.py +++ b/tests/functional/arm/test_orangepi.py @@ -16,9 +16,10 @@ class OrangePiMachine(LinuxKernelTest): =20 ASSET_DEB =3D Asset( - ('https://apt.armbian.com/pool/main/l/linux-6.6.16/' - 'linux-image-current-sunxi_24.2.1_armhf__6.6.16-Seb3e-D6b4a-P2359= -Ce96bHfe66-HK01ba-V014b-B067e-R448a.deb'), - '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22') + ('https://apt.armbian.com/pool/main/l/linux-6.6.44/' + 'linux-image-current-sunxi_24.8.2_armhf__6.6.44-' + 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'), + 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78') =20 ASSET_INITRD =3D Asset( ('https://github.com/groeck/linux-build-test/raw/' @@ -49,8 +50,8 @@ class OrangePiMachine(LinuxKernelTest): def test_arm_orangepi(self): self.set_machine('orangepi-pc') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun8i-h3-orangepi-pc.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) =20 @@ -68,8 +69,8 @@ def test_arm_orangepi(self): def test_arm_orangepi_initrd(self): self.set_machine('orangepi-pc') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun8i-h3-orangepi-pc.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) initrd_path =3D self.uncompress(self.ASSET_INITRD) @@ -99,8 +100,8 @@ def test_arm_orangepi_sd(self): self.set_machine('orangepi-pc') self.require_netdev('user') kernel_path =3D self.archive_extract( - self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.16-current-sunxi') - dtb_path =3D ('usr/lib/linux-image-6.6.16-current-sunxi/' + + self.ASSET_DEB, member=3D'boot/vmlinuz-6.6.44-current-sunxi') + dtb_path =3D ('usr/lib/linux-image-6.6.44-current-sunxi/' + 'sun8i-h3-orangepi-pc.dtb') dtb_path =3D self.archive_extract(self.ASSET_DEB, member=3Ddtb_pat= h) rootfs_path =3D self.uncompress(self.ASSET_ROOTFS) diff --git a/tests/functional/arm/test_replay.py b/tests/functional/arm/tes= t_replay.py index e002e6a2647..ee61f475930 100755 --- a/tests/functional/arm/test_replay.py +++ b/tests/functional/arm/test_replay.py @@ -24,10 +24,10 @@ def test_virt(self): self.run_rr(kernel_path, kernel_command_line, console_pattern, shi= ft=3D1) =20 ASSET_CUBIE_KERNEL =3D Asset( - ('https://apt.armbian.com/pool/main/l/linux-6.6.16/' - 'linux-image-current-sunxi_24.2.1_armhf_' - '_6.6.16-Seb3e-D6b4a-P2359-Ce96bHfe66-HK01ba-V014b-B067e-R448a.de= b'), - '3d968c15b121ede871dce49d13ee7644d6f74b6b121b84c9a40f51b0c80d6d22') + ('https://apt.armbian.com/pool/main/l/linux-6.6.44/' + 'linux-image-current-sunxi_24.8.2_armhf__6.6.44-' + 'S7213-D53de-P4ceb-C697eH5c21-HK01ba-V014b-B58e9-R448a.deb'), + 'd960131bed01a8bf48882ff133a37826dfdce84138f9a82e0bea331ba795fe78') =20 ASSET_CUBIE_INITRD =3D Asset( ('https://github.com/groeck/linux-build-test/raw/' @@ -37,9 +37,9 @@ def test_virt(self): def test_cubieboard(self): self.set_machine('cubieboard') kernel_path =3D self.archive_extract(self.ASSET_CUBIE_KERNEL, - member=3D'boot/vmlinuz-6.6.16-current-sunxi') + member=3D'boot/vmlinuz-6.6.44-current-sunxi') dtb_path =3D self.archive_extract(self.ASSET_CUBIE_KERNEL, - member=3D'usr/lib/linux-image-6.6.16-current-sunxi/sun4i-a10-c= ubieboard.dtb') + member=3D'usr/lib/linux-image-6.6.44-current-sunxi/sun4i-a10-c= ubieboard.dtb') initrd_path =3D self.uncompress(self.ASSET_CUBIE_INITRD) =20 kernel_command_line =3D (self.KERNEL_COMMON_COMMAND_LINE + --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795176975; cv=none; d=zohomail.com; s=zohoarc; b=TbwSCMiMADgBAdF2pZXZzmqmRkYNhQws9Vfcm6/HmV7b0sOtyioSlJdczToz0qSEKvNN1SvsAAbci+AypIfAauxqiUhv9plAA3TMJuNySV3elrvFl60xIkzndn2h1kRwyw+ErDp7BGB5aEaZLVIr7a+AHSU2VLK/pLrpYCwGSuk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795176975; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=urRg8mMMwWJ/Pqu7lMkls78NLmw7ABfLJPokNV8H3+E=; b=hOV6TzluNZZ4bfrZTMVXgmLfWGNJtFQw7/RU1o/pvanV+8eIDHxUeqVY2W43OxHw5rvIOtZ5kIv47VYK2pUdRVGZr9v17HhPLWRXJkQk4EKJEtucgRLFnogDL+B443Lqd5txoMWRZB/793acY+0LAMsd5ufBOvYv7tqAAsizba4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795176975853842.9555325707265; Fri, 20 Nov 2026 04:16:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNWn-0006Kd-L9; Fri, 20 Nov 2026 07:15:43 -0500 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 1xUNWY-0006E7-O2 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:28 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNWW-0006DS-MP for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:26 -0500 Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-119-j2CSu_hFMcGKpOLm6i7TSA-1; Fri, 20 Nov 2026 12:15:19 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D8D731955F06; Fri, 20 Nov 2026 12:15:16 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1AD2030000E3; Fri, 20 Nov 2026 12:15:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176924; 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; bh=urRg8mMMwWJ/Pqu7lMkls78NLmw7ABfLJPokNV8H3+E=; b=SsD5+8xtrWANwQPcJMNq/zFdoZ7mu98cMTKn/7K+9GXIUHicrnIun2mDo9bHnlriK0pOwn V//siV0JKIl/pdWti5n2JmAP9wJhDCpYL8lTzbQepQx0hHjRAntsX1IpB4z6Z/ck0yiSiW co0Flu+Rp0uI46CvheDLaGMU1fn2kgc= X-MC-Unique: j2CSu_hFMcGKpOLm6i7TSA-1 X-Mimecast-MFC-AGG-ID: j2CSu_hFMcGKpOLm6i7TSA_1795176917 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 02/12] tests/functional: update sha digests for tuxrun kernels Date: Fri, 20 Nov 2026 12:14:48 +0000 Message-ID: <20261120121458.3723625-3-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795176978597158500 The images appear to have been regenerated since the recorded digests no longer match Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/aarch64/test_tuxrun.py | 4 ++-- tests/functional/s390x/test_tuxrun.py | 4 ++-- tests/functional/x86_64/test_tuxrun.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/functional/aarch64/test_tuxrun.py b/tests/functional/aar= ch64/test_tuxrun.py index 2ff321582d3..6c4367c8a20 100755 --- a/tests/functional/aarch64/test_tuxrun.py +++ b/tests/functional/aarch64/test_tuxrun.py @@ -18,10 +18,10 @@ class TuxRunAarch64Test(TuxRunBaselineTest): =20 ASSET_ARM64_KERNEL =3D Asset( 'https://storage.tuxboot.com/kernels/6.18.54/arm64/Image.gz', - '39f4633bbcb444267d4d829bd28d8868a287c4c160cda64b0fd23fb090571c4e') + 'e297f12682af7e88735a0aae38e6fbd137192b516ab5f0fc1a81c4bcc3992e80') ASSET_ARM64_VMLINUX =3D Asset( 'https://storage.tuxboot.com/kernels/6.18.54/arm64/vmlinux.xz', - '6487eb113ef6e841aedab6cb6fa704006377d68f64dd544570aa42f462a52b85') + 'aa9b984337e975528162ed873cf18a072b27be8e4f48e6cf0723e9b490c63171') ASSET_ARM64_ROOTFS =3D Asset( 'https://storage.tuxboot.com/buildroot/20260924/arm64/rootfs.ext4.= zst', '4ab8cec9d1e17dbb1abdf2ae1939ad4f9d0dc2466230f6a119a7c1845cdef0b1') diff --git a/tests/functional/s390x/test_tuxrun.py b/tests/functional/s390x= /test_tuxrun.py index 1dd662aaaf0..be38fcded2e 100755 --- a/tests/functional/s390x/test_tuxrun.py +++ b/tests/functional/s390x/test_tuxrun.py @@ -18,10 +18,10 @@ class TuxRunS390xTest(TuxRunBaselineTest): =20 ASSET_S390X_KERNEL =3D Asset( 'https://storage.tuxboot.com/kernels/6.18.54/s390/bzImage', - '5efeb31754b211440e1595ab11355bb006fe78a2c0604ed0a8c55c4598b71aec') + 'b5022f97e243b8ecd51fc7ce4290a15806ecc51a41edbe777fc0fcdda567269e') ASSET_S390X_VMLINUX =3D Asset( 'https://storage.tuxboot.com/kernels/6.18.54/s390/vmlinux.xz', - '5bbd4d34e0950f88053a9bfd16078896df4b1ee1696fc2ad62488e681a6bdd8e') + 'cd70050ddb638e81c2f1b96a4629c224aedd36bf8ae3b56b264b070e94642e25') ASSET_S390X_ROOTFS =3D Asset( 'https://storage.tuxboot.com/buildroot/20260924/s390/rootfs.ext4.z= st', '5ba18c4d18831c50a0c743990f7bdee1d3b520629d423c55b668d8fbbac9c6f5') diff --git a/tests/functional/x86_64/test_tuxrun.py b/tests/functional/x86_= 64/test_tuxrun.py index 1a1138d16ae..efe907bed82 100755 --- a/tests/functional/x86_64/test_tuxrun.py +++ b/tests/functional/x86_64/test_tuxrun.py @@ -18,10 +18,10 @@ class TuxRunX86Test(TuxRunBaselineTest): =20 ASSET_X86_64_KERNEL =3D Asset( 'https://storage.tuxboot.com/kernels/6.18.54/x86_64/bzImage', - '24a3ade610c2cc426ff821050de8a35930b0371357d94cc2c334abac6658552b') + 'ba98a8a07d5f3f3e20119341059c0f0096fda499d30e30049c1ea64553b7e7c2') ASSET_X86_64_VMLINUX =3D Asset( 'https://storage.tuxboot.com/kernels/6.18.54/x86_64/vmlinux.xz', - '77bf44cca48c9c1b9c142e16a2311d58b8ae3462b61bce44bcaf9243b5f26628') + 'bc8af37608753c6ba47c6fe85f4034188b5f15bb757a0cbd79672c65122278ab') ASSET_X86_64_ROOTFS =3D Asset( 'https://storage.tuxboot.com/buildroot/20260924/x86_64/rootfs.ext4= .zst', '8e310455b0244414ccff29c507f7ccfd4032e3587cc405e49ab0322738e3e27c') --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795176976; cv=none; d=zohomail.com; s=zohoarc; b=akLesi7mxwEarU8KWS3q+WACotqzwC/z1MjPDVjoMEKOxcyloUTxVb1Icp8hWhzmSZGP0cs/PIrjEdGbpibl8iXUv6sEDtIgVVUZ8Sqt/F3R291o0XIpqhMQeIyGw9RIUXNhyj8nzzFEb1U5IUxTW69thqocMMVDvG+54S/rTxg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795176976; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=q62Ki/qI2nv6nb20bfWb7/k8lOYrPref+5+AspPuGsY=; b=aZuK4KKesHoyq5LZRvPtxFDi5lolu04w1XnW6xRR6UcGe2I2ylcuTKokFlJ2u8H3eJpdGvC+gLE+NMbb664MRfKxSFQiI/h0xrzcryDexJi6gD+WA192T4vJwGo2e84NOdLIdTM0FPVIgUDxLwUnr2H0Hsvpd0M2zfRuw6bHCss= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179517697632933.07609864583037; Fri, 20 Nov 2026 04:16:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXJ-0006g3-Gk; Fri, 20 Nov 2026 07:16:13 -0500 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 1xUNWc-0006GE-Oq for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:32 -0500 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 1xUNWa-0006EN-IS for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:30 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-606-9RTg5hNXPhaBRs3tq4qL7Q-1; Fri, 20 Nov 2026 12:15:24 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7672018002C3; Fri, 20 Nov 2026 12:15:21 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3251D30000E3; Fri, 20 Nov 2026 12:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176926; 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; bh=q62Ki/qI2nv6nb20bfWb7/k8lOYrPref+5+AspPuGsY=; b=eRFXqmOKIhEVrF7rIXcB2Jk8SYjlsduJmuocOrE+G1mALhjjnUx933Ef2uLmCuLHz4cZyM oacMJAsmxiXHAQ7LrZ7jZ9pII+Sh4fUjNjVFsfznY52zzo4PUomH55kxhIMCS2BDG3H35P LVwbStgglHkd8s1NT4NOJlCKghK2zZc= X-MC-Unique: 9RTg5hNXPhaBRs3tq4qL7Q-1 X-Mimecast-MFC-AGG-ID: 9RTg5hNXPhaBRs3tq4qL7Q_1795176921 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 03/12] tests/functional: update URL to rs6000 firmware Date: Fri, 20 Nov 2026 12:14:49 +0000 Message-ID: <20261120121458.3723625-4-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795176979685158500 The current mirror URL is throwing permission denied errors, so switch to an alternate site discoverd via Google. Signed-off-by: Daniel P. Berrang=C3=A9 Tested-by: Thomas Huth --- tests/functional/ppc/test_40p.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/functional/ppc/test_40p.py b/tests/functional/ppc/test_4= 0p.py index 4c1c9bad6ec..084fe4c4e54 100755 --- a/tests/functional/ppc/test_40p.py +++ b/tests/functional/ppc/test_40p.py @@ -17,8 +17,7 @@ class IbmPrep40pMachine(QemuSystemTest): timeout =3D 60 =20 ASSET_BIOS =3D Asset( - ('http://ftpmirror.your.org/pub/misc/' - 'ftp.software.ibm.com/rs6000/firmware/' + ('https://public.dhe.ibm.com/eserver/pseries/firmware/' '7020-40p/P12H0456.IMG'), 'd957f79c73f760d1455d2286fcd901ed6d06167320eb73511b478a939be25b3f') ASSET_NETBSD40 =3D Asset( --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795176976; cv=none; d=zohomail.com; s=zohoarc; b=KXaymyJodg4jPSkANYgjnOxSElCYShPx2wFUtl2mU0DDE3b3/fAWFP/c2NUGzp56E7UbohQzBtoBzUlfpd4RxzBY0NE5CIGOLuXDhMmEI/rSBdBCclg5sRxzLAmL+vz38aPYQ1ZCvhJ7IEFCsrhQNJbAacs+9e0tVUhm1fJthBA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795176976; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=TWwT9612ZW0vbY2P/IQBX7G3/db7VfF5dQu5dZHqZWI=; b=Buw67BSlixgbeZNg3xGRycf1Y/zztxxtm/qhqyo5Xc6CqS7Nn0qAcrETvZX8JpdKjME8N3cE6tpilE0iWSH0zEyn2d0VYO0sGXeHHWQlzwxdSBlW5f+fMqgETzspRYX2CzkmpEGuzSPf48HisNt9lwAbzYxQAAamgdD39uPdqPU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795176976250351.9979020497781; Fri, 20 Nov 2026 04:16:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNWz-0006PD-4G; Fri, 20 Nov 2026 07:15:54 -0500 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 1xUNWi-0006Hu-51 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:37 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNWg-0006Fj-8I for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:35 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-297-414XcubEPyGRqf7SSj1Oog-1; Fri, 20 Nov 2026 12:15:28 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1DFCA18002CC; Fri, 20 Nov 2026 12:15:26 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C868830000E3; Fri, 20 Nov 2026 12:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176933; 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; bh=TWwT9612ZW0vbY2P/IQBX7G3/db7VfF5dQu5dZHqZWI=; b=VDmynHfnOZ50UqtWzL7bQgy7WD3DtfFXLuibwU9aEOFrNFfQ2RZasTXetVVKJ1KRHyux4n wt5pVFUgyould7tavkh494j52evpM+D+c1jE1TALU9HKiAwV8y0J813o7eAJYoqwn4rRUN +NOTTj+t6+kGYk55YlmD4CQ9KgatqYQ= X-MC-Unique: 414XcubEPyGRqf7SSj1Oog-1 X-Mimecast-MFC-AGG-ID: 414XcubEPyGRqf7SSj1Oog_1795176926 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 04/12] tests/functional: add Accept header when downloading assets Date: Fri, 20 Nov 2026 12:14:50 +0000 Message-ID: <20261120121458.3723625-5-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795176979663158500 elinux.org is currently triggering an Anubis challenge for requests to download assets. After comparing the headers that curl sends, it was narrowed down to the omission of an "Accept" header. A missing "Accept" header is a rule that Anubis added a year ago which is known to hit python's urllib: https://github.com/TecharoHQ/anubis/issues/1346 the bug indicates the rule was removed by default at that time, however, rules have evolved further since then and look like they are hitting our downloads. Adding the header is simple & harmless. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Thomas Huth --- tests/functional/qemu_test/asset.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index 0abd89e0a38..ffa01aba2fb 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -137,7 +137,16 @@ def _try_to_fetch(self, tmp_cache_file): for _retries in range(3): try: with tmp_cache_file.open("xb") as dst: - with urllib.request.urlopen(self.url) as resp: + req =3D urllib.request.Request( + self.url, + headers=3D{ + # Workaround Anubis challenge which some sites + # trigger when Accept is missing: + # https://github.com/TecharoHQ/anubis/issues/= 1346 + "Accept": "*/*", + } + ) + with urllib.request.urlopen(req) as resp: copyfileobj(resp, dst) length_hdr =3D resp.getheader("Content-Length") =20 --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177017; cv=none; d=zohomail.com; s=zohoarc; b=IJnr5ZueD1+OJxzuDPth/GUDrCImcOi3uzDqNXuBqsgWxmCh5rF7QJ0Foh77jV1tgq8BX7MsRTFxhrnuSpd5usdhhGArOdit350DIVLyd6qNgPe5L3sIZEuhAspXjHTXOOWLrjLPPXcquV5dVnyIPfSRJwrKR+WQKxkIC836XDE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177017; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=B2nm+1+1B2w1cGNut983ONF6RgJRqB53Sdtu65UgeUg=; b=T9kbWLnlEALsHMEToGSUmTmjecPsprPeVGDOtuDHAPfT5QCtnRw4akVY5aGVUfGxx20OEMOZ7c5MBEhNJWo3addKj9VTdqTxAjOJ4tECyNrKgOVpcV8n1ke7Y9XVUqSJRlaW0v1kpGLmuC1nicnUCvzjGL2b9FMW115ZTIZcW00= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177017502252.27952338513535; Fri, 20 Nov 2026 04:16:57 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXP-00071y-Sz; Fri, 20 Nov 2026 07:16:19 -0500 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 1xUNWm-0006Jy-Ef for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:41 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNWj-0006GQ-NT for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:40 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-513-naRvfLIpMl-adgP3GSIy4w-1; Fri, 20 Nov 2026 12:15:32 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 70A0B1956068; Fri, 20 Nov 2026 12:15:30 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 6FA8B30000E7; Fri, 20 Nov 2026 12:15:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176936; 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; bh=B2nm+1+1B2w1cGNut983ONF6RgJRqB53Sdtu65UgeUg=; b=iH8RGyioxeuUh1y26dxCcs0inmGKgwZ8G/mMDeebWjs9eONR3vOBoVQt6J4aIScmeR3aDT sWwaq7/kAn2K+81UEb4qrHAanGjdViOIUy3SG5eK0d90pP88CioupdEWTh7YkuqDwA0gL7 i2iIwCE1ie/yglJ8TMYVPZiktLYoe88= X-MC-Unique: naRvfLIpMl-adgP3GSIy4w-1 X-Mimecast-MFC-AGG-ID: naRvfLIpMl-adgP3GSIy4w_1795176930 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 05/12] tests/functional: check if we are served an Anubis challenge Date: Fri, 20 Nov 2026 12:14:51 +0000 Message-ID: <20261120121458.3723625-6-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177019945158500 If we get an Anubis challenge, we'll detect the problem as a mismatched sha256 digest, however, it is difficult to diagnose that Anubis was the root cause. Add a crude check to detect the challenge and give a clear message in the logs when the download fails. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/asset.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index ffa01aba2fb..bb7c7d5bb8f 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -244,6 +244,15 @@ def fetch(self): self.log.debug("Unable to set xattr on %s: %s", tmp_cache_file= , e) =20 if not self._check(tmp_cache_file): + # Open in binary mode in case the file is binary + # content that can't decode as valid utf-8 + with open(tmp_cache_file, mode=3D'rb') as fh: + f =3D fh.read(10*1024) + if "anubis".encode() in f: + tmp_cache_file.unlink() + raise AssetError(self, + f"Got Anubis challenge instead of con= tent", + transient=3DTrue) tmp_cache_file.unlink() raise AssetError(self, f"Hash does not match {self.hash}") tmp_cache_file.replace(self.cache_file) --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177073; cv=none; d=zohomail.com; s=zohoarc; b=St82fPVa+iatMDJr1PJmvYw3SfZrSZJK7SXk1GXxLGejjn36KbZbk9U60JnwJdIEN/KEbXkZE9lcpmm3LXXmB2w/yMm6H+YpUuqeiHfOaBiLKGoMVSaczf+rwzYJHfcekddc4WlQtamaophAziBEpCuGyM751tGM9CT2I/rD9gs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177073; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Xe/ydVz9VVY5ySmBDtx+FQAdJ8Oqdg4Nb8cfOjgHsIk=; b=Rh3m7lwd04VFxJr5TjIw/Cz9wmP3E7vQiB1xaBA0zPPnDoo7r/lDzXgbHHCr8fKhpXbhvmgWBllHIIL3nCr6N18xqTc2zuW8TLJYdtoHdbaK18kpff6j3IZ1Ounxra/OkId6qot8ABs3eIbBZZJYqmoycvSM0+oFHruFzbb033I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177073954570.1342015677934; Fri, 20 Nov 2026 04:17:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXP-00070I-Bo; Fri, 20 Nov 2026 07:16:19 -0500 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 1xUNWq-0006LO-KE for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:46 -0500 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 1xUNWo-0006HU-Co for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:44 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-684-OtE5cpqcMH669p5-N1nIHw-1; Fri, 20 Nov 2026 12:15:37 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D49871800551; Fri, 20 Nov 2026 12:15:34 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id ABEB330000E3; Fri, 20 Nov 2026 12:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176941; 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; bh=Xe/ydVz9VVY5ySmBDtx+FQAdJ8Oqdg4Nb8cfOjgHsIk=; b=eUkXf59gRMQcyOpU3tOu9Mt/HlO156VbuxEE8iQmVV8ZYEPLIvg6PGezg2/9ifV5NAtn/6 hyYweuJEOOY9smq7GOW2W3VrCYO9a64MZ5LrPtJiJC9j9B1OhVUKL8M82YecBj4A6kFvCB VdbPPsBNFLgDfn95jTpumVlgNgJO9TY= X-MC-Unique: OtE5cpqcMH669p5-N1nIHw-1 X-Mimecast-MFC-AGG-ID: OtE5cpqcMH669p5-N1nIHw_1795176935 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 06/12] tests/functional: don't write timestamp unless successful Date: Fri, 20 Nov 2026 12:14:52 +0000 Message-ID: <20261120121458.3723625-7-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177074594158500 The current code creates the timestamp file before running the precache operation, so it remains on disk even after a download error. This prevents re-trying of downloads to get the missing files. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/asset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index bb7c7d5bb8f..51c76993d07 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -307,5 +307,5 @@ def precache_suites(path, cache_tstamp): loader =3D unittest.loader.defaultTestLoader tests =3D loader.loadTestsFromNames([path], None) =20 - with open(cache_tstamp, "w", encoding=3D'utf-8'): - Asset.precache_suite(tests) + Asset.precache_suite(tests) + Path(cache_tstamp).touch() --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177003; cv=none; d=zohomail.com; s=zohoarc; b=VIt4cY4+xKaaahMm6BZTW6gfDpeNHjvKPujDtnMGpi8HWTABJcifVTvlWbTN6si1uCgXpb/HV1NBAd3GsHJgsOAqe17aJxlJVf/JwIdm2KdFSqPgmOMfpiucgJzwT4GAjjUTgIXxca9QnDm9GfAhNwZjisvI/F/4R61B+8J8P18= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177003; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=UHocjhI3+qVrj8LQob6+N1h9Y3e6Fn639tAipjhVmSg=; b=Q46Qsi4Hd+aFbDilXS5pLUath5/uCRONKfmOa53WyYRc33mqcKsRHixdIKvzPonCtiM1kHVdXv9609hFs1NC+e2NROLNiTryJgxFRjqcT2m7EzdyHN95chPA3JwLf41YHyrmcJWmIiDwQF88DV1uEsDo5rGRSbKxpNRwb23L26M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177003626281.2352808861151; Fri, 20 Nov 2026 04:16:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXJ-0006h8-Lp; Fri, 20 Nov 2026 07:16:13 -0500 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 1xUNWv-0006Ne-2S for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:52 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNWs-0006IE-LJ for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:47 -0500 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-lD8VFk1YOMK2NpxUszac6A-1; Fri, 20 Nov 2026 12:15:41 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 81F08195419B; Fri, 20 Nov 2026 12:15:39 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3156430000E3; Fri, 20 Nov 2026 12:15:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176946; 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; bh=UHocjhI3+qVrj8LQob6+N1h9Y3e6Fn639tAipjhVmSg=; b=hyZaBMITOxDyewcqSJNtZ8DnvbyXxO9pT+1AwU0XCReyGiDy7kf9YqYYDZHmys/rnkSfaE Y3pZf0zAKrp5KhPjGxwbTlTtPBRsZsdnvrQPkF6zV61FEbXZc7WsPpRRQLS9zjNDisDlmA zBiqhNvgIMHfWSgurXhq9bWIC5onDJU= X-MC-Unique: lD8VFk1YOMK2NpxUszac6A-1 X-Mimecast-MFC-AGG-ID: lD8VFk1YOMK2NpxUszac6A_1795176939 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 07/12] tests/functional: delete tmp file on interrupt Date: Fri, 20 Nov 2026 12:14:53 +0000 Message-ID: <20261120121458.3723625-8-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177006186158500 If the user interrupts the download, delete the temporary file so we don't get a long timeout waiting on a stale download when re-running. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/asset.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index 51c76993d07..5a9a0f37e9a 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -225,8 +225,12 @@ def fetch(self): self.log.info("Downloading %s to %s...", self.url, self.cache_file) tmp_cache_file =3D self.cache_file.with_suffix(".download") =20 - if self._try_to_fetch(tmp_cache_file): - return str(self.cache_file) + try: + if self._try_to_fetch(tmp_cache_file): + return str(self.cache_file) + except KeyboardInterrupt: + tmp_cache_file.unlink() + raise =20 if not os.path.exists(tmp_cache_file): raise AssetError(self, "Download retries exceeded", transient= =3DTrue) --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177055; cv=none; d=zohomail.com; s=zohoarc; b=MjHBwyb6FL9nurYrFy61y0EyPhj3Jt19M/QykQMlhQzWgO+Ec8Ih4i/mpFX/GnLuMrnr9KCJw6/02d3fECqJKI5B3tkv0ykwq9DdO+J6EbkilRLHcGhXdiFZ98dUh82lhS93JmkW21oqahPSkE4ItRv253XB2CsYvRl6QaYqBTk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177055; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=h0ghUw1GbywVItEb0FKlEZl2p1YXR4OkhuRFf0DLRkk=; b=LTKDsJ2wF1m4Meu/g+cVeB3eos5euRgXqL1SzFiA9vFkilBx9PQkf1UjhDCjgNFXoXARnEvqGsLiLCoLSX4IhUx/wBynIGvBIEt4r5gp8054qdCmQ+lSiu8VarcHnvfk43eUcdL2Ex9jt5qjrYmLKSkdkGybQOQUaW6OahTH4Eg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177055273413.2452479324668; Fri, 20 Nov 2026 04:17:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXM-0006qn-Fe; Fri, 20 Nov 2026 07:16:16 -0500 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 1xUNX0-0006SG-P1 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:54 -0500 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 1xUNWy-0006Iy-Cv for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:53 -0500 Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-486-NJWLgm3QN4KTs_I0Nqmg8w-1; Fri, 20 Nov 2026 12:15:46 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C30D31800544; Fri, 20 Nov 2026 12:15:43 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D2B3630000E3; Fri, 20 Nov 2026 12:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176951; 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; bh=h0ghUw1GbywVItEb0FKlEZl2p1YXR4OkhuRFf0DLRkk=; b=iGjZ/3IGitTB/LlgebSqGf3zyZ79ek+IeYstxHxZx4XUFox/ZBdf/IfVtSqqzpSKteJeCv v+6mz8+eS454BjqvadWOzfBSRu3YoSk/gxgXITzCYlwUJFpE8Osb5Ju6iICeeGwT91IdmJ 2k0CeZFpEZZ/oKgYn+hKHZYvsve/wy4= X-MC-Unique: NJWLgm3QN4KTs_I0Nqmg8w-1 X-Mimecast-MFC-AGG-ID: NJWLgm3QN4KTs_I0Nqmg8w_1795176943 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 08/12] tests/functional: honour make jobs in precache Date: Fri, 20 Nov 2026 12:14:54 +0000 Message-ID: <20261120121458.3723625-9-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177056282158500 Pass $(NINJAFLAGS) when running precache so that it does not run in parallel until the user requested a parallel make. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/Makefile.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index a1f60802b9b..f983b1ae2dd 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -49,7 +49,7 @@ $(FUNCTIONAL_TARGETS): =20 .PHONY: check-functional-precache check-functional-precache: - @$(NINJA) precache-functional + @$(NINJA) $(NINJAFLAGS) precache-functional @$(PYTHON) $(SRC_PATH)/scripts/clean_functional_cache.py =20 .PHONY: check-functional --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177041; cv=none; d=zohomail.com; s=zohoarc; b=Iqvs/gMjMIeaUoMTtQAaamBche18fEtbIPMZFPi9CbMfm3qAkJBjHvwwfdXqZTsyscSCiGxWahQ/PqBeBh1Kmk6eKvuieeDbG4L2J3NnIfkymsARMO3upgiBtis4oJkDNhhMAurNaf6VgymL2IUOgrJDcgNsnbxloenH0quP7P8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177041; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RBLbo0RF/8oU3zdYwmO67oJCAl/8k+8cCZ0nq7cVw9A=; b=lf+xiZX3OMjplRFEA+eEvdUYjNceSGXmYWLA/Al5gevyjHdcvfIOnlo4Ntur8F43Y62KGIHq9Ak2p6ZYTm6AkLVPbbr6EbZAiLyBpl7nS+7VfS/Th3XxoJoacFWd5Ydptcha1Qzu7DDpHu/25e/eSVC981JdTurY8et0iJ2d7Ks= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177041443429.3556632882759; Fri, 20 Nov 2026 04:17:21 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXP-00070J-Bl; Fri, 20 Nov 2026 07:16:19 -0500 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 1xUNX2-0006TU-Ia for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:56 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNX0-0006JD-Eq for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:15:55 -0500 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-117-fZ4DXjzLN22NsnprT456Qg-1; Fri, 20 Nov 2026 12:15:50 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0A6421956068; Fri, 20 Nov 2026 12:15:48 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1F3AF30000E3; Fri, 20 Nov 2026 12:15:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176952; 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; bh=RBLbo0RF/8oU3zdYwmO67oJCAl/8k+8cCZ0nq7cVw9A=; b=AjNruRa05rfyVkvA9B3WXKH58VUvpIX0o6gfGVcFWdtFNrqAZML9Rqm2/M7rja+OQjcM+q Fli2wyGT6ZlfKOoboCyQWwWnY9yrfjk4SfoIhKiVFopmu0OaNDbIA+qCWBHrjFni1MbnX1 ylZgqy6elILGelIKRQzkBozmklVcyjY= X-MC-Unique: fZ4DXjzLN22NsnprT456Qg-1 X-Mimecast-MFC-AGG-ID: fZ4DXjzLN22NsnprT456Qg_1795176948 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 09/12] tests/functional: don't display stack trace on download fail Date: Fri, 20 Nov 2026 12:14:55 +0000 Message-ID: <20261120121458.3723625-10-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177042180158500 Just display the short error message which is sufficient to diagnose the problem and makes the logs far easier to read. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/testcase.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu= _test/testcase.py index d4aee359517..8fa0af5a698 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -28,7 +28,7 @@ from qemu.utils import hvf_available, kvm_available, tcg_available =20 from .archive import archive_extract -from .asset import Asset +from .asset import Asset, AssetError from .config import BUILD_DIR, dso_suffix from .uncompress import uncompress =20 @@ -256,7 +256,11 @@ def main(): =20 cache =3D os.environ.get("QEMU_TEST_PRECACHE", None) if cache is not None: - Asset.precache_suites(test_module, cache) + try: + Asset.precache_suites(test_module, cache) + except AssetError as e: + print(f"ERROR: {e}") + sys.exit(1) return =20 tr =3D pycotap.TAPTestRunner(message_log =3D pycotap.LogMode.LogTo= Error, --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177034; cv=none; d=zohomail.com; s=zohoarc; b=g4GguCnQDIFqu2jLo9B6BWZ21MTrZ2vSkOyKE2WrlwhnwrJEj9YfA5kiZRXyc6DL62BBSchby0QT30yPj73d8/pI1CelvTeYTon9xKR8Ezmvc7RgnXIiC7RlkUUD2UyOIWMMSorwX2Rk57VjE5u4fVY3THFubR0KD4UK0NcoFTw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177034; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=85hyB7iP46yS8tGIEW6CLSAIaB8NBOkTltCfh//dV6E=; b=PxEQoTHl2FifUTGwJcqJLaDCXT/JPRcmTDiea4CBeXpz3PFtRys8mrvtv38Yh0X3z1QxOdF60q0rr1T5KhkH9RqZFGTL+da5d8cO8J2oNIKxpIRJV1iK04nnRO1QmIclqqQkNlRXne4TtNfvz0YfGdbWy08iZiVXnaTJSAtCvzE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177034509142.05212984280467; Fri, 20 Nov 2026 04:17:14 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXR-000744-VT; Fri, 20 Nov 2026 07:16:21 -0500 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 1xUNXD-0006Z0-Ay for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:16:09 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUNX9-0006L6-MS for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:16:07 -0500 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-375-1MdKs0dzMnW7eoMg9_WSxA-1; Fri, 20 Nov 2026 12:15:54 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 71194195399F; Fri, 20 Nov 2026 12:15:52 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5ADA430000E8; Fri, 20 Nov 2026 12:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176960; 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; bh=85hyB7iP46yS8tGIEW6CLSAIaB8NBOkTltCfh//dV6E=; b=HAG5sXNWzbEIwNlEwteSz7ZYugfKvuT65A40+1WKLJ+RSkAmnWV1esWZxc/7xyDNFcWnBl jGjf9gVjAFI4q0yi2fKZCxxL0BoFU9L25TLTxsK4y06qcrpxGaxyulEHv/cjHXYbip2GIv AFhWd76DQDDWAH1hgbUKh/WGLjD3/Js= X-MC-Unique: 1MdKs0dzMnW7eoMg9_WSxA-1 X-Mimecast-MFC-AGG-ID: 1MdKs0dzMnW7eoMg9_WSxA_1795176952 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 10/12] tests/functional: always raise AssetError when download fails Date: Fri, 20 Nov 2026 12:14:56 +0000 Message-ID: <20261120121458.3723625-11-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177036287158500 If two processes are downloading the same file, the second will wait for the first to finish. The second may encounter problems, however, and raise FileNotFoundError or TimeoutError. The layers up the stack, however, only expect/handle AssetError. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/asset.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index 5a9a0f37e9a..313efcf7626 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -103,7 +103,9 @@ def _wait_for_other_download(self, tmp_cache_file): except: if os.path.exists(self.cache_file): return True - raise + raise AssetError( + self, f"Other thread failed download to {tmp_cache_file}", + transient=3DTrue) waittime =3D lastchange =3D 600 while waittime > 0: sleep(1) @@ -113,7 +115,9 @@ def _wait_for_other_download(self, tmp_cache_file): except: if os.path.exists(self.cache_file): return True - raise + raise AssetError( + self, f"Other thread failed download to {tmp_cache_fil= e}", + transient=3DTrue) if new_size !=3D current_size: lastchange =3D waittime current_size =3D new_size @@ -121,7 +125,8 @@ def _wait_for_other_download(self, tmp_cache_file): return False =20 self.log.debug("Time out while waiting for %s!", tmp_cache_file) - raise TimeoutError(f"Time out while waiting for {tmp_cache_file}") + raise AssetError(f"Time out while waiting for {tmp_cache_file}", + transient=3DTrue) =20 def _save_time_stamp(self): ''' --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177080; cv=none; d=zohomail.com; s=zohoarc; b=nOPqi18qH1fL/o9nlFFWpvGeRhxPyxQPv5KCWu4j375JYretgw+BvMfmDmXoLJInQzuvuMWTuAISVqwDxQtndKmwWm8BEwdnFSOOPMqDi0qY6kEYAbs8HHALTLeH+eDcSCLI+CabNu16sjZjKwwHsJ53Gaa5uL0X5wY13O8T15U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177080; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2SLTl67ILFmADmNBfehKS86bzFqZRjZXR6jhC/n4zuw=; b=PK2vURlyr4mNPnx+hg6Nb+KkP3zameEQiNwuKalIpC4V/lnlT9Chklq7uhUoRLcysGqH4YmwQccDqQFH/t4HQpB0+Wv61zT1joFU56m/EgE2lrvOhy94esQbUBxX6ORofc+2nVakbitc/ys5TAxgDmITgYPUYqDQbG92fusz4EU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177080332116.86445079157329; Fri, 20 Nov 2026 04:18:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXL-0006of-KT; Fri, 20 Nov 2026 07:16:15 -0500 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 1xUNXE-0006ZY-L4 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:16:09 -0500 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 1xUNXB-0006Ly-N0 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:16:08 -0500 Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-482-XJ0ZLggTOee_Av2o3L4Z4w-1; Fri, 20 Nov 2026 12:15:59 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 4E1F318002CA; Fri, 20 Nov 2026 12:15:57 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id C32AF30000E3; Fri, 20 Nov 2026 12:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176965; 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; bh=2SLTl67ILFmADmNBfehKS86bzFqZRjZXR6jhC/n4zuw=; b=M8k8h5JJKN1Cv577xmloamc9bmlkhkH7XXGppzZesS+I2R/wWhdbCWH51w5GcF5Q/tnj7z 57JLj8msMZvo6DOiUUQBCcvJDBfG2975nBaymxrhbf5iUhTgZzGmvMetm4L1B5Z5csmBv9 tJS88/iUJU6xFJFgKJFh+mUN3gFg3pU= X-MC-Unique: XJ0ZLggTOee_Av2o3L4Z4w-1 X-Mimecast-MFC-AGG-ID: XJ0ZLggTOee_Av2o3L4Z4w_1795176957 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 11/12] tests/functional: only run pre-cache once per class Date: Fri, 20 Nov 2026 12:14:57 +0000 Message-ID: <20261120121458.3723625-12-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177080503158500 When precaching assets, we iterate over test cases, downloading all assets in the class containing the test suite. This often results in iterating over assets in the class multiple times. If we fail to download an asset from a non-transient problem, it will not end up in the cache, and so the subsequent iterations will retry the failed download again wasting time, as well as making the logs more verbose. Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/functional/qemu_test/asset.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index 313efcf7626..7bebdd4d481 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -273,11 +273,13 @@ def fetch(self): return str(self.cache_file) =20 @staticmethod - def precache_test(test): + def precache_test(test, done): ''' Look for variables starting with "ASSET_" and try to fetch the ass= et that is specified there. ''' + if test.__class__ in done: + return log =3D logging.getLogger('qemu-test') log.setLevel(logging.DEBUG) handler =3D logging.StreamHandler(sys.stdout) @@ -295,18 +297,19 @@ def precache_test(test): raise log.error("%s: skipping asset precache", e) =20 + done[test.__class__] =3D True log.removeHandler(handler) =20 @staticmethod - def precache_suite(suite): + def precache_suite(suite, done): ''' Iterate through all tests/suites in a suite and precache their ass= ets ''' for test in suite: if isinstance(test, unittest.TestSuite): - Asset.precache_suite(test) + Asset.precache_suite(test, done) elif isinstance(test, unittest.TestCase): - Asset.precache_test(test) + Asset.precache_test(test, done) =20 @staticmethod def precache_suites(path, cache_tstamp): @@ -316,5 +319,5 @@ def precache_suites(path, cache_tstamp): loader =3D unittest.loader.defaultTestLoader tests =3D loader.loadTestsFromNames([path], None) =20 - Asset.precache_suite(tests) + Asset.precache_suite(tests, {}) Path(cache_tstamp).touch() --=20 2.56.1 From nobody Mon Nov 23 04:26:04 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1795177032; cv=none; d=zohomail.com; s=zohoarc; b=enIveMZRoRh5+gmdEDIi4iwo3etO+L/46CUByMQKoWOuJhMR/S3daTW/agKXfv3GyP0ggxJRR2bdUlHDEcF4rT6rrqo2SP/83XLVSb0vRtG6L5b32IDTh68Sfrad8F23MghMuldQu4A07jYVgnsPYIEYAhCxBTY7YjodUfUWI2A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795177032; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Ggfe95c43et3bV+Q/H7TlbZ1FsPNMkhdV3fEGX7y96E=; b=LMMMUjhe98iht7XrYiKziPnqzwuLE0QVer8FzkqwqEmmjoHpdM/vHHHopgpnFmf9VCzHRHumOQFGrf2bb0mXB1BsURkib5zvF71IibHpXgbRLQLWIX/gIo1cDyCKmfIGomzGAGTbmnxA+/nMPe0X/bqBHOMusVj+UBDYdvtI9oE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795177032407422.07672199989133; Fri, 20 Nov 2026 04:17:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUNXT-000767-Pn; Fri, 20 Nov 2026 07:16:23 -0500 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 1xUNXG-0006ds-Tu for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:16:12 -0500 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 1xUNXE-0006NN-R6 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 07:16:10 -0500 Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-UorawhL0OOyuFO_jfe4MQg-1; Fri, 20 Nov 2026 12:16:04 +0000 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7E1D7195419B; Fri, 20 Nov 2026 12:16:01 +0000 (UTC) Received: from berrange.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8944430000E7; Fri, 20 Nov 2026 12:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795176968; 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; bh=Ggfe95c43et3bV+Q/H7TlbZ1FsPNMkhdV3fEGX7y96E=; b=BObCQ81DFmw+ATwm5yEYDn2dTXbSgqJ6fgFCFIVTnXruYwjDhuZBXHFrDXBdeh1Uk/z427 T5f2FRJ5b3nx0i1DFhHctXxNprPEjbrgj7xt1xO9KNOGzcW+4ZMLQSb/I8Pq6aD+uMHWuC TuOO3lRT9nEy5dBGYpN/eNsk6/w1TrE= X-MC-Unique: UorawhL0OOyuFO_jfe4MQg-1 X-Mimecast-MFC-AGG-ID: UorawhL0OOyuFO_jfe4MQg_1795176961 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Pierrick Bouvier , Zhao Liu , Peter Maydell , Matthew Rosato , Halil Pasic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Strahinja Jankovic , Niek Linnenbank , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , "Michael S. Tsirkin" , =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-s390x@nongnu.org, qemu-arm@nongnu.org, Christian Borntraeger , qemu-ppc@nongnu.org, Thomas Huth , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Eric Farman Subject: [PATCH 12/12] tests/functional: optionally display download progress Date: Fri, 20 Nov 2026 12:14:58 +0000 Message-ID: <20261120121458.3723625-13-berrange@redhat.com> In-Reply-To: <20261120121458.3723625-1-berrange@redhat.com> References: <20261120121458.3723625-1-berrange@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=berrange@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1795177034225158500 If "QEMU_TEST_VERBOSE=3D1" is set then display the file download progress. This is not enabled by default since meson buffers output, but if running the test file directly it can be helpful to see. This requires the 'tqdm' python package to be present on the system and will have no effect if missing. Signed-off-by: Daniel P. Berrang=C3=A9 --- docs/devel/testing/functional.rst | 6 ++++++ tests/functional/qemu_test/asset.py | 29 +++++++++++++++++++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/docs/devel/testing/functional.rst b/docs/devel/testing/functio= nal.rst index 60a427d175d..8aac3ef9508 100644 --- a/docs/devel/testing/functional.rst +++ b/docs/devel/testing/functional.rst @@ -329,6 +329,12 @@ default, but the location can be changed by setting the To force the test suite to re-download the cache, even if still valid, set the ``QEMU_TEST_REFRESH_CACHE`` environment variable. =20 +To see progress information during the downloads, set ``QEMU_TEST_VERBOSE`` +to ``1``. Since meson buffers output and only display it on completion, +this is only suitable if running the test precaching directly:: + + QEMU_TEST_VERBOSE=3D1 ./run tests/functional/mips/test_malta.py + Skipping tests -------------- =20 diff --git a/tests/functional/qemu_test/asset.py b/tests/functional/qemu_te= st/asset.py index 7bebdd4d481..aa071ea1960 100644 --- a/tests/functional/qemu_test/asset.py +++ b/tests/functional/qemu_test/asset.py @@ -18,9 +18,13 @@ import urllib.request from time import sleep from pathlib import Path -from shutil import copyfileobj from urllib.error import HTTPError, URLError =20 +try: + from tqdm import tqdm +except: + tqdm =3D None + =20 class AssetError(Exception): '''This exception will be raised if an asset is not usable''' @@ -139,6 +143,14 @@ def _save_time_stamp(self): self.cache_file.with_suffix(".stamp").write_text(f"{int(time.time(= ))}") =20 def _try_to_fetch(self, tmp_cache_file): + def copyfileprog(prg, src, dst): + rd =3D src.read + wr =3D dst.write + while buf :=3D rd(256 * 1024): + wr(buf) + if prg is not None: + prg.update(len(buf)) + for _retries in range(3): try: with tmp_cache_file.open("xb") as dst: @@ -152,8 +164,21 @@ def _try_to_fetch(self, tmp_cache_file): } ) with urllib.request.urlopen(req) as resp: - copyfileobj(resp, dst) length_hdr =3D resp.getheader("Content-Length") + verbose =3D os.environ.get("QEMU_TEST_VERBOSE", Fa= lse) + if tqdm is not None and verbose: + args =3D { + "desc": os.path.basename(self.url) + } + if length_hdr is not None: + args["total"] =3D int(length_hdr) + prg =3D tqdm(**args) + try: + copyfileprog(prg, resp, dst) + finally: + prg.close() + else: + copyfileprog(None, resp, dst) =20 # Verify downloaded file size against length metadata, if # available. --=20 2.56.1