GNU bug report logs - #78758
shepherd: 'herd graph' shows root node

Previous Next

Package: guix;

Reported by: burban <at> opopop.net

Date: Wed, 11 Jun 2025 14:55:03 UTC

Severity: normal

To reply to this bug, email your comments to 78758 AT debbugs.gnu.org.

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#78758; Package guix. (Wed, 11 Jun 2025 14:55:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to burban <at> opopop.net:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 11 Jun 2025 14:55:03 GMT) Full text and rfc822 format available.

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

From: burban <at> opopop.net
To: bug-guix <at> gnu.org
Subject: shepherd: herd graph issue
Date: Tue, 10 Jun 2025 20:03:30 +0000
Hello,

I noticed that "herd graph" always creates a link to root, which IMO
clobbers the picture (I can send pictures if that is allowed on this
list or their source)

This is due to these lines in herd.scm (around line 782):

                          (if (memq 'root (live-service-provision service))
                              (live-service-requirement service)
                              (cons 'root (live-service-requirement service)))))

The line (live-service-requirement service) is enough to produce
an understandable dependency graph.

Sincerely.

-- 

Bernard




Information forwarded to bug-guix <at> gnu.org:
bug#78758; Package guix. (Fri, 13 Jun 2025 22:54:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: burban--- via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Cc: 78758 <at> debbugs.gnu.org, burban <at> opopop.net
Subject: Re: bug#78758: shepherd: herd graph issue
Date: Sat, 14 Jun 2025 00:50:04 +0200
Hi,

burban--- via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:

> I noticed that "herd graph" always creates a link to root, which IMO
> clobbers the picture (I can send pictures if that is allowed on this
> list or their source)

Yeah I wondered about that at the time but found that not having a clear
source node on the graph looked weird (and inaccurate).

So hmm, I don’t know!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#78758; Package guix. (Fri, 13 Jun 2025 22:54:03 GMT) Full text and rfc822 format available.

Changed bug title to 'shepherd: 'herd graph' shows root node' from 'shepherd: herd graph issue' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 13 Jun 2025 22:54:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#78758; Package guix. (Sat, 14 Jun 2025 22:38:06 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: burban <at> opopop.net
Cc: 78758 <at> debbugs.gnu.org
Subject: Re: bug#78758: shepherd: herd graph issue
Date: Sun, 15 Jun 2025 00:19:07 +0200
Hi,

burban <at> opopop.net writes:

> It would perhaps make everyone happy to add the root service in the
> graph only if #:requirement is empty.

I think it would be confusing.  It should either always show the ‘root’
node, or never show it.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#78758; Package guix. (Sun, 15 Jun 2025 06:59:06 GMT) Full text and rfc822 format available.

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

From: burban <at> opopop.net
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 78758 <at> debbugs.gnu.org
Subject: Re: bug#78758: shepherd: herd graph issue
Date: Sat, 14 Jun 2025 19:23:57 +0000
Hello,

My remark was in the context of booting, where a service depends always
on some #:requirement (file systems mounted, udev present etc...),
and transitiveley to an ultimate ancestor (which #:requirement
I force to be root, may be this isn't necessary)

If you run shepherd for user services, it makes sense to have
#:requirement empty.

It would perhaps make everyone happy to add the root service in the
graph only if #:requirement is empty.

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

> Hi,
>
> burban--- via Bug reports for GNU Guix <bug-guix <at> gnu.org> writes:
>
>> I noticed that "herd graph" always creates a link to root, which IMO
>> clobbers the picture (I can send pictures if that is allowed on this
>> list or their source)
>
> Yeah I wondered about that at the time but found that not having a clear
> source node on the graph looked weird (and inaccurate).
>
> So hmm, I don’t know!
>
> Ludo’.

Sincerely.

--

Bernard




This bug report was last modified 3 days ago.

Previous Next


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