unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#71299: Better handle "updating substitutes" messages in CI pipelines and dumb terminals
@ 2024-05-31 22:10 Richard Sent
  2024-06-01 18:39 ` bug#71299: Investigation Richard Sent
  2024-06-01 19:06 ` bug#71299: Fixed link for demonstration of the problem Richard Sent
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Sent @ 2024-05-31 22:10 UTC (permalink / raw)
  To: 71299

Hi Guix!

Due to it's nature as an incremental counter (from 0% to 100%), Guix
prints many messages to the terminal when it is updating substitutes.
This hurts CI log files because large portions of the output is filled
with cruft [1]. This problem is made worse because Guix updates
substitutes multiple times during a build.

verbosity=0 can be used to disable ALL output messages. However, this
isn't ideal for automated build pipelines where people need to monitor
the status and review what may have gone wrong.

Because "updating substitutes" prints so many lines to the terminal that
aren't typically relevant from a log reviewer's perspective that hide
useful information, it should be possible to disable just those
messages.

Alternatively, I believe Guix has code to detect when it's attached to a
"dumb" terminal. Perhaps these messages should be conditionally removed
or replaced with a pair of static messages like the following:

--8<---------------cut here---------------start------------->8---
substitute: Updating subsitutes from .....
substitute: Finished updating substitutes from ....
--8<---------------cut here---------------end--------------->8---

This would make log files much easier to parse. Instead of having
potentially thousands of lines printed to the console per "build stage",
it would be limited to 2.

[1]: https://builds.sr.ht/query/log/1238029/update-readme/log
-- 
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.




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

end of thread, other threads:[~2024-06-01 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 22:10 bug#71299: Better handle "updating substitutes" messages in CI pipelines and dumb terminals Richard Sent
2024-06-01 18:39 ` bug#71299: Investigation Richard Sent
2024-06-01 19:06 ` bug#71299: Fixed link for demonstration of the problem Richard Sent

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).