unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* hide more output
@ 2020-05-06 13:38 Ricardo Wurmus
  2020-05-06 14:08 ` Jan Nieuwenhuizen
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Ricardo Wurmus @ 2020-05-06 13:38 UTC (permalink / raw)
  To: guix-devel

Hi Guix,

when installing a few packages we see output like this:

--8<---------------cut here---------------start------------->8---
$ guix install zile-on-guile vim-full
The following packages will be installed:
   zile-on-guile 2.4.14-0.fd09781
   vim-full      8.2.0411

9.4 MB will be downloaded:
   /gnu/store/vf7w4yiax38ra7x8aqqvbnc38c0ldgpm-zile-on-guile-2.4.14-0.fd09781
   /gnu/store/dnj9wljcck9vdwgp7dwxk00qnnk1g3c5-vim-full-8.2.0411
downloading from https://ci.guix.gnu.org/nar/lzip/dnj9wljcck9vdwgp7dwxk00qnnk1g3c5-vim-full-8.2.0411...
 vim-full-8.2.0411  8.9MiB                 7.6MiB/s 00:01 [##################] 100.0%

downloading from https://ci.guix.gnu.org/nar/lzip/vf7w4yiax38ra7x8aqqvbnc38c0ldgpm-zile-on-guile-2.4.14-0.fd09781...
 zile-on-guile-2.4.14-0.fd09781  140KiB    1.8MiB/s 00:00 [##################] 100.0%

The following derivation will be built:
   /gnu/store/d9xms78917w67xq71pqsx5x9s6dmq6d7-profile.drv
The following graft will be made:
   /gnu/store/4n6dmg6iwjg0adpcvqygr9wgsnclswss-vim-full-8.2.0411.drv
applying 8 grafts for /gnu/store/4n6dmg6iwjg0adpcvqygr9wgsnclswss-vim-full-8.2.0411.drv...
building /gnu/store/d9xms78917w67xq71pqsx5x9s6dmq6d7-profile.drv...
--8<---------------cut here---------------end--------------->8---

While I’m sure many of us have gotten used to this I think we don’t need
to show quite as much information.  My proposal is to hide the
“downloading from <really long URL>” by default, because the URLs don’t
really matter to users.  We can unhide that bit of info when slightly
higher verbosity is requested.

What do you think?

--
Ricardo


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 13:38 hide more output Ricardo Wurmus
@ 2020-05-06 14:08 ` Jan Nieuwenhuizen
  2020-05-06 14:26   ` zimoun
  2020-05-06 14:25 ` Ludovic Courtès
  2020-05-06 14:55 ` Pierre Neidhardt
  2 siblings, 1 reply; 13+ messages in thread
From: Jan Nieuwenhuizen @ 2020-05-06 14:08 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Ricardo Wurmus writes:

> when installing a few packages we see output like this:
>
> $ guix install zile-on-guile vim-full
> The following packages will be installed:
>    zile-on-guile 2.4.14-0.fd09781
>    vim-full      8.2.0411
>
> 9.4 MB will be downloaded:
>    /gnu/store/vf7w4yiax38ra7x8aqqvbnc38c0ldgpm-zile-on-guile-2.4.14-0.fd09781
>    /gnu/store/dnj9wljcck9vdwgp7dwxk00qnnk1g3c5-vim-full-8.2.0411
> downloading from https://ci.guix.gnu.org/nar/lzip/dnj9wljcck9vdwgp7dwxk00qnnk1g3c5-vim-full-8.2.0411...

[..]

> While I’m sure many of us have gotten used to this I think we don’t need
> to show quite as much information.  My proposal is to hide the
> “downloading from <really long URL>” by default, because the URLs don’t
> really matter to users.  We can unhide that bit of info when slightly
> higher verbosity is requested.
>
> What do you think?

+1

I've been using --verbosity=1 a lot, lately; I'm all for having another,
more quiet but not silent level and bumping the defaults.

Greetings,
janneke

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 13:38 hide more output Ricardo Wurmus
  2020-05-06 14:08 ` Jan Nieuwenhuizen
@ 2020-05-06 14:25 ` Ludovic Courtès
  2020-05-06 14:28   ` zimoun
  2020-05-06 20:00   ` Bengt Richter
  2020-05-06 14:55 ` Pierre Neidhardt
  2 siblings, 2 replies; 13+ messages in thread
