From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 05:05:55 2022 Received: (at submit) by debbugs.gnu.org; 20 Jan 2022 10:05:56 +0000 Received: from localhost ([127.0.0.1]:56431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAUKJ-0005RB-Jq for submit@debbugs.gnu.org; Thu, 20 Jan 2022 05:05:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:49166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAUKI-0005R3-1S for submit@debbugs.gnu.org; Thu, 20 Jan 2022 05:05:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAUKF-000871-R8 for guix-patches@gnu.org; Thu, 20 Jan 2022 05:05:53 -0500 Received: from mout01.posteo.de ([185.67.36.65]:40149) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAUJx-0007J3-5w for guix-patches@gnu.org; Thu, 20 Jan 2022 05:05:34 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3D55024002A for ; Thu, 20 Jan 2022 11:05:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642673129; bh=wt2cafVNTPnVGceylTU2AF0QRyUxvv0iUU5i5XFPAgs=; h=From:To:Cc:Subject:Date:From; b=VEiJd0OQXwAoUIFFU+wNbUFSalkJPrStyCVsr+2SVw3vVQBYQ+8+pqZa4JvGnX2cq gFPJpJHE8YCCte141Uj5ww93ZHKj4BRixEdSyoBU2TmHlCoNNHhoS0p57jK5YNvsqy //CA54TVdnu6mQl99GCCRoK6f4Fc2GehK7IqTRzDJpz8BfLHrD9+IBtQcjlvK9zlzs 3o/vRjHAPbfna0kHbej2XWdW0ayMWrd1ak36KZIeGVX7OoAfbB7kaUADvZI8bI+h+n s/RtNlLNRGM0Kkdxmg7cX/Sy0fa3FDW0LO4yJGYGkQPyU2NBtjAypbw9ZxlXX3sH+6 CFSwS/8Klktlw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JfdRq3hLDz9rxM; Thu, 20 Jan 2022 11:05:27 +0100 (CET) From: Guillaume Le Vaillant To: guix-patches@gnu.org Subject: [PATCH] services: guix-publish: Add negative-ttl parameter. Date: Thu, 20 Jan 2022 10:04:18 +0000 Message-Id: <20220120100418.8490-1-glv@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=glv@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Guillaume Le Vaillant 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 (--) * gnu/services/base.scm (guix-publish-configuration): Add 'negative-ttl' field. (guix-publish-sheperd-service): Process it. * doc/guix.texi (Base Services)[guix-publish-service-type]: Add item for negative-ttl. --- doc/guix.texi | 7 ++++++- gnu/services/base.scm | 15 ++++++++++++--- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 28eaf8338c..912a8e3c5a 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -69,7 +69,7 @@ Copyright @copyright{} 2019 Ivan Petkov@* Copyright @copyright{} 2019 Jakob L. Kreuze@* Copyright @copyright{} 2019 Kyle Andrews@* Copyright @copyright{} 2019 Alex Griffin@* -Copyright @copyright{} 2019, 2020, 2021 Guillaume Le Vaillant@* +Copyright @copyright{} 2019, 2020, 2021, 2022 Guillaume Le Vaillant@* Copyright @copyright{} 2020 Liliana Marie Prikler@* Copyright @copyright{} 2019, 2020, 2021, 2022 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* @@ -16888,6 +16888,11 @@ cache miss. @xref{Invoking guix publish, When it is an integer, this denotes the @dfn{time-to-live} in seconds of the published archives. @xref{Invoking guix publish, @option{--ttl}}, for more information. + +@item @code{negative-ttl} (default: @code{#f}) +When it is an integer, this denotes the @dfn{time-to-live} in +seconds for the negative lookups. @xref{Invoking guix publish, +@option{--negative-ttl}}, for more information. @end table @end deftp diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 345e0ca0f7..fbd01e84d6 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2021 qblade ;;; Copyright © 2021 Hui Lu ;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2022 Guillaume Le Vaillant ;;; ;;; This file is part of GNU Guix. ;;; @@ -196,6 +197,7 @@ (define-module (gnu services base) guix-publish-configuration-nar-path guix-publish-configuration-cache guix-publish-configuration-ttl + guix-publish-configuration-negative-ttl guix-publish-service-type gpm-configuration @@ -1828,7 +1830,9 @@ (define-record-type* (workers guix-publish-configuration-workers ;#f | integer (default #f)) (ttl guix-publish-configuration-ttl ;#f | integer - (default #f))) + (default #f)) + (negative-ttl guix-publish-configuration-negative-ttl ;#f | integer + (default #f))) (define-deprecated (guix-publish-configuration-compression-level config) "Return a compression level, the old way." @@ -1863,8 +1867,8 @@ (define (config->compression-options config) lst)))) (match-record config - (guix port host nar-path cache workers ttl cache-bypass-threshold - advertise?) + (guix port host nar-path cache workers ttl negative-ttl + cache-bypass-threshold advertise?) (list (shepherd-service (provision '(guix-publish)) (requirement `(user-processes @@ -1890,6 +1894,11 @@ (define (config->compression-options config) #$(number->string ttl) "s")) #~()) + #$@(if negative-ttl + #~((string-append "--negative-ttl=" + #$(number->string negative-ttl) + "s")) + #~()) #$@(if cache #~((string-append "--cache=" #$cache) #$(string-append -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 08:23:03 2022 Received: (at 53384) by debbugs.gnu.org; 20 Jan 2022 13:23:03 +0000 Received: from localhost ([127.0.0.1]:56746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAXP5-0005Fl-6g for submit@debbugs.gnu.org; Thu, 20 Jan 2022 08:23:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAXP3-0005F1-Gn for 53384@debbugs.gnu.org; Thu, 20 Jan 2022 08:23:01 -0500 Received: from [2001:470:142:3::e] (port=41350 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAXOy-0001Ue-6E; Thu, 20 Jan 2022 08:22:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=puMFR/A2j/hrAgvNPZcU7waQ6pG4yVEtSSdG0C4+Wnw=; b=WwUJ9aOlJkPKWvTv9ToU wUf0LWfgVM3xi0qdWNy0oHw1k2WptDMXOxevGtH9FnGglRU/yli9+VQhIwdYa1Qx3Km2RT1BdPr4n XU5Ud/Z5PGXXa+vUNgeMbT+WmPxKJGRF7tAkNrgkOuc3iKB21KyZKi6BeU+qCS2TCZmlF66IH+Pca ep/1zcCtmuG8khgtQFRw6+9B5tvB1JrbW8nYa2yeaIO0ltRb1rrsXQXzqXdOO1qsUFJLGctnI4WsR VhYYYo2wff8aFZib9Oy47GZtOd3zdeO2Pa1qVZ48J+o8TLA1aHndCFxC3DjvnatY26mLSLpncPeA6 3kHCgo0xaK8BQA==; Received: from [2a01:e0a:19b:d9a0:2f3b:16f2:b776:3ef9] (port=36454 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAXOy-0008ME-DZ; Thu, 20 Jan 2022 08:22:56 -0500 From: Mathieu Othacehe To: Guillaume Le Vaillant Subject: Re: bug#53384: [PATCH] services: guix-publish: Add negative-ttl parameter. References: <20220120100418.8490-1-glv@posteo.net> Date: Thu, 20 Jan 2022 14:22:54 +0100 In-Reply-To: <20220120100418.8490-1-glv@posteo.net> (Guillaume Le Vaillant's message of "Thu, 20 Jan 2022 10:04:18 +0000") Message-ID: <87y23a35jl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53384 Cc: 53384@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: -3.3 (---) Hello Guillaume, > * gnu/services/base.scm (guix-publish-configuration): Add 'negative-ttl' > field. > (guix-publish-sheperd-service): Process it. > * doc/guix.texi (Base Services)[guix-publish-service-type]: Add item for > negative-ttl. This looks fine, feel free to go ahead. Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 20 08:59:18 2022 Received: (at 53384-done) by debbugs.gnu.org; 20 Jan 2022 13:59:18 +0000 Received: from localhost ([127.0.0.1]:56885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAXyA-0002Lg-Kh for submit@debbugs.gnu.org; Thu, 20 Jan 2022 08:59:18 -0500 Received: from mout02.posteo.de ([185.67.36.66]:49713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAXy9-0002LT-Cu for 53384-done@debbugs.gnu.org; Thu, 20 Jan 2022 08:59:18 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 629D8240103 for <53384-done@debbugs.gnu.org>; Thu, 20 Jan 2022 14:59:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1642687151; bh=RewHINFSwcP6Wigpdtm7QbmgFw7LLGXM4CxCrBYwmTs=; h=From:To:Cc:Subject:Date:From; b=RT7Q3kioDlIx2oP79l3JUGxTood9HisvmDkmm1Fr8e0zvfyQJH7FNTitUz/k6yUSG jFUeedv4ZW+/KvQuBxyDEJ8ZrlFQeUzWHcHoZU5ZlUARsyXTH2I4WtYSP0ar94ReEO PQHk8j89k5YeD99rkcJRHRuuEc0FChsaDH20JqSnmCIfjwAl+sg38EuNg015hgcyAY sUiJQohWwv/BbDvNaiQXrCgx+B5wpUgaWhlepZmoOtqNmcYBzma6LM3mVTAItY2tj8 UnCCS0T1F/z3WJMqlpSPo/6fVb/GQCLJm2DF6krYdwDS1CrBdMf68jkY2jj7ChFpaX dW9n2hlmXIwzA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JfkdV3STpz6tmW; Thu, 20 Jan 2022 14:59:10 +0100 (CET) References: <20220120100418.8490-1-glv@posteo.net> <87y23a35jl.fsf@gnu.org> From: Guillaume Le Vaillant To: Mathieu Othacehe Subject: Re: bug#53384: [PATCH] services: guix-publish: Add negative-ttl parameter. Date: Thu, 20 Jan 2022 13:58:13 +0000 In-reply-to: <87y23a35jl.fsf@gnu.org> Message-ID: <874k5yld8y.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53384-done Cc: 53384-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: -3.3 (---) --=-=-= Content-Type: text/plain Mathieu Othacehe skribis: > Hello Guillaume, > >> * gnu/services/base.scm (guix-publish-configuration): Add 'negative-ttl' >> field. >> (guix-publish-sheperd-service): Process it. >> * doc/guix.texi (Base Services)[guix-publish-service-type]: Add item for >> negative-ttl. > > This looks fine, feel free to go ahead. > > Thanks, > > Mathieu Thanks for the review. Pushed as 1aa269d1d74a7b53ed705def5a8db79fbccb5ce3. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYelqrQ8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j+BnQD/YbAp2zDkTPD55ZEnttqzVxkZsICWLWBcH/L8 wtKX9/QA/3mAsVK6RrEypkzauVc+peZemf1UFaWqJTHg8K/SUtkv =vM4l -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 20 02:10:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Feb 2022 12:24:14 +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