* bug#44382: Updating the guix package triggers a full Git clone of guix.git
@ 2020-11-02 0:50 Leo Famulari
2020-11-02 1:39 ` Leo Famulari
0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2020-11-02 0:50 UTC (permalink / raw)
To: 44382
While building the package of Guix itself [0], I noticed that Savannah
can't serve cheap "shallow clones" of the commits that these packages
are based on, so users will end up doing full clones (260M on
disk):
------
building /gnu/store/ma04vkl42jyr9p2nw5yzlzw61r5s2h3p-guix-1.1.0-31.1c6d985-checkout.drv...
guile: warning: failed to install locale
environment variable `PATH' set to `/gnu/store/378zjf2kgajcfd7mfr98jn5xyc5wa3qv-gzip-1.10/bin:/gnu/store/sf3rbvb6iqcphgm1afbplcs72hsywg25-tar-1.32/bin'
Initialized empty Git repository in /gnu/store/nwf2579gigc9xhnd7i82lpmja854l9fb-guix-1.1.0-31.1c6d985-checkout/.git/
error: Server does not allow request for unadvertised object 1c6d98533153bc8e0e36236e7fbcf1eb5e178d26
Failed to do a shallow fetch; retrying a full fetch...
------
I'm reaching out to the Savannah admins to ask them about this, and if
it has any unduly negative affects on the Savannah infrastructure.
Maybe these commits should be tagged?
[0]
That is, while building (@@ (gnu packages package-management) guix)
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#44382: Updating the guix package triggers a full Git clone of guix.git
2020-11-02 0:50 bug#44382: Updating the guix package triggers a full Git clone of guix.git Leo Famulari
@ 2020-11-02 1:39 ` Leo Famulari
2020-11-03 21:48 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2020-11-02 1:39 UTC (permalink / raw)
To: 44382
I poked around a bit and found that Savannah can serve shallow clones of
random commits, but does not allow shallow *fetching*, except for
special things such as Git tags. We fetch instead of clone.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#44382: Updating the guix package triggers a full Git clone of guix.git
2020-11-02 1:39 ` Leo Famulari
@ 2020-11-03 21:48 ` Ludovic Courtès
2020-11-05 17:11 ` Leo Famulari
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2020-11-03 21:48 UTC (permalink / raw)
To: Leo Famulari; +Cc: 44382
Hi,
Leo Famulari <leo@famulari.name> skribis:
> I poked around a bit and found that Savannah can serve shallow clones of
> random commits, but does not allow shallow *fetching*, except for
> special things such as Git tags. We fetch instead of clone.
Weird, what’s the difference between fetch and clone technically? I
believe commit 329dabe13bf98b899b907b45565434c5140804f5 moved to “fetch”
precisely so we could do shallow clones.
Ludo’.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#44382: Updating the guix package triggers a full Git clone of guix.git
2020-11-03 21:48 ` Ludovic Courtès
@ 2020-11-05 17:11 ` Leo Famulari
2020-11-30 3:24 ` Maxim Cournoyer
0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2020-11-05 17:11 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 44382
On Tue, Nov 03, 2020 at 10:48:25PM +0100, Ludovic Courtès wrote:
> Weird, what’s the difference between fetch and clone technically? I
> believe commit 329dabe13bf98b899b907b45565434c5140804f5 moved to “fetch”
> precisely so we could do shallow clones.
I don't know. It's definitely weird.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#44382: Updating the guix package triggers a full Git clone of guix.git
2020-11-05 17:11 ` Leo Famulari
@ 2020-11-30 3:24 ` Maxim Cournoyer
2021-12-29 22:45 ` Leo Famulari
0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2020-11-30 3:24 UTC (permalink / raw)
To: Leo Famulari; +Cc: 44382
Hello,
Leo Famulari <leo@famulari.name> writes:
> On Tue, Nov 03, 2020 at 10:48:25PM +0100, Ludovic Courtès wrote:
>> Weird, what’s the difference between fetch and clone technically? I
>> believe commit 329dabe13bf98b899b907b45565434c5140804f5 moved to “fetch”
>> precisely so we could do shallow clones.
>
> I don't know. It's definitely weird.
I had researched this before and the option the git server is missing is
uploadpack.allowAnySHA1InWant [0]. Unfortunately last I check in
#savannah their machine (vcs0) is using an older Trisquel stuck with git
v2.11.0, one patch version before when the above feature was introduced
(v2.11.1)! If I understood correctly, they have a new VM vcs2 but it
needs to be completely setup before they can switch.
Maxim
[0] https://github.com/git/git/commit/f8edeaa05d8623a9f6dad408237496c51101aad8
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#44382: Updating the guix package triggers a full Git clone of guix.git
2020-11-30 3:24 ` Maxim Cournoyer
@ 2021-12-29 22:45 ` Leo Famulari
2022-01-02 4:59 ` Maxim Cournoyer
0 siblings, 1 reply; 7+ messages in thread
From: Leo Famulari @ 2021-12-29 22:45 UTC (permalink / raw)
To: Maxim Cournoyer; +Cc: 44382
On Sun, Nov 29, 2020 at 10:24:18PM -0500, Maxim Cournoyer wrote:
> I had researched this before and the option the git server is missing is
> uploadpack.allowAnySHA1InWant [0]. Unfortunately last I check in
> #savannah their machine (vcs0) is using an older Trisquel stuck with git
> v2.11.0, one patch version before when the above feature was introduced
> (v2.11.1)! If I understood correctly, they have a new VM vcs2 but it
> needs to be completely setup before they can switch.
Savannah is now using Git version 2.17.1. I wonder if we can have this
option enabled now? I checked and the problem described by this bug
still exists.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#44382: Updating the guix package triggers a full Git clone of guix.git
2021-12-29 22:45 ` Leo Famulari
@ 2022-01-02 4:59 ` Maxim Cournoyer
0 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2022-01-02 4:59 UTC (permalink / raw)
To: Leo Famulari; +Cc: 44382
Hi Leo,
Leo Famulari <leo@famulari.name> writes:
> On Sun, Nov 29, 2020 at 10:24:18PM -0500, Maxim Cournoyer wrote:
>> I had researched this before and the option the git server is missing is
>> uploadpack.allowAnySHA1InWant [0]. Unfortunately last I check in
>> #savannah their machine (vcs0) is using an older Trisquel stuck with git
>> v2.11.0, one patch version before when the above feature was introduced
>> (v2.11.1)! If I understood correctly, they have a new VM vcs2 but it
>> needs to be completely setup before they can switch.
>
> Savannah is now using Git version 2.17.1. I wonder if we can have this
> option enabled now? I checked and the problem described by this bug
> still exists.
You'd want to check in #savannah, I think. It'd help reduce bandwidth
and hasten 'guix pull' a bit if it were now possible, I think.
Thanks!
Maxim
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-01-02 5:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-02 0:50 bug#44382: Updating the guix package triggers a full Git clone of guix.git Leo Famulari
2020-11-02 1:39 ` Leo Famulari
2020-11-03 21:48 ` Ludovic Courtès
2020-11-05 17:11 ` Leo Famulari
2020-11-30 3:24 ` Maxim Cournoyer
2021-12-29 22:45 ` Leo Famulari
2022-01-02 4:59 ` Maxim Cournoyer
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).