GNU bug report logs - #42794
make check fails test "tests/packages.scm fold-available-packages with/without cache"

Previous Next

Package: guix;

Reported by: jbranso <at> dismail.de

Date: Mon, 10 Aug 2020 10:08:02 UTC

Severity: normal

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#42794: closed (make check fails test "tests/packages.scm
 fold-available-packages with/without cache")
Date: Mon, 10 Aug 2020 12:42:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 10 Aug 2020 14:41:27 +0200
with message-id <871rkezn9k.fsf <at> gnu.org>
and subject line Re: bug#42794: make check fails test "tests/packages.scm fold-available-packages with/without cache"
has caused the debbugs.gnu.org bug report #42794,
regarding make check fails test "tests/packages.scm fold-available-packages with/without cache"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
42794: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42794
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: jbranso <at> dismail.de
To: bug-guix <at> gnu.org
Subject: make check fails test "tests/packages.scm fold-available-packages
 with/without cache"
Date: Mon, 10 Aug 2020 10:07:18 +0000
[Message part 3 (text/plain, inline)]
Hello,

My recent make check failed the tests/packages.scm
"fold-available-packages with/without cache".

After janneke confirmed that his recent make checked failed the same
test, he encouraged me to submit this bug.

He also showed me how to make a shorter test-suite.log file via
make check TESTS='tests/packages.scm', which is what I'm attaching.

Still the whole test-suite.log file is super long, so here's the main
gist that you ought to see:

test-name: fold-available-packages with/without cache
location: /home/joshua/prog/gnu/guix/guix-src/tests/packages.scm:1309
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))
+ '()))))))
+ (and (equal?
+ (delete-duplicates from-cache)
+ from-cache)
+ (lset= equal? no-cache from-cache))))
actual-value: #f
result: FAIL

Thanks!

Joshua
[Message part 4 (text/html, inline)]
[test-suite.log (text/plain, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Mathieu Othacehe <othacehe <at> gnu.org>
To: jbranso--- via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Cc: 42794-done <at> debbugs.gnu.org, jbranso <at> dismail.de
Subject: Re: bug#42794: make check fails test "tests/packages.scm
 fold-available-packages with/without cache"
Date: Mon, 10 Aug 2020 14:41:27 +0200
Hello,

> He also showed me how to make a shorter test-suite.log file via
> make check TESTS='tests/packages.scm', which is what I'm attaching.
>
> Still the whole test-suite.log file is super long, so here's the main
> gist that you ought to see:

Thanks for the report :)

This should be fixed with 6463578384d9101ca3f0072ca3a19ba7865f4e94.

Mathieu


This bug report was last modified 4 years and 284 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.