From: Ludovic Courtès @ 2020-05-06 14:25 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel

Hi,

Ricardo Wurmus <rekado@elephly.net> skribis:

> While I’m sure many of us have gotten used to this I think we don’t need
> to show quite as much information.  My proposal is to hide the
> “downloading from <really long URL>” by default, because the URLs don’t
> really matter to users.  We can unhide that bit of info when slightly
> higher verbosity is requested.

I think it’s nice to see the URLs, or rather the host part thereof, when
using multiple substitute servers.  But perhaps we can still make that
less verbose?

Thoughts?

Ludo’.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 14:08 ` Jan Nieuwenhuizen
@ 2020-05-06 14:26   ` zimoun
  0 siblings, 0 replies; 13+ messages in thread
From: zimoun @ 2020-05-06 14:26 UTC (permalink / raw)
  To: Jan Nieuwenhuizen; +Cc: Guix Devel

On Wed, 6 May 2020 at 16:08, Jan Nieuwenhuizen <janneke@gnu.org> wrote:
> Ricardo Wurmus writes:

> > when installing a few packages we see output like this:
> >
> > $ guix install zile-on-guile vim-full
> > The following packages will be installed:
> >    zile-on-guile 2.4.14-0.fd09781
> >    vim-full      8.2.0411
> >
> > 9.4 MB will be downloaded:
> >    /gnu/store/vf7w4yiax38ra7x8aqqvbnc38c0ldgpm-zile-on-guile-2.4.14-0.fd09781
> >    /gnu/store/dnj9wljcck9vdwgp7dwxk00qnnk1g3c5-vim-full-8.2.0411
> > downloading from https://ci.guix.gnu.org/nar/lzip/dnj9wljcck9vdwgp7dwxk00qnnk1g3c5-vim-full-8.2.0411...
>
> [..]
>
> > While I’m sure many of us have gotten used to this I think we don’t need
> > to show quite as much information.  My proposal is to hide the
> > “downloading from <really long URL>” by default, because the URLs don’t
> > really matter to users.  We can unhide that bit of info when slightly
> > higher verbosity is requested.
> >
> > What do you think?

+2


> I've been using --verbosity=1 a lot, lately; I'm all for having another,
> more quiet but not silent level and bumping the defaults.

I am using *shell* from Emacs with 'guix-prettify-mode' enabled.
Maybe it could be extended to 'https://ci.guix.gnu.org/...-<package>'.


