Subject: bug#37748: closed (Re: bug#37748: 'guix' fails tests on non-x86_64 systems)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 15 Oct 2019 05:32:04 +0000

Your bug report

#37748: 'guix' fails tests on non-x86_64 systems

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].

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

Subject: Re: bug#37748: 'guix' fails tests on non-x86_64 systems
From: Ludovic Courtès <[email-masked]>
To: Marius Bakke <[email-masked]>
Cc: [email-masked]
Date: Tue, 15 Oct 2019 07:31:33 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès <[email-masked]> skribis:

> Marius Bakke <[email-masked]> skribis:
>
>> test-name: fold-available-packages with/without cache
>> location: /tmp/guix-build-guix-1.0.1-7.fc1fe72.drv-0/source/tests/packages.scm:1110
>> 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
>
> Oops!  Commit 88da011592a679776088b64b8d11575563c3f867 fixes it.
>
> I’m testing ‘guix’ packages updated to that commit and will push
> tomorrow if everything goes well and nobody beats me at it.

Done in 062158cd7e89ccd40381ca96ce016c841507cedb.

Ludo'.

Subject: 'guix' fails tests on non-x86_64 systems
From: Marius Bakke <[email-masked]>
To: [email-masked]
Date: Mon, 14 Oct 2019 18:30:51 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

The 'guix' package fails a single test on all architectures except
x86_64:

https://ci.guix.gnu.org/search?query=guix-1.0.1-7+spec%3Aguix-master

Here is a more stable URL with a log file:

https://ci.guix.gnu.org/build/1823863/details

Test output:

test-name: fold-available-packages with/without cache
location: /tmp/guix-build-guix-1.0.1-7.fc1fe72.drv-0/source/tests/packages.scm:1110
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