From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QNQaCGXvMmYpUwEAqHPOHw:P1 (envelope-from ) for ; Thu, 02 May 2024 03:41:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QNQaCGXvMmYpUwEAqHPOHw (envelope-from ) for ; Thu, 02 May 2024 03:41:57 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=redscript.org header.s=mail1-rsa header.b=mlBxBpEN; dkim=fail ("headers eddsa verify failed") header.d=redscript.org header.s=mail1-ed25519 header.b=lUW+0c4M; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-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=1714614117; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=5Bw0pKlxhrwSm6GYD8Ujznt4VEKMOUVGayXEwFMTJJg=; b=p/D6P7Yew6Mr205RwJNCz1FtUVzhrfVd8T9+SNlIWALIJjS2zX5LKB8jqxmCatmQALM9u5 Y9m35soZy6iVQBe6Y4wVs9cXPTcqfg+WwVQGVJyMOsfUon2tt5f34C+TTSUNIxobtHtGGO ne9xStDKowKN6K7ogj5evLlW+oROj+tTkg9BimnrRZbC4946GoywySrHUK42d15aLA9iLs la7xZI5OoEA6mEEWuWwbnRxUQ6hZaM3ne3PyP6/xsoom3ujMWQcK1EMNzGikM/O7UdRcHx 4gAiWjOgDhfADeyIjqpsAGyCkZmDNUIHKLuf3QPUb2Pkq5T6JeuvDN3ig7Fd+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=redscript.org header.s=mail1-rsa header.b=mlBxBpEN; dkim=fail ("headers eddsa verify failed") header.d=redscript.org header.s=mail1-ed25519 header.b=lUW+0c4M; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714614117; a=rsa-sha256; cv=none; b=lUOalenJiwO99mOqMtLmy9waI/xSaf0qvjDckac15HCNXBEkRcmG1J2hxaZ+MAHoBzxRav NN+XY4oJk0o7kuUARHRookNJWpyDkmFJU2m4JsxEgCTsSeKyDjEcIybI3jbVKqzWsTKkf3 S3R570D7XpN7knHOyk+YedWQWstBCMqy4EzlhaM8k72Gbu5Y+7krSsbnkAwdlPL+8IC91j XXJR0+0Szzvut3ygsEk76IuMEjUqBDfQ71xsTdCw1PCSc1kwGrLjOot0gSjMrQ8PLibldi wfx3fvQ8iI1XTM2vnTZbYzx5iwbeqZlsM+bgqljR2yrEXCPOC6IGMnNseMZvqw== 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 D4AB86F80B for ; Thu, 2 May 2024 03:41:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2LSA-0004cE-Th; Wed, 01 May 2024 21:41:42 -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 1s2LS9-0004b6-8o for guix-patches@gnu.org; Wed, 01 May 2024 21:41:41 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s2LS9-00081w-0K for guix-patches@gnu.org; Wed, 01 May 2024 21:41:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2LSU-0006m2-FE for guix-patches@gnu.org; Wed, 01 May 2024 21:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70285] [PATCH v2 2/3] services: cuirass: Add new configuration options. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 02 May 2024 01:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70285 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70285@debbugs.gnu.org Cc: Ahmad Draidi , ludo@gnu.org Received: via spool by 70285-submit@debbugs.gnu.org id=B70285.171461408826013 (code B ref 70285); Thu, 02 May 2024 01:42:02 +0000 Received: (at 70285) by debbugs.gnu.org; 2 May 2024 01:41:28 +0000 Received: from localhost ([127.0.0.1]:40527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2LRi-0006lO-QM for submit@debbugs.gnu.org; Wed, 01 May 2024 21:41:28 -0400 Received: from rainycloud.ext.redscript.org ([103.105.48.212]:51152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2LRg-0006l5-VW for 70285@debbugs.gnu.org; Wed, 01 May 2024 21:41:13 -0400 Received: from localhost.localdomain (bba-2-49-155-173.alshamil.net.ae [2.49.155.173]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by rainycloud.ext.redscript.org (Postfix) with ESMTPSA id 1EB995D54; Thu, 2 May 2024 01:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1714614045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5Bw0pKlxhrwSm6GYD8Ujznt4VEKMOUVGayXEwFMTJJg=; b=mlBxBpENLkF9+mHJz5Co+iSbNGFrIOsMNDTKEgy4+u6TbycbusHO04VwsB8nuPt9GzOtQf UkPh+Lp4+dQgZ1nh0soVyCPYRgvzWLCNFouoVxfnvjfWsue1KijdK6DfuXPl3/iocN4pQS vWZeZ2pkqE8HYptszbHrca/q98aTc3bxa5MQruhFcofJ3V6K2fFXkha7KekvduDptV0l5z kLS8ZsAPsvK1ajh3B2EPNdrhPfSpHFujFctWYz/U4j0aNcxaQUw9UBSLstVSHkUM5CD+I/ u4BQaXMrEYE6Qm7g8hiTz4dKWCnMf8tufN+WiHmBt9eEDSpWqwfKN3a2t/XPVYiqNA6tfP yUut4CR5XWDsqNW6wTqJ8qNGoWUxn4ToHyFqrShuittwnGNT5VLM01+FryyHnrWBDqGYdV WqIAQARj1zscsTo+6Dlt86WldcX1lGEFhZ4bMOGruTc0Ny2Cm08I9KqfWKzDhxgFWEwQ8j HOVeBNfa6f1b+BYL9zHv0/XWEwg67MQUL1aMQlC4SpvJW1czULL/i724Qi31nP+7DLOpCn PINN/eVaQMOz+NSvzrYnvckTFRGg3iHfXlJ9zD2sor0gDgEyjVgXl8JtUoQDCBm3NLHJg3 W7p+ZpmGxwVq3Tkip8UViWKSu0HaDUbVqhewbQ7nC6BdsWSOXPmQE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1714614045; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5Bw0pKlxhrwSm6GYD8Ujznt4VEKMOUVGayXEwFMTJJg=; b=lUW+0c4MUw3NvTZOmd67vb/YtsEIrjPdqfOaGYO19IVXrcAXWIkP24L0pBpW0RNsJQLs9o 86YwLo8zKS3eimCQ== Date: Thu, 2 May 2024 05:37:48 +0400 Message-ID: <1fc81fcc6ca5915993d08f889a6ed7735d785d0d.1714613869.git.a.r.draidi@redscript.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ahmad Draidi X-ACL-Warn: , Ahmad Draidi via Guix-patches From: Ahmad Draidi via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.39 X-Spam-Score: -6.39 X-Migadu-Queue-Id: D4AB86F80B X-Migadu-Scanner: mx13.migadu.com X-TUID: ThaALujkmCTC * gnu/services/cuirass.scm (): Add ttl and threads fields. (cuirass-shepherd-service): Handle the new options. * doc/guix.texi (Continuous Integration): Document them. Change-Id: I4387fbd7bf6766f4a54801f35c7ed82ce4eb9645 --- v2 changes: Switch ttl field to seconds integer doc/guix.texi | 6 ++++++ gnu/services/cuirass.scm | 17 +++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index f93fe7e474..1f97a2796e 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -34427,6 +34427,12 @@ Continuous Integration Number of seconds between the poll of the repositories followed by the Cuirass jobs. +@item @code{ttl} (default: @code{2592000}) +Duration to keep build results' GC roots alive, in seconds. + +@item @code{threads} (default: @code{#f}) +Number of kernel threads to use for Cuirass. The default value should be appropriate for most cases. + @item @code{parameters} (default: @code{#f}) Read parameters from the given @var{parameters} file. The supported parameters are described here (@pxref{Parameters,,, cuirass, Cuirass}). diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm index b09d5601d4..f430c38a69 100644 --- a/gnu/services/cuirass.scm +++ b/gnu/services/cuirass.scm @@ -101,6 +101,10 @@ (define-record-type* (default "cuirass")) (interval cuirass-configuration-interval ;integer (seconds) (default 60)) + (ttl cuirass-configuration-ttl ;integer + (default 2592000)) + (threads cuirass-configuration-threads ;integer + (default #f)) (parameters cuirass-configuration-parameters ;string (default #f)) (remote-server cuirass-configuration-remote-server @@ -133,6 +137,8 @@ (define (cuirass-shepherd-service config) (user (cuirass-configuration-user config)) (group (cuirass-configuration-group config)) (interval (cuirass-configuration-interval config)) + (ttl (cuirass-configuration-ttl config)) + (threads (cuirass-configuration-threads config)) (parameters (cuirass-configuration-parameters config)) (remote-server (cuirass-configuration-remote-server config)) (database (cuirass-configuration-database config)) @@ -159,6 +165,17 @@ (define (cuirass-shepherd-service config) "--specifications" #$config-file "--database" #$database "--interval" #$(number->string interval) + #$@(if ttl + (list (string-append + "--ttl=" + (number->string ttl) + "s")) + '()) + #$@(if threads + (list (string-append + "--threads=" + (number->string threads))) + '()) #$@(if parameters (list (string-append "--parameters=" -- 2.41.0