From patchwork Wed Jan 19 02:55:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinuvasan Arjunan X-Patchwork-Id: 1344 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3) with LMTPA; Wed, 19 Jan 2022 13:56:11 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f56.google.com (mail-lf1-f56.google.com [209.85.167.56]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPS id 20JCuAnf025521 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 19 Jan 2022 13:56:11 +0100 Received: by mail-lf1-f56.google.com with SMTP id x14-20020ac259ce000000b0042ca28e7200sf1537862lfn.9 for ; Wed, 19 Jan 2022 04:56:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1642596965; cv=pass; d=google.com; s=arc-20160816; b=gHoArY9kQrTFQHZ+saSkc4UWsWmr/z75xkPIVyHzyjiRLmtkoDMKJ1A7gs25v6eNYJ YqKB8zwQwmGxSgKehoqTdTiyHvAjNhLBMjX9yJf2HVKAMgfNCXPh8l9H+jJEWBzphD28 qhQ8f5dNwWGc0k5g0B+S9wcTfMvt79wM/xuSthW3plvNkhmUV7iLPoiCn6WdMmEm2MnH eMmLzIqzXu4CDwBzh5A1aG5L4HaohVxZRYsKrV6PmCSeoOHqF6srJBlFGvWxTYFGZ2kK /EPCmB/n3WDDVkPQJhHQ4ZjEsB7qnkEsWfXWkbu5CYVpIWSob19LgGn5liZIRnhaaA9d 9nQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr:sender:dkim-signature; bh=khnNF5HXVfxppK627hRfuh8AtvpKeuTtYQ7i8ghoED8=; b=pKHR4qxMDyoZjmAUG+4oLIZPizHmwxq5LxmglXmiLDnAggwJMEwtXunSodXE0RFYM3 fwJQbq5DV2nWE4rzIp6GNRDCmdkunM+14t/VPwdXFWKuD+mtX8pZtKFlnTaQ9T3arGn0 MkE5WimhOshNsNn0Ptsz8KqX0TSr1ANHhDGiVpxnk+SY3wicLEnYQ0fKnt9rhl9I5Nc/ Cay6vtRMpC48PLho/tAR1WZkNFdgtRCB3IxYKNO00WTJ8wlDsbkkuoYPnxLdoKynu1Ek rrBZfuBC6hKd1vmHLzns4P+GboBVH4quWT0MKu811m5cpROLCT2X9kKuYnb3TPKdnCi0 lQhw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=khnNF5HXVfxppK627hRfuh8AtvpKeuTtYQ7i8ghoED8=; b=kUnuVqv/fxr/rrwBVkee1cF8WFtIFAR+BiKVH1RidGUgx+8RXDobm+/fFUu9g1X8Tj xwv4nwoAwx6ID8pVPJharW6DY4AhR766yj96d4CPJmb5hUhPBUw92rOaObBOtzGdiU99 ogJsFr4BmmnhT1OyNawwklvquwYv8GmyeKB1wd1bIw8aOzAhJtgpPtjp6+XNAANR8oSV A+168t6jGuQ0fnl1YMvhpGMBko59or88l1DYJ5MVXB6Oe1AXvAmKgB+eEE281XwN/JjQ TDQJ4s4CjYUlDXd50L0brvA03aJmmSmNt7zMhjDern2f/nZhttANh6HwPf9DNyjuuaXB RBWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=khnNF5HXVfxppK627hRfuh8AtvpKeuTtYQ7i8ghoED8=; b=RXeAM6AWT6fcMUQQGXOmmgJQUe5fuQAhI3v2Ajb4o4yiWQdZvBfdw5nutyQfJBbgTl 41J89ppQErqQ8zu/uov2Pb0LzskcbRNpQdT89gw+avJlmnH9hWk9Mt0SLeiZtsodyVmS rtMnt81TIVuKnsVdgxMgcKxWd5WkAxCKnPfO8L718MLqSwQjpHywm8fZlIYtGpNyO3nX 3BlFrO8ob6rSiCrn/VMzFHzG1pZnCOWE7KKvXrrWfy7W/rls6mMyPd30/M0ALHjXf7hh InTx6h0t4gOkAYG7y2Tg9xae7J0PAWCHWFjiESVSH3mGkCQdmxOC2GeR448s80rdfwDU VYkw== Sender: isar-users@googlegroups.com X-Gm-Message-State: AOAM533U0PexRmZtWoadpbDpR9ND86GfKvMHvQg2p3d4Z4jt2jpt4Qc5 3PJNqJZ4h3STsx6ee9kPYcY= X-Google-Smtp-Source: ABdhPJwq2vw3jas9FFxl7dVH1RymEqPBOWh+tIm12vvTMrM/AiCWP11nbcc1LusX/vsQTQfk6Q7uWQ== X-Received: by 2002:a05:6512:24f:: with SMTP id b15mr26416017lfo.225.1642596965545; Wed, 19 Jan 2022 04:56:05 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:6e44:: with SMTP id q4ls83730lfk.3.gmail; Wed, 19 Jan 2022 04:56:04 -0800 (PST) X-Received: by 2002:a05:6512:acd:: with SMTP id n13mr25845070lfu.283.1642596964669; Wed, 19 Jan 2022 04:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642596964; cv=none; d=google.com; s=arc-20160816; b=MI5DYbZKjGlMVzlDevWCyOms6ZWv+6iirFy5uw5kPp/51R4g3E9kZC7+aSlRjX7aYH Ix0FMXDimErIBYXGtoNfbNuqeiuf9g/+oAeeDMjwONNE53U4NnPYViNXF30TwCR6Jg5P J4F80OBWCnCCeKK02fD6lK60bzCQG8LFDtAikvUvw1DVx2Eut1EqK4+ivZ2Ob8ua1TAz JCkg+bL/q4iTMjCKpdMTxquSresn6/Grx+9UrdjQZdsLgUEvXRX67vkpm6VN3GkrfqPL 22mlIHf8e+sbSwEmjVLgC2fsnd2jK1Azg0FVCrQElnTGS/lMp6INNP51fDBwRu/yz1K3 gIDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:ironport-sdr:ironport-sdr; bh=tLkI/GFM9mTzn2NpECFxt2iaGvComla3iTfBkF3BiBc=; b=puqS8JNRggHjH6CT1pioPBTWrIj/pTTbwLpizzo8GWgpKtQUCMyO1LVebiVHPaSOES lnYKgPcZtglJP8/K/GutBheomX35EYgAteOeek2i0P7wQrQ98w7edsloPSDGHriIKNmn z3muxIfqfe3bvc+6IAwtjAsm57jMWAvMSIqeAUJTTMc4Ol9UtThFm4pDv0KOAFVQHQkd y4cxpuoTmcp46Tv081kMYFpTGMKq2HNoMQLdSjrFmhDwVclsexuN85RZiTwJYqtnjHYt jSj7Alo5LeMciCycx1wJ0n+q82e8aqX2saeXTP8f+5otXNslcVIrKDpp81EYNLefTgUn EQrA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id h1si308452lfv.4.2022.01.19.04.56.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jan 2022 04:56:04 -0800 (PST) Received-SPF: pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; IronPort-SDR: exmrRnfXLEyt2xdxDHGUWWJBF+Xt0O/HhDcXDXbaHRGCFiYEVtBzwXTkvWJ9VQypJ/YADmVu+w vZLs57kF/UjHpH1QZcZqp4cGbysM3PVkHa4KUXzPjQSwXZBwwQCbPA1DLcVWgDz/iqcF63uax1 awv7dkXrd0y7RBMEF2UrlEjCzICtt50M+zpRDAADsMbq8k7bjnN5RLmTDEWty4KdO2qHnlaC24 B/eWdUWujyZrROXSkrMkacXkvGoiK9G63j90eRiqQ0ijU8salccmqyFNjBuI+SN7ahiV8eYTRf NoLb25ZnVFeqQnc3RvDB3+Ne X-IronPort-AV: E=Sophos;i="5.88,299,1635235200"; d="scan'208";a="70934430" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 19 Jan 2022 04:56:02 -0800 IronPort-SDR: 6Elbl+sgAPcmFl6vPwJvFKYaTrNs8eD9WMrh4JSdnDwxoPJlw4bCZHGyzc0QU92r4R2MuNfUCf l0P6MLSaG7dKVj1au4OC57HA9X353xob9Ryl3cUIUnFRP65rBoJ3wc99mjvYvltC1I8fhBFcgH HwganHJVcXrBBPoHojG8tfmcZDdQEbGLMup/RA84G3t4ZlGUutPtXdkLwsE0YFn7F34aKCILXi zjVWaRYsyYM2/K2HyeYNDbvEsBardNXk6vZMjS8du761GxpbUAZiSrDJdLjRrCx0dQDHqQAKgo zHU= From: Srinuvasan A To: CC: , Srinuvasan A Subject: [PATCH] [RFC] deb-dl-dir: Retry downloads 3 times for src files Date: Wed, 19 Jan 2022 18:25:37 +0530 Message-ID: <20220119125537.1734102-1-Srinuvasan_A@mentor.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) To svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) X-Original-Sender: Srinuvasan_A@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: INBOX From: Srinuvasan A Sometime the source packages are not downloaded successfully due to bad network, hence the builds get fails with timeout issue Added a retry mechanism to attempt multiple times before giving up. Signed-off-by: Srinuvasan A --- meta/classes/deb-dl-dir.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/deb-dl-dir.bbclass b/meta/classes/deb-dl-dir.bbclass index ffbff07..42542d7 100644 --- a/meta/classes/deb-dl-dir.bbclass +++ b/meta/classes/deb-dl-dir.bbclass @@ -57,7 +57,7 @@ debsrc_download() { [ -n "$dscfile" ] && continue sudo -E chroot --userspec=$( id -u ):$( id -g ) ${rootfs} \ - sh -c ' mkdir -p "/deb-src/${1}/${2}" && cd "/deb-src/${1}/${2}" && apt-get -y --download-only --only-source source "$2"="$3" ' download-src "${rootfs_distro}" "${src}" "${version}" + sh -c ' mkdir -p "/deb-src/${1}/${2}" && cd "/deb-src/${1}/${2}" && apt-get -y -o Acquire::Retries=3 --download-only --only-source source "$2"="$3" ' download-src "${rootfs_distro}" "${src}" "${version}" done ) 9>"${DEBSRCDIR}/${rootfs_distro}.lock"