From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MMjnLuGNmV9xCQAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 15:27:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oE6vKuGNmV+zQQAAB5/wlQ (envelope-from ) for ; Wed, 28 Oct 2020 15:27:29 +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 4304F940149 for ; Wed, 28 Oct 2020 15:27:29 +0000 (UTC) Received: from localhost ([::1]:60604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXnMG-0004BK-5A for larch@yhetil.org; Wed, 28 Oct 2020 11:27:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXnLq-00041v-I0 for guix-patches@gnu.org; Wed, 28 Oct 2020 11:27:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXnLq-0007ie-60 for guix-patches@gnu.org; Wed, 28 Oct 2020 11:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXnLq-0002hI-2y for guix-patches@gnu.org; Wed, 28 Oct 2020 11:27:02 -0400 Subject: bug#44193: [PATCH 1/1] publish: Add '--cache-bypass-threshold'. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 28 Oct 2020 15:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44193-done@debbugs.gnu.org Mail-Followup-To: 44193@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 44193-done@debbugs.gnu.org id=D44193.160389881810353 (code D ref 44193); Wed, 28 Oct 2020 15:27:01 +0000 Received: (at 44193-done) by debbugs.gnu.org; 28 Oct 2020 15:26:58 +0000 Received: from localhost ([127.0.0.1]:50169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXnLm-0002gv-Br for submit@debbugs.gnu.org; Wed, 28 Oct 2020 11:26:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47022) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXnLj-0002ge-Vv for 44193-done@debbugs.gnu.org; Wed, 28 Oct 2020 11:26:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46292) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXnLe-0007hA-Oq for 44193-done@debbugs.gnu.org; Wed, 28 Oct 2020 11:26:50 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44672 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kXnLe-0004Yl-3Q for 44193-done@debbugs.gnu.org; Wed, 28 Oct 2020 11:26:50 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20201024144929.4529-1-ludo@gnu.org> <20201024145416.4691-1-ludo@gnu.org> Date: Wed, 28 Oct 2020 16:26:48 +0100 In-Reply-To: <20201024145416.4691-1-ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 24 Oct 2020 16:54:16 +0200") Message-ID: <87v9euz807.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) 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=pass (policy=none) header.from=gnu.org; 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: -1.51 X-TUID: LkJrntdpuMkf Ludovic Court=C3=A8s skribis: > * guix/scripts/publish.scm (show-help, %options): Add > '--cache-bypass-threshold'. > (low-compression): New procedure. > (cache-bypass-threshold): New parameter. > (bypass-cache?): New procedure. > (render-narinfo/cached): Call 'render-narinfo' when 'bypass-cache?' > returns true. > (render-nar/cached): Call 'render-nar' when 'bypass-cache?' returns > true. > (guix-publish): Parameterize 'cache-bypass-threshold'. > * tests/publish.scm ("with cache", "with cache, lzip + gzip") > ("with cache, uncompressed"): Pass '--cache-bypass-threshold=3D0'. > ("with cache, vanishing item"): Expect 200 for RESPONSE. > ("with cache, cache bypass"): New test. > --- > doc/guix.texi | 24 +++++++++++- > guix/scripts/publish.scm | 85 ++++++++++++++++++++++++++++++++-------- > tests/publish.scm | 43 ++++++++++++++++++-- > 3 files changed, 130 insertions(+), 22 deletions(-) Pushed as ecaa102a58ad3ab0b42e04a3d10d7c761c05ec98. Ludo=E2=80=99.