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:403:478a::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id AOTZFEIi+WQVSgEAauVa8A:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 07 Sep 2023 03:07:14 +0200
Received: from aspmx1.migadu.com ([2001:41d0:403:478a::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id AOTZFEIi+WQVSgEAauVa8A
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Thu, 07 Sep 2023 03:07:14 +0200
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 6283264527
	for <larch@yhetil.org>; Thu,  7 Sep 2023 03:07:09 +0200 (CEST)
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=m6oBDHt7;
	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=1694048829;
	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=hMZsS0KKScfuGIZ10c6RNyODKqltKAVWn2apINlpol0=;
	b=EvhuiPLLi4x2u10YPGkS0x9uNrze95X2RudVtww5GAlOLSoBE4tZgS/qKUgiQJh+aQqpOn
	AcRa5fa35PeDmKU+OnOUSSLGdGN90OKojCns5Vh4TMz6py9G9lAx/pFhB2raoiM4IH8J2S
	YF6R5o8CS1Agjhqpa0XZRFIzXPhu/KVW3dAUD82y78aH0R5U+i8AejAhpfGG1HRhrQmUsZ
	dkMUtlHkpmKrkZ+CDb1BTOhv7W+V1m2CdXNh1DC38hUVofPWlIWZqcpLAs8uc3dIh5mZZ6
	MeuXkhAsuviGtmVnaTPwnoxFAi2/DYmBewMzVEvgVRseeBwtdmAidjFVaMErxA==
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694048829; a=rsa-sha256; cv=none;
	b=G3FMXf4OaBL8/1M2oN/KBSbpz5T/305JolqeV3j+I31pLYQI+NEqimTQae2UikonUEqAfX
	0bj/pMsiiovyrR9ag/XvKSpg44SeMPlxlfqBkpoDb5Ci96tTqqKLsyeG2rNzbV5Q/KSQQK
	BNFjvC+5KLWUvBKu7eH36bHJbts5XPb44E8qtW+NAQxnw0bZvc4smStBHiV/GIUSx6XtFU
	9aYojW80fqh5u/TDOlZIdZl9Sfp/uXdJxl5I6Wi9W3+XpDME04GU4TblCplL7S0gDACxih
	cffkdNB3lJZJC1oR40li1KRrkWtyXNjj3Dfmlx5Spcmu1u2w+T8yI3ZCUgMaaw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=m6oBDHt7;
	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)
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 1qe37t-0007k8-GW; Wed, 06 Sep 2023 20:44:05 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qe37q-0007fu-0g
 for bug-guix@gnu.org; Wed, 06 Sep 2023 20:44:02 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1qe37p-0002p3-OK
 for bug-guix@gnu.org; Wed, 06 Sep 2023 20:44:01 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1qe37q-0004ht-Hf
 for bug-guix@gnu.org; Wed, 06 Sep 2023 20:44:02 -0400
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: Thu, 07 Sep 2023 00:44:02 +0000
Resent-Message-ID: <handler.65720.B65720.169404742318053@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>,
 Josselin Poiret <dev@jpoiret.xyz>
Cc: 65720@debbugs.gnu.org
Received: via spool by 65720-submit@debbugs.gnu.org id=B65720.169404742318053
 (code B ref 65720); Thu, 07 Sep 2023 00:44:02 +0000
Received: (at 65720) by debbugs.gnu.org; 7 Sep 2023 00:43:43 +0000
Received: from localhost ([127.0.0.1]:38163 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1qe37X-0004h6-9x
 for submit@debbugs.gnu.org; Wed, 06 Sep 2023 20:43:43 -0400
Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:41365)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@gmail.com>) id 1qe37T-0004gS-N9
 for 65720@debbugs.gnu.org; Wed, 06 Sep 2023 20:43:40 -0400
Received: by mail-wm1-x32e.google.com with SMTP id
 5b1f17b1804b1-401e6ce2d9fso1031245e9.1
 for <65720@debbugs.gnu.org>; Wed, 06 Sep 2023 17:43:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1694047412; x=1694652212; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=hMZsS0KKScfuGIZ10c6RNyODKqltKAVWn2apINlpol0=;
 b=m6oBDHt7M6ajRVArZs+ixrIWhJfiwlY6vh8olqLpIeyp/XvBV9+5YhyDY/1ia3XHc5
 IR84Z6seEgfUM7zKjFVAS8RRUMt/195EXH9Sac1d1lsl1ToZzwk3gPjwsCJZY4M+ihEW
 HokuC/bNeS2bhGEGVrZu6OobxIsUrrSWkYOQNaEQ4rG96LhbFaY7ScW6WUURAGs6NcQ4
 nhKokFqLnExUlbct+JRQaEOpZb8TzS2eSdsIL2Ozhdbi4pGU62P2H1n0IoKBKpyISY00
 Ays54sQPCT4JJLo+1Kax5MVCUxX2jbJc7oVRrD1paROP5w6LwU+9Dyz2LeoDENdJzJ77
 DuUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1694047412; x=1694652212;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=hMZsS0KKScfuGIZ10c6RNyODKqltKAVWn2apINlpol0=;
 b=OAB6G43AoHpOSn89n+tnuxzBGwm9gCDRASrptNuoQ+Iotpbh19LnbzkeuBfF80PI+X
 wjBF7ePsirZy2tnP3PSZMni5y6mifkW/qgeogKolpt5CLy/NTpwxxouDfwtgMw7oJQBA
 KXkWinKwwofUmF8hB6KTdr3z2HgOgvROsaIgfN/r+Nm2Opn071BTxjHBl+fnZvFnmTGZ
 IrsznP8Sxo7E6CAnB/QhXvHo5sJaoTUHfv3mn0zIfFCZtncByR5ibrhsSi25vHpUSwMk
 Td6UqcSze8a7ffYn5EJ58IQJh1OMKOOfsNn2KKupQAm2K5tr+wa5pfb3wJmmn8OnjR4J
 hksA==
