From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 08:47:37 2019 Received: (at submit) by debbugs.gnu.org; 7 Aug 2019 12:47:38 +0000 Received: from localhost ([127.0.0.1]:38170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvLLr-0000Oz-Hq for submit@debbugs.gnu.org; Wed, 07 Aug 2019 08:47:35 -0400 Received: from lists.gnu.org ([209.51.188.17]:50314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvLLp-0000Ol-Rf for submit@debbugs.gnu.org; Wed, 07 Aug 2019 08:47:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48782) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvLLo-00013i-Nv for guix-patches@gnu.org; Wed, 07 Aug 2019 08:47:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvLLn-0005H4-NH for guix-patches@gnu.org; Wed, 07 Aug 2019 08:47:32 -0400 Received: from mx.sdf.org ([205.166.94.20]:65067) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvLLn-0005Fa-Dj for guix-patches@gnu.org; Wed, 07 Aug 2019 08:47:31 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x77ClTWp020212 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO) for ; Wed, 7 Aug 2019 12:47:30 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) To: guix-patches@gnu.org Subject: [PATCH] machine: Add 'build-locally?' field for managed hosts. Date: Wed, 07 Aug 2019 08:44:18 -0400 Message-ID: <87imr9402l.fsf@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/machine/ssh.scm (machine-ssh-configuration-build-locally?): New variable. (managed-host-remote-eval): Pass 'build-locally?' to 'remote-eval'. =2D-- gnu/machine/ssh.scm | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm index ae312597dd..1f16d9a5ea 100644 =2D-- a/gnu/machine/ssh.scm +++ b/gnu/machine/ssh.scm @@ -47,6 +47,7 @@ machine-ssh-configuration =20 machine-ssh-configuration-host-name + machine-ssh-configuration-build-locally? machine-ssh-configuration-port machine-ssh-configuration-user machine-ssh-configuration-session)) @@ -69,15 +70,17 @@ make-machine-ssh-configuration machine-ssh-configuration? this-machine-ssh-configuration =2D (host-name machine-ssh-configuration-host-name) ; string =2D (port machine-ssh-configuration-port ; integer =2D (default 22)) =2D (user machine-ssh-configuration-user ; string =2D (default "root")) =2D (identity machine-ssh-configuration-identity ; path to a private key =2D (default #f)) =2D (session machine-ssh-configuration-session ; session =2D (default #f))) + (host-name machine-ssh-configuration-host-name) ; string + (build-locally? machine-ssh-configuration-build-locally? + (default #t)) + (port machine-ssh-configuration-port ; integer + (default 22)) + (user machine-ssh-configuration-user ; string + (default "root")) + (identity machine-ssh-configuration-identity ; path to a private= key + (default #f)) + (session machine-ssh-configuration-session ; session + (default #f))) =20 (define (machine-ssh-session machine) "Return the SSH session that was given in MACHINE's configuration, or cr= eate @@ -103,7 +106,10 @@ one from the configuration's parameters if one was not= provided." "Internal implementation of 'machine-remote-eval' for MACHINE instances = with an environment type of 'managed-host." (maybe-raise-unsupported-configuration-error machine) =2D (remote-eval exp (machine-ssh-session machine))) + (remote-eval exp (machine-ssh-session machine) + #:build-locally? + (machine-ssh-configuration-build-locally? + (machine-configuration machine)))) =20 ;;; =2D-=20 2.22.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1Kx6IACgkQ9Qb9Fp2P 2VodWA/+Pn9CjudwlzQylW3A+ULRjej06E/2siVomfgT9gw6JVmfaN2JyUt9ORs3 SwNmDfTIkmp1pWuQeprgU6PCyYRh9FCHHuLKa41xoyl106UR+KJKBYBL1an8OyJ9 vODYyM3HwJjRJIvMnC9uV4+bqrWF9OfJ4C2H55jhgH5uyDReqsOS6eu0s8+mprQf OulP/5E2v89SSNI2Duyl9iMxg23Eq+kVZrgxbx3xlHTo6bZv/iJlIbnm2n4S+kil 6dt0KcDYhmH0L4k0qezyG+loPfvAZVdfPNUOfNzSPhHMzkM/lR7eYqrLCxxiCw6M xGcmmAm6Iu9JGcCLXK7SCf+VrkzvzlT9TTSp7c/k21rXRbVlcMv431ymXro9qBsf M06gd0QFFHLNLak/hOCK+sYeP8iXHh2ofWXWARvw9L30ZAu8XmrfGFXXRZ/Jkb6B 1hQ563MWqlGEEOp8qe/p3G1H1e88M4A5oedHtvUvXgGzIvz0euWBRETBjITp6+l8 rTG13Izqw8ftan+4HS/qmrn4kWm+MVlHaXBzx6pKjb0xReNYjrAuljAe8EyPz2lc qh5vVYvxdoA2KLV0XurF/IUlNeFxseZaWqk8Pf+ejYsrOJPr3tuyN3fVTOVIPG/l X50/LwNH8nCs0sYZ+2JfeSFe5gRtLj9UN/U54SuTU0opu1teH9U= =LaV8 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 15:21:35 2019 Received: (at submit) by debbugs.gnu.org; 7 Aug 2019 19:21:35 +0000 Received: from localhost ([127.0.0.1]:39415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvRV8-00013J-Ow for submit@debbugs.gnu.org; Wed, 07 Aug 2019 15:21:34 -0400 Received: from lists.gnu.org ([209.51.188.17]:33301) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvRV7-000139-Py for submit@debbugs.gnu.org; Wed, 07 Aug 2019 15:21:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49045) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hvRV5-00037u-Ph for guix-patches@gnu.org; Wed, 07 Aug 2019 15:21:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hvRV4-0005uu-Qs for guix-patches@gnu.org; Wed, 07 Aug 2019 15:21:31 -0400 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:52024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hvRV4-0005ts-MD for guix-patches@gnu.org; Wed, 07 Aug 2019 15:21:30 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 861F92661E; Wed, 7 Aug 2019 15:21:27 -0400 (EDT) References: <87imr9402l.fsf@sdf.lonestar.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Christopher Lemmer Webber To: guix-patches@gnu.org Subject: Re: [bug#36955] [PATCH] machine: Add 'build-locally?' field for managed hosts. In-reply-to: <87imr9402l.fsf@sdf.lonestar.org> Date: Wed, 07 Aug 2019 15:20:59 -0400 Message-ID: <8736icpysk.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c02::f03c:91ff:feae:cb51 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: 36955@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Looks good, though I assume this is a dependency for another patch that's coming? Jakob L. Kreuze writes: > * gnu/machine/ssh.scm (machine-ssh-configuration-build-locally?): New > variable. > (managed-host-remote-eval): Pass 'build-locally?' to 'remote-eval'. > --- > gnu/machine/ssh.scm | 26 ++++++++++++++++---------- > 1 file changed, 16 insertions(+), 10 deletions(-) > > diff --git a/gnu/machine/ssh.scm b/gnu/machine/ssh.scm > index ae312597dd..1f16d9a5ea 100644 > --- a/gnu/machine/ssh.scm > +++ b/gnu/machine/ssh.scm > @@ -47,6 +47,7 @@ > machine-ssh-configuration > > machine-ssh-configuration-host-name > + machine-ssh-configuration-build-locally? > machine-ssh-configuration-port > machine-ssh-configuration-user > machine-ssh-configuration-session)) > @@ -69,15 +70,17 @@ > make-machine-ssh-configuration > machine-ssh-configuration? > this-machine-ssh-configuration > - (host-name machine-ssh-configuration-host-name) ; string > - (port machine-ssh-configuration-port ; integer > - (default 22)) > - (user machine-ssh-configuration-user ; string > - (default "root")) > - (identity machine-ssh-configuration-identity ; path to a private key > - (default #f)) > - (session machine-ssh-configuration-session ; session > - (default #f))) > + (host-name machine-ssh-configuration-host-name) ; string > + (build-locally? machine-ssh-configuration-build-locally? > + (default #t)) > + (port machine-ssh-configuration-port ; integer > + (default 22)) > + (user machine-ssh-configuration-user ; string > + (default "root")) > + (identity machine-ssh-configuration-identity ; path to a private key > + (default #f)) > + (session machine-ssh-configuration-session ; session > + (default #f))) > > (define (machine-ssh-session machine) > "Return the SSH session that was given in MACHINE's configuration, or create > @@ -103,7 +106,10 @@ one from the configuration's parameters if one was not provided." > "Internal implementation of 'machine-remote-eval' for MACHINE instances with > an environment type of 'managed-host." > (maybe-raise-unsupported-configuration-error machine) > - (remote-eval exp (machine-ssh-session machine))) > + (remote-eval exp (machine-ssh-session machine) > + #:build-locally? > + (machine-ssh-configuration-build-locally? > + (machine-configuration machine)))) > > > ;;; From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 16:50:18 2019 Received: (at 36955) by debbugs.gnu.org; 7 Aug 2019 20:50:18 +0000 Received: from localhost ([127.0.0.1]:39549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvSsz-00080y-M6 for submit@debbugs.gnu.org; Wed, 07 Aug 2019 16:50:17 -0400 Received: from mx.sdf.org ([205.166.94.20]:56486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvSsx-00080o-98 for 36955@debbugs.gnu.org; Wed, 07 Aug 2019 16:50:15 -0400 Received: from Epsilon (pool-173-76-53-40.bstnma.fios.verizon.net [173.76.53.40]) (authenticated (0 bits)) by mx.sdf.org (8.15.2/8.14.5) with ESMTPSA id x77KoDET006317 (using TLSv1.2 with cipher AES256-GCM-SHA384 (256 bits) verified NO); Wed, 7 Aug 2019 20:50:14 GMT From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) To: Christopher Lemmer Webber Subject: Re: [bug#36955] [PATCH] machine: Add 'build-locally?' field for managed hosts. References: <87imr9402l.fsf@sdf.lonestar.org> <8736icpysk.fsf@dustycloud.org> Date: Wed, 07 Aug 2019 16:47:02 -0400 In-Reply-To: <8736icpysk.fsf@dustycloud.org> (Christopher Lemmer Webber's message of "Wed, 07 Aug 2019 15:20:59 -0400") Message-ID: <87a7ckln3t.fsf@sdf.lonestar.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 36955 Cc: 36955@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi Chris, Christopher Lemmer Webber writes: > Looks good, though I assume this is a dependency for another patch > that's coming? Nah, this is standalone. Just so there's an option to offload the builds when deploying to particularly capable machines. Regards, Jakob --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl1LOMYACgkQ9Qb9Fp2P 2VqwWhAAlmQvLuf+eoCLg3WrLwnEbEj5PUajW9MpUJecE9CByzrJmBcA+tSqTQi9 ocD1Rw5OA/GR7voZ4A9Dsv7ToSbOxKjk7pcvkiJJ2jsc8STAfSJyp8ZldgAuWBTA OgwyVXw7YUpraxfMjclHvoRqEwILZosrBnvB9fFAANxnayZXyolluaNQShw15S5d HMjt1ejBadJfWxh+87pTCusV5l8+72PD4iV9xRXGP6l0jUG0HoN3ZGWbdxI6lJ9y DXoAfRT2NFwyMofxYDfmnTtU4SBdUzpuVaah6xVTi6W3lUfqjUaY/97/exK3j2OU dxyeQEMsXY/1yD+TI6oGiIDVQmE04gPWHGQxP70lNL8hqwiWNyPKga+kkFZiwpPL fqIS+lxYnW6Ar1MiDocrjuajN1irN8lNEgvrN5LOMh/SySI8ELPQAwxbXOY8FxVA tMKzCJZ8sPgMJVa6n4gR9gTgbMg0HYJeSdROerMiwGZZQhJ+8mSlLiqBNu7kt/kk WdkFV4uypJwEb+RGevOR7q9wAtU4mOSE/YVu11/2sLN/3wGXqSMgq7LDLm2cKH/1 fXoawvgS75baPbD3nB9rKJu7U3gcvnXrSfVMB6GqDxcV4tzEwh6cydRSlYYHM+PK bhGKGHbqwKj0yoWPbE8o08igoRdM4nTAuUD3+PD97+JFgRESy7Y= =M7oq -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 07 18:29:48 2019 Received: (at 36955-done) by debbugs.gnu.org; 7 Aug 2019 22:29:48 +0000 Received: from localhost ([127.0.0.1]:39615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvURI-0004jW-9J for submit@debbugs.gnu.org; Wed, 07 Aug 2019 18:29:48 -0400 Received: from dustycloud.org ([50.116.34.160]:57650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hvURG-0004jO-Np for 36955-done@debbugs.gnu.org; Wed, 07 Aug 2019 18:29:47 -0400 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id A7F5C26618; Wed, 7 Aug 2019 18:29:45 -0400 (EDT) References: <87imr9402l.fsf@sdf.lonestar.org> <8736icpysk.fsf@dustycloud.org> <87a7ckln3t.fsf@sdf.lonestar.org> User-agent: mu4e 1.2.0; emacs 26.2 From: Christopher Lemmer Webber To: "Jakob L. Kreuze" Subject: Re: [bug#36955] [PATCH] machine: Add 'build-locally?' field for managed hosts. In-reply-to: <87a7ckln3t.fsf@sdf.lonestar.org> Date: Wed, 07 Aug 2019 18:29:45 -0400 Message-ID: <87tvasobhi.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 36955-done Cc: 36955-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jakob L. Kreuze writes: > Hi Chris, > > Christopher Lemmer Webber writes: > >> Looks good, though I assume this is a dependency for another patch >> that's coming? > > Nah, this is standalone. Just so there's an option to offload the builds > when deploying to particularly capable machines. > > Regards, > Jakob Ok, thanks for the clarity. Merged and pushed! From unknown Thu Sep 11 11:26:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 05 Sep 2019 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator