From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mBpKOgBLWmZCzgAAe85BDQ:P1 (envelope-from ) for ; Sat, 01 Jun 2024 00:11:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mBpKOgBLWmZCzgAAe85BDQ (envelope-from ) for ; Sat, 01 Jun 2024 00:11:13 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=lFd4tXSd; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1717193472; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=G/rzBepNdZOQEywkLouCH33yngZdd4QvPW7J9/RWEJA=; b=fyR53mAZcpkfA6cnBGlEvTufY7bZf2QaSg4WC4f53zvabPzmbSvtjp71jn2xTXcOQrDnyM gMtbtkx4GEsM7Fh0A2JNaeM/udc3DIx4n5B1cpsMAaPIvkU5f9agbHYUgFtusrdbMgY3ME uXmZCZ6Px0eee6TdzbK7R+1GwsP9qIOLcMIZTH3Nx7HScbhGdf7GtjrY08TGt/Ib6epo/F JKBmeizW9S66Yd1DEl+UPmhinndoOlQahdFwxwTVch4QbDx1XMBPfsCSERvDHCfmoKeKiI 9QrBCODjZbl0TUCj+/aGaNyiq+Yb50j6SVjWnR/6oewd/hA/8w7izQ9AwQnsvA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=lFd4tXSd; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1717193472; a=rsa-sha256; cv=none; b=RHtHk0D9HpZEBV+k0wJi80Sx3C2UhegnvKADNImBLBMlwkhranbEOJiKJ8+9xOWZof1tLY WXkiFed0SoJ3ql822sJCo7g+J7v3u0PI0OhqlVT7QFmGPaPkXt1bXXBVfFg5tsqedA2x0n BjlfIgYMQPVFJCqXP1txVssaveFIDtH75hJxcdU2M3C/1HTcoML4Za5JQuiqEXg5qzBlbA eh5X4RLy7V70EaUWYzlXg1i+5YpDbrxXy9aqeK8rgLkNIE84xfE1E+aFwwBSaMqtjfiNmR VrvGUdm1alJ9IJbCxwFF2r78a+OHHXIkMnvAA7R402mvdO46JrRMGrtXNSSpGQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B6E0A23AA5 for ; Sat, 1 Jun 2024 00:11:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDASb-0004pZ-2n; Fri, 31 May 2024 18:10:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDASZ-0004pC-GL for bug-guix@gnu.org; Fri, 31 May 2024 18:10:51 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sDASZ-0000WD-8T for bug-guix@gnu.org; Fri, 31 May 2024 18:10:51 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sDASk-0002i4-63 for bug-guix@gnu.org; Fri, 31 May 2024 18:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#71299: Better handle "updating substitutes" messages in CI pipelines and dumb terminals Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 31 May 2024 22:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71299 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 71299@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171719345610402 (code B ref -1); Fri, 31 May 2024 22:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 May 2024 22:10:56 +0000 Received: from localhost ([127.0.0.1]:55457 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDASb-0002he-Qc for submit@debbugs.gnu.org; Fri, 31 May 2024 18:10:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:33112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDASL-0002hG-Gc for submit@debbugs.gnu.org; Fri, 31 May 2024 18:10:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDAS9-0004n8-T5 for bug-guix@gnu.org; Fri, 31 May 2024 18:10:25 -0400 Received: from mail-108-mta168.mxroute.com ([136.175.108.168]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sDAS7-0000Kw-3Y for bug-guix@gnu.org; Fri, 31 May 2024 18:10:25 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta168.mxroute.com (ZoneMTA) with ESMTPSA id 18fd0b42e36000e2b6.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 31 May 2024 22:10:20 +0000 X-Zone-Loop: 4d0879a6072874e0ea87624e48d0df5e3a876a7bcd15 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=G/rzBepNdZOQEywkLouCH33yngZdd4QvPW7J9/RWEJA=; b=lFd4tXSd1IaW/a6yyH5vnBu54n oe6cNh5gJZOI2vv267InQ+3qZSlyTArEMOPRFnZXhLm/tMiw5lxIfur8zNreDWSyH4YHD2I+Vp4YZ /8jA4Q/74FfMktbwKz+3J3qT3cjuWOybbd42NwNp8iwC9itV0emlEvqcFX6RKUVPmcZaV0PiBDwbj FlVvFxplZvGLuYG+8f/n9UvMVXY2NLaHPoWxqGmutEUvWIC9mE8XtS0X7rKECqUz8Fido9vIQGutY svcSMC52r1Gtzwsx3pccZMiI06F3ff5heM3xpHgw4VupN+hYkvbKjXceqWDWjW1s1aZMpTP3JBO1O rcKZ53dA==; From: Richard Sent Date: Fri, 31 May 2024 18:10:16 -0400 Message-ID: <87ikyt8wfr.fsf@freakingpenguin.com> MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.168; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta168.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.55 X-Migadu-Queue-Id: B6E0A23AA5 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.55 X-TUID: eoWMnDJw9pm6 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.