From unknown Sun Aug 17 01:00:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74862: `tests/store-deduplication.scm` fails on Asahi Linux Resent-From: Lukas Navickas Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 13 Dec 2024 23:09:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74862 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74862@debbugs.gnu.org X-Debbugs-Original-To: "bug-guix@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.17341312857122 (code B ref -1); Fri, 13 Dec 2024 23:09:03 +0000 Received: (at submit) by debbugs.gnu.org; 13 Dec 2024 23:08:05 +0000 Received: from localhost ([127.0.0.1]:44643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMElQ-0001qj-R5 for submit@debbugs.gnu.org; Fri, 13 Dec 2024 18:08:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:48110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMD3W-0004gv-OT for submit@debbugs.gnu.org; Fri, 13 Dec 2024 16:18:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMD3W-0004tC-He for bug-guix@gnu.org; Fri, 13 Dec 2024 16:18:38 -0500 Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMD3U-0006VA-FC for bug-guix@gnu.org; Fri, 13 Dec 2024 16:18:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1734124712; x=1734383912; bh=36VhzEJH8YouGIDDzVTxgV4URkWgcgsrfzoORVOpYr0=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=O/XI9SQSbMQVViiDMYyPInxHjbVXi2TCfIRmKSOB7RThlQnT5GJWCfcgZLtqgJjzd YDo2XZst7yMsODPFASBcSAE2t5ISqGU114TMiCf7JE3BVjhBsgKGkakP+Bm8bpeF99 2E8qRMoPvS4a6pUa8+MBmP2frZhGrRWs687jCVJDaJjY7n4fQRG0vcsz0AnDjeJaPf NH22MBrwpafQyvPkX2HyfTPXpOettDX61wtsYyc4dWDEfXyXe3jRlXX0XjoFLq7/uJ uqYt2WU3AyI0H5J6SLIuUFgZccuzTzZ73J+MtV+mxGvB2nZV5NDnA78ziEPWQ8fW5a UXvXWRx1VX2Ww== Date: Fri, 13 Dec 2024 21:18:28 +0000 From: Lukas Navickas Message-ID: Feedback-ID: 119935400:user:proton X-Pm-Message-ID: da62879e4eed0debf8b36ee4d3d7db0b3bff3fa2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.22; envelope-from=l.navickas@pm.me; helo=mail-4322.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Fri, 13 Dec 2024 18:08:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) `copy-file/deduplicate, sparse files` tests fail on asahi linux. i do not have adequate grounding on this topic, but i made a few empirical = tests changing the inputs. the original tests create a file in `/tmp`, and fail. if instead the file is on disk, some(all?) tests pass. if instead the inputs are changed from 2*4096 to 2*16834, some tests pass. tmpfs on apple silicon has a block size of 16834. i'm guessing this corresp= onds to its RAM page size. i'm inferring that this test has a hidden dependency: the block size of the= underlying filesystem that contains the tested files. it may be desirable = to account for this dependency. From unknown Sun Aug 17 01:00:40 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74862: `tests/store-deduplication.scm` fails on Asahi Linux Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 21 Feb 2025 21:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74862 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lukas Navickas , 74862@debbugs.gnu.org Received: via spool by 74862-submit@debbugs.gnu.org id=B74862.17401736677698 (code B ref 74862); Fri, 21 Feb 2025 21:35:02 +0000 Received: (at 74862) by debbugs.gnu.org; 21 Feb 2025 21:34:27 +0000 Received: from localhost ([127.0.0.1]:38231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlafC-000201-CY for submit@debbugs.gnu.org; Fri, 21 Feb 2025 16:34:27 -0500 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:54534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlaf9-0001ya-7Z for 74862@debbugs.gnu.org; Fri, 21 Feb 2025 16:34:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1740173655; bh=iptDI3bD9J3knr5bpOmHOj+fqrLyYbLSsRt2zI9NaDU=; h=From:To:Subject:In-Reply-To:References:Date:From; b=jwXvOVXzUvWfhv1en6+L/ekGwrHdQDtp/1XcAtAwDNALxRysRPFUw33lvhSQKh3cg XZA+A8LmDgWIBCkqeo8WrjsSLhHJGzNIqBX0t0JHcu6+i6PtFzATUgT1TUyWFbX8tM 0l2U4KzqpR6P+QXhS9OTMAaUSKXwIFJMrDD4oVlEDSSVn6Uhl592n6Om1EIKbGnb5Z Kgvygt1CJq1WOJsnQbRfEhYilwWgVcwAG4mSdVxshr7JDmKU78am4bCaC6Cd8HOzra WiRNkTPBuA+EjzRy+5Y3yQSikslnAx4T2UCVvcTiP6UoUETwjpaekvNxV3Mb896TkP x/aXjc0X77cxw== Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) by cascadia.aikidev.net (Postfix) with ESMTPSA id 073783C1; Fri, 21 Feb 2025 13:34:15 -0800 (PST) From: Vagrant Cascadian In-Reply-To: References: Date: Fri, 21 Feb 2025 13:34:09 -0800 Message-ID: <87ikp37zji.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 2024-12-13, Lukas Navickas wrote: > `copy-file/deduplicate, sparse files` tests fail on asahi linux. > > i do not have adequate grounding on this topic, but i made a few empirica= l tests changing the inputs. > > the original tests create a file in `/tmp`, and fail. > if instead the file is on disk, some(all?) tests pass. > if instead the inputs are changed from 2*4096 to 2*16834, some tests pass. > > tmpfs on apple silicon has a block size of 16834. i'm guessing this corre= sponds to its RAM page size. I suspect this is the same issue building guix on Debian ppc64el: https://buildd.debian.org/status/fetch.php?pkg=3Dguix&arch=3Dppc64el&ver= =3D1.4.0%2B154710%2Bab1b5-1&stamp=3D1740138790&raw=3D0 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/8192/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/8192/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/9999/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/9999/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/16384/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/16384/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/22222/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 0/22222/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/8192/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/8192/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/9999/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/9999/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/16384/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/16384/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/22222/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 3333/22222/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/8192/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/8192/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/9999/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/9999/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/16384/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/16384/8192)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/22222/0)=20 FAIL: tests/store-deduplication.scm - copy-file/deduplicate, sparse files (= holes: 8192/22222/8192) Various architectures have different page sizes, for example: https://wiki.debian.org/ArchitectureSpecificsMemo Even within an architecture, it may vary, as ppc64el uses variable 4k-64k as opposed to arm64 which uses 4k, 16k (e.g. asahi), or 64k which I believe is fixed at boot time and hardware dependent. > i'm inferring that this test has a hidden dependency: the block size > of the underlying filesystem that contains the tested files. it may be > desirable to account for this dependency. At the very least, the test should be skipped if assumptions about ram page sizes are made and the environment does not match those assumptions... For the short term, I plan on disabling this test on ppc64el for Debian, but a better fix upstream would be appreciated! :) live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZ7jxUQAKCRDcUY/If5cW quxgAP0QvEH9cG/iYHKUzFGnVHAaLlYg582mOaR/ru+eMPRADAEAtVD7BBwBpg1v HqW9rMEuX1laD8s+V4aCJ1b5jdvyqwQ= =HH2d -----END PGP SIGNATURE----- --=-=-=--