From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38B26C25B0E for ; Tue, 16 Aug 2022 16:26:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id ABAA282ED1; Tue, 16 Aug 2022 16:26:38 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org ABAA282ED1 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ix8Y5W5BOn9l; Tue, 16 Aug 2022 16:26:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id AE91D82F14; Tue, 16 Aug 2022 16:26:36 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AE91D82F14 Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id F00A31BF392 for ; Tue, 16 Aug 2022 16:26:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id C993E41550 for ; Tue, 16 Aug 2022 16:26:34 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C993E41550 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C8DDfx5ByDoS for ; Tue, 16 Aug 2022 16:26:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1D3C74031B Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [IPv6:2a01:e0c:1:1599::15]) by smtp4.osuosl.org (Postfix) with ESMTPS id 1D3C74031B for ; Tue, 16 Aug 2022 16:26:33 +0000 (UTC) Received: from ymorin.is-a-geek.org (unknown [IPv6:2a01:cb19:8b51:cb00:e933:8a8a:6743:9483]) (Authenticated sender: yann.morin.1998@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id 1D1FE780504; Tue, 16 Aug 2022 18:26:27 +0200 (CEST) Received: by ymorin.is-a-geek.org (sSMTP sendmail emulation); Tue, 16 Aug 2022 18:26:26 +0200 Date: Tue, 16 Aug 2022 18:26:26 +0200 From: "Yann E. MORIN" To: Thomas Petazzoni Message-ID: <20220816162626.GQ2775145@scaer> References: <20220815214815.2234201-1-thomas.petazzoni@bootlin.com> <20220815214815.2234201-2-thomas.petazzoni@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220815214815.2234201-2-thomas.petazzoni@bootlin.com> User-Agent: Mutt/1.5.22 (2013-10-16) X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=free.fr; s=smtp-20201208; t=1660667191; bh=Vkub+dIc81t8xqYDGtoHmABoMynPoDXFFb1Qw1Vsh2E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aopknb9Xen/vCrVvcMHGzXhNmUTfDsEkxLw5r5awt36ToG/vTERG34y91Y+aSmJwV XTK/zNfqb3i0Omu/aejvxNC6IfavS2dfH/eokH/+cx2L+8ZkzxWutuM/BhUE+H/aOb HMVzBzSRtehFqA+INDtdTQWd065mSLFZU10B8CKjBhRZ0cDox2t0S/UHv6FfhamSPm y/S+mUHkIlDGX6LNmsXs484CfvqrQWuBUyiUy+Nj/AJx/wwRmzUaVtVZeAU5u57ltb lravJQW2efHD8kHLgH74eV1I38UNPtR7tIAfhq+gqwNz73AmmtPJMke501R46c+NB6 V6+7dyH0Zthkg== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=free.fr header.i=@free.fr header.a=rsa-sha256 header.s=smtp-20201208 header.b=aopknb9X Subject: Re: [Buildroot] [PATCH 1/3] support/testing/tests/package/test_python_boto3: use ext2 instead of cpio X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , =?utf-8?B?UmFwaGHDq2wgTcOpbG90dGU=?= , Buildroot List Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Thomas, All, On 2022-08-15 23:48 +0200, Thomas Petazzoni via buildroot spake thusly: > The CPIO filesystem generated by the test_python_boto3 test is too > large, and doesn't fit as an initramfs in the 256MB of RAM available > in the versatilepb machine. This causes a "Initramfs unpacking failed: > write error" when booting, and many files being missing from the root > filesystem, ultimately causing the test to fail. > > It would make sense to switch all test cases to use ext2 + a > hard-drive, but for now, let's fix the few test cases that are causing > problems. > > Fixes: > > https://gitlab.com/buildroot.org/buildroot/-/jobs/2884635041 > > Signed-off-by: Thomas Petazzoni > --- > support/testing/tests/package/test_python_boto3.py | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/support/testing/tests/package/test_python_boto3.py b/support/testing/tests/package/test_python_boto3.py > index 756495fec9..7f24399304 100644 > --- a/support/testing/tests/package/test_python_boto3.py > +++ b/support/testing/tests/package/test_python_boto3.py > @@ -1,4 +1,5 @@ > from tests.package.test_python import TestPythonPackageBase > +import os > > > class TestPythonPy3Boto3(TestPythonPackageBase): > @@ -7,6 +8,17 @@ class TestPythonPy3Boto3(TestPythonPackageBase): > """ > BR2_PACKAGE_PYTHON3=y > BR2_PACKAGE_PYTHON_BOTO3=y > + BR2_TARGET_ROOTFS_EXT2=y > + BR2_TARGET_ROOTFS_EXT2_SIZE="120M" > + # BR2_TARGET_ROOTFS_TAR is not set BR2_TARGET_ROOTFS_TAR is already unset in TestPythonPackageBase.config, so disabling it here is superfluous. But this will however still build the cpio archive, because it is enabled in TestPythonPackageBase.config. We can disable it with: class TestPythonPy3Boto3(TestPythonPackageBase): config = TestPythonPackageBase.config.replace('BR2_TARGET_ROOTFS_CPIO=y\n', '') + \ """ blablabla """ If you believe that it is acceptable, I can fix when applying. Or we can continue to uselessly build the cpio archive, which does not take very long to assemble... Regards, Yann E. MORIN. > """ > sample_scripts = ["tests/package/sample_python_boto3.py"] > timeout = 10 > + > + def login(self): > + ext2_file = os.path.join(self.builddir, "images", "rootfs.ext2") > + self.emulator.boot(arch="armv5", > + kernel="builtin", > + options=["-drive", "file=%s,if=scsi,format=raw" % ext2_file], > + kernel_cmdline=["rootwait", "root=/dev/sda"]) > + self.emulator.login() > -- > 2.37.2 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot