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 ms13.migadu.com with LMTPS id yHM/DLEFnWYPYAEAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Jul 2024 12:57:21 +0000 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 yHM/DLEFnWYPYAEAe85BDQ (envelope-from ) for ; Sun, 21 Jul 2024 14:57:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1721566641; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=9vWo0YTvhwrk/8XlNpOXCYUMoHGMQhixTPOdCmg8iXY=; b=Q/RrA2Z7Vh+Lnoa1rvuQ795cps/Xo7Oz2XSongh6q4h0IZj8WTdlH/LxYX7+6984htvgOL 28qF7t74CEsgrhpPK4GkdR5zk6MOxuU+QMqUs1d5VjgXRBurnwdJ1C6ElUKKIjuJvcxFmL OJJC6p3kw6SAG/sjyyYZhJpPm0XCdDyJsZ2VJqqDvGIvbPepCB60M6U2xqOS3UzV7Y3zR/ SOrL10Ub7iwdW1mgghqWHCQdJBMELKsmB9r+E5zRSngTC9rsLLIKJIsrEP/o/ZsEMGhyjW MSSDskKK29nXLayC9+I/iSnO6mJk8HIQWThi4PfY568cd5kFok0eVP2Cen4+5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1721566641; a=rsa-sha256; cv=none; b=IGhPrK7htrzZ2QDAHvgnyrzWglkGhWwt91lZSz4jFWQo18yiTRjMjyBtADcX9o81WhhR6s UAFvMPqYIK7DZWB8hBP7mUEr7UT5N1IJbJXeXSkYsT7AIjMN2P3k23hLek7CUiHwqu7W42 DG5ukyWasEsID/cbHUw2lOaDEDWU2NeKTmSpOSdRU8MBgBN73G40Po/wgigrdySJy2RK6Y 5m8pDb8sWpZZXaIAIovyeC7kMQBXipah4fL9EcN/qB2aBVKckY9UbJmfxPnDS5AFOQB2M0 tHepUD7fS7Q2S2UL+FVyeXVswuF/zlxpDfILoBBAOYIeWALiqLXtUUwlULZGDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 D9F6960BED for ; Sun, 21 Jul 2024 14:57:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sVW7d-0001km-0Z; Sun, 21 Jul 2024 08:57:05 -0400 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 1sVW7b-0001kQ-3Y for guix-devel@gnu.org; Sun, 21 Jul 2024 08:57:03 -0400 Received: from hera.aquilenet.fr ([2a0c:e300::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sVW7Z-000300-Kv for guix-devel@gnu.org; Sun, 21 Jul 2024 08:57:02 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 8CEF9476; Sun, 21 Jul 2024 14:57:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FtnY9jwk50uc; Sun, 21 Jul 2024 14:57:00 +0200 (CEST) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id E53531F0; Sun, 21 Jul 2024 14:56:54 +0200 (CEST) From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Sergio Pastor =?utf-8?Q?P=C3=A9rez?= Cc: guix-devel@gnu.org Subject: Re: Should we document how to detect if build machines are reachable before trying to offload? In-Reply-To: ("Sergio Pastor =?utf-8?Q?P=C3=A9rez=22's?= message of "Thu, 11 Jul 2024 22:23:42 +0200") References: <87plrk2rad.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quartidi 4 Thermidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de l'Ivraie X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 21 Jul 2024 14:56:54 +0200 Message-ID: <87v80yoqcp.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: softfail client-ip=2a0c:e300::1; envelope-from=ludo@gnu.org; helo=hera.aquilenet.fr X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665 autolearn=no 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: -2.91 X-Spam-Score: -2.91 X-Migadu-Queue-Id: D9F6960BED X-Migadu-Scanner: mx11.migadu.com X-TUID: dEZRXStMt1QF Hi, Sergio Pastor P=C3=A9rez skribis: >> Do you remember exactly under what circumstances it hangs? I think >> =E2=80=98guix offload=E2=80=99 should handle that situation gracefully a= nd we should fix >> it if it does not. > > Yeah. It happens when I have a build machine configured like so and I > disconnect it from the Ethernet connection: > > (build-machines > (list > #~(build-machine > (name "remote") > (systems (list "x86_64-linux" "i686-linux")) > (host-key %remote-host-key > (private-key %local-key)))) > > > With this configuration `guix offload test` will timeout after 30 > seconds, as you describe. But this other command will hang indefinitely: > > $ timeout 1m guix build imhex -M 0 > The following derivation will be built: > /gnu/store/9absqzdd4ak3pms2jw6rkhlmjvm8zzyv-imhex-1.35.1.drv > process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0' > guix offload: error: failed to connect to 'bordercollie': No route to host > waiting for locks or build slots... > process 12199 acquired build slot '/var/guix/offload/bordercollie:22/0' > guix offload: error: failed to connect to 'bordercollie': No route to host I believe the problem here is that offloading always wants to offload. That is, when all the machines in /etc/guix/machines.scm are unavailable, =E2=80=98guix offload=E2=80=99 says so to guix-daemon, but the= n guix-daemon just keeps retrying (if you had more than one machine in /etc/guix/machines.scm, one of which is unavailable, =E2=80=98guix offload= =E2=80=99 would just pick another one.) I guess this is probably what we should permit: building locally when we cannot offload. Does that make sense? Ludo=E2=80=99.