From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oK1DKLVPLWNnaAAAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 08:18:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IBtRKLVPLWNVcQAA9RJhRA (envelope-from ) for ; Fri, 23 Sep 2022 08:18:29 +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 59D4C3CEF0 for ; Fri, 23 Sep 2022 08:18:29 +0200 (CEST) Received: from localhost ([::1]:33622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obc15-0000Ay-Dx for larch@yhetil.org; Fri, 23 Sep 2022 02:18:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obbzj-000079-OO for bug-guix@gnu.org; Fri, 23 Sep 2022 02:17:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obbzj-0006FC-Bu for bug-guix@gnu.org; Fri, 23 Sep 2022 02:17:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obbzj-0007Br-6W for bug-guix@gnu.org; Fri, 23 Sep 2022 02:17:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57978: [PATCH 0/2] Retry nar downloads upon failure Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 23 Sep 2022 06:17:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57978 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: guix-patches@gnu.org Cc: Attila Lendvai , 57978@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= , zimoun Received: via spool by 57978-submit@debbugs.gnu.org id=B57978.166391380427596 (code B ref 57978); Fri, 23 Sep 2022 06:17:03 +0000 Received: (at 57978) by debbugs.gnu.org; 23 Sep 2022 06:16:44 +0000 Received: from localhost ([127.0.0.1]:39147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obbzQ-0007B2-5k for submit@debbugs.gnu.org; Fri, 23 Sep 2022 02:16:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obbzO-0007Ad-3Z for 57978@debbugs.gnu.org; Fri, 23 Sep 2022 02:16:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obbzH-0006AQ-F1; Fri, 23 Sep 2022 02:16:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=DCIXCZcW2ZUjK6C//gJkFKV1hUKRzIQPqxuBUyH+GxM=; b=jp44reQ8DQ+YeR4PeE7q 2cdtpKKHIVcQgqlWAPwSFTTVjP9QGpIkArNm2HgNADvRkgAjN5juuwVk6muq+4K3yMshim6UgNqZv 5KObsOrlXArxRY6N/sIugE9Dlh5iJrh9w6dX7u3yM4d1XQlkBSEN3D9K7PRBHnnkOXsPjMo3DW5HZ xTwP94Ux1oof5TIzl9R76Rl2ydzq/yHqRDVMzdL+DUqeBHpTxhrBJYyNggI3qva3jL8HQt0LdUiNp frzj3EPII5OhYAG1cqfTup4f14dCarzs2UCVRfjDIgP6Qy+qmvjZ9oMaV+0y1TmuY6nSQgeNG+mA3 gBfz94eDmpyVig==; Received: from [89.207.171.75] (port=47558 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obbzF-00071e-VB; Fri, 23 Sep 2022 02:16:34 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 23 Sep 2022 08:16:16 +0200 Message-Id: <20220923061616.5453-1-ludo@gnu.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <875yhfivub.fsf@gnu.org> References: <875yhfivub.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" 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=1663913909; 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: content-transfer-encoding:content-transfer-encoding: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=DCIXCZcW2ZUjK6C//gJkFKV1hUKRzIQPqxuBUyH+GxM=; b=qm5MoS/CXa1SQb40itcOc8MEZ7pn2WrkNYcCsc591a6E7DA0QjuvHAteMnIkYRPnHk5kqy AMvMdpGU7Wv264slE1eWmV3iqQgVzXHWREVWto65nX9z00O3uQ11ptihZbvq1PLXsZo2jd 6Jwikb543W1oyFpLPrFkjb/du2XUDZ4cNwJBdGnAzYvU7XYkBH6Zh85e1/nsqp8q/Wb9Cc LIYfjMWlbIdyJGvJwT/5iit2dwKOGzIenaa4FpJg0Q1mEavVEl617AXPkWoehoduFC6kej itzqiW4k/4LKHxgqRuPyCqNXX2CKMyx+PHo0gYNB/H6rYlxvjb1rrvo0nZEn6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663913909; a=rsa-sha256; cv=none; b=nSPzLlan25Qw+ZQGMKActc+n7XQZUSsORInR29aEl+qRhX36ic49YKs/HkOrma32ENs1ur OYaQZSEFs6hJV7uQkEAHhBV49+I9r52dgAxo7ygAFDXND827TMYvaWAgEGNV9TEaNX7n+T s+AnawDtDj5sO6ty9F4J9eKY7O21CBcmg9wVnNSOGOzYLdriq0ryZ8T+kgTudqYLa9xtwD cVlpfw8IDr1XAUtEZ3q3aEvomtuH3+GrV5ZlyA1dYJHPGAtGvOLgS25BAzpxQ0lOw5yacz ulKnbMafioi/HA7WvlJbdCDEmim/heGucz8vWgI3EIwJMm9Tn6NZxIgAkaVzng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jp44reQ8; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.05 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jp44reQ8; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 59D4C3CEF0 X-Spam-Score: 2.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: +xGMlGT5/OOm Hello! This is a long overdue fix for : when a nar cannot be downloaded from its “preferred” location, ‘guix substitute --substitute’ will now retry once for each substitute URL instead of failing right away. This should address the most common issues such as transient networking failures. Comments? Thanks, Ludo’. Ludovic Courtès (2): substitute: Split nar download. substitute: Retry downloading when a nar is unavailable. guix/scripts/substitute.scm | 157 +++++++++++++++++++++++++++--------- tests/substitute.scm | 113 ++++++++++++++++++++++++++ 2 files changed, 231 insertions(+), 39 deletions(-) base-commit: a09655b20850d065333ec333e6e184b604f606a8 -- 2.37.3