GNU bug report logs - #39926
Manual installation tests fail

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Thu, 5 Mar 2020 14:24:02 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39926 in the body.
You can then email your comments to 39926 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Thu, 05 Mar 2020 14:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 05 Mar 2020 14:24:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: Regression introduced by Shepherd 0.7.0 ('make check-system
 TESTS=btrfs-root-os' fails)
Date: Thu, 05 Mar 2020 09:23:25 -0500
Hello,

Recently, I noticed that 'make check-system TESTS=btrfs-root-os' stopped
working at all, even on master without my changes.

So, I've git bisected the faulty commit, and got:

--8<---------------cut here---------------start------------->8---
git bisect start
# good: [35cb2ac56cce1496c622958b53e82ba5d0c0ec48] gnu: Add queen.
git bisect good 35cb2ac56cce1496c622958b53e82ba5d0c0ec48
# bad: [a46174f457f7e558e67b7103074ee9ba92ada5dc] build: file-systems: Specify a "nfsvers" option by default for NFS.
git bisect bad a46174f457f7e558e67b7103074ee9ba92ada5dc
# bad: [532b318020748c035b43f83611899e4ba0875ae1] gnu: Add r-xmisc.
git bisect bad 532b318020748c035b43f83611899e4ba0875ae1
# bad: [7046106ef90e7855311dbb1f1ae9fed3df5cf875] gnu: upx: Clean up.
git bisect bad 7046106ef90e7855311dbb1f1ae9fed3df5cf875
# good: [a9546f8bb1fde766dc8ccd435b03aac1f720bd0f] gnu: go-github-com-certifi-gocertifi: Update to 2018.01.18-1.a5e0173
git bisect good a9546f8bb1fde766dc8ccd435b03aac1f720bd0f
# good: [53ddc6a71f6d7968734007f0b5325c66d9c6a33b] gnu: emacs-markdown-mode: Use HTTPS home page.
git bisect good 53ddc6a71f6d7968734007f0b5325c66d9c6a33b
# good: [1788bb9016a98d9c9412bc1611156d33f3f731d0] gnu: openscenegraph: Update to 3.6.5.
git bisect good 1788bb9016a98d9c9412bc1611156d33f3f731d0
# bad: [35f985cb52d7bc3d7e03d5db0a63da4dcf4d3322] gnu: guile-present: Use HTTPS home page.
git bisect bad 35f985cb52d7bc3d7e03d5db0a63da4dcf4d3322
# good: [d39885a8a9e0e03c2bf6277d475d384168bba642] gnu: python-reno: Update home page.
git bisect good d39885a8a9e0e03c2bf6277d475d384168bba642
# bad: [21f5de6d32a7d0e75ec2df69dc753a75a15657cd] gnu: openssh: Don't use NAME in source URI.
git bisect bad 21f5de6d32a7d0e75ec2df69dc753a75a15657cd
# bad: [139a9887843d0ea7dd724c4dd0d00470337370b3] gnu: shepherd: Add "guile3.0-shepherd" variant.
git bisect bad 139a9887843d0ea7dd724c4dd0d00470337370b3
# bad: [205c1e04e04b9a9338c7219ff82bd13f000fb8c8] gnu: shepherd: Update to 0.7.0.
git bisect bad 205c1e04e04b9a9338c7219ff82bd13f000fb8c8
# first bad commit: [205c1e04e04b9a9338c7219ff82bd13f000fb8c8] gnu: shepherd: Update to 0.7.0.
--8<---------------cut here---------------end--------------->8---

So, it seems that updating shepherd to 0.7.0 caused this regression
(commit 205c1e04e04b9a9338c7219ff82bd13f000fb8c8).

It probably causes other tests to fail in (gnu tests install), but I
haven't tried any.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Thu, 05 Mar 2020 17:23:02 GMT) Full text and rfc822 format available.

Message #8 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Thu, 05 Mar 2020 18:22:40 +0100
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> So, it seems that updating shepherd to 0.7.0 caused this regression
> (commit 205c1e04e04b9a9338c7219ff82bd13f000fb8c8).

Could it be something similar to <https://bugs.gnu.org/39671>, fixed in
commit 00500449b0d53bb9219608a3cbee8faf7a3edae1?

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Sat, 07 Mar 2020 04:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Fri, 06 Mar 2020 23:40:18 -0500
Hello Ludovic!

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>
>> So, it seems that updating shepherd to 0.7.0 caused this regression
>> (commit 205c1e04e04b9a9338c7219ff82bd13f000fb8c8).
>
> Could it be something similar to <https://bugs.gnu.org/39671>, fixed in
> commit 00500449b0d53bb9219608a3cbee8faf7a3edae1?
>
> Thanks,
> Ludo’.

I've reviewed the problem linked above, and the various places we still
have setenvs before forking a process with Shepherd, and haven't found a
problematic usage so far.

I've ran the following again:

--8<---------------cut here---------------start------------->8---
guix build --verbosity=10 /gnu/store/l6p6jnwn844hyfwfazg39i7mj4v3z9ac-btrfs-root-os.drv |& strings
--8<---------------cut here---------------end--------------->8---

The |& strings part prevents SeaBIOS from resetting my terminal emulator
and loosing parts of the scroll buffer.  Not really needed here, but
handy sometimes.

The failed derivation build ends with:

marionette is ready
;;; (uname #("Linux" "gnu" "5.4.24-gnu" "#1 SMP 1" "x86_64"))
builder for `/gnu/store/s3ba2v7cl8x0v7wi8xg3xrpm5216i3jf-installation.drv' failed with exit code 1


Right after outputing what seems to be the result of evaluating
'uname'.  Opening up the builder code referenced in that derivation,
/gnu/store/jv133gqxz1wj053vjzpnk6rkr6409lv1-btrfs-root-os-builder, I
could find:

--8<---------------cut here---------------start------------->8---
(test-assert "uname"
    (match
	(marionette-eval
	 (quote
	  (uname))
	 marionette)
      (#("Linux" host-name version _ architecture)
       (and
	(string=? host-name "liberigilo")
	(string-prefix? "5.4.24" version)
	(string-prefix? architecture %host-type)))))
--8<---------------cut here---------------end--------------->8---

Comparing with the above uname output, we can see that it validates the
hostname matches against "liberigilo", yet it is "gnu"!  Perhaps
Shepherd 0.7.0 introduced some problem with the hostname service?

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Sat, 07 Mar 2020 05:16:01 GMT) Full text and rfc822 format available.

Message #14 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Sat, 07 Mar 2020 00:15:07 -0500
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

[...]

> Comparing with the above uname output, we can see that it validates the
> hostname matches against "liberigilo", yet it is "gnu"!  Perhaps
> Shepherd 0.7.0 introduced some problem with the hostname service?

Another data point: the same happen when running './pre-inst-env make
check-system TESTS=installed-os', so this is not Btrfs specific.




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Sat, 07 Mar 2020 11:13:02 GMT) Full text and rfc822 format available.

Message #17 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Sat, 07 Mar 2020 12:11:59 +0100
Hi!

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> Comparing with the above uname output, we can see that it validates the
> hostname matches against "liberigilo", yet it is "gnu"!  Perhaps
> Shepherd 0.7.0 introduced some problem with the hostname service?

The “basic” test expects the name “liberigilo”, which is why all the
tests in (gnu tests install) use that name (yeah, it should probably be
a parameter somewhere…).

Could it be that the btrfs test uses “gnu” instead?

(The Shepherd doesn’t know or care about the host name.)

HTH!
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Sat, 07 Mar 2020 11:34:02 GMT) Full text and rfc822 format available.

Message #20 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Sat, 07 Mar 2020 12:33:08 +0100
[Message part 1 (text/plain, inline)]
The build log of <https://ci.guix.gnu.org/build/2356870/details> has:

--8<---------------cut here---------------start------------->8---
guix system: [1m[0mbootloader successfully installed on '[1m/dev/vdb[0m'
+ sync
[  194.803139] udevd[313]: failed to execute '/gnu/store/pxw38aa6wwxyd2ws9pkzj4m68qrmjscd-eudev-3.2.9/lib/udev/${exec_prefix}/bin/udevadm' '${exec_prefix}/bin/udevadm trigger -s block -p ID_BTRFS_READY=0': No such file or directory
--8<---------------cut here---------------end--------------->8---

The broken udev rule is ‘64-btrfs.rules’ in eudev:

--8<---------------cut here---------------start------------->8---
# reconsider pending devices in case when multidevice volume awaits
ENV{ID_BTRFS_READY}=="1", RUN+="${exec_prefix}/bin/udevadm trigger -s block -p ID_BTRFS_READY=0"
--8<---------------cut here---------------end--------------->8---

… where “${exec_prefix}” is expanded from “@bindir@”, a classical
issue that we should report upstream.  :-)

In the meantime, the following patch should solve the problem.  I’m
running the test now, and if it passes and you’re fine with it, I’ll
commit it.

It’s pleasant we have tests to catch such issues!

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 64ea566dbd..3884e15233 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo <at> gnu.org>
+;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo <at> gnu.org>
 ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <andreas <at> enge.fr>
 ;;; Copyright © 2012 Nikita Karetnikov <nikita <at> karetnikov.org>
 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Mark H Weaver <mhw <at> netris.org>
@@ -2870,6 +2870,26 @@ device nodes from /dev/, handles hotplug events and loads drivers at boot
 time.")
     (license license:gpl2+)))
 
+;; TODO: Merge with eudev on the next rebuild cycle.
+(define-public eudev/btrfs-fix
+  (package/inherit
+   eudev
+   (version (string-append (package-version eudev) "-1"))
+   (arguments
+    (substitute-keyword-arguments (package-arguments eudev)
+      ((#:phases phases '%standard-phases)
+       `(modify-phases ,phases
+          (add-before 'configure 'patch-bindir-in-btrfs-rules
+            (lambda* (#:key outputs #:allow-other-keys)
+              ;; The "@bindir@" substitution incorrectly expands to a literal
+              ;; "${exec_prefix}" (see <https://bugs.gnu.org/39926>).  Work
+              ;; around it.
+              (let ((out (assoc-ref outputs "out")))
+                (substitute* "rules/64-btrfs.rules.in"
+                  (("@bindir@")
+                   (string-append out "/bin")))
+                #t)))))))))
+
 (define-public eudev-with-hwdb
   (deprecated-package "eudev-with-hwdb" eudev))
 
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 706b3ae7ec..0c8978790d 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo <at> gnu.org>
+;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo <at> gnu.org>
 ;;; Copyright © 2015, 2016 Alex Kost <alezost <at> gmail.com>
 ;;; Copyright © 2015, 2016 Mark H Weaver <mhw <at> netris.org>
 ;;; Copyright © 2015 Sou Bunnbu <iyzsong <at> gmail.com>
@@ -1918,7 +1918,7 @@ archive}).  If that is not the case, the service will fail to start."
   udev-configuration make-udev-configuration
   udev-configuration?
   (udev   udev-configuration-udev                 ;<package>
-          (default eudev))
+          (default eudev/btrfs-fix))
   (rules  udev-configuration-rules                ;list of <package>
           (default '())))
 

Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Sat, 07 Mar 2020 21:37:01 GMT) Full text and rfc822 format available.

Message #23 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Sat, 07 Mar 2020 22:36:50 +0100
Hi again!

Ludovic Courtès <ludo <at> gnu.org> skribis:

> The broken udev rule is ‘64-btrfs.rules’ in eudev:
>
> # reconsider pending devices in case when multidevice volume awaits
> ENV{ID_BTRFS_READY}=="1", RUN+="${exec_prefix}/bin/udevadm trigger -s block -p ID_BTRFS_READY=0"
>
> … where “${exec_prefix}” is expanded from “@bindir@”, a classical
> issue that we should report upstream.  :-)
>
> In the meantime, the following patch should solve the problem.  I’m
> running the test now, and if it passes and you’re fine with it, I’ll
> commit it.

I pushed the patch as 24a4a635fd76a91463c75cfe615929ec482cc2f6.

It doesn’t solve the “btrfs-root-os” bug though.  :-/

I noticed that it’s the installation.drv that fails, not the basic.drv,
which is why we see “gnu” as the host name.  The weird thing is that it
fails after ‘reboot’, so I’m not sure what that means.  To be continued…

Thanks,
Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 07 Mar 2020 21:38:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Tue, 17 Mar 2020 03:08:02 GMT) Full text and rfc822 format available.

Message #28 received at 39926 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39926 <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Mon, 16 Mar 2020 23:07:01 -0400
Hello Ludovic!

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi again!
>
> Ludovic Courtès <ludo <at> gnu.org> skribis:
>
>> The broken udev rule is ‘64-btrfs.rules’ in eudev:
>>
>> # reconsider pending devices in case when multidevice volume awaits
>> ENV{ID_BTRFS_READY}=="1", RUN+="${exec_prefix}/bin/udevadm trigger -s block -p ID_BTRFS_READY=0"
>>
>> … where “${exec_prefix}” is expanded from “@bindir@”, a classical
>> issue that we should report upstream.  :-)
>>
>> In the meantime, the following patch should solve the problem.  I’m
>> running the test now, and if it passes and you’re fine with it, I’ll
>> commit it.
>
> I pushed the patch as 24a4a635fd76a91463c75cfe615929ec482cc2f6.
>
> It doesn’t solve the “btrfs-root-os” bug though.  :-/
>
> I noticed that it’s the installation.drv that fails, not the basic.drv,
> which is why we see “gnu” as the host name.  The weird thing is that it
> fails after ‘reboot’, so I’m not sure what that means.  To be continued…
>
> Thanks,
> Ludo’.

I've reported this problem to upstream here:
https://github.com/gentoo/eudev/issues/182.  Thanks for working around
it.

Maxim




Changed bug title to 'Manual installation tests fail' from 'Regression introduced by Shepherd 0.7.0 ('make check-system TESTS=btrfs-root-os' fails)' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 19 Mar 2020 22:20:02 GMT) Full text and rfc822 format available.

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 19 Mar 2020 22:22:01 GMT) Full text and rfc822 format available.

Notification sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
bug acknowledged by developer. (Thu, 19 Mar 2020 22:22:02 GMT) Full text and rfc822 format available.

Message #35 received at 39926-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39926-done <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Thu, 19 Mar 2020 23:21:49 +0100
Hi Maxim,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>
> [...]
>
>> Comparing with the above uname output, we can see that it validates the
>> hostname matches against "liberigilo", yet it is "gnu"!  Perhaps
>> Shepherd 0.7.0 introduced some problem with the hostname service?
>
> Another data point: the same happen when running './pre-inst-env make
> check-system TESTS=installed-os', so this is not Btrfs specific.

Fixed by be0a672c30ad1401019abb5cb83d59be171813d0.

I wonder how this could have worked before: ‘reboot’ never gets a reply,
so it’s supposed to hang until it’s killed when the ‘user-processes’
service is stopped.

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Fri, 20 Mar 2020 14:25:01 GMT) Full text and rfc822 format available.

