Re: hide more output

2020-05-18 Thread Nicolò Balzarotti
Hi!

Katherine Cox-Buday  writes:
> Jelle Licht  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



Re: hide more output

2020-05-18 Thread Katherine Cox-Buday
Jelle Licht  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



Re: hide more output

2020-05-18 Thread Jelle Licht
Pierre Neidhardt  writes:

> Ludovic Courtès  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



Re: hide more output

2020-05-18 Thread Pierre Neidhardt
Ludovic Courtès  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/


signature.asc
Description: PGP signature


Re: hide more output

2020-05-17 Thread Ludovic Courtès
Hi,

Pierre Neidhardt  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  140KiB1.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’.



Re: hide more output

2020-05-06 Thread zimoun
On Wed, 6 May 2020 at 22:01, Bengt Richter  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



Re: hide more output

2020-05-06 Thread Bengt Richter
Hi,

On +2020-05-06 16:25:19 +0200, Ludovic Courtès wrote:
> Hi,
> 
> Ricardo Wurmus  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 ” 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



Re: hide more output

2020-05-06 Thread Pierre Neidhardt
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  140KiB1.8MiB/s 00:00 [##] 
100.0%

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

Thoughts?

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


signature.asc
Description: PGP signature


Re: hide more output

2020-05-06 Thread zimoun
Hi Ludo,

On Wed, 6 May 2020 at 16:25, Ludovic Courtès  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  shortened as 'https://ci.gnu.org/...-' ?


Cheers,
simon



Re: hide more output

2020-05-06 Thread zimoun
On Wed, 6 May 2020 at 16:08, Jan Nieuwenhuizen  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 ” 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/...-'.


All the best,
simon



Re: hide more output

2020-05-06 Thread Ludovic Courtès
Hi,

Ricardo Wurmus  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 ” 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’.



Re: hide more output

2020-05-06 Thread Jan Nieuwenhuizen
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 ” 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  | GNU LilyPond http://lilypond.org
Freelance IT http://JoyofSource.com | Avatar® http://AvatarAcademy.com



hide more output

2020-05-06 Thread Ricardo Wurmus
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  140KiB1.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 ” 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