From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WEG3GIIKZ2eIBAEAqHPOHw:P1 (envelope-from ) for ; Sat, 21 Dec 2024 18:35:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WEG3GIIKZ2eIBAEAqHPOHw (envelope-from ) for ; Sat, 21 Dec 2024 19:35:46 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hDNxHHhF; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b="TvdiH//Q"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734806146; h=from:from:sender:sender:reply-to: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=nhT0nJ8hLTcNp807orlhORxWkUQwN/owqpSs/xAEbic=; b=cdTceSPx7A+uUJ/NBNu5lNnrvqBoCUBy8rvyPzNh3upiS4xRxFgrwjKQrjftA6rR5FS90R EWfL572gdrDyIYV6WaIQWYtH6XP7ChW32era5k7axdVU9H4yUbZX8fa1eneE8aF3SmjQ+f i99+/ob9A7KQUwS+rRoiY1qDvaLvMS+Ioy4Vi6hFWVmuadet2AGVBTy9hz0vm0YsNl0DrD eb7hUCzr4kCFBkDA0TGBq+WjlBopT1WxORanJaskUMI2mBzKs2ZlF1SslWzJBrM12k8wsI 4iJXBDfDAusy1xDbagdDevRaXHxdj4gd/Uz5HQ2MmZ05TNJs2Xe9JHqk2J6CRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=hDNxHHhF; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b="TvdiH//Q"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734806146; a=rsa-sha256; cv=none; b=HQrEXOH5g5xG2ZHADdFuD+59nmNCOh2e5+96Qxj2N67J9ht2okmNmOTtBiZrgY2KsZsPYb AsG4I10auSRZp2FvSeAgmGNqa56zuJC08mWHBEp20CdtH+j5PblvowMTkCcANWJpaGCXdb HbeoJmOP279+F7R1f82Q5R/Eb5ufUb5aAXmPnMSJzoPRDnaAbdRuRvK71o9nnBhlM3j16G ANgMhJml1+/6ZUP3vwz5S7skiapasymUDE6Hc2O8zaIYiL8ctWVGKdJkx7TNJ+SB0mIIPC MJiJa+b/Q91jM3ezv5qBDluNRGReO3OjKNnYoDGljHiW50DNV/iuCAGvhnkHXA== 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 BC13A84709 for ; Sat, 21 Dec 2024 19:35:45 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP2tc-00057K-1z; Sat, 21 Dec 2024 12:04:08 -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 1tP2tY-00056t-Su for guix-patches@gnu.org; Sat, 21 Dec 2024 12:04:05 -0500 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 1tP2tY-0002o6-1a for guix-patches@gnu.org; Sat, 21 Dec 2024 12:04:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:Subject; bh=nhT0nJ8hLTcNp807orlhORxWkUQwN/owqpSs/xAEbic=; b=hDNxHHhFZARolHxHjDIjwBhTDd3qJQ4V43gaY0vKIWtywkAttHRXGjTfSq7JYD+/6PahWvLMJM4MEpcxk9DJXBUEzdFhZ2sQHQzNe0bStiZUORxoAM6DUoOcQIcy+Cb+zrG6IdVSTIenWjfW6SmZXI1W1EKzRK2hCiIZR7zwpNI4QzwKagH0ucR2rG1/S8K0i1dHgV0RvxN1yppIzZtYG4ol8CLguKxToAt1fW5TFAyu5KUYNKtSUn5+V6rYUTotBufzJ5fwY3X8MdQNB2qSU5gqJ2wO0va1+p3tvTB5/hh70f95pFS677HZAwlZ9E/e7bpb8V2MFVXPV41HarJYQg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tP2tW-0005GI-Oy for guix-patches@gnu.org; Sat, 21 Dec 2024 12:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75010] [PATCH 0/7] Roll back when deployment fails. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Dec 2024 17:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75010 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75010@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173480061520182 (code B ref -1); Sat, 21 Dec 2024 17:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Dec 2024 17:03:35 +0000 Received: from localhost ([127.0.0.1]:47501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP2t5-0005FS-30 for submit@debbugs.gnu.org; Sat, 21 Dec 2024 12:03:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:42782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP2t1-0005FI-L0 for submit@debbugs.gnu.org; Sat, 21 Dec 2024 12:03: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 1tP2t0-000541-Hl for guix-patches@gnu.org; Sat, 21 Dec 2024 12:03:31 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117] helo=email.rimm.ee) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tP2sx-0002Tb-Fm for guix-patches@gnu.org; Sat, 21 Dec 2024 12:03:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1734800596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=nhT0nJ8hLTcNp807orlhORxWkUQwN/owqpSs/xAEbic=; b=TvdiH//QGNzyUlm8KgUfSLzkpGR7CpQAGwoHL+usAkxapCR3M88X3aEFEntDfESxrkAGIY 9o60uI0jwPoqDwwskLNkJjjOjs8fMqWl8Z+d+sy8pW5kshMPJl4SUIKhaEOpP6aOkPACw6 Hv4MMbi779YYCMR+bXa5rx/lot5qI7bYHWxZV9ahRfcEtkLlWfrj8dINWCzCFgJWuh/ZPi iFVBav/lXDjw0p15TBAZ370jFNR/WbuRuuRADATamF9ICD9Gy4cl6Z9xiZbZb4VpVp6HIO vQ0CvQ3J2WvIbVqh3SkbEJgYNKGY1wSxlFBszHbm+XN8/1d0eKNtLyQBCJouLA== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id a3ddfb77 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Sat, 21 Dec 2024 17:03:16 +0000 (UTC) Date: Sat, 21 Dec 2024 18:02:35 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="vpnmmrdgs7wyx7tx" Content-Disposition: inline Received-SPF: pass client-ip=81.205.150.117; envelope-from=herman@rimm.ee; helo=email.rimm.ee X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001 autolearn=ham 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: BC13A84709 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 0.50 X-Spam-Score: 0.50 X-TUID: dNgcVYGekzC4 --vpnmmrdgs7wyx7tx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, Felix's patch is from issue #69343, one is also squashed into [PATCH 2/7]. In [PATCH 2/7], does the mbegin above the mlet work, or is its value discarded? Guix deploy seems to work the same way. In [PATCH 7/7] I try to add a test for the guix deploy rollback behavior. See attachment, why does this error occur? Cheers, Herman Felix Lechner (1): Rename two remote variables confusingly named 'generations'. Herman Rimm (6): monads: Add 'mmatch'. gnu: machine: ssh: Refactor roll-back-managed-host. gnu: machine: ssh: Return monadic value from roll-back-managed-host. gnu: machine: Remove &deploy-error. gnu: machine: ssh: Roll-back on failure. WIP: gnu: tests: Add module for guix deploy tests. doc/guix.texi | 6 ++ gnu/machine.scm | 17 +--- gnu/machine/ssh.scm | 122 +++++++++++------------- gnu/tests/deploy.scm | 203 ++++++++++++++++++++++++++++++++++++++++ guix/monads.scm | 11 +++ guix/scripts/deploy.scm | 8 +- 6 files changed, 279 insertions(+), 88 deletions(-) create mode 100644 gnu/tests/deploy.scm base-commit: 11855e1c2863c56d9a3364cdac614a529a1c7cc2 -- 2.45.2 --vpnmmrdgs7wyx7tx Content-Type: application/x-gunzip Content-Disposition: attachment; filename="1gv9mdpy6ygfgfvh4j56j4nq8c9a1m-module-import-compiled.drv.gz" Content-Transfer-Encoding: base64 H4sIAAAAAAACA+2a30/jOBDH3/kr5lrd0T64tOkvml2BON3uCukEEmJ1D9wJXMdpvU3synYK 5YG//cZJf2ShJau7AltUykM6/vozM3bsZJJeQeOgUe/U/4E/FQ2EHMB+7WAgkwOq7a3So5ph 8X6tVtu7Am+1sK+UjdDEdU7bXKNNRBQcUMZUIq3J6VvP6UMRcWKmxvI436f9XJ9IyOSOxCpI Ir7s9OHDB/hMEReAVUATq1zkENMRJ/eR6BMhx4klY6UtCAkVZ6v6aTepgKmAQ6g0ZNhZ8xtB VWJ/cuqvE65FOCXmdkgY11aEglHLj1PwIBF3gC3PwL8Z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