From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CC6kOVPUZV/ePgAA0tVLHw (envelope-from ) for ; Sat, 19 Sep 2020 09:50:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kOt2NVPUZV/YOQAAbx9fmQ (envelope-from ) for ; Sat, 19 Sep 2020 09:50:11 +0000 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 1191294023C for ; Sat, 19 Sep 2020 09:50:10 +0000 (UTC) Received: from localhost ([::1]:49544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJZVQ-0007sk-I9 for larch@yhetil.org; Sat, 19 Sep 2020 05:50:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJZVK-0007sZ-9V for guix-patches@gnu.org; Sat, 19 Sep 2020 05:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJZVJ-0005az-SK for guix-patches@gnu.org; Sat, 19 Sep 2020 05:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJZVJ-0006fq-Pr for guix-patches@gnu.org; Sat, 19 Sep 2020 05:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43494] [PATCH 3/4] services: guix: Add guix-build-coordinator-agent-service-type. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Sep 2020 09:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 43494@debbugs.gnu.org Received: via spool by 43494-submit@debbugs.gnu.org id=B43494.160050895025590 (code B ref 43494); Sat, 19 Sep 2020 09:50:01 +0000 Received: (at 43494) by debbugs.gnu.org; 19 Sep 2020 09:49:10 +0000 Received: from localhost ([127.0.0.1]:45668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJZUT-0006eg-Oo for submit@debbugs.gnu.org; Sat, 19 Sep 2020 05:49:10 -0400 Received: from mira.cbaines.net ([212.71.252.8]:57748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJZUS-0006eY-H6 for 43494@debbugs.gnu.org; Sat, 19 Sep 2020 05:49:09 -0400 Received: from localhost (unknown [46.237.174.246]) by mira.cbaines.net (Postfix) with ESMTPSA id 68B8927BBE7; Sat, 19 Sep 2020 10:49:07 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 35f96f3f; Sat, 19 Sep 2020 09:49:04 +0000 (UTC) References: <20200918184042.22660-1-mail@cbaines.net> <20200918184042.22660-3-mail@cbaines.net> <87363evnmm.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 26.3 From: Christopher Baines In-reply-to: <87363evnmm.fsf@gnu.org> Date: Sat, 19 Sep 2020 10:49:04 +0100 Message-ID: <875z8a9jvz.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: 51Y4squUBsIx --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Christopher Baines skribis: > >> * gnu/services/guix.scm (): = New >> record type. >> (guix-build-coordinator-agent-configuration, >> guix-build-coordinator-agent-configuration?, >> guix-build-coordinator-agent-configuration-package, >> guix-build-coordinator-agent-configuration-user, >> guix-build-coordinator-agent-configuration-coordinator, >> guix-build-coordinator-agent-configuration-uuid), >> guix-build-coordinator-agent-configuration-password, >> guix-build-coordinator-agent-configuration-password-file, >> guix-build-coordinator-agent-configuration-systems, >> guix-build-coordinator-agent-configuration-max-parallel-builds, >> guix-build-coordinator-agent-configuration-derivation-substitute-urls, >> guix-build-coordinator-agent-configuration-non-derivation-substitute-url= s, >> guix-build-coordinator-agent-shepherd-services, >> guix-build-coordinator-agent-activation, >> guix-build-coordinator-agent-account): New procedures. >> (guix-build-coordinator-agent-service-type): New variable. >> * doc/guix.texi (Guix Services): Document it. > > [...] > >> +@defvar {Scheme Variable} guix-build-coordinator-agent-service-type >> +Service type for a Guix Build Coordinator agent. Its value must be a > > Perhaps =E2=80=9Ccoordinator=E2=80=9D and =E2=80=9Cagent=E2=80=9D should = be defined in a few sentences > above to clarify what this is about. I've added a bit more information, I want to at some point actually give a workable minimal example configuration, but I need to do some more thinking about that. >> +@item @code{derivation-substitute-urls} (default: @code{1}) >> +URLs from which to attempt to fetch substitutes for derivations, if the >> +derivations aren't already available. >> + >> +@item @code{non-derivation-substitute-urls} (default: @code{1}) >> +URLs from which to attempt to fetch substitutes for build inputs, if the >> +input store items aren't already available. > > This is interesting, I wonder how you can distinguish between the two in > code. You have to open different sessions, right? Or to call > =E2=80=98set-build-options=E2=80=99 again? Yeah, it's not strictly necessary to have some separation. In fact, I can't remember exactly, but I think it should be possible to deploy the coordinator and agents without explicit configuration of the substitute URLs, but I need to check that. These options were added mostly because it useful if you have two seperate sources of substitutes, one for just derivations (say an instance of the Guix Data Service), and one just for build outputs (say populated by one of the hooks) [1]. 1: https://git.cbaines.net/guix/build-coordinator/commit/?id=3Dbda7d58853ed= 4fba976cac92a70c4dc68db263aa >> + (description >> + "Run an instance of the Guix Build Coordinator."))) > > + =E2=80=9Cagent=E2=80=9D > > Otherwise LGTM! Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl9l1BBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE 9XdqNA/+PAeN8zL9P608PFjf1IDPZZWx76WSAMZ6BfCStsRvGNR/X+ZOgzabH6+K ZiJoAbvC0RIzFgGh90CfYI2GabG6SYTkQMAi4DN/Cs3iKFVG+DDvdpprmk9xDTFb k+MnarQzw0sSidtZb8OL9E9u+c3evfDO6AMl9y2vKhfGDV6A5IvIcNJy1t8TM8OL S/qcd8O2kIlLX2LBKoGJuhiszXt1MFYrXmbSLDEd+iZ0wcFXHaG2TV/y5UbqydP3 0MaCKAym2YN5NNK98u+z94TImZeppCeQGGY5OnN0Cq29TaIn8egDX1NJjFkV4OzT +WwM2jY14oFvOZHblS5uqd0gd3I5yi/NX41K6CFjAOX43ADlpQSeLF6CtPZAJbWS wNn+3pmBdtyuRJibe0GbtaAn5+0CvJ1L58gHzXIp22Vaz+yW5qoAVEOMuEx0a6ft uMJ6RzjW9FGtvNzuyzcvCbeMmB5Wc3IuoTiPA6ZHBuj1KvdDBwD32zskPwUKk3Cu 1G7KBkHmAMOF28Z/Ci0Lr1vewKW6iR+6pIiXD6gxRiaGLZaz/8Ck3eweYa+llidU YBkz/UzGMZggWegnABCMv+6bTRgDTwVFTH9QNlBmx1gJRYayx8+xclGNR/njcHH5 VR93AvkYiHmXPnpEGeXncGJwN8jTFoW4UP5Mb1BPT1geWj8xmzQ= =RwqV -----END PGP SIGNATURE----- --=-=-=--