From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 SPz8IsTDhmbOYwEAqHPOHw:P1 (envelope-from ) for ; Thu, 04 Jul 2024 15:46:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id SPz8IsTDhmbOYwEAqHPOHw (envelope-from ) for ; Thu, 04 Jul 2024 17:46:12 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=OUTLOOK.ES header.s=selector1 header.b="JDd4qE/B"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=outlook.es; 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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720107972; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ehgxh9SQ/Gz86iNf4hwWLuEM5YjFZ1bmAVDWTN2dYHg=; b=YPfLaSCJ7xI4vGT6F0FxNjHjmSdfiQcTB17UIX5U0bAQmT25RtVanvJ9Qd+GVE03lvT33u jW3ls1dCbINoXGUkN3Ax/B1/gKJ5vZ5ehwKBPYGhDKG84WgOoQaAg+MVYUlrExvvlw5p8f WUpNh5ie69Itt9MjbbXqr5TwP3rt3lVKOU246H6vAg3qZCrVqFEuII5B+8dcjy7ppwJen/ 3Aln8nIvSVh3mZyYUfcVF3zpwz0p0dZQOg68fXz2712hl9CC+weGZ4dBkN4AamermQ203R TWSdW9dCuGxdb0AQFhVLS66E93pnNr7TSgaEw05VKR9xhpSbtbvsby8BegN6Gg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1720107972; a=rsa-sha256; cv=pass; b=h7jiFXsc3Rcjpbp8pdgAZFGJZJ9USNQ1vc7z0GAreVsG1ZWzvPeNhCmwQqvdmT1y0uXkR6 VXFPKYYRyds3u0u+RptwMFr5OFcMYTSY+fwKF4bGn69i/Zuw8seBlfVRD0t56TQqJ1wz05 q3D88MDx+G/Qi2R3PWVr4j7T/CsZ6pYmOb1+u2DysIwJ899PrEq1BuCi1vC8iY5Fjg28QN KScFrcXXZfPt5xVDzrC6C0ndWHdTve3oUjNb1AZpzB+X61m8AXEPPPe0r7Y6n3Hx73+MWc 9+PppOEadWbucDt7dWbkFY9fuCpsthvu9xypQKyc8J+vJZbb66w0muWteGi0EQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=OUTLOOK.ES header.s=selector1 header.b="JDd4qE/B"; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=outlook.es; 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 371CA750B8 for ; Thu, 04 Jul 2024 17:46:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPOeP-0004mn-J1; Thu, 04 Jul 2024 11:45:37 -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 1sPOeO-0004ma-MX for guix-devel@gnu.org; Thu, 04 Jul 2024 11:45:36 -0400 Received: from mail-am0eur02olkn2095.outbound.protection.outlook.com ([40.92.49.95] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sPOeM-00055r-Ns for guix-devel@gnu.org; Thu, 04 Jul 2024 11:45:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AEXaa2quiTDhwmkffFKxIHZ/WMYnMdJFrqrmEa6gqLDmza3KcaaSDATII5ZlfF6dc1GvXSlLBpKFhOXm0sRyQM+tYgBU+j5L8yDxMK/pcRY0ci/20n0D3u1CHth8LxBNNCbmR4XEM+II0Ceoe2ZD9g1LWR9Ad7kspDzmeqGy+S7IBr1j60kOg0watQEQIfW3ZshqLtK8RxS/PxEg3VT+y+TMWhHOpnHrBKRYwvL5z70GHAZKggj7IniFyEKu26Fh7dYuVy/NkbOn/QAU3B6DxLyQOcLSkEIUb5bPeC6GBpsG7TKENaeUR+yOCvIrx9k7j58V3MySwdb1t2HjB6AM0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ehgxh9SQ/Gz86iNf4hwWLuEM5YjFZ1bmAVDWTN2dYHg=; b=FPbf73v4p6O+wqBaEBzyIHEvV/xMmUQEOZuonXwFpQSgz48wfP06dBt7AvIscK0JpC1JtPJYx6lnuGkXEW/Jcq4/L6IO/9+E254nxVoZvEp2yek58hF0zoTR5NOlDECzONSe6+dWz9EO3JrkP0dICdpR5mdk4BXkFBrftCoxOsnRNaFyVuklVxse1Rf7CaqGTfIh4yBoOkijNVLayFGP5SXl0xhSyge3UXCKkxj1cuDlCtsUyxiemPh+/y8eU2UwiFJlEFIMlZHLkG/iDSiZTNHvmSUWCMDBETSe5+FkN9cWR9j5tAYH0mkJitqWs1UG/aKrsAg7l5rKaeYPB8wg7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=OUTLOOK.ES; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ehgxh9SQ/Gz86iNf4hwWLuEM5YjFZ1bmAVDWTN2dYHg=; b=JDd4qE/BE9K8ItZHvyjnrX2xPV4/BFfAEru3IMrOrH9y2MulQRPHRM7sOTCzLxN5i7Lah/EIXC7LdTiCGFrFG/ZbkrKT5NIIsVCv1uaXg+fnt0Zla48sT+nl6BXYxTW6mxT4O39n6ssPx7bOairVv+od6l/TprMqnoA13qu/l01bxoHfwyxfVpTwEEdcfn8tcUhhJlQ9wb2r7mpHuWeDW6GFB07KW0fjB+ji9gQh2kZolJdLgotUFkA886UsSkVjj5mesZ8uCTanecZ9ot0jwOvtALEu0HrpghsaLV807wSxGU9RyYBHEwBkczXkMM+5AvBfo8LEziOvOhlUrhqVIQ== Received: from PAXP251MB0348.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:20b::10) by GV1P251MB1090.EURP251.PROD.OUTLOOK.COM (2603:10a6:150:1c6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.25; Thu, 4 Jul 2024 15:45:31 +0000 Received: from PAXP251MB0348.EURP251.PROD.OUTLOOK.COM ([fe80::1f4f:1f6b:1817:f03f]) by PAXP251MB0348.EURP251.PROD.OUTLOOK.COM ([fe80::1f4f:1f6b:1817:f03f%5]) with mapi id 15.20.7741.017; Thu, 4 Jul 2024 15:45:31 +0000 From: =?utf-8?Q?Sergio_Pastor_P=C3=A9rez?= To: guix-devel@gnu.org Subject: Should we document how to detect if build machines are reachable before trying to offload? Date: Thu, 04 Jul 2024 17:45:29 +0200 Message-ID: Content-Type: text/plain X-TMN: [Lg6qAgb4358g4rWA2LxvYep5Jv5SVrI8] X-ClientProxiedBy: MA2P292CA0014.ESPP292.PROD.OUTLOOK.COM (2603:10a6:250:1::10) To PAXP251MB0348.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:20b::10) X-Microsoft-Original-Message-ID: <84r0c9i2jq.fsf@outlook.es> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXP251MB0348:EE_|GV1P251MB1090:EE_ X-MS-Office365-Filtering-Correlation-Id: 048bbffc-0f3b-4876-8020-08dc9c4055b0 X-MS-Exchange-SLBlob-MailProps: cn60g5V53KNgZeG8iI5JcmU0VZhiFelbyMFkLfkobwKZBJG5JFeFZnOrsBGkUAtP6kK0urcpzpzJDq1R46kFTdfMIYtMgNYveGYDA4/lRDztsW2gvwQpVFDxnF7L8U31igKxPUn0nTbWcM2WJSdbYf7baLsuYDE/s8236ysR+23eGe89uYkfnOvbhnIZpvf++3p06w8I8+/gqLvRKDmU0dT8G7UhAMdpcW7Wz69Un3EqyqNDgHeTFV2cjqr0VOWZTNuOvVHnqv/6OrTXZ6sgIKC8ToRTBtmi6hys7EKSlVjL/SOSHyrIH3UiwiRC4bg7Ff+LpS0RE7255x7L9jLm0Xng4CGlDaGb6yB2o3ZBuq7TR+ol1Nr2i1i/on/mIjL0GMch8l4PSZNLHD6PBaOrAZL17WpOX00xpJytdgwHwDLm/MZXLzKfo336KRQpSdVaesseiUQMNxTyLcR3yBbBnzcbiBLk5kAwniSVcbT2kqp69lPfAG0a24lSSuV2P70YvGhtyjaZMwtl5mi8S2nbBs/WMHhnKY1546EnaAfq5UpwcS+L0lK51SjZLmxPLB87sQHBgF/DIWRwuSEAI6lO2co+0IuazbTlmbpdasfapvkWtz8IgYUN6EfCNqfOkln0LTZoqQyXRmbyWDNQT6HWyQnIZ44sIX2bq8xYTbLFUFyHnmHYfo3G2XX2+4n1ftGOObu9XKYUY5U/p5GJeljVG9Pd0/bRWD2TTod3de+PLnqvlbCx9Wxfib2Oc3uGzQu3cYrqtKQ1vo7YokdQeiu1lr8bjAxRJDysLSc+jl2Fm+hprvcqP3xbQ1yz/GtFG8UrxIg8Q1r5ZLUpKTbs5ru9VDbNTBgCssVpDsBjCmxBxAqn2XahacsgOg== X-Microsoft-Antispam: BCL:0; ARA:14566002|461199028|8060799006|3412199025|440099028|4302099013|1602099012; X-Microsoft-Antispam-Message-Info: xbqvQSBtIlOpNYRC5BuCo4nlN3sf24NLx5UyH89QcIaBAAiBbIpskNqCicWosqoOFApvTpr5uOjSU3hT5xxVejw6EqYdYeyjdfbg9DsVXPJBfDJYJ+P4+iZP0yAIkvTlO/OrcYzVkQYyc8El0ZpA4plF8pcnki4p84P6bhdIr+/+kgRqa03ZCSWdrpdQndDpgOBqSEgIf5b09Url3ItynfkmltBSG5fQbLbibbqNgu1FTpfBDyPly6WVUuNW7jUJ/DP4R0Wg2EjgteP5DjaNvYqUFv6sTDuUtljJGxv3LAd+BVyXYMEFxU1p3XcFlbrRKK0DWIUKmaIT9AUiMbbVDnc5kjCiCdcN5xegiiAiQa5JvHD2ayk0oa91NpUr08/a+aXBdaGWmDZzYZxItdzh4Bn7JVLbIG0kDiGaIbVwjxGq1T3OjFQBCKo5yL7gkiG8XYa4vubWZ35OaDKmm4tJ5bY+HCiV7dKYYJRr/EG+m0HJzutgFOJ4Q5/bwyhL0CRYaa8QjWBG4uf7lWsgTAuXYRy78ft8R1k3g6RmxBYPdHZ3sFslhErL12qHmrQwqYnwHUwjWDNEUdQtcqrwZpSBprJJhOTRHEa8f0jxap69jhLc0bB0WSI94Azi2g6dBRTIt9y+2BA8syDxymjls4ZvdIpRZ5OWC322y0anPlWh4Z0NA3frHxVsb/oNjAThjg1ETc5IgtOyysnZZ12JkTTRiSGxM4+mdDyQ+iJQtAkLgrU12FSUxjHvvvkL1mgbWBnuR7qwT2iMnghpUSnS2L4ZUw== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TJ8dIl0WFzahDSO6VIf8pRls7+u0B4Y0hbIBwOcprc+qL88kIWgrkt2Nm60F?= =?us-ascii?Q?XD26wCipoSjxx0S8zIWLOw0I8una7tFHpiBkvmFfne/YSEt2QmPeakThlLSA?= =?us-ascii?Q?Jn0/VxWgLaccN0GNJ0r4hfVvTjeDoeQ3/EO9YD0stkMeSeC4adlxJP8150mY?= =?us-ascii?Q?PNIexIAqOGX0z3YIchUPhJrHhal0JsAMrQIhWgdLJX5NIBCEUCz0CGmu2w8x?= =?us-ascii?Q?L8E9ALbmwyMDZRwXIlVIiQC8S2xZAQlOL+qGYGMbvLDVEv1DcyR10EnsvVot?= =?us-ascii?Q?gBnZDio4rdKJIBiCSImvt5LqGAf4eH1rV/bzytzejR3K1k9Bl3tSJgAaExbG?= =?us-ascii?Q?WCDaHflvNbeoyFstVTNPL3t9LQw+xLPrptl2/tJbvf8jWCvPqaGLyMgwVJw4?= =?us-ascii?Q?b07kXd/T5MarFQOTAvPv6fFWayzuZKNrycZIFr07IBTxXd/IhpJl0eol4lAW?= =?us-ascii?Q?ed4vO4t7fTiYrjNsLY35SXWe/PwPFi6gpBVqlXsYn8JynBBuSlERy7Z870Ah?= =?us-ascii?Q?QXHW5fWskVtIK2pZydUSlOSILFGuGGr1qFCLWyGP2jCzj7Hk8mxnGqb5yaox?= =?us-ascii?Q?X8Jf9dUYKPa/pL6YNqDQOIZXU21186qW3Nf8ghEjbQbPUpLhB/bny0D0U0/E?= =?us-ascii?Q?1hjRAjhyHMq0KY45O+MmLkKzN3gMMiwoomYLI6WGL6ychKtIuu+sKu3oS4zp?= =?us-ascii?Q?c+6PFIGW7JkwLzg/imPCHxoTTs8Fs7PSopmyfVtfnQJamPPdOm285BOrmNS6?= =?us-ascii?Q?gqBV7LsJrq0bdEKKryXlbe7nWOuysecYXFEA/lIvtBbtSlSHueCud02rKF8I?= =?us-ascii?Q?2mbAZapSgOtdJgstF2HRrk3gXWfrfALAb5msXvRl5edfNKD/u1ZKdExNa9KD?= =?us-ascii?Q?erpebd53KF88f2Rvw0ZvyylTXVroGFRix15z/UuRFDne/7wep/fTSx069Ttt?= =?us-ascii?Q?sEvsAVJ9ks7OSMBwkh9odYb6XV8VgR8BTkBGu/CHplUla717/B5DdToJ2wW4?= =?us-ascii?Q?7mTQ2djIJa/1X/uAAG/1qWxcpvndTChcVkjeIOde685BSPzqaZpN5laBaYUr?= =?us-ascii?Q?RWuV/GlaAHPlPNIXVC7ai+wn8EwQjMR3tbyv9t6wfxMpcVO4WrczIpAsQOA7?= =?us-ascii?Q?crdhosAdlJopj0EUwKLDpM/xfvSF3HVUyI1zIHpx9noUF95G1WsZ/ercCDx/?= =?us-ascii?Q?En2OBG//jGBXlCxxg0K02AtRqf/FYib06fKKGW8Z0lvCYJSNQ+8TdA0QLs+x?= =?us-ascii?Q?Z+gJpGHOExZBwFiQovGe?= X-OriginatorOrg: sct-15-20-7741-18-msonline-outlook-53ebb.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 048bbffc-0f3b-4876-8020-08dc9c4055b0 X-MS-Exchange-CrossTenant-AuthSource: PAXP251MB0348.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 15:45:31.1083 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1P251MB1090 Received-SPF: pass client-ip=40.92.49.95; envelope-from=sergio.pastorperez@outlook.es; helo=EUR02-AM0-obe.outbound.protection.outlook.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: -6.88 X-Spam-Score: -6.88 X-Migadu-Queue-Id: 371CA750B8 X-Migadu-Scanner: mx11.migadu.com X-TUID: kEJQtWZu0Xiz Hello. I recently discovered that offloading builds to remote machines[1], hangs when the machines are not available; instead of defaulting to building locally[2]. This forces the user to use the `--no-offload` flag. I saw in the mailing list[2] that someone suggested that, the `build-machines` field accepts a list of GEXPs instead of plain `build-machine` record types. This suggestion is almost correct but it only checks if the host is known which does not guarantee that it is reachable. Therefore I came up with this: --8<---------------cut here---------------start------------->8--- (build-machines (list #~(let* ((resolvable? (lambda (machine) (zero? (system* #$(file-append netcat "/bin/nc") "-z" "-w1" (build-machine-name machine) "22"))))) (filter resolvable? (list (build-machine (name "my-host") (systems (list "x86_64-linux" "i686-linux")) ;; NOTE: Located in '/etc/ssh/ssh_host_ed25519_key.pub' on the machine that does the build. ;; It will be generated by `openssh-service-type'. (host-key #$(plain-file-content %my-host-host-key)) ;; NOTE: User on the build machine that allows SSH access with the key from `private-key' field. (user "my-host-user1") (private-key "/home/user1/.ssh/id_ed25519"))))))) --8<---------------cut here---------------end--------------->8--- Which allows to dynamically detect which machines are reachable. If the user wanted to never build locally, the `-M 0` flag can be used. Therefore, I would expect that it would graciously fallback to building locally instead of getting stuck. If this is the desired behaviour, I think we should document how to avoid the hanging. Should we add this snippet to the manual/cookbook? [1] https://guix.gnu.org/manual/en/html_node/Daemon-Offload-Setup.html [2] https://lists.gnu.org/archive/html/help-guix/2023-12/msg00114.html [3] https://lists.gnu.org/archive/html/help-guix/2023-12/msg00120.html Regards, Sergio.