From: Ricardo Wurmus <rekado@elephly.net>
To: guix-devel@gnu.org
Subject: Re: keep spinning even without new line
Date: Sun, 30 Dec 2018 01:21:07 +0100 [thread overview]
Message-ID: <87ef9zj24s.fsf@elephly.net> (raw)
In-Reply-To: <87muootkms.fsf@elephly.net>
Ricardo Wurmus <rekado@elephly.net> writes:
> Hi Guix,
>
> when using “guix package -i” the build log lines are replaced with a
> spinner character. In some cases, the build log does not produce new
> lines for a long time, so that the spinner appears to be stuck.
>
> What do you think of advancing the spinner even when the build log is
> not verbose enough to trigger the display of the next character? How
> can this be accomplished?
One way to accomplish this is to generate periodic “(build-log
heartbeat)” events, so that “print-build-event” in (guix status) only
needs to advance the spinner when the last event was a build-log event.
Currently, events are produced only by “build-event-output-port”, which
generates them when processing build trace strings sent by the daemon.
I don’t really want to change the daemon to intersperse the actual build
output with heartbeat traces, so maybe a timer should generate these
events in “build-event-output-port” or even earlier in “process-stderr”.
“process-stderr” is probably too low-level, and there’s a chance that
injecting output there would corrupt the output sent by the daemon.
Any better ideas?
--
Ricardo
next prev parent reply other threads:[~2018-12-30 2:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-29 15:31 keep spinning even without new line Ricardo Wurmus
2018-12-30 0:21 ` Ricardo Wurmus [this message]
2019-01-05 18:15 ` Ludovic Courtès
2018-12-30 2:57 ` Vagrant Cascadian
2018-12-30 6:25 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ef9zj24s.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).