Message #38 received at 39926-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39926-done <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Fri, 20 Mar 2020 10:23:57 -0400
Hi Ludo,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi Maxim,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>
>> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>>
>> [...]
>>
>>> Comparing with the above uname output, we can see that it validates the
>>> hostname matches against "liberigilo", yet it is "gnu"!  Perhaps
>>> Shepherd 0.7.0 introduced some problem with the hostname service?
>>
>> Another data point: the same happen when running './pre-inst-env make
>> check-system TESTS=installed-os', so this is not Btrfs specific.
>
> Fixed by be0a672c30ad1401019abb5cb83d59be171813d0.
>
> I wonder how this could have worked before: ‘reboot’ never gets a reply,
> so it’s supposed to hang until it’s killed when the ‘user-processes’
> service is stopped.
>
> Thanks,
> Ludo’.

Hey, weird!  Anyway, thanks for fixing it!  How did you debug this?  I'm curious.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Sat, 21 Mar 2020 13:45:02 GMT) Full text and rfc822 format available.

Message #41 received at 39926-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 39926-done <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Sat, 21 Mar 2020 14:44:23 +0100
Hi!

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hi Maxim,
>>
>> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
>>
>>> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>>>
>>> [...]
>>>
>>>> Comparing with the above uname output, we can see that it validates the
>>>> hostname matches against "liberigilo", yet it is "gnu"!  Perhaps
>>>> Shepherd 0.7.0 introduced some problem with the hostname service?
>>>
>>> Another data point: the same happen when running './pre-inst-env make
>>> check-system TESTS=installed-os', so this is not Btrfs specific.
>>
>> Fixed by be0a672c30ad1401019abb5cb83d59be171813d0.
>>
>> I wonder how this could have worked before: ‘reboot’ never gets a reply,
>> so it’s supposed to hang until it’s killed when the ‘user-processes’
>> service is stopped.
>>
>> Thanks,
>> Ludo’.
>
> Hey, weird!  Anyway, thanks for fixing it!  How did you debug this?  I'm curious.