All the best,
simon


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 14:25 ` Ludovic Courtès
@ 2020-05-06 14:28   ` zimoun
  2020-05-06 20:00   ` Bengt Richter
  1 sibling, 0 replies; 13+ messages in thread
From: zimoun @ 2020-05-06 14:28 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Guix Devel

Hi Ludo,

On Wed, 6 May 2020 at 16:25, Ludovic Courtès <ludo@gnu.org> wrote:

> I think it’s nice to see the URLs, or rather the host part thereof, when
> using multiple substitute servers.  But perhaps we can still make that
> less verbose?

Kind of 'guix-prettify-mode'?

For example <really long URL> shortened as 'https://ci.gnu.org/...-<package>' ?


Cheers,
simon


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 13:38 hide more output Ricardo Wurmus
  2020-05-06 14:08 ` Jan Nieuwenhuizen
  2020-05-06 14:25 ` Ludovic Courtès
@ 2020-05-06 14:55 ` Pierre Neidhardt
  2020-05-17 22:02   ` Ludovic Courtès
  2 siblings, 1 reply; 13+ messages in thread
From: Pierre Neidhardt @ 2020-05-06 14:55 UTC (permalink / raw)
  To: Ricardo Wurmus, guix-devel

[-- Attachment #1: Type: text/plain, Size: 948 bytes --]

Good idea!

But can we do even shorter?

- Move the graft information which is somewhat low-level to --verbose=N.
- Remove the duplicate profile information ("The following
  derivation..." and "building "/gnu...-profile.drv").
- If we move the URL to --verbose=N, why not doing the same for the store full path?

Result:

--8<---------------cut here---------------start------------->8---
$ guix install zile-on-guile vim-full
The following packages will be installed:
   zile-on-guile 2.4.14-0.fd09781
   vim-full      8.2.0411

9.4 MB will be downloaded:
 vim-full-8.2.0411  8.9MiB                 7.6MiB/s 00:01 [##################] 100.0%
 zile-on-guile-2.4.14-0.fd09781  140KiB    1.8MiB/s 00:00 [##################] 100.0%

building /gnu/store/d9xms78917w67xq71pqsx5x9s6dmq6d7-profile.drv...
--8<---------------cut here---------------end--------------->8---

Thoughts?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 14:25 ` Ludovic Courtès
  2020-05-06 14:28   ` zimoun
@ 2020-05-06 20:00   ` Bengt Richter
  2020-05-06 23:25     ` zimoun
  1 sibling, 1 reply; 13+ messages in thread
From: Bengt Richter @ 2020-05-06 20:00 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

Hi,

On +2020-05-06 16:25:19 +0200, Ludovic Courtès wrote:
> Hi,
> 
> Ricardo Wurmus <rekado@elephly.net> skribis:
> 
> > While I’m sure many of us have gotten used to this I think we don’t need
> > to show quite as much information.  My proposal is to hide the
> > “downloading from <really long URL>” by default, because the URLs don’t
> > really matter to users.  We can unhide that bit of info when slightly
> > higher verbosity is requested.
> 
> I think it’s nice to see the URLs, or rather the host part thereof, when
> using multiple substitute servers.  But perhaps we can still make that
> less verbose?
> 
> Thoughts?
> 
> Ludo’.
> 

Just so I don't have to re-run something very timeconsuming to see the verbose version.

IOW, if there isn't one, I think there ought to be a default detailed log
produced (while teeing through optional verbosity/brevity filters or the user's grep.

It might be nice to have an option to menumonic-tag-name the log for easier
later access and review.

-- 
Regards,
Bengt Richter


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 20:00   ` Bengt Richter
@ 2020-05-06 23:25     ` zimoun
  0 siblings, 0 replies; 13+ messages in thread
From: zimoun @ 2020-05-06 23:25 UTC (permalink / raw)
  To: Bengt Richter; +Cc: Guix Devel

On Wed, 6 May 2020 at 22:01, Bengt Richter <bokr@bokr.com> wrote:

> Just so I don't have to re-run something very timeconsuming to see the verbose version.

In this case, you can always run the command using the verbose option.
It is the same with all the CLI I know, one cannot have the milk and
the butter for the same price. ;-)


> IOW, if there isn't one, I think there ought to be a default detailed log
> produced (while teeing through optional verbosity/brevity filters or the user's grep.

This is an interesting idea.  Something under '/var/log/guix/per-user'.
But this is a piece of work -- from what I understand -- and I am not
sure if it will provide really more useful information.  A lot of
information is already tracked, e.g., "guix pull -l",  "guix package
-l", "guix build -n" and "guix build -d", "guix graph", "guix size".
What seems missing is the origin of the packages (substitute by which
server or built locally).  Well, I am not convinced by the usefulness
of a detailed log mechanism.  I do not know...


All the best,
simon


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-06 14:55 ` Pierre Neidhardt
@ 2020-05-17 22:02   ` Ludovic Courtès
  2020-05-18  8:47     ` Pierre Neidhardt
  0 siblings, 1 reply; 13+ messages in thread
From: Ludovic Courtès @ 2020-05-17 22:02 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: guix-devel

Hi,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> But can we do even shorter?
>
> - Move the graft information which is somewhat low-level to --verbose=N.
> - Remove the duplicate profile information ("The following
>   derivation..." and "building "/gnu...-profile.drv").
> - If we move the URL to --verbose=N, why not doing the same for the store full path?

Sounds reasonable to me; ‘show-what-to-build’ could take the verbosity
level as an argument.  For ‘guix build’ and ‘guix system build’ we’d
keep the highest verbosity level by default, but for other commands, we
could choose the more silent level.

> $ guix install zile-on-guile vim-full
> The following packages will be installed:
>    zile-on-guile 2.4.14-0.fd09781
>    vim-full      8.2.0411
>
> 9.4 MB will be downloaded:
>  vim-full-8.2.0411  8.9MiB                 7.6MiB/s 00:01 [##################] 100.0%
>  zile-on-guile-2.4.14-0.fd09781  140KiB    1.8MiB/s 00:00 [##################] 100.0%

So in effect, it wouldn’t display anything upfront, only the size of the
stuff downloaded right?  Plus maybe the list of things to build?

Thanks,
Ludo’.


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-17 22:02   ` Ludovic Courtès
@ 2020-05-18  8:47     ` Pierre Neidhardt
  2020-05-18  9:10       ` Jelle Licht
  0 siblings, 1 reply; 13+ messages in thread
From: Pierre Neidhardt @ 2020-05-18  8:47 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 412 bytes --]

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

> So in effect, it wouldn’t display anything upfront, only the size of the
> stuff downloaded right?  Plus maybe the list of things to build?

I think the list of things to build is a lower level details.  The users
want to know what's going to end up in their profile, they care less
about the store.

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-18  8:47     ` Pierre Neidhardt
@ 2020-05-18  9:10       ` Jelle Licht
  2020-05-18 13:10         ` Katherine Cox-Buday
  0 siblings, 1 reply; 13+ messages in thread
From: Jelle Licht @ 2020-05-18  9:10 UTC (permalink / raw)
  To: Pierre Neidhardt, Ludovic Courtès; +Cc: guix-devel

Pierre Neidhardt <mail@ambrevar.xyz> writes:

> Ludovic Courtès <ludo@gnu.org> writes:
>
>> So in effect, it wouldn’t display anything upfront, only the size of the
>> stuff downloaded right?  Plus maybe the list of things to build?
>
> I think the list of things to build is a lower level details.  The users
> want to know what's going to end up in their profile, they care less
> about the store.

I care very much on whether this will be quick 5 minute thing, or I will
have to leave my laptop crunching for the next 36 hours.

Of course this information is only useful to me because I happen to know
that e.g. ungoogled-chromium takes ages to build. A new user or one with
slightly less Stockholm syndrome probably can't make many informed
decisions with just a list of "things to build".

 - Jelle


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-18  9:10       ` Jelle Licht
@ 2020-05-18 13:10         ` Katherine Cox-Buday
  2020-05-18 13:13           ` Nicolò Balzarotti
  0 siblings, 1 reply; 13+ messages in thread
From: Katherine Cox-Buday @ 2020-05-18 13:10 UTC (permalink / raw)
  To: Jelle Licht; +Cc: guix-devel

Jelle Licht <jlicht@fsfe.org> writes:

> I care very much on whether this will be quick 5 minute thing, or I will
> have to leave my laptop crunching for the next 36 hours.

I echo this sentiment.

I have often wished for a "--no-build" flag for updates. Most of the
time I can wait until the substitutes are available, but I can't wait
around for my computer to dedicate all its CPU-time to building
packages.

-- 
Katherine


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: hide more output
  2020-05-18 13:10         ` Katherine Cox-Buday
@ 2020-05-18 13:13           ` Nicolò Balzarotti
  0 siblings, 0 replies; 13+ messages in thread
From: Nicolò Balzarotti @ 2020-05-18 13:13 UTC (permalink / raw)
  To: Katherine Cox-Buday, Jelle Licht; +Cc: guix-devel

Hi!

Katherine Cox-Buday <cox.katherine.e@gmail.com> writes:
> Jelle Licht <jlicht@fsfe.org> writes:
>
>> I care very much on whether this will be quick 5 minute thing, or I will
>> have to leave my laptop crunching for the next 36 hours.
>
> I echo this sentiment.
>
> I have often wished for a "--no-build" flag for updates. Most of the
> time I can wait until the substitutes are available, but I can't wait
> around for my computer to dedicate all its CPU-time to building
> packages.
>
Exactly! Sometimes I'd use it, or just use a "--no-tests" flag for
builds that run fast but that require a lot only to run tests.

Nicolò

> -- 
> Katherine


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-05-18 13:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-06 13:38 hide more output Ricardo Wurmus
2020-05-06 14:08 ` Jan Nieuwenhuizen
2020-05-06 14:26   ` zimoun
2020-05-06 14:25 ` Ludovic Courtès
2020-05-06 14:28   ` zimoun
2020-05-06 20:00   ` Bengt Richter
2020-05-06 23:25     ` zimoun
2020-05-06 14:55 ` Pierre Neidhardt
2020-05-17 22:02   ` Ludovic Courtès
2020-05-18  8:47     ` Pierre Neidhardt
2020-05-18  9:10       ` Jelle Licht
2020-05-18 13:10         ` Katherine Cox-Buday
2020-05-18 13:13           ` Nicolò Balzarotti

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).