GNU bug report logs - #27067
Feature request: please allow for either automatic logging of all output of every guix commands or add an option to each guix command to allow it for all to be logged

Previous Next

Package: guix;

Reported by: Brenton Horne <brentonhorne77 <at> gmail.com>

Date: Thu, 25 May 2017 15:32:02 UTC

Severity: wishlist

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 27067 in the body.
You can then email your comments to 27067 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#27067; Package guix. (Thu, 25 May 2017 15:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brenton Horne <brentonhorne77 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 25 May 2017 15:32:02 GMT) Full text and rfc822 format available.

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

From: Brenton Horne <brentonhorne77 <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: Feature request: please allow for either automatic logging of all
 output of every guix commands or add an option to each guix command to allow
 it for all to be logged
Date: Thu, 25 May 2017 17:54:12 +1000
[Message part 1 (text/plain, inline)]
Hi,

As I understand it only the guix build command has an option to log output
to a file. I would like to request that each guix command have the option
at least (if not automatic like it is for Gentoo's Portage package manager)
to log all output to a file. I believe this will help both users and
developers deal with bugs and alike in the package manager. I realize
people can already log all output using redirection like with:

COMMAND > output.log 2>&1


but with this method no output is shown at the command-line so users can't
track what guix is doing in real-time.

Thanks for your time,
Brenton
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Thu, 25 May 2017 16:43:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Brenton Horne <brentonhorne77 <at> gmail.com>
Cc: 27067 <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Thu, 25 May 2017 22:11:58 +0530
> I realize people can already log all output using redirection like
> with:
>
> COMMAND > output.log 2>&1
>
> but with this method no output is shown at the command-line so users can't
> track what guix is doing in real-time.

Somebody else should comment on the feature request. But, for immediate
usage, to both log the output and see it in real-time, you could use
something like:

COMMAND | tee output.log




Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Thu, 25 May 2017 17:07:02 GMT) Full text and rfc822 format available.

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

From: Brenton Horne <brentonhorne77 <at> gmail.com>
To: 27067 <at> debbugs.gnu.org
Subject: Reply to Arun Isaac's reply
Date: Fri, 26 May 2017 03:05:58 +1000
[Message part 1 (text/plain, inline)]
Hi,

Thanks. This feature would still be useful though, but your idea makes it
less urgent. Automatic logging still sounds like a good idea as the Guix
package manager is quite slow for some operations at the moment (not
criticising the developers of Guix, after all at this early stage of
development issues like this are to be expected), for me at least running
GuixSD in a QEMU VM with 8 GB RAM and 3 CPU cores (3.3 GHz i7 cores), so it
might save users interested in filing bug reports a lot of time (on
re-running the problem command with `| tee output.log` after it) if the
output was logged automatically. Saving users time will probably mean users
will be far more motivated and able to provide bug reports on issues they
experience, which is good for the entire Guix community as bugs would get
reported and resolved faster.

Thanks for your time,
Brenton
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Thu, 25 May 2017 18:26:01 GMT) Full text and rfc822 format available.

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

From: Brenton Horne <brentonhorne77 <at> gmail.com>
To: 27067 <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Fri, 26 May 2017 04:25:18 +1000
[Message part 1 (text/plain, inline)]
I'm afraid I have no knowledge of Guile or Scheme. Looking at the Guile
manual seems to indicate to me it's a language quite unlike most languages
I've coded in. The only exception is that it does look a little like Emacs
Lisp.

On 26 May 2017 at 04:10, Arun Isaac <arunisaac <at> systemreboot.net> wrote:

>
> Brenton Horne writes:
>
> > Thanks. I did ask in the #guix IRC channel first and no one provided this
> > solution (not using this as some criticism, I realize the IRC channel is
> > people volunteering their time to help others, just mentioning) and one
> > person agreed with my suggestion of reporting this as a feature request.
> > Still this feature would be useful, but your idea makes it less urgent.
> > Automatic logging still sounds like a good idea as Guix is quite slow for
> > some operations at the moment (not dissing the developers of Guix, after
> > all at this early stage of development issues like this are to be
> > expected), for me at least running GuixSD in a QEMU VM with 8 GB RAM and
> 3
> > CPU cores (3.3 GHz i7 cores), so it might save users interested in filing
> > bug reports a lot of time (on re-running the problem command with `| tee
> > output.log` after it) if the output was logged automatically. Saving
> users
> > time will probably mean users will be far more motivated and able to
> > provide bug reports on issues they experience, which is good for the
> entire
> > Guix community as bugs would get reported and resolved faster.
>
> You could work on this issue, and submit a patch. I'm sure that would be
> welcome.
>
> Regards,
> Arun Isaac.
>



-- 
Thanks for your time,
Brenton
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Thu, 25 May 2017 20:11:02 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Brenton Horne <brentonhorne77 <at> gmail.com>
Cc: 27067 <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Thu, 25 May 2017 22:10:12 +0200
Brenton Horne <brentonhorne77 <at> gmail.com> writes:

> As I understand it only the guix build command has an option to log output
> to a file.