X-Gm-Message-State: AOJu0YxeMuZOHAQSl6+kev6NBHERiBEJKN+AaZWjvv5ROMTqxakDapLr
 BOtvTsd7M6Mdwcn5mVnqXQIS52vC3F0=
X-Google-Smtp-Source: AGHT+IGp9HK6PcjPwF89K2Tuc+A8RlkJd9zGQlDjGUfWgtXaB4XR4uhZs1naGE3781v4/pHe19yn0A==
X-Received: by 2002:a5d:4b87:0:b0:31a:ea18:c516 with SMTP id
 b7-20020a5d4b87000000b0031aea18c516mr13157801wrt.3.1694047412002; 
 Wed, 06 Sep 2023 17:43:32 -0700 (PDT)
Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e])
 by smtp.gmail.com with ESMTPSA id
 y1-20020adff6c1000000b00317a29af4b2sm21595830wrp.68.2023.09.06.17.43.31
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 06 Sep 2023 17:43:31 -0700 (PDT)
From: Simon Tournier <zimon.toutoune@gmail.com>
In-Reply-To: <87msy0ln4m.fsf@gnu.org>
References: <87bkejc7go.fsf@inria.fr> <87fs3tobju.fsf@gnu.org>
 <87tts9uj6x.fsf@jpoiret.xyz> <87msy0ln4m.fsf@gnu.org>
Date: Thu, 07 Sep 2023 02:41:54 +0200
Message-ID: <86il8mn7al.fsf@gmail.com>
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-Country: US
X-Migadu-Flow: FLOW_IN
X-Migadu-Scanner: mx0.migadu.com
X-Migadu-Spam-Score: -3.63
X-Spam-Score: -3.63
X-Migadu-Queue-Id: 6283264527
X-TUID: nQyd4WswrRPU

Hi,

On Tue, 05 Sep 2023 at 16:18, Ludovic Court=C3=A8s <ludo@gnu.org> wrote:

> It would also be pretty bad for closure size:
>
> --8<---------------cut here---------------start------------->8---
> $ guix size guile-git | tail -1
> total: 106.6 MiB
> $ guix size guile-git git-minimal | tail -1
> total: 169.8 MiB
> --8<---------------cut here---------------end--------------->8---
>
> It=E2=80=99s also not clear concretely how we=E2=80=99d add that dependen=
cy.  Try
> invoking =E2=80=98git=E2=80=99 from $PATH and print a warning if it doesn=
=E2=80=99t work?
> But then, what about applications like Cuirass and hpcguix-web?

I think we can rely on something like,

    guix shell -C git-minimal -- git gc

It would be invoked internally using the Scheme API for inferiors and
friends.  Doing so, it would add nothing to the closure size.

It appears to me safe to assume that this command can be run from any
Guix installation.  Since the Git GC would only be done once every X Git
fetches, the overhead would be much lower.

Hum, am I repeating myself [1]? :-)

And I would run this =E2=80=9Cgit gc=E2=80=9D via =E2=80=9Cguix gc=E2=80=9D=
, not via =E2=80=9Cguix pull=E2=80=9D.  Well,
I do not like all these automatic removals happening based on date
(last-expiry-cleanup) with some usual commands.  It always happens when
I do not want. ;-) Contrary to =E2=80=9Cguix gc=E2=80=9D.  Bah, another sto=
ry. :-)

Cheers,
simon


1: bug#65720: Guile-Git-managed checkouts grow way too much
Simon Tournier <zimon.toutoune@gmail.com>
Tue, 05 Sep 2023 20:59:07 +0200
id:86edjcqwec.fsf@gmail.com
https://issues.guix.gnu.org//65720
https://issues.guix.gnu.org/msgid/86edjcqwec.fsf@gmail.com
https://yhetil.org/guix/86edjcqwec.fsf@gmail.com