GNU bug report logs

#52555 [RFC PATCH 0/3] Decentralized substitute distribution with ERIS

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #64 received at 52555@debbugs.gnu.org (full text, mbox, reply):

Received: (at 52555) by debbugs.gnu.org; 29 Jan 2022 21:28:14 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 29 16:28:14 2022
Received: from localhost ([127.0.0.1]:35002 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1nDvGY-00054U-3g
	for submit@debbugs.gnu.org; Sat, 29 Jan 2022 16:28:14 -0500
Received: from michel.telenet-ops.be ([195.130.137.88]:39892)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@telenet.be>) id 1nDvGW-00054L-Jx
 for 52555@debbugs.gnu.org; Sat, 29 Jan 2022 16:28:13 -0500
Received: from [172.20.10.9] ([188.188.235.49])
 by michel.telenet-ops.be with bizsmtp
 id olUB2600814dU1006lUBMz; Sat, 29 Jan 2022 22:28:11 +0100
Message-ID: <c6841903c177f934c7fc9d42a270907dbba59554.camel@telenet.be>
Subject: Re: [bug#52555] [RFC PATCH v2 4/5] publish: Add support for storing
 ERIS encoded blocks to IPFS.
From: Maxime Devos <maximedevos@telenet.be>
To: pukkamustard <pukkamustard@posteo.net>, 52555@debbugs.gnu.org
Date: Sat, 29 Jan 2022 22:28:11 +0100
In-Reply-To: <20220125192201.7582-5-pukkamustard@posteo.net>
References: <20220125192201.7582-1-pukkamustard@posteo.net>
 <20220125192201.7582-5-pukkamustard@posteo.net>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-nOz2PAhFArEiy8P3W2cH"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1643491692; bh=YTY4raj8PJNbyQie4baDJiV44aNVM2rNHqRBfjNBDSI=;
 h=Subject:From:To:Cc:Date:In-Reply-To:References;
 b=ixnjhc9PGkZdyE64CdZ53zLCVkfP1pUzaryAH3zcRvaR6c5pcbpw7HB4W2fIAXPap
 ro2DsPajCLR+nduX40Uf4Iex7e7J06h1m2NCncpaT3myabzgWHsepTFTS1w3CyZT47
 38wIrTOx5wfl8UvXBtigb7OwVxKpFPo2C8uhjFZqbkz8Pk3PStHx82ga+dVXZoWAZ4
 DAT9qiPYTW6jhqkhaFkhIwsK/bJkVJZo/P9kRCg8HE8281x6NtHhl09QSwms5hVxAj
 HXu5qlYWN3naIUYlpDrJK9ByR1egvAu4oy8o2r6e2Kqe/+rbyeFAZ+4TJ6V6X/3u8P
 Ta7yIK0+SOKQA==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 52555
Cc: ~pukkamustard/eris@lists.sr.ht
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
[Message part 1 (text/plain, inline)]
pukkamustard schreef op di 25-01-2022 om 19:22 [+0000]:
> +                    (let ((eris-urn _
> +                                    (eris-encode port
> +                                                 #:block-size
> +                                                 %eris-block-size-large
> +                                                 #:block-reducer
> +                                                 guix-eris-block-reducer)))
> +                      (uri->string eris-urn))))))))

IIUC (and quite probably I don't, because I've only being reading
things cursorly), eris-encode returns #false when the IPFS daemon is
down (because then guix-eris-block-reducer returns #false).

In that case, (uri->string eris-urn) = (uri->string #false) would
throw an exception:

scheme@(guile-user)> ((@ (web uri) uri->string) #false)
ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1
(expecting struct): #f

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> ,bt
In web/uri.scm:
   336:17  1 (uri->string #f #:include-fragment? _)
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

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

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Sep 8 07:17:06 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.