From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4OBZCHiyGF8YBAAA0tVLHw (envelope-from ) for ; Wed, 22 Jul 2020 21:41:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oB05BHiyGF99fAAAB5/wlQ (envelope-from ) for ; Wed, 22 Jul 2020 21:41:12 +0000 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 7E7589404D7 for ; Wed, 22 Jul 2020 21:41:11 +0000 (UTC) Received: from localhost ([::1]:39710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyMU9-0005qI-GS for larch@yhetil.org; Wed, 22 Jul 2020 17:41:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyMU2-0005q5-NV for guix-patches@gnu.org; Wed, 22 Jul 2020 17:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59958) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyMU2-00077A-Dj for guix-patches@gnu.org; Wed, 22 Jul 2020 17:41:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jyMU2-0006dc-9n for guix-patches@gnu.org; Wed, 22 Jul 2020 17:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42481] [PATCH 0/2] Printing a more concise build plan Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Jul 2020 21:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42481 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42481@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159545403025467 (code B ref -1); Wed, 22 Jul 2020 21:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Jul 2020 21:40:30 +0000 Received: from localhost ([127.0.0.1]:43271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyMTV-0006cg-KZ for submit@debbugs.gnu.org; Wed, 22 Jul 2020 17:40:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:55354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jyMTS-0006cX-Lh for submit@debbugs.gnu.org; Wed, 22 Jul 2020 17:40:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55154) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyMTS-0005l7-Ez for guix-patches@gnu.org; Wed, 22 Jul 2020 17:40:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56634) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyMTR-0006zk-F5; Wed, 22 Jul 2020 17:40:25 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59918 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jyMTQ-0001Jz-Lk; Wed, 22 Jul 2020 17:40:24 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 22 Jul 2020 23:40:18 +0200 Message-Id: <20200722214018.32353-1-ludo@gnu.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: D6bnqDCBCDzj Hello Guix! These patches implement a suggestion Pierre made a while back: showing by default fewer details about what will/would be built or downloaded, and omitting info about grafts and hooks. The verbosity level here is controlled via the existing ‘--verbosity’ or ‘-v’ flag (which thus now control two things). Here are examples of the result: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix system disk-image --target=i586-pc-gnu gnu/system/examples/bare-hurd.tmpl -n --no-grafts substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0% The following derivations would be built: /gnu/store/y2inlprxbigqvknm5qwjwsqgljxfbri4-disk-image.drv /gnu/store/gclxh7i8smp71hz0p7wcj6qkf377wigy-image-dir.drv /gnu/store/21fin1j5pnjzfwbc70wdpzl3iyjym8xp-genimage.cfg.drv /gnu/store/aqcziad6ghfaainjibpdfypc8m2rr1vm-partition.img.drv /gnu/store/484d4fd9q9827bc09ia8bi1dgxl8gpwn-grub.cfg.drv /gnu/store/nnldmy339w9xxnybir48w14yz2xk0pmx-system.drv [...] /gnu/store/ddxz08xvasphckdralifb624y3c7hrkx-rc.drv /gnu/store/kq9qvn0m063m02cxf4kjipkf6x8vbvip-profile.drv /gnu/store/y9if6nrykcqfnzxvb4cci2nzhmz1ipx5-parameters.drv /gnu/store/w09j0p6126qcacylb455m5dn008yi04g-module-import.drv 49.9 MB would be downloaded --8<---------------cut here---------------end--------------->8--- Same with grafts: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix system disk-image --target=i586-pc-gnu gnu/system/examples/bare-hurd.tmpl -n 36.2 MB would be downloaded --8<---------------cut here---------------end--------------->8--- With ‘guix package’: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix install vim-full krita -n The following packages would be installed: vim-full 8.2.1145 krita 4.2.9 76.9 MB would be downloaded $ ./pre-inst-env guix install vim-full krita -n --no-grafts The following packages would be installed: vim-full 8.2.1145 krita 4.2.9 The following derivation would be built: /gnu/store/shf0anw8l0y9hg4l8qp1fym4bvwq5kh9-profile.drv 76.9 MB would be downloaded $ ./pre-inst-env guix install inkscape hugin -n The following package would be upgraded: inkscape (dependencies or package changed) The following package would be installed: hugin 2019.2.0 The following derivation would be built: /gnu/store/lsi56ap8lzchfy8y76y7wirzfiqvb3ca-hugin-2019.2.0.drv 46.2 MB would be downloaded --8<---------------cut here---------------end--------------->8--- The current behavior is obtain with ‘-v2’, which remains the default for ‘guix build’: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build inkscape hugin -n The following derivation would be built: /gnu/store/lsi56ap8lzchfy8y76y7wirzfiqvb3ca-hugin-2019.2.0.drv 46.2 MB would be downloaded: /gnu/store/3jvjmwm0srgxxjwngv28bif8l4ksfbnp-autotrace-0.40.0-20190624.59 /gnu/store/gg36g9h2nzmq4dzrcr21ndb09nybqys0-inkscape-1.0 /gnu/store/n94n0ggdhck5a2prsd1r468x3p6i68p4-enblend-enfuse-4.2 /gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5 /gnu/store/0i4h5cf1a71pj319svzz88g2z07cvdk3-wxwidgets-3.0.5.1 /gnu/store/bwz9f0lg9lxscj6jfcgxmzqng3s1f1n3-vigra-1.11.1 --8<---------------cut here---------------end--------------->8--- It’s also possible to use ‘-v0’ now. How does that sound? Personally, I’m find it a bit disconcerting that so few is displayed when substitutes are available, but it also feels more “lightweight” this way. I really like that what would be built appears clearly, whereas now you have to scroll up possibly several pages to find that info, especially upon ‘guix upgrade’. Feedback welcome! Ludo’. Ludovic Courtès (2): ui: Add #:verbosity to 'show-what-to-build'. scripts: Pass #:verbosity to 'build-notifier'. guix/scripts/archive.scm | 2 + guix/scripts/build.scm | 2 + guix/scripts/copy.scm | 2 + guix/scripts/deploy.scm | 4 +- guix/scripts/environment.scm | 2 + guix/scripts/pack.scm | 2 + guix/scripts/package.scm | 2 + guix/scripts/pull.scm | 2 + guix/scripts/system.scm | 11 ++- guix/ui.scm | 175 ++++++++++++++++++++++------------- 10 files changed, 135 insertions(+), 69 deletions(-) -- 2.27.0