From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id OL6HCcKqdmetOwEA62LTzQ:P1 (envelope-from ) for ; Thu, 02 Jan 2025 15:03:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OL6HCcKqdmetOwEA62LTzQ (envelope-from ) for ; Thu, 02 Jan 2025 16:03:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=uC5kRflB; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=fhA9h8Qa; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735830210; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=CNQjrJkzX1FuBu3p5939S8w4U/LL+jZIjjl3judO9/w=; b=R+KLOaIxjQV/DDYOuxltE0GEtTvcqBKA2ZLckWl4a+AZmR/D2pIh/HvQTpM5/8uNK+dG0h RIDuulaJoN3efaon7iepaIfmWiPXYZPBD8c1D+g9SKR6/5AZEHzY1RjDVeYFUn7vx/JGwB f0nqfLNNisAxzZyaX2qDajWwKt1N+SO0/4EtMv9U8s7gSXmWroXThHko7SHdUE7pb466nA fW+gXEaMV5Gwc7iqjwKSxQr1X3X1+6op94IkjnJ0ONAu+BLCMgF5A9v/SPH49IvGemXSEP cpca8zVnPfl2FpbEHSFBfD2jNoakOKJVkxpC93/XeOk+YXnSPKPYODtM9jjepg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=uC5kRflB; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=fhA9h8Qa; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735830210; a=rsa-sha256; cv=none; b=Y/xBJkULqPw9YwMxCQnreldoBe0PWHGeCbvJqT3yUdbEGD2YCivM9pURDlSomKoKNRMfyB w1SpuXnZSsunYVH/Sf5JTifZ7nYaxI66XLizlkLvAXoMN2sVS++g0Ddrwx5a6jwxdYSNao 0NKMOWSI73P882Jj3dWZkf5YHjWSypcYYt9O02bKJmKQdeKKVcLB+WpsDgaoNQcX2G8gbs jU9DINR/Ru4oTuKOZHctfToI3wUoA+3WOVxvk7ZJo7bbejUz4z4lNCL73LUEJffsY4zKS1 MP5VrtRYFIVXwqKTj+FBwjcM8HhPP8WfVljAC+ciCSgiI9GKCXsqvkxlFFiM2A== 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 E99F7364C5 for ; Thu, 02 Jan 2025 16:03:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTMj3-0005WF-Qb; Thu, 02 Jan 2025 10:03:05 -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 1tTMj1-0005W7-Nc for bug-guix@gnu.org; Thu, 02 Jan 2025 10:03:03 -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 1tTMj1-0004Xp-Ed for bug-guix@gnu.org; Thu, 02 Jan 2025 10:03:03 -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:Date:References:In-Reply-To:From:To:Subject; bh=CNQjrJkzX1FuBu3p5939S8w4U/LL+jZIjjl3judO9/w=; b=uC5kRflBL1iv9mHGG8UejFHH4izDqR+gS/2Wd6acDXw6eag8ad0CFiUAST9KQfqHIEP14mhcFGvFWXFzkLVW5SyQdEnYYJqv9fGdts5YAHPzqmIENdP61m2oU016AUyNWx9ysjwej/0oa52IrNouhqaCxQyJRIchKSCbmcX41+jXxSiELVsm8rU5p71m++vx2CalDdiPHBcMg8LT9XXsF61JpvzIEiUy5Ug6Af2S3IZs5ynv4jnFOx4LAlgyg/7sjK2wXQFbWIZFNClN7dljJ7i59OWQ1epn/k/pRw2oA/6JaTXUGKFkC5P56Hzl77+kgzSM32bbq4praZasNQFeXw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTMj0-0005ae-LM for bug-guix@gnu.org; Thu, 02 Jan 2025 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#72686: Impossible to remove all offload machines Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 02 Jan 2025 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72686 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ian Eure Cc: guix-devel , 72686@debbugs.gnu.org Received: via spool by 72686-submit@debbugs.gnu.org id=B72686.173583014921428 (code B ref 72686); Thu, 02 Jan 2025 15:03:02 +0000 Received: (at 72686) by debbugs.gnu.org; 2 Jan 2025 15:02:29 +0000 Received: from localhost ([127.0.0.1]:46064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTMiS-0005ZX-Pr for submit@debbugs.gnu.org; Thu, 02 Jan 2025 10:02:29 -0500 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:48456) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tTMiQ-0005ZJ-SK for 72686@debbugs.gnu.org; Thu, 02 Jan 2025 10:02:27 -0500 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-21a1e6fd923so112758155ad.1 for <72686@debbugs.gnu.org>; Thu, 02 Jan 2025 07:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735830140; x=1736434940; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CNQjrJkzX1FuBu3p5939S8w4U/LL+jZIjjl3judO9/w=; b=fhA9h8Qaw7yQhPQoNfRFDdrJEVkOfee04I1WVEkuhQcOWD2Mavi5XXd5KFNKOUTa+F f9C2JWSh22eUUSo/n7f8cc4C1GJO7gkEE78EnBKbzGfeZAfdYH4ZFzF4huMyaKGdQSvZ cQut9571TBiupxVgO1wcGDAiwjOf2zwc5mOehfmWxdTRsm+J0g6D8ZQno8sd9qrCfwHW jd3HlcIGVEVL2tW9CG0DAEjWu4oruIGFq6MlgtfTfzvTbshEJa8+fMF8AZFX8dD5Z+55 C9A60M7XrvCgCkJ3cLB+BjiGKSEnJ3YplY182cs8ONIL+A9yLHYacxUaXpk0TIwDvN6c s1GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735830140; x=1736434940; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=CNQjrJkzX1FuBu3p5939S8w4U/LL+jZIjjl3judO9/w=; b=jueWpTi+XRU+H4GMHaGKP+YaiPV1A6IcZyoM6BO+4PhQDMRnmwgM9j4S275FV0P1NR UVxGZbiwyMnPDUwGBiC38r98i3rr6IaTvSl3Ic24xuoYYI6CyQgFb5hvk1Jkan9TEbHP UUtg0EjrTLRHCi1nYPX15jKtFGkcB4wp8veBmn0AeX/MK2cn0ulkpI8gvOCcFQWJS12S Y+UXjwthNzxxpyVN1gHNq65tUBoALQuQCCXL0Zd1LVAZgDAotJA3v+QBR94KMHRecqh7 NdFw/JaFBjryiZZBP27Un9M9mqbKK4QQtYcojziupau4HYOooeLRxd2QRLi3ITxjlT7e gHHA== X-Forwarded-Encrypted: i=1; AJvYcCUbKBTtQ6fYMvQRoIsGrsNozhEOC1Dg7uw1TXrdVkCORyNoCPBO5G6qJj1G8Z9tztSLRLLDng==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyN2WEyi3Aj6W+YZ7oM98UO1BSwDdo/otwaqTxLNosO4sm1BC42 JLO/57bz0rEjqt/nvOXhFoz52v0pB/TEXzpd1QKOgJbk0xmh+X39+r5mZukf X-Gm-Gg: ASbGnctEiFxFZ8y/o+Cyche0aGY/1f11EnR/mWf8srdUQ2aVHVYUu/XdHzgBZEF7UJf sWX7N46nKgM2bswbBNAZcRMyNAw+AEtlfnprvsSu7O3vG5qgJU4KzlT1rojGEmkq+XvTai53JYj W8WgO2lP0MpMnJPS/tVWFFqiD2GQDvlQ0VBiQTy7LG0a/UcNBqqBS18uPyE8t6pwZWvWPNa/3YD MBXShkz4oo6n9h1fWxSpA55dOsbtPCKb25m0nUHOtQQGxb3DGWW0A== X-Google-Smtp-Source: AGHT+IHUe2+DNgGP2wPqeDm/7v7017cKSlOwqaDaaDx8uVucGSG8qz/JPBMvEbo2d2o8Fvx64dMxZg== X-Received: by 2002:a05:6a21:339e:b0:1e1:c1a7:67ef with SMTP id adf61e73a8af0-1e5e07ef6b2mr74687361637.30.1735830140100; Thu, 02 Jan 2025 07:02:20 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad83616asm24472616b3a.76.2025.01.02.07.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2025 07:02:19 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <87ldwzmdfi.fsf@retrospec.tv> (Ian Eure's message of "Sun, 01 Dec 2024 11:05:37 -0800") References: <87plq75cbc.fsf@meson> <87zfoaqo7p.fsf@gmail.com> <87plp560ji.fsf@meson> <87setsmnj2.fsf@gmail.com> <87ldwzmdfi.fsf@retrospec.tv> Date: Fri, 03 Jan 2025 00:02:09 +0900 Message-ID: <87wmfd45u6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -0.76 X-Spam-Score: -0.76 X-Migadu-Queue-Id: E99F7364C5 X-TUID: 8KOa3CLEGTSL Hi Ian, Ian Eure writes: [...] > Apologies for the silence, life stuff has been eating most of my free > time, but I have a bit of bandwidth to spend on this problem again. As you can see, you are not alone :-). > I took a swing at this, it wasn=E2=80=99t as difficult as I expected. Whi= le > this approach gives a smooth upgrade path for those who=E2=80=99ve config= ured > channels in a stateful way switching to declarative configuration, > it=E2=80=99s possibly bumpy for those already using a declarative config.= If > a machine with declarative channels is reconfigured, the channels will > be duplicated from /etc/guix/channels.scm to > /etc/guix/channels-declarative.scm. Using `delete-duplicates' on the > merged channels should avoid major problems, but I think it still > needs a loud entry in news and manual action (deleting > /etc/guix/channels.scm) to upgrade. Given that both approaches will > require manual action, I=E2=80=99m a bit inclined to go with the simpler,= and > take over the existing file. That said, I think the failure mode of > the simpler approach (stomping on channels a user may have configured) > is undeniably worse than potentially duplicating channels or > continuing to pull in old ones unexpectedly. Do either of you have a > strong opinion or more information which would help guide this > decision? I still like the option to leave a handcrafted channels.scm alone; I don't think this imperative variant will be obsolete in the future; it's still useful to experiment quickly, avoiding costly reconfigure just to change some bits about a new offload machine. > The root issue at work behind all these problems is that activation > code only sees the desired target config, rather than the current and > target configs. Comparing the current and target configs would allow > the code to more precisely compute the needd change to move from one > state to the next. I think that could be a good change to make, > though it=E2=80=99s obviously going to be much more involved, and IMO will > require discussion outside the scope of this specific bug. The activation is just a script, so if it's useful to check the current value, it should be OK to do so. > I have a draft patch series I hope to send up soon, but need to get > Guix System up in a VM to test first. It does separate declarative > channels into their own config, but doesn=E2=80=99t do the same for build > machines. While I think many fewer users configure build machines > than channels, it=E2=80=99s probably a good idea to use the same approach= for > both channels and machines. Yes, it'd be nice to have a uniform approach. The acl file could benefit from the same treatment, I believe (that, and 'guix authorize' should validate that we're not adding the same key multiple times -- warn something along "key XXXX is already authorized". --=20 Thanks, Maxim