From patchwork Fri Mar 20 14:04:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 20786 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 46E1027BBEA; Fri, 20 Mar 2020 14:06:00 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1CFE827BBE4 for ; Fri, 20 Mar 2020 14:06:00 +0000 (GMT) Received: from localhost ([::1]:53390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFIHf-0001UE-Jx for patchwork@mira.cbaines.net; Fri, 20 Mar 2020 10:05:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46022) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFIGp-0000e8-78 for guix-patches@gnu.org; Fri, 20 Mar 2020 10:05:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFIGk-00077T-Ac for guix-patches@gnu.org; Fri, 20 Mar 2020 10:05:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39337) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFIGk-00076w-7F for guix-patches@gnu.org; Fri, 20 Mar 2020 10:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFIGk-0007FR-1X for guix-patches@gnu.org; Fri, 20 Mar 2020 10:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40149] [PATCH 0/5] Assorted 'guix deploy' improvements Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Mar 2020 14:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40149@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.158471308727828 (code B ref -1); Fri, 20 Mar 2020 14:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2020 14:04:47 +0000 Received: from localhost ([127.0.0.1]:45310 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFIGV-0007Em-Iq for submit@debbugs.gnu.org; Fri, 20 Mar 2020 10:04:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:55743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFIGT-0007Ee-Ac for submit@debbugs.gnu.org; Fri, 20 Mar 2020 10:04:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45931) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFIGR-00006S-JM for guix-patches@gnu.org; Fri, 20 Mar 2020 10:04:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jFIGQ-0006pE-Us; Fri, 20 Mar 2020 10:04:43 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54264 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jFIGP-0005R6-17; Fri, 20 Mar 2020 10:04:41 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Fri, 20 Mar 2020 15:04:33 +0100 Message-Id: <20200320140433.27868-1-ludo@gnu.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Hello! The first patch arranges so that a single round trip is enough to perform all the sanity checks on the remote machine. Previously, we’d build N derivations, send their results, and perform N remote evaluation (with N typically in the 3–5 range depending on details of the OS config.) (There’s a more general optimization pattern lurking here: I’d really like to find a way to somehow gather operations like ‘remote-eval’ that are more efficiently done as a batch, and then scatter results back to their continuations. I’ve been thinking about this for some time and it still hasn’t clicked. Ideas welcome!) The remaining patches are basic UI improvements. Feedback welcome! Ludo’. Ludovic Courtès (5): machine: ssh: Make sanity checks in a single round trip. ui: Add 'indented-string'. deploy: Show what machines will be deployed. deploy: Write a message upon successful deployment. machine: ssh: Better report missing initrd modules. gnu/machine/ssh.scm | 138 +++++++++++++++++++++++----------------- guix/scripts/deploy.scm | 23 ++++++- guix/scripts/pull.scm | 17 +---- guix/ui.scm | 18 ++++++ 4 files changed, 123 insertions(+), 73 deletions(-)