GNU bug report logs - #61324
[PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.

Previous Next

Package: guix-patches;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Mon, 6 Feb 2023 15:56:01 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Christopher Baines <mail <at> cbaines.net>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#61324: closed ([PATCH] download: Add bordeaux.guix.gnu.org as
 a content addressed mirror.)
Date: Sat, 11 Feb 2023 21:06:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 11 Feb 2023 21:04:46 +0000
with message-id <87ilg752wh.fsf <at> cbaines.net>
and subject line Re: bug#61324: [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.
has caused the debbugs.gnu.org bug report #61324,
regarding [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed mirror.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
61324: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=61324
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Baines <mail <at> cbaines.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] download: Add bordeaux.guix.gnu.org as a content addressed
 mirror.
Date: Mon,  6 Feb 2023 16:55:05 +0100
bordeaux.guix.gnu.org now provides access to some files by hash. This is done
through the nar-herder finding a nar produced by a fixed output derivation for
the requested content, and then providing the content stored inside that nar.

I've put this new entry at the start of the list, as I think it's more likely
to have content than the others. Because bordeaux.guix.gnu.org stores nars
indefinitely, my suspicion is that it's going to be able to fulfil more
requests than ci.guix.gnu.org, which relies on the file requested being in the
store (so the now frequent garbage collection is going to limit the files
available).

* guix/download.scm (%content-addressed-mirrors): Add bordeaux.guix.gnu.org.
---
 guix/download.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/guix/download.scm b/guix/download.scm
index fff54d7a17..561a893eee 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -387,7 +387,11 @@ (define (guix-publish host)
                         file "/" (symbol->string algo) "/"
                         (bytevector->nix-base32-string hash))))
 
-     (list (guix-publish "ci.guix.gnu.org")
+     (list (guix-publish
+            ;; bordeaux.guix.gnu.org uses the nar-herder rather than guix
+            ;; publish, but it supports the same style of requests
+            "bordeaux.guix.gnu.org")
+           (guix-publish "ci.guix.gnu.org")
            (lambda (file algo hash)
              ;; 'tarballs.nixos.org' supports several algorithms.
              (string-append "https://tarballs.nixos.org/"
-- 
2.38.1



[Message part 3 (message/rfc822, inline)]
From: Christopher Baines <mail <at> cbaines.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 61324-done <at> debbugs.gnu.org
Subject: Re: bug#61324: [PATCH] download: Add bordeaux.guix.gnu.org as a
 content addressed mirror.
Date: Sat, 11 Feb 2023 21:04:46 +0000
[Message part 4 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

>> * guix/download.scm (%content-addressed-mirrors): Add bordeaux.guix.gnu.org.
>> ---
>>  guix/download.scm | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>>
>> diff --git a/guix/download.scm b/guix/download.scm
>> index fff54d7a17..561a893eee 100644
>> --- a/guix/download.scm
>> +++ b/guix/download.scm
>> @@ -387,7 +387,11 @@ (define (guix-publish host)
>>                          file "/" (symbol->string algo) "/"
>>                          (bytevector->nix-base32-string hash))))
>>  
>> -     (list (guix-publish "ci.guix.gnu.org")
>> +     (list (guix-publish
>> +            ;; bordeaux.guix.gnu.org uses the nar-herder rather than guix
>> +            ;; publish, but it supports the same style of requests
>> +            "bordeaux.guix.gnu.org")
>> +           (guix-publish "ci.guix.gnu.org")
>
> LGTM, thanks!

Awesome, I've gone ahead and pushed this as
7d0ebe040d80adcf143656e754a82b569243568c.

Thanks,

Chris
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 97 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.