From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iGATE0Tqp2WSIQEAe85BDQ:P1 (envelope-from ) for ; Wed, 17 Jan 2024 15:55:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id iGATE0Tqp2WSIQEAe85BDQ (envelope-from ) for ; Wed, 17 Jan 2024 15:55:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=TVN5O4Ah; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705503300; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eed3833ZpLl8CTy+24CnA49tBALfWtE8qo+7nA0LHns=; b=W8NqhQ0VSTkM2+bUHh8mhPPT9Hvk1Su+k7e6ofQPDWz8cXyg3BrCCM34MXc/HZjckyki0Z fSdpUrxzZPMr4uxYLRqO97GqHilhPsGAABhL1w3hn0defhYT8Nsx7VDMgHy0eN3NV6m3BN rxmcbqHv9Hxo7JqSxh/gSZgVBLjtrkyRJFESwqtnoLMx9JxymW8rx1xs+7nMNI4eRfEEIW zlpv4y2ZRdepNg7RzkFQ9nZY7LS7R0Ob5f79Qh+MeWcwWNX3OHnKFTs5Y77jLryraf7sre H5Cd93Xeut7X0J02XjhbhLEQTwym9gOVuP+J6AndI3IWsB4qlQhS0eADpft15g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=TVN5O4Ah; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705503300; a=rsa-sha256; cv=none; b=q9NkMmL+rO6mlwKZWnIQFgKBsHfZuS5XURiGyuIwV+dRQjvrzmEpka9Eztb/p/ROPGqrJK cvFghh7orKJ8DErXe6P6y/M758RxrX0p3TTptW1AhWG8BsPpENVuHA1G7udUPnezTMnPvc OtKJUxGg9l3gl75no94twANMEA1vJ3SkUYCiFCRTz1rd3SQGsurCGY6rI3bVMJZqQBbp9B J3/6fVbnMeSVxmhGJ11uCmWPhs+OIHbLf1dDUdVGHWAHMgxidXxb2CUfqqYVNlAnyYKelB jZavj80EzYlLkk3RT1ReDqcy93tYEmT7ylmxZTTromqF/lYRgNFlFZcCF408ug== 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 1ABB66B1DA for ; Wed, 17 Jan 2024 15:55:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQ7JJ-0004Rw-5w; Wed, 17 Jan 2024 09:54:33 -0500 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 1rQ7JH-0004RY-Jq for guix-devel@gnu.org; Wed, 17 Jan 2024 09:54:31 -0500 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQ7JF-0001ze-S5 for guix-devel@gnu.org; Wed, 17 Jan 2024 09:54:31 -0500 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4TFTRk3jgdzDqLp; Wed, 17 Jan 2024 14:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1705503266; bh=E2OIA1iQPgLgYZW5wMm5/TinyZt3CtnK60K/CnPXmzU=; h=From:To:Cc:Subject:Date:References:In-reply-to:From; b=TVN5O4AhXYI/ZIGYEZi0CSuYM+2AQvwocmt9Veen3EGnIxfPvTeNmnFY4EUQTtHds zcNvrOv9h+Iq7XBSR2DlbU87Pz7oJuyP6Kxg0yTl7TtDEAK3aTIscxNn8t6TXWvoYP GkhBBGVSGPW529UI55HtPs7deRr7DTrTuJIUlMGI= X-Riseup-User-ID: 63A054C28B0C1AEE3CAD8FBB44ADDC9FC85C1509F352B508714FF7907556BA00 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4TFTRj5YT6zFvPB; Wed, 17 Jan 2024 14:54:25 +0000 (UTC) From: Csepp To: Carlo Zancanaro Cc: Richard Sent , guix-devel@gnu.org Subject: Re: Guix deploy --keep-going equivalent for machine connection failures Date: Wed, 17 Jan 2024 15:52:32 +0100 References: <494a6ad05644e3b4c215d2bdaf388811@freakingpenguin.com> <874jfc8fca.fsf@zancanaro.id.au> In-reply-to: <874jfc8fca.fsf@zancanaro.id.au> Message-ID: <86le8o6mea.fsf@riseup.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.00 X-Migadu-Queue-Id: 1ABB66B1DA X-Spam-Score: -8.00 X-Migadu-Scanner: mx11.migadu.com X-TUID: sR4fNSoBq3ml --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Carlo Zancanaro writes: > On Mon, Jan 15 2024, Richard Sent wrote: >> At present this can be worked around by commenting out entries on the >> list, but this requires >> a) Already knowing what machine is offline >> b) Remembering to uncomment it later when the machine goes back online >> c) Generally feels =E2=80=9Cugly=E2=80=9D in a way that most Guix comman= ds don=E2=80=99t. >> d) Makes version control a pain > > This is generally what I=E2=80=99ve done, but I see this as a manual form= of > something that could easily be added the machines.scm file itself. > > For instance, you could define a helper function and use it to filter > the list of machines, like so: > > (define (reachable-host? machine) > (let ((configuration (machine-configuration machine))) > (cond > ((machine-ssh-configuration? configuration) > (zero? (system* =E2=80=9Cssh=E2=80=9D (machine-ssh-configuration-= host-name configuration) > =E2=80=9C=E2=80=93=E2=80=9D =E2=80=9Ctrue=E2=80= =9D))) > (else > #f)))) > > (filter > reachable-host? > (list > (machine =E2=80=A6) > (machine =E2=80=A6))) > > Using this sort of approach can implement whatever strategy you want, as > long as you can determine the machines which you want to deploy to > up-front (i.e. this can=E2=80=99t implement a strategy that handles failu= re > partway through deployment). > > Carlo One potential problem with this is that it might try to reconnect too often= and wait too long for each timeout. --=-=-=--