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

Re: [PATCH v5 3/3] automation: Add CI test jobs for Yocto


  • To: Bertrand Marquis <bertrand.marquis@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Wed, 30 Nov 2022 14:02:46 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=arm.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • 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=3vs+oKPzHUs3Mex4OBPW8UTub7EPTQmjC5OS++U2WE0=; b=D81RkqtqGecZvT0sJ4+ymkOMkJ2WMwVoskqShEMCoMsSxG+iC5gVOY0mEtCsaR9bEG7x3yb2UqMdVyQtxOXxSiarQBcOcXFtwThu3nxmZcwpQk0Uxl3LTX5fW0UM5YNHI38CidjOhPnPmQdogThZ3E8WhgE1gZ+ALm3d2FHCEcfo0x8EVHZucxrW9BG5HxT1LwDfXt3rAb0UvF3hiARxePF6yXO3VX94dpOhu4iV7OSLMaq2D+6XNaYbsYICZXZQprY59cU2O2P8VJOnvfg4/B4Zf7r4ob7OQXh5k90Y40WW92E/pw6F8xjwTzAoMI/gHQnhCLbxDnDeHF7DOaG1/A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hpa1TJsrRvBxkZ3lR4SNp12RUTyhmSZinI2MKzdqMPpvHtExHLWq53Tk/rrYlun0jiigMygnE8HbCODQtcdG8/l0FOCgpGGcTPsKN/2FCRXHlzuozU96tqR2ORMmzzHoLbuk4NVi15cKLWOeTFGZJmI8lqeS6uljg30kgiNGdHsky3LAGPK8ZjACWjF4+D7vBZh3FK8/AVhx8odfasvcIZ+KlQA+NdO1iB7yYOZiIv6mH7fwb0/S/L5qDG+xcrJsHF//vZ4BrOy52x9j3VNSVrd0jE+/3nk/XSXxJrUqlLCvUEt9zWl9WHHUOpAhq3EwydARK0cC/zczGmI/v/7NQQ==
  • Cc: Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
  • Delivery-date: Wed, 30 Nov 2022 13:03:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Bertrand,

On 30/11/2022 13:15, Bertrand Marquis wrote:
> 
> 
> From: Michal Orzel <michal.orzel@xxxxxxx>
> 
> Populate test jobs for Yocto based tests using the provided containers.
> Due to the size restrictions, it is currently not possible to split the
> build and run tasks, therefore everything is done in a single step.
> 
> Test jobs for the supported Yocto targets are generic to avoid the
> necessity to add new ones after each Yocto release. The only thing
> required to be changed after updating the containers is the variable
> YOCTO_VERSION stored in a .yocto-test template.
> 
> Signed-off-by: Michal Orzel <michal.orzel@xxxxxxx>
> ---
> Changes in v5:
> - none
> Changes in v4:
> - add .yocto-test for arm64 and x86
> - make yocto jobs use arm64 version
> Changes in v3:
> - patch added
> ---
>  automation/gitlab-ci/test.yaml | 43 ++++++++++++++++++++++++++++++++++
>  1 file changed, 43 insertions(+)
> 
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index c7e0078e04f1..6ce2fd63eee6 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -54,6 +54,33 @@
>    tags:
>      - x86_64
> 
> +.yocto-test:
> +  extends: .test-jobs-common
> +  script:
> +    - ./automation/build/yocto/build-yocto.sh -v --log-dir=./logs 
> --xen-dir=`pwd` ${YOCTO_BOARD}
> +  variables:
> +    YOCTO_VERSION: kirkstone
> +    CONTAINER: yocto:${YOCTO_VERSION}-${YOCTO_BOARD}-${YOCTO_HOST}
> +  artifacts:
> +    paths:
> +      - 'logs/*'
> +    when: always
> +  needs: []
> +
> +.yocto-test-arm64:
> +  extends: .yocto-test
> +  variables:
> +    YOCTO_HOST: arm64v8
> +  tags:
> +    - arm64
> +
> +.yocto-test-x86-64:
> +  extends: .yocto-test
> +  variables:
> +    YOCTO_HOST: amd64
> +  tags:
> +    - x86_64
This hidden job is not used by any yocto test job and as such can be misleading 
to others working on this file.
So we can either remove it (can be easily reintroduced once we will find more 
x86 resources) or add a comment explaining why is it here.

> +
>  # Test jobs
>  build-each-commit-gcc:
>    extends: .test-jobs-common
> @@ -188,3 +215,19 @@ qemu-smoke-x86-64-clang-pvh:
>      - ./automation/scripts/qemu-smoke-x86-64.sh pvh 2>&1 | tee ${LOGFILE}
>    needs:
>      - debian-unstable-clang-debug
> +
> +# Yocto test jobs
> +yocto-qemuarm64:
> +  extends: .yocto-test-arm64
> +  variables:
> +    YOCTO_BOARD: qemuarm64
> +
> +yocto-qemuarm:
> +  extends: .yocto-test-arm64
> +  variables:
> +    YOCTO_BOARD: qemuarm
> +
> +yocto-qemux86-64:
> +  extends: .yocto-test-arm64
> +  variables:
> +    YOCTO_BOARD: qemux86-64
> --
> 2.25.1
> 
~Michal




 


Rackspace

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