From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kMXAB+EkAmVxxAAAauVa8A:P1 (envelope-from ) for ; Wed, 13 Sep 2023 23:08:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kMXAB+EkAmVxxAAAauVa8A (envelope-from ) for ; Wed, 13 Sep 2023 23:08:49 +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 49B864BC9F for ; Wed, 13 Sep 2023 23:08:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=OQR7gjmN; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694639328; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/x1bc1tUSW98Imp4b183ct85613rj/rPhCY+b++MRSQ=; b=S3yfoYgkW3Nqqb62j2tcIheDZh9qK+kIpjqetD3KnSXwTfxqy8Ows775qx2MTP9LVgrT8p lcmvuw/6aqO9eDh1/z+TQGNc69oaSfm5+YGsAlzAE/ei0rEcj+J81WKNiOwvJh1894jXWe BaNUxfcGMDoVJhXOiC9TJrHFQ1mcfUVP33YBWtLYtxCU0svoYNfOEO2r1CyXpXJGTKJi75 ZSqaLGtQBjD48eGCAzcXPbM4pqysHoUukCt5x20TM8kuc7FZLx5lZrNbFMYcW8YnZtz8QD XmktBnOIlMEzXbYQVBb0dgLFgvrOwwJ0lfGKvGiQx5bNHmKhq2clm4eJ2RtvrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=OQR7gjmN; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694639328; a=rsa-sha256; cv=none; b=YeOOML9KYBFAOUBvPjbAm6Qwx50/NvqW+9++l/sZJVc0NhheKfpBlTvH13stU9bHmsE7b8 cC3JEpkitBs8zgtvHDFeBusESgL4AiUGkIeg+tl7FZF8VnPI+TQjhPI8EI0NZjeB3Q0vK8 NK+FpDZiH8vD6Q9chFa4NtmfZ5G+31osdZFcsDTSW6aJHK+EQOw9IuXnWyYyzvEQl2oeX1 YGnSLCB+HCZYsuC5cMNQ0Ro6YHNKBx3ZG+jqTVXc7R9Cvm3pYJOZ+STc4hhL8Ur4CrBhWu OK+/Rp2jpZ3yPEIHtPM9gzTgirC/ADyV1viziejosAU/1q8IGRnjifcAs1bDqg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgX5m-0000Ht-3f; Wed, 13 Sep 2023 17:08:10 -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 1qgX5k-0000Fi-Pi for guix-devel@gnu.org; Wed, 13 Sep 2023 17:08:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgX5k-0006BQ-IB for guix-devel@gnu.org; Wed, 13 Sep 2023 17:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=/x1bc1tUSW98Imp4b183ct85613rj/rPhCY+b++MRSQ=; b=OQR7gjmNlfbcFW xc1mIm0JlhJZAvY0gQMfmCS8AjtHonyvZM1CsfyWuiyGNaKN0GBX1flLYmUL48S1iarOy64GyFYhE oN1pDBM+kRDGHmci42SxN4SLdJPZQk51CTRbdf/mjKsmemVWrcpRTiZvSNyhmb+1IHY5VA6b5hud6 RaZXff9jOL5fb/1hgbuWbwFnJ2n4+5PDfzueTSG2oXR9oudiMGpmNkvBkt2yxAeRG75fKoxZDlybY +lqFzzGJ9V+Xkue/k47Poy+Jbwn46w8J+EeCfn7EoDwSWgI4u4xIMg5QxOxKRuZYWNPXfNdVWS6Jz /H+/tsY7mxvSAIyipHPw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Subject: Cuirass actors X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 Fructidor an 231 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Verge-d'or 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: Wed, 13 Sep 2023 23:08:06 +0200 Message-ID: <87r0n1ixxl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -3.81 X-Spam-Score: -3.81 X-Migadu-Queue-Id: 49B864BC9F X-TUID: jENPwuRH/toh Hello Guix! My (useful? misguided? questionable?) quest around Cuirass has led me closer to some of the goals mentioned in my previous message=C2=B9 and in t= he =E2=80=98TODO=E2=80=99 file=C2=B2. The =E2=80=98wip-actors=E2=80=99 branch=C2=B3, which I plan to merge soon, = splits activities of the =E2=80=98cuirass register=E2=80=99 process among several actors. Qu= oth =E2=80=98base.scm=E2=80=99: - The "channel updater" is responsible for updating Git checkouts for channels. There's a single instance of this actor; it limits concurrent Git updates. - The "evaluator" spawns evaluations of jobsets for the given channel instances, again limiting the number of concurrent evaluations. - The "builder" spawns derivation builds. There are currently two implementations: the local builder sends build requests to the local 'guix-daemon' process, while the remote build delegates builds to 'cuirass remote-server'. - Each jobset as an associated "monitor"; it requests channel updates, evaluations, and builds to the actors above. It also receives requests such as evaluation triggers that can come, for example, from the /jobset/NAME/hook/evaluate HTTP endpoint. - The "jobset" registry is a directory that maps jobset names to their monitor. In addition, =E2=80=98cuirass register=E2=80=99 implements a =E2=80=9Cbridg= e=E2=80=9D: it listens for connections on a Unix-domain socket, which allows =E2=80=98cuirass web=E2= =80=99 to send it commands. This is used for instance to implement the /jobset/NAME/hook/evaluate HTTP endpoint, which lets users trigger an evaluation of the given jobset. With this actor split, one could implement another =E2=80=9Cbuilder=E2=80= =9D backend, for instance one that talks to a Build Coordinator process. It=E2=80=99s a= lso obviously close to the programming model encouraged by Goblins, which should make eventual migration easier (and when that happens, if Goblins provides an inter-process transport, we=E2=80=99ll no longer need the custom =E2=80=9Cbridge=E2=80=9D and we=E2=80=99ll be able to move actors from one = process to another much more easily.) Feedback welcome! Ludo=E2=80=99. =C2=B9 https://lists.gnu.org/archive/html/guix-devel/2023-07/msg00096.html =C2=B2 https://git.savannah.gnu.org/cgit/guix/guix-cuirass.git/tree/TODO?id= =3D9b227abd29b15e7e25c54a71c524e7b26252a270 =C2=B3 https://git.savannah.gnu.org/cgit/guix/guix-cuirass.git/log/?h=3Dwip= -actors