From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id 6BUOEnf7XWVXZAAAauVa8A:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 22 Nov 2023 14:00:39 +0100
Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id 6BUOEnf7XWVXZAAAauVa8A
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 22 Nov 2023 14:00:39 +0100
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 E25BD67EB9
	for <larch@yhetil.org>; Wed, 22 Nov 2023 14:00:38 +0100 (CET)
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="LhLi/VFw";
	spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none)
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1700658039;
	h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:cc:mime-version:mime-version:
	 content-type:content-type:
	 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=dOZ3jbw+h+F/Dnxm5Tc+po224qPHyu2O+nU8on3+UEM=;
	b=bx0NVZy5mvrl3FFGdbNg6a0Cr/LBk40SHBFjgYLd6uh42Pf15hTNZmtGRL7rEbt1+uYZWY
	SFdNhqGHR5Ealh//38wIvmnVAmP2o7hHXLBA4iJrSl5F4su+gDQ8nPzcPYOTgMadOvhDNj
	+27N8/2TD7kI9qix4DhSbcTCiA5goV3iAVVyyGDurh4eyVHJE5W2qNoDuJqB4kuyh0F385
	V+xNEvd3dVLVPmB8UYUnwHdV9oLH5Ham/gpxr348Ym59/GK1tWTIFfIexCoubjoi7bnBqf
	P8jaMQnpuc0TbEBoOTgX+90O1fu9bqnhv4/GcqA3O+v+4EKq0tA++DtgVaCRvg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="LhLi/VFw";
	spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org";
	dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none)
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700658039; a=rsa-sha256; cv=none;
	b=c0/EmA5k34mhZU5IB69orwYvnlPKPKupE1PjL0AtWBG6+PfpxOQFSTtS6yQJB0tZ4HrPUD
	/YSE+0S6vb1hlR0povCIMqqp0Q66Lxcb7WDvDP+J+N1rAKpJ3055tASYASsPohCO1Zy0cC
	ps+GTGz+aVc2uggbZ9gx7TLmOYelaHosudt6clzTwsnA+siZ2feSeDpbpB9aJDS5RI77EM
	BTRsqrx+jZF6jsJwuE2URTOKmNsr4ns37DUSLX9OXTQh2TxKRRZ7Y41Ajiq+ttXCo0jfB1
	klEjGnmjEzuJbrODj8mi7XegDsmH96EYSOrNTqMRbFVweIlOJKKbBbyTpoXdsw==
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces@gnu.org>)
	id 1r5lrl-0000jF-Oj; Wed, 22 Nov 2023 06:58:01 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1r5lrk-0000ia-4F
 for bug-guix@gnu.org; Wed, 22 Nov 2023 06:58:00 -0500
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1r5lri-0002Ky-Od
 for bug-guix@gnu.org; Wed, 22 Nov 2023 06:57:58 -0500
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1r5lrl-00035W-Mn
 for bug-guix@gnu.org; Wed, 22 Nov 2023 06:58:01 -0500
X-Loop: help-debbugs@gnu.org
Subject: bug#65720: Guile-Git-managed checkouts grow way too much
Resent-From: Simon Tournier <zimon.toutoune@gmail.com>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Wed, 22 Nov 2023 11:58:01 +0000
Resent-Message-ID: <handler.65720.B65720.170065425111827@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 65720
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Cc: Josselin Poiret <dev@jpoiret.xyz>, Christopher Baines <mail@cbaines.net>,
 65720@debbugs.gnu.org, 66650@debbugs.gnu.org
Received: via spool by 65720-submit@debbugs.gnu.org id=B65720.170065425111827
 (code B ref 65720); Wed, 22 Nov 2023 11:58:01 +0000
Received: (at 65720) by debbugs.gnu.org; 22 Nov 2023 11:57:31 +0000
Received: from localhost ([127.0.0.1]:58137 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1r5lrG-00034c-RX
 for submit@debbugs.gnu.org; Wed, 22 Nov 2023 06:57:31 -0500
Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:40975)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@gmail.com>)
 id 1r5lrD-00034I-By; Wed, 22 Nov 2023 06:57:28 -0500
