all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Contributing guide building from git make check failure
@ 2023-03-28  4:42 Philip Nelson
  2023-04-01 16:16 ` Leo Famulari
  0 siblings, 1 reply; 2+ messages in thread
From: Philip Nelson @ 2023-03-28  4:42 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1910 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Contributing guide building from git make check failure
  2023-03-28  4:42 Contributing guide building from git make check failure Philip Nelson
@ 2023-04-01 16:16 ` Leo Famulari
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Famulari @ 2023-04-01 16:16 UTC (permalink / raw)
  To: Philip Nelson; +Cc: guix-devel

On Tue, Mar 28, 2023 at 04:42:25AM +0000, Philip Nelson wrote:
> 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?

Thanks for your report! I forwarded it to the bug tracker:

https://issues.guix.gnu.org/62594


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-01 16:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28  4:42 Contributing guide building from git make check failure Philip Nelson
2023-04-01 16:16 ` Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.