[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 0/4] Yocto Gitlab CI


  • To: Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Mon, 10 Oct 2022 10:58:16 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lqyKgq6V0Ht3/clpAcGjbaZ8K0mBwk9PP5HdqHA3juU=; b=Ry3FaMGzh/WsSV5R4qsbNHEdho0FceSV8iAbTV/HS6weKyIkFJT+JqMrvhFK0frf7SSbnBcvg07GQKAJFjMVcsC76gJSMwJ0JPLSV3B+Gu0eUi3xJ/Myl3KULJ2u+lSyWm7+pTYNIV3jgioQ2U8+dP407nyOFB1rA1qI+Fy4uRXnWJPjelkwDiQnvKRbtuKecbEmoqf7syH6BJx+4avDL8SSKr0WEfHad3BOQN8smbJ6xFiCjUX/8ncgUkuynrpnqizlNkb1GcENhw1kxaaaQ/ziJju4z4Locb4NfsGpLN0aC/6ZBx7RxN8BoMvxP+7IixjuAz+Et7KOew8y88pzVw==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lqyKgq6V0Ht3/clpAcGjbaZ8K0mBwk9PP5HdqHA3juU=; b=YtYpGodtlmJ6oLqXMN+JhoXdRehCRQNDGE2X4kV7F35XQpKqFBbn/ReaKzPUtUdjpJIQMjTPus7bcAM8AzqECF5N07mPmC7OJxmyt7A3io0NQnf4c/KxVO3TKv3/WbAirV+kRU3Vw6PYQKJaExcMYMy+/QkJLLb/XF2P4WDblt7UhENNdHQRuHYU+pbBJmZ9WdtoCGKUiWbFV/7TbUxzk/azoRTrwiPm4D9wP4SWexl2gdskvDhWEjFPCSJ/1kg+6DxyT/z+jrvaloC9YdKE3bt0+mWBlwXhy57NGR/atLSfDyNqa+Jc9pHsJguX4p88SSEk5EP7amMspf7XLuaBhQ==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=VCGuEW+eXtPcfi6Npt0M0vQc4kQifrC4G+nzB/ihPAh9VTmFIoS3tlkjdXC7+ZPipluMu75ONVs0K78WexpJPm9RsrWYqg4OE//UvnXGcMgrXT2xRYpKpTu++J87a7S+2GP3tQTX9jmtkpDDHM/CIfijHjz3wQE5UriNc2ZGysZmDsSg1ykBByndjrtihAmvruB5BRQAXnM5V7FZyqN8+Yd08bOxMn7UJi9YWnmRbTvKPnukzNlLMrDJsCJjDxDA0EfG4QayESpIsILvW4Ty2IKkE9WLn/YjStrU6qAHsZD5K6VNJIRU1MbFvo52uJFbG9jqeK6hQiYGShoP/gf1ag==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=grgpor5JOKq9mCk6exaAtD8ArmDNGJMFex9xnYw1Gf/t9qtP5/PyjHZjKYjtAaaem9a2vlF7W3/93UmlLsa7IZkzwypMI9frNkeJvjY8r2KsT2fIv8e9JJnP3bfaIXpleHf5R/yCOmOHMS7AuIk2Qeld0T52bpLJmSuSBNRr/2hpAbtVwbl+NY2lUa8f4zU8tCgT3Px9ZsZ2BVIcgQWuijubz0oq1gTf5UnvO8kptVI48mp7aw7RQ6YdSEHSRPKUMnhwezxP55a0STfEi+L69RHV7zv6p8iU3h5jw5+n4PviZVvI/gaVJiquwyO5CEkYBmaFoOQYwFXcbjUxbJURRQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen developer discussion <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Wei Liu <wl@xxxxxxx>, Doug Goldstein <cardoe@xxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>
  • Delivery-date: Mon, 10 Oct 2022 10:58:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYt8nlVEDeUTiM20ag9zvPCK1jqa4D28+AgAPjAYA=
  • Thread-topic: [PATCH v1 0/4] Yocto Gitlab CI

HI Stefano,

> On 8 Oct 2022, at 00:36, Stefano Stabellini <sstabellini@xxxxxxxxxx> wrote:
> 
> On Wed, 24 Aug 2022, Bertrand Marquis wrote:
>> This patch series is a first attempt to check if we could use Yocto in
>> gitlab ci to build and run xen on qemu for arm, arm64 and x86.
>> 
>> The first patch is making sure build-yocto.sh is not catched by
>> gitignore.
>> 
>> The second patch is creating a container with all elements required to
>> build Yocto, a checkout of the yocto layers required and an helper
>> script to build and run xen on qemu with yocto.
>> 
>> The third patch is creating containers with a first build of yocto done
>> so that susbsequent build with those containers would only rebuild what
>> was changed and take the rest from the cache.
>> 
>> The fourth patch is adding a way to easily clean locally created
>> containers.
>> 
>> This is is mainly for discussion and sharing as there are still some
>> issues/problem to solve:
>> - building the qemu* containers can take several hours depending on the
>>  network bandwith and computing power of the machine where those are
>>  created
>> - produced containers containing the cache have a size between 8 and
>>  12GB depending on the architecture. We might need to store the build
>>  cache somewhere else to reduce the size. If we choose to have one
>>  single image, the needed size is around 20GB and we need up to 40GB
>>  during the build, which is why I splitted them.
>> - during the build and run, we use a bit more then 20GB of disk which is
>>  over the allowed size in gitlab
>> 
> 
> So I tried to build one of the build containers on my x86 workstation
> with the following:
> 
>  make yocto/kirkstone-qemuarm64
> 
> but I get an error from the build:
> 
>  21:30:20 build qemuarm64: Error
>  22:00:38 run qemuarm64: Error
>  22:00:41 Build Complete (2 errors)
>  The command '/bin/sh -c /home/$USER_NAME/bin/build-yocto.sh $target' 
> returned a non-zero code: 2
> 
> Anyone else is having a better luck than me?

I will relaunch an image creation test locally and come back to you.
It could be that Yocto has been updated since I last tested that.

> 
> 
> I don't think it is a problem if it takes a long time to build the build
> containers because they are not built often and they are not built as
> part of the gitlab-ci runs.
> 
> The issue could be the resulting container size. I wasn't aware of a
> limit in gitlab -- I would like to try if there is a way around the
> limit (either by changing a setting, or potentially switching to a
> premium account.) However I need to be able to complete a container
> build first :-)
> 
> How did you find out about the 20 GB limit? I couldn't find it in the
> docs. The only info I could find states that there is no hard limit on
> registry.gitlab.com.

This came after discussions internally with our internal gitlab and I found
some forum discussions saying something like that.
But it could be that Xen Project does not have this limitation hence the
need to test.

Cheers
Bertrand

> 
> Cheers,
> 
> Stefano




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.