Received: by mail-wm1-x32d.google.com with SMTP id
 5b1f17b1804b1-408363c2918so7060895e9.0; 
 Wed, 22 Nov 2023 03:57:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1700654238; x=1701259038; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=dOZ3jbw+h+F/Dnxm5Tc+po224qPHyu2O+nU8on3+UEM=;
 b=LhLi/VFwMxItHl7cBd8eRK0y8/70OB5G4/zixHzY/wy1+jqXK7TpSkq0nZuVC232Y4
 JGVagwBZMH/0ymMYNdG73cnsOa0j4sqTyEMuTG4NIcpDakj+0FAVumzxZEbgMeZ6Smhb
 wVaohdJNUqWT6h9r4ThdS1n131jxaCVPQzhnfoXTj9C3vmPwO1ZtlRvT49q1GtG2RVBC
 bV/SX+xvuAbc0PIarXRLOEzgllpy19r41ywCW/rr0m0PIHdJ1ZBENGjD+ddU0ZdaLUs+
 SP98BeA/tdYAUXc2UN4b+4KGqUcLJDXu1SMGEZIpsZaUhxiRVnGasBZm8/CH7jBwhada
 iKww==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1700654238; x=1701259038;
 h=content-transfer-encoding:mime-version:user-agent:message-id
 :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=dOZ3jbw+h+F/Dnxm5Tc+po224qPHyu2O+nU8on3+UEM=;
 b=ERKCa1i/12vc+ugaHO6N2w3fbBduts60Dk1w+kt3C4eVY76G4bd9QTR2ZO/01J39CZ
 CNRaouwv0Xv/J6+w1KA8BCOSbN71MdKso3gPhMRiLuj6U1ubC+ZJGQ4b8aAuNIekTyi6
 hzyQpEbFUdKejH2OmLDbQ3VwUrGD9Rl+uhnaTBHUeouMJymPgb5rDIuiwfpguUB9Iw0M
 rmhs3J+hE0cIowC9LpThWBdziJwvpBrwo+zTk1Zre+WS7OaZVGbIMcHIXuS2MYlS87Nb
 fioZXldJhl0LQPn+7NUurd1aT+MkmGOhAUDcofmA78J2pQTYO4WcmAEFjQYTQoLEB8XW
 sb3w==
X-Gm-Message-State: AOJu0YzJUf3yJq0aLcoVuC1omT9KGYqmtci8MxxTiG+cnvAbr5gIUqFi
 f5ECQ5cNrH4CLtgYQbaINboXKbwsE3U=
X-Google-Smtp-Source: AGHT+IFlRPsJJM81tcYy8kyNkmToAEmfISRsI1/v/tKT29cOZh6jY+BRhKq87dh9hC9IReMHZqKt9w==
X-Received: by 2002:a05:600c:3104:b0:40b:2aaf:e066 with SMTP id
 g4-20020a05600c310400b0040b2aafe066mr1638948wmo.2.1700654238007; 
 Wed, 22 Nov 2023 03:57:18 -0800 (PST)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id
 s21-20020a05600c45d500b0040a48430837sm2000668wmo.13.2023.11.22.03.57.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 22 Nov 2023 03:57:17 -0800 (PST)
From: Simon Tournier <zimon.toutoune@gmail.com>
References: <87jzswsrlt.fsf@gnu.org>
 <f588bb38b4b9fdaff29dd8af8c62aa3c55902f7c.1697818202.git.ludo@gnu.org>
 <87sf5swc3j.fsf@cbaines.net> <87o7fwae0q.fsf@gnu.org>
 <87v8a4el3a.fsf@gmail.com> <87h6ll28yh.fsf@gnu.org>
 <CAJ3okZ2-W_Me-Gao44+LeKGCm7dhb8VkLfC2doL4NE9VO88HYg@mail.gmail.com>
 <874jhem3z0.fsf@gnu.org>
Date: Wed, 22 Nov 2023 12:57:15 +0100
In-Reply-To: <874jhem3z0.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s
 message of "Wed, 22 Nov 2023 12:17:55 +0100")
Message-ID: <86ttpehug4.fsf_-_@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (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: bug-guix@gnu.org
List-Id: Bug reports for GNU Guix <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=subscribe>
Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org
Sender: bug-guix-bounces+larch=yhetil.org@gnu.org
X-Migadu-Flow: FLOW_IN
X-Migadu-Country: US
X-Migadu-Spam-Score: 5.11
X-Spam-Score: 5.11
X-Migadu-Queue-Id: E25BD67EB9
X-Migadu-Scanner: mx13.migadu.com
X-TUID: kRFk5dGK1ipQ

Hi Ludo,

Thanks for explaining.

On Wed, 22 Nov 2023 at 12:17, Ludovic Court=C3=A8s <ludo@gnu.org> wrote:

>                                   it=E2=80=99s rarely going to fire.

[...]

>> Let move it elsewhere if I am really annoyed.
>
> :-/

Sorry, I poorly worded my last comment. :-)

Somehow I was expressing: my view probably falls into the =E2=80=9CPremature
optimization is the root of all evil=E2=80=9D category.  Other said, I have=
 no
objection and I will revisit the issue when I will be on fire, if I am,
or annoyed for real.

Cheers,
simon

PS:

Aside this patch:

>> So, somehow when 'maybe-run-git-gc' is called appears to me
>> "unpredictable".  But anyway. :-)
>
> Sure, but the way I see it, that=E2=80=99s the nature of caches.

What makes cache unpredictable is their current state.  However, this
does not imply that *all* the actions modifying from one state to
another must also be triggered in unpredictable moment.

For instance, I choose when I wash family=E2=80=99s clothes and the wash-ma=
chine
does not start by itself when the unpredictable stack of family=E2=80=99s d=
irty
clothes is enough.  Because, maybe today it=E2=80=99s rainy so drying is
difficult and tomorrow will be sunny so it will be a better moment. :-)

For me, =E2=80=9Cguix gc=E2=80=9D should be the driver for cleaning all the=
 various Guix
caches.  Anyway. :-D