From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id eI4+Bu4vFGasCwEA62LTzQ:P1 (envelope-from ) for ; Mon, 08 Apr 2024 19:57:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eI4+Bu4vFGasCwEA62LTzQ (envelope-from ) for ; Mon, 08 Apr 2024 19:57:02 +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=ghciWt4u; dkim=fail ("headers eddsa verify failed") header.d=redscript.org header.s=mail1-ed25519 header.b=27m8fVRB; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712599022; 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=JFv/aSK+ImodFm4LJiN/PQ4rU70hudvKNky215BJahQ=; b=CWLQFmDm08lrDKuX0P959IvWscLVdrXSY49JkNqhLoTUpLRuSP8DyVVHwWVrmUtvkkGNfs 22oYKcBtzD6w5xgpQf/idfITyOsTG7Mrg9cTGRNNAmmrm0cU1sj7MCNxlpuPFL1oF772en 0vvwJ9oAupc/RaACmiqKLYSn+x2SEN+hv4klioSNAwv0kd7qXEtTrX/T3CPOeX3WaXnO59 V1VAg4t37QSZ3r3LRmHEyWcDalXQqogMfzBElI+v0bJP5vPmVijgy8Pw56bVM6LYRF4Wpd 2f/W2TNrNWZuTN1vOHj6cgSOFmuZaP30n/ucjzE08FHpXu1KEaPdgS63D9HaGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=redscript.org header.s=mail1-rsa header.b=ghciWt4u; dkim=fail ("headers eddsa verify failed") header.d=redscript.org header.s=mail1-ed25519 header.b=27m8fVRB; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712599022; a=rsa-sha256; cv=none; b=HegXdeVdnk9f3/B5pOfgehE2K7oAOGvr7/E2suhVeQOeOlzVDhySNL/poiLgGLF3fLur6k H27m7KGhTAGBqHODeFIK8m+dFydEQd/Tbi6hWL2yZDOEJNPV6ybMwtonL5yTRTw3rZiii/ 1oLI7tJb0pPvQvgHU3PMwDlwKuYF04M8i1VS/5rSMfwteaED7OkMgj94RAUPdhoxiySWpB /SedOrPEu5CbJzLQ+nOKGQd6XGOju5G4bn6aVXUK18KuP+hbllR1/PshXSR2U6tYsKFQXb Cvwwqxv87h3Sc6TaNiom/RyTOOuR1Y0AXrpfT6YnTN2O7Qm+ndHoAjNsPHvlDQ== 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 D6111FD7F for ; Mon, 08 Apr 2024 19:57:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rttDp-0005fY-Jq; Mon, 08 Apr 2024 13:55:57 -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 1rttDn-0005dA-Sm for guix-patches@gnu.org; Mon, 08 Apr 2024 13:55:55 -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 1rttDn-0004qI-Bd for guix-patches@gnu.org; Mon, 08 Apr 2024 13:55:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rttDu-0001MT-R4 for guix-patches@gnu.org; Mon, 08 Apr 2024 13:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70285] [PATCH 2/3] services: cuirass: Add new configuration options. Resent-From: Ahmad Draidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Apr 2024 17:56: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 Received: via spool by 70285-submit@debbugs.gnu.org id=B70285.17125989395134 (code B ref 70285); Mon, 08 Apr 2024 17:56:02 +0000 Received: (at 70285) by debbugs.gnu.org; 8 Apr 2024 17:55:39 +0000 Received: from localhost ([127.0.0.1]:47582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rttDW-0001Kf-Jz for submit@debbugs.gnu.org; Mon, 08 Apr 2024 13:55:39 -0400 Received: from rainycloud.ext.redscript.org ([2402:28c0:4:1081::1]:46318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rttDT-0001Jy-Mz for 70285@debbugs.gnu.org; Mon, 08 Apr 2024 13:55:36 -0400 Received: from localhost.localdomain (bba-86-99-90-22.alshamil.net.ae [86.99.90.22]) (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 01EAA7ADC; Mon, 8 Apr 2024 17:55:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-rsa; t=1712598922; 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=JFv/aSK+ImodFm4LJiN/PQ4rU70hudvKNky215BJahQ=; b=ghciWt4uKdK+bUE2WMw1Y0P2SiE68os4dz+HOBZ2E8egjeMNo/SbnzCpPs7M3rq9OBeEo2 2bcvf2CrroCUrM4gp2du/CHI/20u/Nn1WUjT7s/8OhjnkA/Q7dOjzZMiAD0na9mMn1v15e 8AFFFaw6DeeeR0WEZ+Yg3CTRHKQnfS0TmEHO5NH/Pb3Q3YdQnkxmgJfYL6IVgHN6xARWVh XTGz2MPDaNaG5SSnzpbo708OViTTTDJx7lcvz81KzPrxFkRUV/gCgG9J0ByH9wPkJU/seF i5748WKOzUE1DqUN0hF0FvWPBIrSvAPumwbeMw4kX61lT4tdoTVBbu/bNJKUruTqfo5Ndc h34mEp8wwnsJgML2N7oYAD/RFAaIRoyJtTRtcytTOl2GyjkLn0KVrZs7Ow+WuS2Xvebrwt 0mAit8DYpsMRCAN7pfpLufmjtTL+RjWw9rbZFEaX8U1a1QzN+/0eUR/ogNKFc59DjeF5vr y06QyPDzy8qnASYNNPyqc8SXI/LjUIB8fmWSFuFrXihb8t8RIGbUZFMEtp+R1kdlhKQfOx dXsPNBPKm4KZAVsDQYkmBGycI4ajXfXCeCNQZnp2rz6KXmp208JPw8WE7Rpo87a8dcHeoc 8bwHFu9SRRbVy63UpyoD9qHDVFAXrUJsgOpb9S+4GykTc+NaXZjtc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=redscript.org; s=mail1-ed25519; t=1712598922; 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=JFv/aSK+ImodFm4LJiN/PQ4rU70hudvKNky215BJahQ=; b=27m8fVRBtd5pmy1gPLhEeAD+IV1GTiP93BP7m6G1B2kNl+sQiFsdLDxLLd5naMYiTBBzrG dgUgWOBog473uPCQ== Date: Mon, 8 Apr 2024 21:54:13 +0400 Message-ID: <7ccac410c5f7d0c9b27c828bc088c485f22884a8.1712576504.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.37 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -6.37 X-Migadu-Queue-Id: D6111FD7F X-TUID: VjP/alFsYpnE * 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 --- doc/guix.texi | 6 ++++++ gnu/services/cuirass.scm | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index 77e17cb69c..90a6135882 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -34368,6 +34368,12 @@ Continuous Integration Number of seconds between the poll of the repositories followed by the Cuirass jobs. +@item @code{ttl} (default: @code{"30d"}) +Duration to keep build results' GC roots alive. + +@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..ac086dedb9 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 ;string + (default "30d")) + (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,12 @@ (define (cuirass-shepherd-service config) "--specifications" #$config-file "--database" #$database "--interval" #$(number->string interval) + "--ttl" #$ttl + #$@(if threads + (list (string-append + "--threads=" + (number->string threads))) + '()) #$@(if parameters (list (string-append "--parameters=" -- 2.41.0