From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6629178849690124288 X-Received: by 2002:a1c:dcc4:: with SMTP id t187mr212163wmg.9.1543496506972; Thu, 29 Nov 2018 05:01:46 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:adf:b727:: with SMTP id l39ls400819wre.3.gmail; Thu, 29 Nov 2018 05:01:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/WICtwX1jjqvU6m9lBAURdoAf+KNXUvgX40RNidyXl3Cg1FXJFjH0bDiFmWu9zNcn1HZ5fz X-Received: by 2002:adf:dd90:: with SMTP id x16mr139571wrl.26.1543496506545; Thu, 29 Nov 2018 05:01:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543496506; cv=none; d=google.com; s=arc-20160816; b=Luov3etkIpa2KVz4QxJvy8uPwLp/eWWMyWD+EvYzJiRWOteDl2cySJ1jL0I3UgPpNw 4mWEooHwjXw89/YG1trSoIGAw2CTEUo+zVbc8l6BiOnyNYHAd2UMgMqN+tWnaEh8+gqN AkIg6gCzOa6VFuQeiklbL+0UEGx/y7RfuoZBd8sSYOoZtiuUpYNB1at/qOnqBe5/nSNd qB3hDj+ubL9lArcI2XA8YHKKJB/fCtuv1cBKAkeXTypm6XaxZspq+Aifwpwp3yM5kuq2 hsPbIm4E/jVmuULkPIxNG4Y0Yjsq5YfAOlCUA1twcYkLSW8JlkU1hF+aifrxvlc+JdQQ 1LGA== 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:organization:from:references:cc:to :subject; bh=AK8EboEniaeMNJAySKVXw/y402nRiVTeCo3US3BTKnM=; b=z76tmCO/GoPxLBZjBixkKTBxBev7AD3NpxspVG7XvGoVy3iN8Pbw1Z86czhqP1qhAr czB5M1ZvqAOaGlKjtFZByeFJLOoKbwcpgE5TsC/U7b/7mu6mc/5KQGh4TBABvHRSDqAU B3j1iwiJO+Jak5Q3dnP5IS+mkb2/91//79fUy4tPLqOJmJUGeVLyO91vNeoFI6r4IjYR vVZTUnSE6YcV8xED2ayDIKjGxE+Zxcic6W3QRrxuWbGIHskENJC+CAILZf5mKsUn2jYi mpP3Tv6HlZGMYBUgYY35NYVjmAu0gCaU6ngDJg3QeVxjvpe9CUrboZv6LJrakedRA7l6 UBWQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id x188si12862wmb.3.2018.11.29.05.01.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 05:01:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of mosipov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=mosipov@ilbers.de Received: from [192.168.50.180] (nat-ppp-217.71.235.199-satnet-spb.ru [217.71.235.199] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id wATD1i9G017287 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 29 Nov 2018 14:01:45 +0100 Subject: Re: [PATCH] scripts/ci: enable use of cached base repository for fast build To: Henning Schild 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: "Maxim Yu. Osipov" Organization: ilbers GmbH Message-ID: Date: Thu, 29 Nov 2018 16:01:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 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: D2EXeE/Z9yJ9 On 11/29/18 3:33 PM, 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". So I'll apply this patch as is (at least it will detect problems we experienced with gpg). Maxim. > Henning > >> If yes, I'll include this in v2. >> >> Thanks, >> Maxim. >> >> >>> Henning >>> >>>> $BB_ARGS \ multiconfig:qemuarm-stretch:isar-image-base \ >>>> multiconfig:qemuarm64-stretch:isar-image-base \ >>> >> >> > -- Maxim Osipov ilbers GmbH Maria-Merian-Str. 8 85521 Ottobrunn Germany +49 (151) 6517 6917 mosipov@ilbers.de http://ilbers.de/ Commercial register Munich, HRB 214197 General Manager: Baurzhan Ismagulov