From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id QBsLIdNocWISZQAAbAwnHQ (envelope-from ) for ; Tue, 03 May 2022 19:39:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eAHyINNocWIXMAAAauVa8A (envelope-from ) for ; Tue, 03 May 2022 19:39:31 +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 1554A153BF for ; Tue, 3 May 2022 19:39:31 +0200 (CEST) Received: from localhost ([::1]:58760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlwUk-00058N-88 for larch@yhetil.org; Tue, 03 May 2022 13:39:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlwUI-0004za-FL for guix-patches@gnu.org; Tue, 03 May 2022 13:39:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47080) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlwUI-0000Gw-6q for guix-patches@gnu.org; Tue, 03 May 2022 13:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nlwUI-00018f-3E for guix-patches@gnu.org; Tue, 03 May 2022 13:39: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 17:39: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 Cc: 55242@debbugs.gnu.org Received: via spool by 55242-submit@debbugs.gnu.org id=B55242.16515995034325 (code B ref 55242); Tue, 03 May 2022 17:39:02 +0000 Received: (at 55242) by debbugs.gnu.org; 3 May 2022 17:38:23 +0000 Received: from localhost ([127.0.0.1]:40977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlwTf-00017h-8o for submit@debbugs.gnu.org; Tue, 03 May 2022 13:38:23 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:45886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nlwTd-00017Z-NE for 55242@debbugs.gnu.org; Tue, 03 May 2022 13:38:22 -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 SHeL270024UW6Th06HeLpF; Tue, 03 May 2022 19:38:20 +0200 Message-ID: <76510182d505978ad41f5bff88bf7eee7c289558.camel@telenet.be> From: Maxime Devos Date: Tue, 03 May 2022 19:38:19 +0200 In-Reply-To: References: <20220503114301.9524-2-attila@lendvai.name> <20220503114301.9524-7-attila@lendvai.name> <7974a00256e3ee153507f77d6b0a405473e9bbc4.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-O4iBwFxcPPomiWsIm2et" 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=1651599500; bh=cqvgvTVY7HwmcdQB+vQfgfzilneY0VsBYKiKCtrD+9c=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=YosGJ4fbPzzSuaQ8WCtYz0fKpNlmHpjO2wrzVzaLtev0IIDUQiFNmFeTfP6bw0seI TP2cEGjNFA8EhOiw2wiuSHkdSxh1Fmsic/GXjdIkEIqMczM/QiUEXTEdi3AWQ4GiDE 4eZcejJedMghnXbcqshFOCrdo6S1QT7Fd3ckTStRo/6EwaG985PR/8CLxxpPpYn33N MdioObi4MQeNXp7TWZhI5/KgAn0kcEILUtGoyYgwlsNrtDF85PclkKbB3ir6/HvyDc d2rpOKAS3G0q7/l+QRevju2Tnm4AxNqxJG+mntBuMeRF3UU/CEaS1Ai9qcOv2XBxjx nEQGuD3R5cImA== 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=1651599571; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=cqvgvTVY7HwmcdQB+vQfgfzilneY0VsBYKiKCtrD+9c=; b=D/qYUb3XCtM04rwar9fe9TfKC48lEX+K6hpq6HUAKuMo6q4JJQy2ZmZaPW1cSw8/Ec8WgN Nfo30/xArKwLGkYZxdCAbkdrFiGIr3Bjsj7k2z/JEkOLEdMUoFzbldal6uQqAFbrUpqLWL KZFUzIrK94p85bSqh22Kwo/dNSSRB8BoXHC4XJ3xYaPVTcoUmhRO8K5zPHPz0MQ367M7AJ 7FSPDo/uMfqdiBWaiAvJYifsBvsEajfXK/nu4/YOa9B5V+q5yRv9RxR/7qeHTJzZ50kfnW y4RYd4eXmp/sn7u//462MfUX2Y/QO92m4yScZPdpLzpYI8rh5P/UoshQt13rMQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651599571; a=rsa-sha256; cv=none; b=H4cICq/Q/+fR6WHhrtFZBgcdEzXVbQVtgRUc7iJJ9PqvBLmjHmBUd/brkPPR/3GtTmv5Bz VyP7lJ/6jpi2JqyXpAuB71dKEbWySeWLLyki9Fjc+N7SyiOlUOKU6oQ2lXQ6/lyxed712r Ia91xiWBMbmwF3vCHNja9CBZ/bjUZMBon6VwFz2ZH76v7XbW6p9hCKW7ptm4KvQkQWfbeN ZxgYD+4S+h2SnNlP50v7jpFF8DMVDJhfTDnyOqJfTSSk9gGhRbHVq07U5f5fT/exzQ0uYb uxBLypeh/1huRCG/GzZr3qZ1GwvRvO7N0ixLkofVhtgHVTn5JfumSLvHP9k3NA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=YosGJ4fb; 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: 3.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=YosGJ4fb; 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: 1554A153BF X-Spam-Score: 3.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: irphnWzGexwx --=-O4iBwFxcPPomiWsIm2et Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attila Lendvai schreef op di 03-05-2022 om 17:00 [+0000]: > a possible scenario: a large import can take several minutes. > if there's a transient network error, then this way it may finish > with 99% of the packages, and the rest can be restarted by hand after > inspecting the log output. Catching (presumably) transient network errors and reporting them with 'report-network-error' and the like: no problem. > another scenario is that the importer is simply buggy, ... but if there's some kind of bug,=C2=A0why not just report and fix it? > and the user gets 99% of the packages imported, and has to do only > one package by hand. If the bug is fixed, then no packages need to be done by hand and other people will benefit as well. Whereas if it's only for 1% and the backtrace only happens for recursive import and not for non-recursive or manual import, then I'd think that the chance that the user actually reports or fixes the bug decreases a lot. Greetings, Maxime. --=-O4iBwFxcPPomiWsIm2et 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+4iGRcl7gUCYnFoixccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7oCtAP44EseNJfpxRQyMFCDiGdUGPdKS d+kjKCQOEvB0VdLomAD/QPt1XZ8+ZdIPgOBkZf77VpdWu8ZbEtIOzS4foNy31g0= =xsbZ -----END PGP SIGNATURE----- --=-O4iBwFxcPPomiWsIm2et--