From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6629178849690124288 X-Received: by 2002:a2e:541c:: with SMTP id i28-v6mr173457ljb.20.1543495246236; Thu, 29 Nov 2018 04:40:46 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:554c:: with SMTP id j73-v6ls260095ljb.4.gmail; Thu, 29 Nov 2018 04:40:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/VcjWAp2nbk3suisBdOpVRMb2dBEUImSvFWAr021RszVeGwwYBihC/6AqtoFIylrAyFiZmx X-Received: by 2002:a2e:482:: with SMTP id a2-v6mr167412ljf.28.1543495245617; Thu, 29 Nov 2018 04:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543495245; cv=none; d=google.com; s=arc-20160816; b=1AzqFpEN2nD8wTzbfP//ltGUzO7vpG+3xxK6WuuokhfP/7k5xP/EhF3LTn0jv+8FTG lW3BPnC0yoag6n+4IsFa7Cbs/JDeizv08Tn/xpdy736TsorFPunfjOEsCo6Lvk4OckV+ Xie4rK4E3A9lrB6KlfwCgAVTbJuWly/z6wuCG9kwfRz9SmYPKE6ORYbrp4x3XT+wpzUy QVSb/9liyCFNwmMHDiSTfyl9pksshA48XgmyNw4FYsk4CDMHu5ajcLd1ba6wR7ZCdMt5 eDjNm1SL/ZP2O7JsI0P0dBKWPHQ+068ehzaUNHmlIhx04CdjTxxh47O8HQGm3Lwc3cSp JlsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=hSNdirMHDBsX9I3DjYL3hJTrRiVlwQxJN98Y1bpwy7c=; b=VK+5F0QXjtbf0I+DsPohNeom/Cf2H6aqJfewN2BpafJRMvVg4S8UzqAJhM0rxbDoqR 2jMUgOq7xn4mtGMZjb4rmxPCVrbPeT669Li5U9xJKSLdTFk9G/MW5IjWSIrSfudyJZOO /oQLT1QwuHPfrRVifNkoAd1F38LLqmJYZUS16k6c8sNnKkP4wzWDrFQRD6ZdSQxB/6tb 092mCCyksVJ+mYr264QopUGVwdQbq1vgK9uXrP5pqAgC4fil6RruiRblRbiOb7oqTq3e F0JiQF1C9LzC62t+aRyfi+LxVKqB5P0z7/tm/hH8pUNWPfRgrXkT0GIeakCMoTpxl1AB 2dpA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id e17-v6si45794ljg.5.2018.11.29.04.40.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 04:40:45 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id wATCeiVF024244 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 29 Nov 2018 13:40:44 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id wATCeiKr019928; Thu, 29 Nov 2018 13:40:44 +0100 Subject: Re: [PATCH] scripts/ci: enable use of cached base repository for fast build To: "[ext] Henning Schild" , "Maxim Yu. Osipov" Cc: isar-users@googlegroups.com References: <20181129071918.29263-1-mosipov@ilbers.de> <20181129123333.3c86eb53@md1za8fc.ad001.siemens.net> <874c0ba5-4876-8fb9-f3c6-dd50e90c64b3@ilbers.de> <20181129133337.29a0e46f@md1za8fc.ad001.siemens.net> From: Jan Kiszka Message-ID: <3568dbb0-65fd-dded-39d4-1bc71a6bf669@siemens.com> Date: Thu, 29 Nov 2018 13:40:44 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20181129133337.29a0e46f@md1za8fc.ad001.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: FaoFtwx8E4Et On 29.11.18 13:33, [ext] Henning Schild wrote: > Am Thu, 29 Nov 2018 15:02:06 +0300 > schrieb "Maxim Yu. Osipov" : > >> On 11/29/18 2:33 PM, Henning Schild wrote: >>> Am Thu, 29 Nov 2018 08:19:18 +0100 >>> schrieb "Maxim Yu. Osipov" : >>> >>>> Signed-off-by: Maxim Yu. Osipov >>>> --- >>>> scripts/ci_build.sh | 7 +++++++ >>>> 1 file changed, 7 insertions(+) >>>> >>>> diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh >>>> index 059df21..20b77b7 100755 >>>> --- a/scripts/ci_build.sh >>>> +++ b/scripts/ci_build.sh >>>> @@ -86,7 +86,14 @@ fi >>>> if [ -n "$FAST_BUILD" ]; then >>>> # Start build for the reduced set of configurations >>>> # Enforce cross-compilation to speed up the build >>>> + # Enable use of cached base repository >>>> sed -i -e 's/ISAR_CROSS_COMPILE ?= "0"/ISAR_CROSS_COMPILE ?= >>>> "1"/g' conf/local.conf >>>> + bitbake $BB_ARGS -c cache_base_repo \ >>>> + multiconfig:qemuarm-stretch:isar-image-base \ >>>> + multiconfig:qemuarm64-stretch:isar-image-base \ >>>> + multiconfig:qemuamd64-stretch:isar-image-base >>>> + sudo rm -rf tmp >>> >>> That rm is not in line with the user manual, should that be updated >>> as well? >> >> Yes, after commit de68185 "conf: Move base-apt to downloads directory" >> one may remove the whole tmp directory. I'll update the user manual. >> >>>> + sed -i -e 's/#ISAR_USE_CACHED_BASE_REPO ?= >>>> "1"/ISAR_USE_CACHED_BASE_REPO ?= "1"/g' conf/local.conf bitbake >>> >>> I will not propose "ifconfig down" but this here to cover cutting >>> off the network for the debian side. >> >> >>> # set invalid proxy variables to enforce "offline" >>> export http_proxy=http://localhost:3128 >>> export https_proxy=$http_proxy >>> export ftp_proxy=$http_proxy >> >> Have you tested this in your environment? > > No, this is just the long version of "your patch does not actually go > offline and should not be merged". > FWIW, if we decide to test offline build via invalidating proxies, we need to have a separate cache test for the same images in place as well. Is that the case already? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux