From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OK0cA35acWIqSQEAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 18:38:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2OAcAn5acWKZOgAAG6o9tA (envelope-from ) for ; Tue, 03 May 2022 18:38:22 +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 A07DF28CBB for ; Tue, 3 May 2022 18:38:21 +0200 (CEST) Received: from localhost ([::1]:39248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlvXY-0000wi-DD for larch@yhetil.org; Tue, 03 May 2022 12:38:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlvWZ-0008Ox-VQ for guix-patches@gnu.org; Tue, 03 May 2022 12:37:21 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlvWI-0002Bg-Dw for guix-patches@gnu.org; Tue, 03 May 2022 12:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlvWI-0005bO-Bb for guix-patches@gnu.org; Tue, 03 May 2022 12:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 03 May 2022 16:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55242 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Attila Lendvai , 55242@debbugs.gnu.org Received: via spool by 55242-submit@debbugs.gnu.org id=B55242.165159579721492 (code B ref 55242); Tue, 03 May 2022 16:37:02 +0000 Received: (at 55242) by debbugs.gnu.org; 3 May 2022 16:36:37 +0000 Received: from localhost ([127.0.0.1]:40842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlvVt-0005aa-FX for submit@debbugs.gnu.org; Tue, 03 May 2022 12:36:37 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:34540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlvVr-0005aQ-Gr for 55242@debbugs.gnu.org; Tue, 03 May 2022 12:36:36 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by albert.telenet-ops.be with bizsmtp id SGca270014UW6Th06GcaV1; Tue, 03 May 2022 18:36:34 +0200 Message-ID: <724a0beb49e2854b5efe1a5069f11911b616cad9.camel@telenet.be> From: Maxime Devos Date: Tue, 03 May 2022 18:36:31 +0200 In-Reply-To: <20220503114301.9524-7-attila@lendvai.name> References: <20220503114301.9524-2-attila@lendvai.name> <20220503114301.9524-7-attila@lendvai.name> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-MFLCwRFDzsOWSl83oeah" 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=1651595794; bh=VPYN3fWrKH7Xh1NgijmBXKV+/7Ne5HxZJg6uhCFhv+A=; h=Subject:From:To:Date:In-Reply-To:References; b=Q6C1D58vDYt3rt5NWfT/cxUqUHoOuvCRt0VaWe7uj8ZKeIkhf1ct9zZxWyLTAaUjj XYnuDsxrWMU+QIzco56bvB4NdWV+3wIU2Ag6QwY8snb61TynHwKp3csT33fxOF0NG3 VWs/IhZKKQKFd7W95TGrNciDQju+5I1oU62GNpnZcE/WxTkKwS1JnLxjqj7eslv4pE lInz2wcdghHCurot7jr59+dRI53oyVHTZBoCLSOMdb745MwFnnsz/ehTVWZ7xh612T YULfhwQAY9k+F0Vp8UOQgJzsv9j2m/Q993/mLZuPHdGzzjSFf5qjX+rV6p3oNlYSNv wa1Cq39dr96Kw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651595901; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=VPYN3fWrKH7Xh1NgijmBXKV+/7Ne5HxZJg6uhCFhv+A=; b=feQHrAIUXGB4EDfJl9iKhK2N0yliCQShKjtv1INA+Cs/tv2cK3s6Bla+bpaq6/I/lQLIYT c/ijNhLl5GNu95QOGhXo4GTEaIUKtkD8cbLv+0tIsPjNzSEdO06eE+8YDoB9ycb1GawnsB BQCWs16ABmO0pP6xaEfBFtsytbmgh4/rQH4fONDKhL0HrLLZegMGmNNNp55/VZk/z7UIh+ xyB9cSftns5WfuwqYI+YXxm4kIEahoknyaWE21QXFF/x7TKqHRSRrOlrmnlArQIqZW7pJg Gd6NFy/iV0aqN6Kxy+MpAo20WmgzFKd1CCoFTTB85tWlFOPWI/WSMpKfNLSNaA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651595901; a=rsa-sha256; cv=none; b=KgKm1kxvRl/0reuPLWT/L7pH0m3rGaQTOw7wedn6X1x0Jmr0j65B6EEGjaLTTTE6slzTT3 b7BFQny+sWa8/dEf23bWklxFdg3/0f6sd9YKzIcIfu1FGGdyy6orTJD+dBU7bSileatPfx xf/lhNmoRt0gX2EIh7YTcG0UfYH29yCrKgoRXtAF6eYqZ0LHpiCO1/yzAAkxsifHbw1FLA KPB/ehQ8aTmFRBW8XbWFODsWcSqO8V6Pa4LljgY9R+rloxihm4mFs/9XEjxJi8tJMieH5M 0lPm+ckYyZsSb7KwkiCAwh5kegg6EdgiW78hLwoAzO2Gz5Wi8cznhIt+iWvMYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Q6C1D58v; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Q6C1D58v; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A07DF28CBB X-Spam-Score: 2.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: rYfSXb277l1C --=-MFLCwRFDzsOWSl83oeah Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op di 03-05-2022 om 13:42 [+0200]: > * guix/import/go.scm (go-module->guix-package*): Catch exceptions and ret= ry in > case of network errors. Add ability to enable printing a full backtrace w= hen > debugging. > (go-module->guix-package): Tolerate the inability to fetch the synopsis a= nd > description. Ok, but couldn't this be done more generally, for all importers using HTTP? E.g., could we have a variant 'http-fetch/retrying' of 'http- fetch' that automatically retries a number of times? Then the retrying functionality could almost trivially be used in other HTTP-using importers as well. Greetings, Maxime. --=-MFLCwRFDzsOWSl83oeah Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYnFaDxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jaAAQC3g7zni1ahy4ss9v4jnTwxHhYU JckLdSa6gKTTY+BsywD5ATKyWslMVKLID30o/t4mRGv6VxO1N+oVwxa1QN4BUgI= =8yVk -----END PGP SIGNATURE----- --=-MFLCwRFDzsOWSl83oeah--