Subject: Re: bug#39374: Failing channels and graph on 1.0.1.10297-c5bbcb

From: Ludovic Courtès <[email-masked]>
Date: Wed, 05 Feb 2020 14:49:50 +0100

Hi Ellen,

Ellen Papsch <[email-masked]> skribis:

> Hello,
>
> I have installed GuixSD today with the attached config.scm and followed
> the "Contributing" chapter of the manual and executed the test suite,
> which results in two lone errors. I assume the errors are not due
> misconfiguration, although the messages don't tell me much, I could be
> mistaken.

Thanks for your report.  The first failing test is:

--8<---------------cut here---------------start------------->8---
test-name: channel-news, one entry
location: /home/ep/src/guix/tests/channels.scm:266
source:
+ (test-assert
+   "channel-news, one entry"

[...]

+              (lset= equal?
+                     (map channel-news-entry-tag
+                          (channel-news-for-commit channel commit5 commit1))
+                     '(#f "tag-for-first-news-entry")))))))
Initialized empty Git repository in /tmp/guix-directory.KCQpPV/.git/
[master (root-commit) 60bd594] first commit
 1 file changed, 1 insertion(+)
 create mode 100644 .guix-channel
[master 5349d58] second commit
 1 file changed, 1 insertion(+)
 create mode 100644 src/a.txt
[master ef05798] third commit
 1 file changed, 1 insertion(+)
 create mode 100644 news.scm
[master 0db78fb] fourth commit
 1 file changed, 1 insertion(+)
 create mode 100644 src/b.txt
[master 9ded21e] fifth commit
 1 file changed, 1 insertion(+), 1 deletion(-)
actual-value: #f
result: FAIL

random seed for tests: 1580471271
Updating channel 'test' from Git repository at 'test'...
Updating channel 'test-channel' from Git repository at 'https://example.com/test-channel'...
Updating channel 'test' from Git repository at 'test'...
Updating channel 'test-channel' from Git repository at 'https://example.com/test-channel'...
Updating channel 'test-channel' from Git repository at 'https://example.com/test-channel'...
--8<---------------cut here---------------end--------------->8---

I wonder if this could be caused by settings in ~/.gitconfig.  Could you
try to move it out of the way and run the test?  With:

  rm ~/.gitconfig{,.bak}
  make check TESTS=tests/channels.scm

The second failure is:

--8<---------------cut here---------------start------------->8---
test-name: reverse bag DAG
location: /home/ep/src/guix/tests/graph.scm:194
source:
+ (test-assert
+   "reverse bag DAG"
+   (let-values
+     (((dune bap ocaml-base)
+       (values
+         (specification->package "dune")
+         (specification->package "bap")
+         (specification->package "ocaml-base")))

[...]

actual-error:
+ (quit 1)
result: FAIL
--8<---------------cut here---------------end--------------->8---

It’s due to recent changes in the OCaml packages.  I’ll push a fix
shortly.

Thanks!

Ludo’.