emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#32634: closed (RFC: Process build output)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#32634: closed (RFC: Process build output)
Date: Sun, 09 Sep 2018 21:23:02 +0000

Your message dated Sun, 09 Sep 2018 23:22:41 +0200
with message-id <address@hidden>
and subject line Re: [bug#32634] [PATCH 2/2] ui: Add soft port for styling and 
filtering build output.
has caused the debbugs.gnu.org bug report #32634,
regarding RFC: Process build output
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
32634: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32634
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: RFC: Process build output Date: Tue, 04 Sep 2018 17:29:03 +0200 User-agent: mu4e 1.0; emacs 26.1
Hi Guix,

this patch set is a first draft to stylize (potentially confusing) build
output when using “guix package” and “guix build”.

This is done by adding a soft port that matches on lines in the build
output and colorizes them (unless INSIDE_EMACS or NO_COLOR are set, or
when output is redirected).  For “guix package” the default behaviour is
to also hide all build output that does not announce progress (unless
“--verbose” is passed) and to let a spinner show progress instead.  For
“guix build” all build output is still printed.

Honestly, I’m not really happy with the results, but I think it’s enough
to start a discussion about where this should lead.

One thing I don’t like is that I had to set the “print-build-trace?”
default option to be able to display what build is currently happening.
Unfortunately, for small derivations this leads to output like this:

--8<---------------cut here---------------start------------->8---
Building /gnu/store/2x5xmvimja0pbkvvr8rym91q0249ajiv-fonts-dir.drv - 
x86_64-linux
Built /gnu/store/2x5xmvimja0pbkvvr8rym91q0249ajiv-fonts-dir.drv
Building /gnu/store/diz3pmgrqibvp2pyvgh4wyr4nx5vlx0y-glib-schemas.drv - 
x86_64-linux
Built /gnu/store/diz3pmgrqibvp2pyvgh4wyr4nx5vlx0y-glib-schemas.drv
Building /gnu/store/ss70j6lf8xxiiykdys92iw92khx68ix9-info-dir.drv - x86_64-linux
Built /gnu/store/ss70j6lf8xxiiykdys92iw92khx68ix9-info-dir.drv
Building /gnu/store/rh92rslbj4x9abyna6lc11jqifbavx13-librsvg-2.40.20.drv - 
x86_64-linux
Built /gnu/store/rh92rslbj4x9abyna6lc11jqifbavx13-librsvg-2.40.20.drv
--8<---------------cut here---------------end--------------->8---

I would prefer:

    Building /gnu/store/rh92rslbj4x9abyna6lc11jqifbavx13-librsvg-2.40.20.drv … 
DONE

or similar.

I don’t know about whether the colours are any good; I think the bold
green is hard to read on a bright terminal, while the black is hard to
read on a dark terminal.

Lastly: the spinner.  It’s a bit boring, I think.

What do you think?  Is this a step in the right direction?

--
Ricardo




--- End Message ---
--- Begin Message --- Subject: Re: [bug#32634] [PATCH 2/2] ui: Add soft port for styling and filtering build output. Date: Sun, 09 Sep 2018 23:22:41 +0200 User-agent: mu4e 1.0; emacs 26.1
Danny Milosavljevic <address@hidden> writes:

> LGTM (although the "print-build-trace" option is not documented in the help - 
> is that on purpose?)

Thanks for the review.

I’ve made a minor change so that even for address@hidden lines no colour is used
when NO_COLOR is set and pushed the patches to the master branch with
commit 15cc7e6ad.

About “print-build-trace”: I only learned about it on IRC.

--
Ricardo



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]