From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 08 Aug 2024 08:36:47 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f64.google.com (mail-ed1-f64.google.com [209.85.208.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 4786ak02018784 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 8 Aug 2024 08:36:46 +0200 Received: by mail-ed1-f64.google.com with SMTP id 4fb4d7f45d1cf-5bb8fc3df4asf504860a12.0 for ; Wed, 07 Aug 2024 23:36:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1723099001; cv=pass; d=google.com; s=arc-20160816; b=TgiYpzSh3vfanPK3srKx2jiKC+n7D75DDkSI2RvZiwKZuCQK510y6v8BOdMm94fhFm egSeQzKVnuIIpaYlQQrk2zG26n9dwn+BE1NdoJDgGi++T6WZg7W3R9TA4kU2qYtXcIJS m7a2FCiWfGPYsLmU8L5TLf9Ld4sr2KPPaZ7HrRY1WE/xXdghpw9oce9JjrDahOyfKo+h pDTWRI01Zg7gV5Y0FQBue+ZQD8pomT2hZGRrv2kor/LpswziJbVQe2l24vLUdlqm5YPj 84TAU+JXUtUnF86zQpi+3BSzppdfQOZzbOZzSlswbDYdWYMpL5I7o9bCOfqA6+GT61wI GiCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id:sender:dkim-signature; bh=12VihwTXdm7Uvpv7V7GhXmNdiMTZ0BGmFDVpbXY0jp8=; fh=MtQHN9igf0v8Z6RxltWwNFYqEw4nhRNHJ5Hy0Eo05mY=; b=t0aWSkE0zA00cY4MBZpa3SH52TFS6dCOkdcBXhZn1n2GUQ9R3K0Nj4/ZgheJ/tMQXR Jn+6t8l8kpcJ6CAIKHOVuSQcTdoBbGpwWx7Kq8d1IDzsY5NpT+q0cOMNaRmYrWPjoj7O 3W+268Jd4mP7bmi6PMvQVcdeT4ok05kfgvl7NKcTGENwuLfxQwJBZpHOI6SatAb4V+xO QUfi9c9pRZNkw3dzOx0909fa43a8QC8BKzf50nM8EcOg88HFthM8LpLSfa9rhrT/xX9p 2eZgquxdfYouD3l9cCROygKVT23bo3SixY0Zfk9EdhLGO+DrRO7IROxtPcXqipk/6hmV kOkA==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1723099001; x=1723703801; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:user-agent:content-transfer-encoding :references:in-reply-to:date:to:from:subject:message-id:sender:from :to:cc:subject:date:message-id:reply-to; bh=12VihwTXdm7Uvpv7V7GhXmNdiMTZ0BGmFDVpbXY0jp8=; b=l87pjoLIQM0Ix3eeTrZtMLlXG6csz5ixaH+FRBFWr+R8PoxvsIQLHho2fg77lORyET F4Hwfd27oVHOk85MiC6gAqavPCvYV+LrYMRn5+UgCcYs/M5gE+IJSqTlCdKrGVWGo74F Cpl7h/vpUbFbgO9OyB/LQljJ5cfYjMP6pFb0QunEES4LwzIAePkI4oGIaDlQe/JehN0b lO4iQ3hPmtku5ROTwFAlUoboU4CiTmn+V8XTYPifMIC6qG9c36t9FYBUr9mDz5ldfiEk KWzawiZMGLnW3vuZIVtKfoA3sh6GWI7djQU0eEYmziquTa8SfWLAWyEAub6Tt05b4CId qK0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723099001; x=1723703801; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=12VihwTXdm7Uvpv7V7GhXmNdiMTZ0BGmFDVpbXY0jp8=; b=rrUWp5mHiYoyJq1PiizDxbvpSu9LgRmnjCxErnaV4Nz4yrd9YITO0+3CMImn2jCBzc a+MLOCYFMxv4oA7PUNvljGe1rfS+b8Hd9GrvTs+ljG6s38jBa8/aNiKak0C8TzT7dfyd W3RSx2FnXI/QECXbiRWIzl5lGwWwnMdVbM4UWlSYx68CqbpJjtKgSIOlp8hVunSpkhs9 QCaxJz7yDpa5UwVsv99jIPoGFI0zICSNfPD2UvHc6UL4h+y2P1+v5CwTq8ojDa5eaqck S9gWZil1yF8mcwSkP3IIo1nPG7uSs02DGxTtajmvHhoexePXlv1bJRQaXATsircOdhE/ U5tg== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCVxHxYkinciyHKjLqZ+K6TwayWix8qG48Tt+xSAYxMY0NjgIcbinoscFUEwuPjVu2mlwNhMiX9zImSTK8Q2rjy+a9I= X-Gm-Message-State: AOJu0YxxpDqEEWMfNjcLVsYjAQMgQc5HXxrEqZUsHlRqNJ3mdQlRioWh ffGTZYUzqEewMTE7m4cwKYcwrxuBZOYfCknG/o46djTXweyrAOne X-Google-Smtp-Source: AGHT+IHubZqbZQWzUCwU2Ov8ywIzmXRahbMubs1r09rACCr8jKuu7EsXt8qDJqEwSXdLHR12NFMeKQ== X-Received: by 2002:a05:6402:5206:b0:587:86d8:8b54 with SMTP id 4fb4d7f45d1cf-5bbb2182b28mr747900a12.4.1723099000631; Wed, 07 Aug 2024 23:36:40 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:254c:b0:58b:30e8:e88e with SMTP id 4fb4d7f45d1cf-5bbaf04ddaals263190a12.2.-pod-prod-03-eu; Wed, 07 Aug 2024 23:36:38 -0700 (PDT) X-Received: by 2002:a17:907:f78b:b0:a77:c043:5b5a with SMTP id a640c23a62f3a-a8090db1dfemr58589866b.39.1723098998410; Wed, 07 Aug 2024 23:36:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723098998; cv=none; d=google.com; s=arc-20160816; b=VDA7/VOkv9xwupUziQ1TMOgsNul6WhNw4BxkvP0u6bBLKHJ558QXQOGm78QMLvVApG AtSzqmH65zFCAB3OL4NS9uOnVccz8kK22MAss9XEaEzAPVlfK1Vawjbc1LoAXsMhKhvh RVHri8+n22LlV8bt/yjQndkRB/PKHue9+3od4LkKc11L4tYDZSI6gUwuUo5j3Vr65qJc fNEUvHZA/bkpvfB7NK6QJajIrMd3Ix/lOX9aFHpz2ILFOLvGM670fTY14lB2yzaq5l+Z RcPos2grlOcXx9QHyZ1+s4wiXTCD7rWS6P38E5gPdK+2Zk2eo4tOrDRbmxYPn6MspHZh rmKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=0/CGZ8x7P92erWP/p8VAm51D66BbA2use+u5OcoIVU0=; fh=7tclEdh7YbwSQowgJ6LNq720O7H5HTEaqj22NJWRE2E=; b=MTljwh02X6MhNYp3AymZPsxy1qLODcDjPRGxj5NrCVGILmNuL+n8Q3mNcrTrpPG3Ki +NGLcalzZXrJnMK7cDEr3LqdMYAXn4I09ZRgPircJ5YG70ONoJzbtHAuUcfbdHVg//Qu uDFDIQqTwZWVPxIfMKQ4LkJBowcTdP6RR2XNP5lnbodQ/H8zBVnbD1P0PIZva+YovyLQ abc67LMDnSW9PsbEFpRpPHSn7iik07GvkUoUKn+BWHHMVfmJrQawBCMGXnVgSBsnApuT YCoFxE+/63yyWrIk/qGLNq+Gik6ZKBKK07os0AshIU85iktHyTyohVwpRNV1ahAhguWO lJpg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id a640c23a62f3a-a7dc96cea3csi27405566b.0.2024.08.07.23.36.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Aug 2024 23:36:38 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 4786aaBM018772 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 8 Aug 2024 08:36:37 +0200 Message-ID: <321821461ba80d1581f3bb02f883b42139266882.camel@ilbers.de> Subject: Re: [PATCH v3] ci: Add test cases for container fetching and loading From: Uladzimir Bely To: isar-users@googlegroups.com Date: Thu, 08 Aug 2024 09:36:36 +0300 In-Reply-To: <20240807051547.7448-1-ubely@ilbers.de> References: <20240807051547.7448-1-ubely@ilbers.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-Original-Sender: ubely@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-TUID: gnL6Kq932Pxa On Wed, 2024-08-07 at 08:12 +0300, Uladzimir Bely wrote: > From: Jan Kiszka >=20 > This plugs the two example recipes for loading container images into > VM-based testing. The test consists of running 'true' in the > installed > alpine images. >=20 > Rather than enabling the ci user to do password-less sudo, this uses > su > with the piped-in password. Another trick needed is to poll for the > images because loading is performed asynchronously. >=20 > Signed-off-by: Jan Kiszka > Signed-off-by: Uladzimir Bely > --- > =C2=A0meta-test/recipes-core/images/isar-image-ci.bb |=C2=A0 2 ++ > =C2=A0testsuite/citest.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 13 ++++++++++++- > =C2=A0testsuite/scripts/test_prebuilt_containers.sh=C2=A0 | 16 ++++++++++= ++++++ > =C2=A03 files changed, 30 insertions(+), 1 deletion(-) > =C2=A0create mode 100755 testsuite/scripts/test_prebuilt_containers.sh >=20 >=20 > This is a drop-in replacement of patch 4 from "[PATCH v4 0/5] > Introduce > container fetcher and pre-loader" series: > - Fixed syntax errors (incorrectly escaped '\$') > - Fixed long lines in order to pass flake8 >=20 > Changes since v2: > - Run the tests in the VM that was previously run. This: > =C2=A0 - reduces test execution time; > =C2=A0 - avoids filesystem failures in the VM image caused by previously > =C2=A0=C2=A0=C2=A0 killed machine. >=20 > Changes since v1: > - Switched from running command to script for better readability. >=20 >=20 > diff --git a/meta-test/recipes-core/images/isar-image-ci.bb b/meta- > test/recipes-core/images/isar-image-ci.bb > index e5d51e6e..9133da74 100644 > --- a/meta-test/recipes-core/images/isar-image-ci.bb > +++ b/meta-test/recipes-core/images/isar-image-ci.bb > @@ -16,6 +16,7 @@ IMAGE_INSTALL +=3D "sshd-regen-keys" > =C2=A0 > =C2=A0# qemuamd64-bookworm > =C2=A0WKS_FILE:qemuamd64:debian-bookworm ?=3D "multipart-efi.wks" > +IMAGE_INSTALL:append:qemuamd64:debian-bookworm =3D " prebuilt-docker- > img prebuilt-podman-img" > =C2=A0 > =C2=A0# qemuamd64-bullseye > =C2=A0IMAGE_FSTYPES:append:qemuamd64:debian-bullseye ?=3D " cpio.gz tar.g= z" > @@ -51,3 +52,4 @@ IMAGER_INSTALL:append:qemuarm:debian-bookworm ?=3D " > ${SYSTEMD_BOOTLOADER_INSTALL} > =C2=A0# qemuarm64-bookworm > =C2=A0IMAGE_FSTYPES:append:qemuarm64:debian-bookworm ?=3D " wic.xz" > =C2=A0IMAGER_INSTALL:append:qemuarm64:debian-bookworm ?=3D " > ${GRUB_BOOTLOADER_INSTALL}" > +IMAGE_INSTALL:append:qemuarm64:debian-bookworm =3D " prebuilt-docker- > img prebuilt-podman-img" > diff --git a/testsuite/citest.py b/testsuite/citest.py > index 7064c1e4..18d3af97 100755 > --- a/testsuite/citest.py > +++ b/testsuite/citest.py > @@ -539,6 +539,7 @@ class VmBootTestFull(CIBaseTest): > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = 'bookworm', > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = image=3D'isar-image-ci', > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = script=3D'test_kernel_module.sh example_module', > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 keep= =3DTrue, > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ) > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0 def test_i386_buster(self): > @@ -577,7 +578,7 @@ class VmBootTestFull(CIBaseTest): > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0 def test_amd64_bookworm(self): > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.init() > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.vm_start('amd64', 'bookw= orm', image=3D'isar-image-ci') > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.vm_start('amd64', 'bookw= orm', image=3D'isar-image-ci', > keep=3DTrue) > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0 def test_arm_bookworm(self): > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.init() > @@ -609,3 +610,13 @@ class VmBootTestFull(CIBaseTest): > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = image=3D'isar-image-ci', > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = script=3D'test_kernel_module.sh example_module', > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ) > + > +=C2=A0=C2=A0=C2=A0 def test_amd64_bookworm_prebuilt_containers(self): > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.init() > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.vm_start('amd64', 'bookw= orm', image=3D'isar-image-ci', > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 script=3D'test_prebu= ilt_containers.sh') > + > +=C2=A0=C2=A0=C2=A0 def test_arm64_bookworm_prebuilt_containers(self): > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.init() > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 self.vm_start('arm64', 'bookw= orm', image=3D'isar-image-ci', > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 script=3D'test_prebu= ilt_containers.sh') > diff --git a/testsuite/scripts/test_prebuilt_containers.sh > b/testsuite/scripts/test_prebuilt_containers.sh > new file mode 100755 > index 00000000..1700e653 > --- /dev/null > +++ b/testsuite/scripts/test_prebuilt_containers.sh > @@ -0,0 +1,16 @@ > +#!/bin/sh > + > +echo root | su -c '\ > +=C2=A0=C2=A0=C2=A0 set -e > +=C2=A0=C2=A0=C2=A0 export PATH=3D$PATH:/usr/sbin > +=C2=A0=C2=A0=C2=A0 for n in $(seq 30); do > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 docker images | grep -q alpin= e && break > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sleep 10 > +=C2=A0=C2=A0=C2=A0 done > +=C2=A0=C2=A0=C2=A0 docker run --rm quay.io/libpod/alpine:3.10.2 true > +=C2=A0=C2=A0=C2=A0 for n in $(seq 30); do > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 podman images | grep -q alpin= e && break > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sleep 10 > +=C2=A0=C2=A0=C2=A0 done > +=C2=A0=C2=A0=C2=A0 podman run --rm quay.io/libpod/alpine:latest true > +' > --=20 > 2.44.2 >=20 Applied to next. --=20 Best regards, Uladzimir. --=20 You received this message because you are subscribed to the Google Groups "= isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/= isar-users/321821461ba80d1581f3bb02f883b42139266882.camel%40ilbers.de.