Actually, the output of “guix build” is indeed stored by default.
You can get it by asking for the logs for a given derivation.

For example:

    # build something, please
    guix build --no-substitutes samtools
    …
    # show me the derivation
    guix build -d samtools
    # show me the location of the matching log
    guix build --log-file $(guix build -d samtools)

Does this solve the feature request?

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Thu, 25 May 2017 20:34:01 GMT) Full text and rfc822 format available.

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

From: Brenton Horne <brentonhorne77 <at> gmail.com>
To: 27067 <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Fri, 26 May 2017 06:33:32 +1000
[Message part 1 (text/plain, inline)]
This feature request isn't specific to guix build (it was low priority to
me as I knew it at least had the ability to log, thanks for telling me it
automatically does but it doesn't really change this feature request), it's
asking for all guix commands with substantial output to automatically log.
I have never run guix build, but I know that some guix commands run for a
very long time and if they fail and do not log it, it can be quite
irritating to have to re-run it and use tee to log its output. For example,
`guix pull && guix package -u` has taken up to 12 hours to run for me
before, so if it fails and doesn't log it can be quite an irritating waste
of time and deter people from filing invaluable bug reports about issues
they've experienced with guix.

On 26 May 2017 at 06:10, Ricardo Wurmus <rekado <at> elephly.net> wrote:

>
> Brenton Horne <brentonhorne77 <at> gmail.com> writes:
>
> > As I understand it only the guix build command has an option to log
> output
> > to a file.
>
> Actually, the output of “guix build” is indeed stored by default.
> You can get it by asking for the logs for a given derivation.
>
> For example:
>
>     # build something, please
>     guix build --no-substitutes samtools
>     …
>     # show me the derivation
>     guix build -d samtools
>     # show me the location of the matching log
>     guix build --log-file $(guix build -d samtools)
>
> Does this solve the feature request?
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
>
>


-- 
Thanks for your time,
Brenton
[Message part 2 (text/html, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Thu, 25 May 2017 21:31:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Brenton Horne <brentonhorne77 <at> gmail.com>
Cc: 27067 <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Thu, 25 May 2017 23:30:19 +0200
Brenton Horne <brentonhorne77 <at> gmail.com> writes:

> For example,
> `guix pull && guix package -u` has taken up to 12 hours to run for me
> before, so if it fails and doesn't log it can be quite an irritating waste
> of time and deter people from filing invaluable bug reports about issues
> they've experienced with guix.

“guix package” really does the same as “guix build” and if it fails the
failure will be recorded in the log that belongs to the derivation that
failed.

Not sure about “guix pull”, though.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net





Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Tue, 30 May 2017 20:15:02 GMT) Full text and rfc822 format available.

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

From: ludo <at> gnu.org (Ludovic Courtès)
To: Brenton Horne <brentonhorne77 <at> gmail.com>
Cc: 27067 <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Tue, 30 May 2017 22:14:35 +0200
Hi Brenton,

Brenton Horne <brentonhorne77 <at> gmail.com> skribis:

> As I understand it only the guix build command has an option to log output to a file.

Every derivation that is built, regardless of the command, has its log
stored in /var/log/guix/drvs.  What ‘guix build’ has is a simple way to
get the file name or URL of a build log:

  guix build --log-file coreutils

See:

  https://www.gnu.org/software/guix/manual/html_node/Additional-Build-Options.html
  https://www.gnu.org/software/guix/manual/html_node/Invoking-guix_002ddaemon.html
    (specifically --lose-logs and --disable-log-compression)

Can we say your feature request has already been fulfilled?  :-)

Thanks,
Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#27067; Package guix. (Mon, 17 Dec 2018 09:31:01 GMT) Full text and rfc822 format available.

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

From: swedebugia <at> riseup.net
To: 27067 <at> debbugs.gnu.org
Subject: Feature request: please allow for either automatic logging of all
 output of every guix commands or add an option to each guix command to allow
 it for all to be logged
Date: Mon, 17 Dec 2018 01:30:48 -0800
Hi

I think the current logging is good enough.

I vote for closing this as Brenton did not answer during a long time and
nobody else thought this was worth implementing.

We could add a note to the manual with a very general pipe output tip,
but it would probably just clutter an already large manual.

-- 
Cheers 
Swedebugia




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 18 Dec 2018 11:23:02 GMT) Full text and rfc822 format available.

Notification sent to Brenton Horne <brentonhorne77 <at> gmail.com>:
bug acknowledged by developer. (Tue, 18 Dec 2018 11:23:03 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: swedebugia <at> riseup.net
Cc: 27067-done <at> debbugs.gnu.org
Subject: Re: bug#27067: Feature request: please allow for either automatic
 logging of all output of every guix commands or add an option to each guix
 command to allow it for all to be logged
Date: Tue, 18 Dec 2018 12:21:56 +0100
Hi,

swedebugia <at> riseup.net skribis:

> I think the current logging is good enough.
>
> I vote for closing this as Brenton did not answer during a long time and
> nobody else thought this was worth implementing.

I agree, done!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Jan 2019 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 103 days ago.

Previous Next


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