From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ODzKOUyjb2KeXAAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 11:24:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IJPXOEyjb2Jx2QAAG6o9tA (envelope-from ) for ; Mon, 02 May 2022 11:24:28 +0200 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 95D114287D for ; Mon, 2 May 2022 11:24:28 +0200 (CEST) Received: from localhost ([::1]:43408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlSI7-0001xz-Qz for larch@yhetil.org; Mon, 02 May 2022 05:24:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlSEi-0005dh-LI for help-guix@gnu.org; Mon, 02 May 2022 05:20:56 -0400 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:34366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlSEg-0004ZU-Tf for help-guix@gnu.org; Mon, 02 May 2022 05:20:56 -0400 Received: by mail-wm1-x329.google.com with SMTP id az27-20020a05600c601b00b0039431ba4905so1254572wmb.1 for ; Mon, 02 May 2022 02:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=Y+gjuIuTcP7iDh8WWDhKlqPguM4BuuqBfP9qAs6T9as=; b=QMtclwE5kSb0lbb9QCdDBoITgGMMaAjHMYeponcBG+knFUZhgJeN+Yt/HAVpp9EnQg 0EZN1ZLrtoRXp6mJBQslHOHwIaNK4q0haUa5YsKyj6qjP6AWldz/WDsrWSTioBerIJFr BvKmdBuXbxWJIaqBNdVFj1Z6UNizaBAcvJ3yefMs3cQ4GOb54e7+xbADBkHtGIEo6bDW D+xKHR2hgeJAguryvuhZBW0MjDYVPF4QVbly3EfOZbiZr6gSKgmpKr1jnptS8VkfSCWE WbhxcLtI0EzcGTtTdkoF49Zsc0fR2uBEIY7YgUF8FNfkdX2uw66h9oHSmrVFP9Fvcaqy ctLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Y+gjuIuTcP7iDh8WWDhKlqPguM4BuuqBfP9qAs6T9as=; b=UwgXa6qfXRFL8Dyix2ZeS22IStkeJvVrvwPganGaRx7BWq2sxTaonhJhaqmLegVgva QOIjOy+wOlQ9t5XzDm13WBikKM1o0c4VS1Pvf3P3qJQ5SZiTUAZ8D8EhvAbFq8+cwwhR kcaa1/8PoY6YM5GvZbiF1eOXVppA5V/d4U/9cqjObf2lYMrMHoEMsq2U1ErEf/j1es+g Vu88CaswJr2uB3fDBS9l5ZVKCXlawfXBYEJmxW38FQYMkIuYP2AGTCCa7ZWqXGkcf3OS TB/RAMB/EDFWJ5ztW/mEMpaQN4NHQdAgcoOnANmZBj+k6Gs4r6nWg3hOPkervc/1toSW viTw== X-Gm-Message-State: AOAM533vSoYrtoCR/UdGoyBCzRex4HAz5K+t/F8W89b5d76Lbrn4t2P3 CgXXRxAMqfjRSkwYeqJASK/zmZwEms8= X-Google-Smtp-Source: ABdhPJz1+tRDzySeXcHYkLj5koVhW3q3Kqi+vMjtIVW0ie5Pkz8JMzl+TFS+t04t6h2PkdUBTHgGQQ== X-Received: by 2002:a05:600c:d1:b0:394:ee3:9a05 with SMTP id u17-20020a05600c00d100b003940ee39a05mr10092315wmm.32.1651483253550; Mon, 02 May 2022 02:20:53 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id 20-20020a05600c25d400b003942a244ee8sm5826208wml.45.2022.05.02.02.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 02:20:53 -0700 (PDT) From: zimoun To: Kyle Andrews , help-guix@gnu.org Subject: Re: How to offload builds only when some of the offload build servers are available In-Reply-To: <875ympmdqw.fsf@posteo.net> References: <875ympmdqw.fsf@posteo.net> Date: Mon, 02 May 2022 10:37:12 +0200 Message-ID: <874k28ba9z.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x329.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651483468; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Y+gjuIuTcP7iDh8WWDhKlqPguM4BuuqBfP9qAs6T9as=; b=A6/JjXNXVi5J4gPgCvDgEZcGVdR1Cugpq/uIrgrFeIls+NcJ3HuiLrHhdUojIHwyn1yWfM wM1Y3+U3kfcswgLvQHc2qHLVT2mqLcFtH4was+QIkU6JhM2rLIBReZJ8e3a4pNV81LIRT3 0S6WFjjx+0hDNQVa5WXMAicRYbRDWYEh2q8yhu1XjyGPeXh3iZt+oZHUz+5/XVByWu3r1X PLRK5cfR7mCme2hpFxpNZEpjft7SEOslIFok245az+5aUChGcuvgzIKDExbe2HNF5Ds2gs Jx9wfgVQCcIOI3s2hEGJ7wjLosqVfqjOLaAXj5zPZXRmDsUvwoDDR6ewUTUaZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651483468; a=rsa-sha256; cv=none; b=db12tqtNw4Hv1uTO5Ab24yFLm+GsPONBBToCxYJx4NhEU27gWywCPusEYVLwQCqdlMOBPU 4s48y1ZgvGMrSWYLriY/HJA1v6tx7rNvjKrhoFWwpIczrWkHrU2qbSOtlcWnKAiGmsnkgO F1nVIFUApew85wu45Cv9c+R9y8WrvrYJhUbUFoOhCitSyRFcHKUc08pwdcdr6sHuC7iScc x9ccscAXPY24BGIMWktsTONVJDMQEAOk3LZWHSms7Nxt/LFtXjzKCnQ6dlECEOtz6pTuAh CdlD7TrT7JnWFxHlhq+IfS+Bo5surf+WcWBk6R8zpXNDX+LQXeR8f2zmaESmkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QMtclwE5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -8.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=QMtclwE5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 95D114287D X-Spam-Score: -8.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5SixRnZr3wSV Hi, On Sun, 01 May 2022 at 16:01, Kyle Andrews wrote: > How can I configure the offload functionality to check whether the build > machines specifiec in ~/etc/guix/machines.scm~ are available first; and > if they are not (e.g. because I am roaming outside my local network) > just proceed with builds locally so that I don't have to remember to > pass --no-offload? As discussed in this old and still open bug#24496 [1], you could do something like that for =E2=80=99/etc/guix/machines.scm=E2=80=99: --8<---------------cut here---------------start------------->8--- (define the-machine (build-machine =E2=80=A6)) (if (managed-to-connect-timely the-machine) (list the-machine) '()) --8<---------------cut here---------------end--------------->8--- where =E2=80=99managed-to-connect-timely=E2=80=99 could be a plain =E2=80= =99system*=E2=80=99 call via =E2=80=99ping=E2=80=99 to the target offload machine. Guile probably provi= des a better interface for network check. :-) However, note that it could be nice to have something dynamically handled [2] by the daemon. Feature missing=E2=80=A6 1: 2: Cheers, simon