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 oHuyCfvW9l/BHwAA0tVLHw (envelope-from ) for ; Thu, 07 Jan 2021 09:40:11 +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 EH96BfvW9l8/EwAAB5/wlQ (envelope-from ) for ; Thu, 07 Jan 2021 09:40:11 +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 9F6C694060F for ; Thu, 7 Jan 2021 09:40:10 +0000 (UTC) Received: from localhost ([::1]:37828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxRm5-0001Vc-JE for larch@yhetil.org; Thu, 07 Jan 2021 04:40:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxRly-0001VI-IC for guix-patches@gnu.org; Thu, 07 Jan 2021 04:40:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34901) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxRly-0003Hx-B7 for guix-patches@gnu.org; Thu, 07 Jan 2021 04:40:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kxRly-0004sV-5R for guix-patches@gnu.org; Thu, 07 Jan 2021 04:40:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45327] [PATCH] git: Periodically delete least-recently-used cached checkouts. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Jan 2021 09:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45327 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Received: via spool by 45327-submit@debbugs.gnu.org id=B45327.161001235418686 (code B ref 45327); Thu, 07 Jan 2021 09:40:02 +0000 Received: (at 45327) by debbugs.gnu.org; 7 Jan 2021 09:39:14 +0000 Received: from localhost ([127.0.0.1]:46447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxRlC-0004rJ-IA for submit@debbugs.gnu.org; Thu, 07 Jan 2021 04:39:14 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kxRlB-0004r5-4E for 45327@debbugs.gnu.org; Thu, 07 Jan 2021 04:39:13 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52853) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxRl4-0002rU-BN; Thu, 07 Jan 2021 04:39:07 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44106 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kxRl3-0000MV-Po; Thu, 07 Jan 2021 04:39:06 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20201219220630.24605-1-ludo@gnu.org> <86a6u7bgle.fsf@gmail.com> <87blem2ceq.fsf@gnu.org> <86wnx97try.fsf@gmail.com> Date: Thu, 07 Jan 2021 10:39:03 +0100 In-Reply-To: <86wnx97try.fsf@gmail.com> (zimoun's message of "Tue, 22 Dec 2020 16:19:29 +0100") Message-ID: <87v9c9hyrs.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-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: , Cc: 45327@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.84 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-Migadu-Queue-Id: 9F6C694060F X-Spam-Score: -2.84 X-Migadu-Scanner: scn0.migadu.com X-TUID: +npl7H/Tt32x Hi, zimoun skribis: > However, I still do not like the =E2=80=9Cautomatic=E2=80=9D part. Perso= nally, I would > prefer something like: > > guix pull --delete-generations=3D2m > > deleting the cache older than 2 months, in addition to the old profiles. > Because, with your patch, if I want to change the expiration or the > period, it is not convenient: via channels.scm, maybe. There=E2=80=99s a difference though: generations are things you manage by yourself as a user, whereas this cache is really just an internal cache. Of course it becomes a user-visible feature if it gets in the way, and I agree we should avoid that. But it also gets in the way by not being vacuumed, hence this patch. > Sometime, I am one or two months off (vacation). And I am sure to > forget to tweak the channels.scm when I am back. Well, I have 3-4 > channels.scm files; for example I am not pulling guix-past each time I > pull. Therefore, I should have these 3-4 channels.scm duplicated with > the expiration+period tweaked for when I am back from long breaks. > > Well, if the automatic is the default, a way to turn off could be nice, > at the CLI level or even globally. IMHO. Yeah, maybe we can have a more conservative default together with an environment variable to tweak it. Thanks, Ludo=E2=80=99.