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; Mon, 05 Aug 2024 12:51:13 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f190.google.com (mail-lj1-f190.google.com [209.85.208.190]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 475ApCg0002462 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 5 Aug 2024 12:51:12 +0200 Received: by mail-lj1-f190.google.com with SMTP id 38308e7fff4ca-2ef2b0417cdsf101402321fa.3 for ; Mon, 05 Aug 2024 03:51:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1722855067; cv=pass; d=google.com; s=arc-20160816; b=mp5pnk7KSNgILDA72hTUGwOPe9YOuESitQut4zlPHjbBhyRzW6qdbkUnGjb9R9XzZC IoHnVb1PlfVM+ebsYhxy+ZKqzkhf0mTxB6HNzhbMUC10xSVqCcadekoP/kYCIpfdOGwA RkE8w3+DKbCOlLBYC0ez2bO1GQdJBEZIn2QD5LSLaGAhE2wI82Pq8+01WMI/ED9Teyw6 QIWfQmO2vhjwkgHKUNMZMcxPy7JXO662blqEVLPGR8yuBVxLuVTRLzkjeHW1WqNDy4WF a310cuYkD8Z6aw6dV1NpKxQcxxFqbaECbnaARShkehF6ENN+s4MbpIme8FJlpJf53ZgN +5xQ== 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:autocrypt:references:in-reply-to:date:to :from:subject:message-id:sender:dkim-signature; bh=IZoE4uV3/CYW5BxcC4AddWOH8K+8k1fM1qDptQaICxI=; fh=QRvaWf0an3RQmxx/5cvdVo32j3DEC85XK2MXYLDTWqk=; b=puHhowkHmObLnrVyUkdhT4lZsNQ71hL6qIfhqDhhogXv/c9MAHpD9bO7uGy1bK5AQX sn4bNrnVG+v+uptTuksLoSwcWx+QFPo+Gid47Y0RQhdRVgEaysYTcQqxmfFrZHLqgeCj 7jfakQ8jxp6YLSRn54EecraN07DeEAUuBmo4UajOVqP5rM7eYBOHiBIEKXAuwDgKfmze kzXSPxRt9Sopb6pqlh8J1r3z+OKK2HCTVGI6QJviGfIflkyRutPBwpJXDE+wx2pZb8/T cDWqBU9xVQVzC5nvVdYSMxbHfYxj95dW9soAUN9QrXSeVDwjnRIWG3DCMMimN8GzGe1N MfVA==; 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=1722855067; x=1723459867; 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 :autocrypt:references:in-reply-to:date:to:from:subject:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=IZoE4uV3/CYW5BxcC4AddWOH8K+8k1fM1qDptQaICxI=; b=uRiMAJbNUE6W3TRTrIU9xY13jPZloQvSlR2Qkkrj0Eh70X6+9TAvLgDGKTW/4zXECh CON/PM/PnJJQahcMXl7tK8MC9qUDOEX5TusRTANaX1/S5I0mfefcIDQMG571IWVYrZpZ exPuy0cP0iqyx2sw1yIHEvEmMy+O934N5ee+CR35DZwhqDDHOO38OVbN6Jp9uBphBBrq ZN1eEXAs1GXenlGgd5ciQyqtvjOac1savbhf7fGCbCotk1KsCPZ5zOCj5/DsKe/MTXFr AR4kErKcLvPPg89h7hzTd/2TAkCBHeA+I17QTb4wphVX3iDhMSPTZ2OpvE19rjI6Syph uOgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722855067; x=1723459867; 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:autocrypt: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=IZoE4uV3/CYW5BxcC4AddWOH8K+8k1fM1qDptQaICxI=; b=umhMp7pyM+9kme75l/Ff0ZTTiZ9us0Vc6JvnjJQqhgOSTI8UIXpqVzy94q2HHXfRYe lfy6zETymkRsgfo8GQ05tvJ6HGrQEnh4AsMHIEOOTYlS1SM/Q9gQIFp4QrT4vV46Sjta 8Sc5/POJm/Qe4lwj1GSrH6g/xFqcM2U8EZfxGLBO+dS9Vm06cYVPPt/2otWAm2C1iTkm Wkbq73+XXvZzgD2kv4ioYszuTKyXnisCaebRK8bh1thkM+gY9aBlTdSlcqLXUzyMZduZ foxuO6vGqycSRJG/+Mx3vghjmlTNCzFS1pTmxqhOFm8wJHXaDT9hPkWfaOlCqx/VoDjW OrHA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCU3T0nzDrsz0AeIfahsfhC55yFAywa8mMmE49FjqGeKLBzR33sN5LX7WYf6LgwNMj3ydni23EIacuMfIb1cJSeDrAA= X-Gm-Message-State: AOJu0YzuO1Ty1WnIL4ESFH//UFfbP70IWdTUzCjH4MNfu5rrcW4I54OW edjHl90R10C94s/3w+zSge2FGTDBLcKm2ZmKWKvRKp4yC/ndpnfW X-Google-Smtp-Source: AGHT+IGpNU/INWFwUnIIfGTFt/gp2mn8bl7tvErKgPKN3rwXOvB8wj2EZSjPGmEqBjGnk0BvJEQbYg== X-Received: by 2002:a2e:3c18:0:b0:2ef:251f:785 with SMTP id 38308e7fff4ca-2f15aa7195bmr69999741fa.1.1722855065836; Mon, 05 Aug 2024 03:51:05 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:1c22:b0:428:23d0:3c1d with SMTP id 5b1f17b1804b1-428ede247efls10172105e9.2.-pod-prod-02-eu; Mon, 05 Aug 2024 03:51:04 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWxj3LY0yWe98sHP6yMxBPNuiIcExdb/A/r6JSoTT3TAukgr0K8sC2EiCmXtNx6jzTiyz3IdC/QnczmgTt/gwZ8QoyVD5137JhveX8= X-Received: by 2002:adf:a782:0:b0:368:3731:1613 with SMTP id ffacd0b85a97d-36bbc0e6609mr8136678f8f.13.1722855063684; Mon, 05 Aug 2024 03:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1722855063; cv=none; d=google.com; s=arc-20160816; b=QzH29mQ2xybtLmSxW2oksf+xaCpfU8lIaiUitjQqGPuiUsVhepXUN9QLj9ug43nzwK NGhNL51VSIHrcbCqIBcN6GA4JaNSN99Zm0GuLC0uy30tuuxGju8eRQww4J4lTiw9+yrm UUtrett599Px8M0YAXKWzmckGFGYpUgJxvbvn7TbONMfDrXBfh/i5tn6/3rD/BH85aOa WgGL/W670YcfG1FGvqJKvB6hEDGg2YMlzqxe7LVMQzGYnDSr9ExI8PtdmOBM++keMz46 xUBwXNV8HcCUCNCDdLo8oVbiTLKkEuqbMciS0BMZE9WKtIeQkdPRQ984AZ118gJ+Fwos TslQ== 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:autocrypt :references:in-reply-to:date:to:from:subject:message-id; bh=0p4RC2Yzzd+9TNB+tyCXrs9q/qHMfdcaWPK7gLqGwZM=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=tz5CZRcEAGNkErFHAlCePwjeS+C5IIzTMhTp0DkD+GlUdlPqwnwWmpoT4aNGRowaA+ 1wlyK3hF0ZAc0Pn/y9/8RnSX1F4hPyrIiuXrcY0f5arPIJv2vdAiWSXKcwueDvaE3SIN abTbAyI1gsetlztPU6Cii5NrcbjsnD6XuTZY41TjE2TrEcGOiBQpMLlQaPou1hPT/tkQ U3D7pK+h4LE+HCLpyIpopW4zOr9J4mch1GGS+xXEF/83QPaX0nZDTmNkp21JTmOm4CWo inaf2a+g5AIWFTMUVqp7ZSpR1ak4+FgExrClmwZZq6jwOzyz+/64B+93q3dS5m8xrNDr 1Q/A==; 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 ffacd0b85a97d-36bbd042c7asi129442f8f.4.2024.08.05.03.51.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Aug 2024 03:51:03 -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 [IPv6:::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 475Ap1if002450 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Aug 2024 12:51:02 +0200 Message-ID: Subject: Re: [PATCH] ci: Add test cases for container fetching and loading From: Uladzimir Bely To: Jan Kiszka , isar-users@googlegroups.com Date: Mon, 05 Aug 2024 13:51:01 +0300 In-Reply-To: References: <20240805071755.19853-1-ubely@ilbers.de> Autocrypt: addr=ubely@ilbers.de; prefer-encrypt=mutual; keydata=mQENBGO2eUkBCACtT+T3OrPVSExBmqfgXT3lp9XcdxRzjYp26wezkgYjjBXaf36bxtaAf S471VoQtpar0RVeFfW7WDDdfX9ZclSj36zBQe+RVSJzoNoNQfjOXWuSHb5Z+cpAFtqBY4muxK4+ia IlLJd6CN3ejOsLHATtCeHHq8wi0z2T+KdLQO+wQRgo2hjj0Lp9pGTrKJry50HP/o7Vbdu14dOx2xq r8+wPc6SQbBIrcqaa4MqCQC00vQG7eXvo+k2MOw59FDdpMH0KR9mHgp3u/s4I+4YRBArukt9G9xz/ rsEFmxAIBC6N/a6Hzwg4puc91n7ABDsPg8Vp+X3MDraujN0dvR6OKVNtABEBAAG0IFVsYWR6aW1pc iBCZWx5IDx1YmVseUBpbGJlcnMuZGU+iQFOBBMBCAA4FiEEJqPNVhVGyk12Eh+PAUQYBM/2FkoFAm O2eUkCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQAUQYBM/2FkprlAgAmuna8Hm9EyoEtTl DBGDg6Zm4ZLp5ffvZBE946h92jepDrteoxsJ7pSzJVC2HmDLa4iZUao7lLLbDsUj5x45/iLJcqBZK k3YnAxP2r6a+kI+1VVQY1pxdG1nlJAbdNzoojm/qmezNPSrqni61KVMQKsXBCWhIjSXDSM9CsBj21 a+9qaVqfxovJGTn9lgrZO+xzKQNMKZeOouJlscVuFj21P0ww3/YENiU/nMeTSuYypO76mDtAd08Jo nc3yuHa9MJGei5ixN3wT+IrGR2aL2hdw2M6NgH7sYbL2Zi4ugD6RXHJai1Bh2yvFSVqSQ+M6QOInT 4ud7wslm1XRB065dXtA== 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: +svqzkCymHHx On Mon, 2024-08-05 at 12:43 +0200, Jan Kiszka wrote: > On 05.08.24 11:40, Uladzimir Bely wrote: > > On Mon, 2024-08-05 at 11:17 +0200, Jan Kiszka wrote: > > > On 05.08.24 09:16, 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=A0.../recipes-core/images/isar-image-ci.bb=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 |=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 | 24 > > > > +++++++++++++++++++ > > > > =C2=A02 files changed, 26 insertions(+) > > > >=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 '\$') > > >=20 > > > IIRC, we do need the escape inside the shell (sh -c '...'). So, > > > you > > > likely rather need to escape the escape character. > > >=20 > > > Jan > > >=20 > > > >=20 > >=20 > > I just tried to make a simple check: > >=20 > > ``` > > $ su -c 'for i in $(seq 3); do echo $i; done' > > Password:=20 > > 1 > > 2 > > 3 > >=20 > > $ su -c 'for i in \$(seq 3); do echo $i; done' > > Password:=20 > > bash: -c: line 1: syntax error near unexpected token `(' > > bash: -c: line 1: `for i in \$(seq 3); do echo $i; done' > >=20 > > $ su -c 'for i in \\$(seq 3); do echo $i; done' > > Password:=20 > > \1 > > 2 > > 3 > > ``` > >=20 > > We are likely don't need escaping at all. >=20 > Interesting - anyway, if this sequence is not properly resolved, the > test will fail. And I assume you had it running successfully, so we > must > be fine. >=20 > >=20 > > Anyway, we could just convert the tests from "cmd=3D > to "script=3Dtest_prebuild_container.sh" and have test logic in a > > human- > > readable form. > >=20 >=20 > Also fine with me. >=20 > Jan >=20 OK, I've already prepared the script internally and will check in CI with it. --=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/c4573258a77c667604011b8c2741d8645bdfda81.camel%40ilbers.de.