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 #130 received at 52555@debbugs.gnu.org (full text, mbox, reply):

Received: (at 52555) by debbugs.gnu.org; 2 Feb 2022 15:37:00 +0000
From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 02 10:37:00 2022
Received: from localhost ([127.0.0.1]:53109 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1nFHgq-0005l5-GQ
	for submit@debbugs.gnu.org; Wed, 02 Feb 2022 10:37:00 -0500
Received: from andre.telenet-ops.be ([195.130.132.53]:35326)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@telenet.be>) id 1nFHgo-0005ks-O9
 for 52555@debbugs.gnu.org; Wed, 02 Feb 2022 10:36:59 -0500
Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be
 ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a])
 by andre.telenet-ops.be with bizsmtp
 id qFcw2600R4UW6Th01FcweW; Wed, 02 Feb 2022 16:36:57 +0100
Message-ID: <26bc58741a60c972226cd47832b27de955e4a57a.camel@telenet.be>
Subject: Re: [bug#52555] [RFC PATCH v2 3/5] Add (guix eris).
From: Maxime Devos <maximedevos@telenet.be>
To: pukkamustard <pukkamustard@posteo.net>
Date: Wed, 02 Feb 2022 16:36:56 +0100
In-Reply-To: <86sft1h7wh.fsf@posteo.net>
References: <20220125192201.7582-1-pukkamustard@posteo.net>
 <20220125192201.7582-4-pukkamustard@posteo.net>
 <0b977ae15a49b051c04922d234149a8e4762404f.camel@telenet.be>
 <86sft1h7wh.fsf@posteo.net>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-Ye3tASNbF2cSg/wmoG5a"
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=1643816217; bh=0Lel4E0xIIF7zO0TlpU8F7P9LVPeRH9JSCNKMfBDEu0=;
 h=Subject:From:To:Cc:Date:In-Reply-To:References;
 b=a8Q+gJvXY8G2+ZN9IaAj/RUrZn5iv3AgGEH5i6nZndwnXV+J7iq31wfC5CmxTLTn7
 f4yAI5kUtfdoy91JwIUhYC3XQSRMifc4GLf9zfsZo/WQCzoX8S/eSSY3kdWMMVcL4l
 J4kZZbOz6Pu3mVIKINe/mgoK1SXlTZRUJNwMHCyUp3nT9eOp/NFIe6zoo+mPR4X/8G
 taeVs7y4USILwrY1QtG0JgSyxweLFnp6lto9rqBwilkofdrcE9gMvLfybJ4meuDcx+
 aGc0+Gum7xqqehUV7jvXAoLgAY0QP3mBLFabSGRMq/5SvNDKxKwGSvcmSSEYa7ub2c
 jxvf5nNtfqWFg==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 52555
Cc: ~pukkamustard/eris@lists.sr.ht, 52555@debbugs.gnu.org
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 wo 02-02-2022 om 10:28 [+0000]:
> > pukkamustard schreef op di 25-01-2022 om 19:21 [+0000]:
> > > +(define (ipfs-daemon-alive?)
> > > +  "Attempt to connect to the IPFS daemon. Returns #t if the
> > > daemon is alive
> > > +and #f else."
> > > +  (with-exception-handler
> > > +      (const #f)
> > > +    (lambda _
> > > +      (let ((response _
> > > +                      (http-post (string-append (%ipfs-base-url)
> > > +                                               
> > > "/api/v0/version"))))
> > > +        (equal? 200 (response-code response))))
> > > +    #:unwind? #t))
> > 
> > This should preferably only be catching exceptions indicating that
> > the daemon is down (exceptions indicating 404s, or system-errors
> > indicating network errors, ...).
> 
> Yes, I guess it could be checked a bit finer. But at the end if an
> exception happens then the IPFS daemon is probably not reachable,
> right?
> If we don't care about the reason why it is not reachable then why
> bother with catching finer grained exceptions?

The exception could be caused by, say:

  * an unbound variable
  * wrong arity
  * type error
  * stack overflow
  * prompt tag does not exist in current environment
  * out of memory

Except for the last one, these causes are all bugs and hence shouldn't
be surpressed.  Granted, this is a bit unlikely since this use of
'http-post' is very simple, but it's far from impossible for
(web client) to have a bug.

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 11:43:42 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.