Subject: bug#42794: closed (Re: bug#42794: make check fails test "tests/packages.scm fold-available-packages with/without cache")

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 10 Aug 2020 12:42:02 +0000

Your bug report

#42794: make check fails test "tests/packages.scm fold-available-packages with/without cache"

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
42794: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42794
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#42794: make check fails test "tests/packages.scm fold-available-packages with/without cache"
From: Mathieu Othacehe <[email-masked]>
To: jbranso--- via Bug reports for GNU Guix <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Mon, 10 Aug 2020 14:41:27 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: make check fails test "tests/packages.scm fold-available-packages with/without cache"
From: [email-masked]
To: [email-masked]
Date: Mon, 10 Aug 2020 10:07:18 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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