I first noticed that the installation script ran to completion and that
the VM seems to stop properly.  Then I saw our code that did:

  (zero? (marionette-eval '(system #$script) marionette))

So I just tried adding:

  (pk (marionette-eval '(system "/run/current-system/profile/sbin/reboot")
                       marionette))

to the ‘basic’ test.  I noticed it would return 15, and then I got it.

Nothing fancy, mostly stubbornness and perseverance.  :-)

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#39926; Package guix. (Mon, 23 Mar 2020 18:02:02 GMT) Full text and rfc822 format available.

Message #44 received at 39926-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 39926-done <at> debbugs.gnu.org
Subject: Re: bug#39926: Regression introduced by Shepherd 0.7.0 ('make
 check-system TESTS=btrfs-root-os' fails)
Date: Mon, 23 Mar 2020 14:01:25 -0400
Hi!

Ludovic Courtès <ludo <at> gnu.org> writes:

[...]

>> Hey, weird!  Anyway, thanks for fixing it!  How did you debug this?  I'm curious.
>
> I first noticed that the installation script ran to completion and that
> the VM seems to stop properly.  Then I saw our code that did:
>
>   (zero? (marionette-eval '(system #$script) marionette))
>
> So I just tried adding:
>
>   (pk (marionette-eval '(system "/run/current-system/profile/sbin/reboot")
>                        marionette))
>
> to the ‘basic’ test.  I noticed it would return 15, and then I got it.
>
> Nothing fancy, mostly stubbornness and perseverance.  :-)

I see! Good old pk :-). Thanks for sharing the process used!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Apr 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years ago.

Previous Next


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