From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id CDQEFeRNJ2SQCwEASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 23:17:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id SM40FORNJ2RuHAEAG6o9tA (envelope-from ) for ; Fri, 31 Mar 2023 23:17:24 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 00C022B7E2 for ; Fri, 31 Mar 2023 23:17:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piM7S-0007bq-Rp; Fri, 31 Mar 2023 17:17:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph1AQ-0001q6-7p for guix-devel@gnu.org; Tue, 28 Mar 2023 00:42:46 -0400 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ph1AN-0007Yc-Tk for guix-devel@gnu.org; Tue, 28 Mar 2023 00:42:41 -0400 Received: by mail-pj1-x102d.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso14006474pjb.0 for ; Mon, 27 Mar 2023 21:42:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pnelson.ca; s=google; t=1679978557; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=7B1bOwDXNa1+Bx3mu/epzZzgpEYHjSuTAFNLlXEGgw4=; b=OZw82Pkyms/S8JU3yIcpJL7SGZy1A8XhWZwhkZ/lR14r833CpuY8H07D1zvaYvcbDw XbtCj9+F5bQRVX0qCHA3QtmSwDqSQ0EMe2AFpJJZWKRFKfxH4Tu0zKj4K8g+SpYQYNIi t3ko1NOjhjhpgeBAiQi25mC8ODev4+vp7pke9YGjCXskwCyOEm0FbSAcVFhBsNCUHSSU YJU1XjHDoVQhRAizwI7rV3vG6K8bRlBcIvZLDOfwlkNL2BS2Pg0E7tAaQez35y/ndysb GtOgA9z77B6U1NhW3gySmDM7Tl2KMFwWRQQfPzUEsXnhn1RbxRAWth5ZpBBrf7Uyvjt5 RkaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679978557; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7B1bOwDXNa1+Bx3mu/epzZzgpEYHjSuTAFNLlXEGgw4=; b=SYe+lgoZIxjidYFX9wyZHmsTQsK8o6y1u20QK2bxRy3BmsOBoAWF6Zn8pilADCvKqo rQhxwGNHn2E3xidn6gMV+g2DsZ33kl2K/p3DQRt9Dfd7zuBq7kUI+Cfv6T5P7HzedVUr F63oxTkTz1aCf8/GbOMzL2fS3vYueGP1+lX/PNxSrogq96XqSaI3vKZoCENwVcyZUDJn d5/26LOgYuryh9wVGvYyQQt3DKZRW8razT/YpRc0j+5xsI0CCBrUI2DuiS16UKQwb+kG i3HFVy8xV/2hzv/J8PwPkEinbdvjPtBC8DaYGro95Wx0pWAcEzzqhw/ZwEcHF32sbEYn 8LlA== X-Gm-Message-State: AAQBX9f5h/l0KX5C2ZUmxcC6WfDdyo9dGy2zrGG8wRTjQRs2Zec2EooU BDt/8sJZLYoKzTBNfrpyydIcGo1fZHyGhLlPwyg8RBe+NS7K8EV1BLQnqA== X-Google-Smtp-Source: AKy350bmISH93FidJTAD/Zpp9IpSWwd+fVMMBsf7WvySzv0YDeYXGBzTJuDkCCUvobI9woKA0mfGDcq0tJta+XKmfcY= X-Received: by 2002:a17:902:9b88:b0:1a1:c523:a9bd with SMTP id y8-20020a1709029b8800b001a1c523a9bdmr5140175plp.0.1679978556580; Mon, 27 Mar 2023 21:42:36 -0700 (PDT) MIME-Version: 1.0 From: Philip Nelson Date: Tue, 28 Mar 2023 04:42:25 +0000 Message-ID: Subject: Contributing guide building from git make check failure To: guix-devel@gnu.org Content-Type: multipart/alternative; boundary="000000000000187ba305f7ee7dd4" Received-SPF: pass client-ip=2607:f8b0:4864:20::102d; envelope-from=me@pnelson.ca; helo=mail-pj1-x102d.google.com 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 31 Mar 2023 17:17:09 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680297444; a=rsa-sha256; cv=none; b=JgR9XCYWW4VHP3hFm4K3IlIftueh2wXxHX4UQ1D5dCHGfEohswEGnfVZQHKNLtQDn1+DeL At24GgjXLaJ+Wrfcn93DzCi9SswrsZSGmJZYDZO1sTxnTDgwsykt5CUXXfHJo3SL6gUyMT wI22ieb0WBE/PSLaYQVO3+0XFSeshioyaJ5KItFvMOnexLG4dZUIhkx7y4tGxvpUL+RjjB uN/LuitzmZkbDRod9u+0vQxzxteZQph2AUN2yTLcKUGZrGFhBLPTTzR9e2F4mvezDJMNhq ROWxw0ShMzhEmuByHYfbezs120eT79pqOu8mKf/s6lQ1W66yTXdf0PV02VqFGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pnelson.ca header.s=google header.b=OZw82Pky; dmarc=pass (policy=none) header.from=pnelson.ca; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680297444; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7B1bOwDXNa1+Bx3mu/epzZzgpEYHjSuTAFNLlXEGgw4=; b=FKW52iykri9upP54cZ7a7GHgY5HhO67i5fPQp8VFm7cBmVzgmGOndFlceVKzH5uQQpqCx6 Ye+w6w8mb3SgfNDrm5r3dDq3NZN7AFFiEddn6sGjeHidZm+0X/tfCzrLabXDquTsf+PGXC ylVP5sDhHpaNgHwW86Hivo6vnA6sUdQ5rCu6HoVLrosp68iBzV7h9UQOWR7PmM6Mxqt1lC 3fKn/PKJLfTMC3UJkCINHivlsqA19WcAN24ip9Ski/BcNcd4JTf2cf2nkmT0PSplmcO8O+ gr7jNdDeSRY2Bbtn61p7aIg3di/CwFGO27jMLz9M2Y2WvvqVr8tsWz+9qZucEg== X-Migadu-Spam-Score: -3.22 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pnelson.ca header.s=google header.b=OZw82Pky; dmarc=pass (policy=none) header.from=pnelson.ca; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Spam-Score: -3.22 X-Migadu-Queue-Id: 00C022B7E2 X-TUID: LRlT/vATj5Mc --000000000000187ba305f7ee7dd4 Content-Type: text/plain; charset="UTF-8" I've been following the Contributing guide "Building from Git" section ( https://guix.gnu.org/manual/devel/en/html_node/Building-from-Git.html). I get as far as `make check` but it fails on the following test. Others on IRC have reported this issue. I'm unsure how to proceed. Any suggestions? test-name: fold-available-packages with/without cache location: /home/main/src/guix/tests/packages.scm:1739 source: + (test-assert + "fold-available-packages with/without cache" + (let () + (define no-cache + (fold-available-packages + (lambda* (name version result #:rest rest) + (cons (cons* name version rest) result)) + '())) + (define from-cache + (call-with-temporary-directory + (lambda (cache) + (generate-package-cache cache) + (mock ((guix describe) current-profile (const cache)) + (mock ((gnu packages) + cache-is-authoritative? + (const #t)) + (fold-available-packages + (lambda* (name version result #:rest rest) + (cons (cons* name version rest) result)) + '())))))) + (define (list->set* lst) + (let loop ((lst lst) (duplicates '()) (seen (set))) + (match lst + (() (values seen duplicates)) + ((head . tail) + (if (set-contains? seen head) + (loop tail (cons head duplicates) seen) + (loop tail duplicates (set-insert head seen))))))) + (let ((set1 duplicates1 (list->set* from-cache)) + (set2 duplicates2 (list->set* no-cache))) + (and (null? duplicates1) + (null? duplicates2) + (every (cut set-contains? set1 <>) no-cache) + (every (cut set-contains? set2 <>) from-cache))))) actual-value: #f result: FAIL Thanks, Phil --000000000000187ba305f7ee7dd4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been following the Contributing guide "= Building from Git" section (https://guix.gnu.org/manual/devel/e= n/html_node/Building-from-Git.html). I get as far as `make check` but i= t fails on the following test. Others on IRC have reported this issue. I= 9;m unsure how to proceed. Any suggestions?
test-name: fold=
-available-packages with/without cache
location: /home/main/src/guix/tests/packages.scm:1739
source:
+ (test-assert
+   "fold-available-packages with/without cache"
+   (let ()
+     (define no-cache
+	(fold-available-packages
+	  (lambda* (name version result #:rest rest)
+	    (cons (cons* name version rest) result))
+	  '()))
+     (define from-cache
+	(call-with-temporary-directory
+	  (lambda (cache)
+	    (generate-package-cache cache)
+	    (mock ((guix describe) current-profile (const cache))
+		  (mock ((gnu packages)
+			 cache-is-authoritative?
+			 (const #t))
+			(fold-available-packages
+			  (lambda* (name version result #:rest rest)
+			    (cons (cons* name version rest) result))
+			  '()))))))
+     (define (list->set* lst)
+	(let loop ((lst lst) (duplicates '()) (seen (set)))
+	  (match lst
+		 (() (values seen duplicates))
+		 ((head . tail)
+		  (if (set-contains? seen head)
+		    (loop tail (cons head duplicates) seen)
+		    (loop tail duplicates (set-insert head seen)))))))
+     (let ((set1 duplicates1 (list->set* from-cache))
+	    (set2 duplicates2 (list->set* no-cache)))
+	(and (null? duplicates1)
+	     (null? duplicates2)
+	     (every (cut set-contains? set1 <>) no-cache)
+	     (every (cut set-contains? set2 <>) from-cache)))))
actual-value: #f
result: FAIL

Thanks,
Phil
--000000000000187ba305f7ee7dd4--