[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: Tue, 11 Oct 2022 12:57:19 +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=13Gq5yH0/DvrNgjO0367SBt/QtrgEhDlvlSzOEqs0eQ=; b=ofT+gf1QUISLpJ7aLGV+8FXZMXVtD/f4CRAA4GZvyZLLU9MkArq273Zm3n8dwEjjqRUt0T2SUpiCr6aDvh2Z9+rpxjBa5bOmw2Z4rsChKJiKQRx/8C4mKC1pc3s1NpA2D9+d8ivF/fongfKma1NVXBoT9/af7rzptkjL17vmazLVU3SaWbjwbie3q7zBjTa4YgQLQ1Ec8t+emZ/780Wd4zxpNgwQYK5c3bojaVdmYADPzpIReojbH/+CrcrH9Vv0aMySbA9bgSrg//2cVeBDsbwVESIgXrT+aefGdufdgVqBCbXpzQD9Q4BZNptMwyroCorLGYwxoCtZRBqcfqzTQw==
- 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=13Gq5yH0/DvrNgjO0367SBt/QtrgEhDlvlSzOEqs0eQ=; b=WrHqyaxSM75ULARqUMfEUNvhqYBHGr51WCEhDAnpoqkXMLa1ZBRT44/QankYwQWQ0+M9L24CwDqT37j8AZkU024OAdeNQ1Dsmz9hUAnBsOEtKMSgKl7F4qk/F09qKPJ6AgrH19Vv6sYV07Ss4ByOBPEbNfh1Wn8Pyiire5F0Wjg+ikda9bjtemDUHH+G3J4/WFUs0Q+840CrUvSwmIG1H5024EuNBE9N6d3HwJsTQf+vcFg8t8WIi/GhBFIzZLk2xbVyqK71ZU2kFAwCYBKQdcpcTl1qmhdKr9zFNlwOcqevw31xwTMAxRXJKX/roYJZt45IfE0SeJ+PSZsN2VBDfw==
- Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=CsDa0TQchRMWjl50hDu+isqeiPf++z9Qhp1cD4rJ2qR50svrC7eRkaFmk27mS9cXfqxqOKnLoT9ekBvdhTaaO663zOCeH9oz6h9wqDwihVLauWMnErBUn2mywu9jaY+v0dn4XB6hctTMZTA5UWitqOCZnte5fIuYBcUvV7klqx6VaY/V2Nyktmf3k3F3kl0GL0I/daY+B601v8VDf0XvRkGX6HOYNWGLHTsLgDpPJBcvlvfHj+gHynOVNB80PcydXWblz8Bvwk6fq7v1UV0gi/DYxL0OoiRm8XGPgO+XQlbalzJGjxf7Hp+7K2aqjAhjQO4guF1oGNJdGxTl1zVh9Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e/fhkRWsUnZ5ufq1a5hgn89RcU1NCXGp7YNsxXC54Z3oqWzKq5PYYseg9c2qSsU4opnMevdHKsO5vtRjlubcP14Uowb8/ElEAezqN0Rd3CHIqSpE9NnOEvLlYO0LvMfpRIp+iVKDeMh/Ai83IjbCbqecEDz3dg4lAE8CSnmUDkKA+GPoAsAJIgbyBu/GBSvwVK9m7tJgzdbJ1gpBhwgHqpxBp59QcQBstB7kD7eBvKeKKYdyJoBU8OVhamb6KW2hCRFErdydEiTgUfQmSripSZQ+7lEzcKRpGxWeGIbl5+uJM9W0Lg2XCWUA8uCFx0eg3dSnvchqNE/SZB/FDZl8Fg==
- 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: Tue, 11 Oct 2022 12:57:46 +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+AgAWWm4A=
- 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 did a new run and everything went ok on my side.
I will push a v2 of the serie to dump more logs when an error is happening.
Cheers
Bertrand
>
> 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.
>
> Cheers,
>
> Stefano
|