From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7020716408055005184 X-Received: by 2002:ac2:443b:: with SMTP id w27mr318412lfl.63.1634747885525; Wed, 20 Oct 2021 09:38:05 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:e85:: with SMTP id bi5ls1882369lfb.2.gmail; Wed, 20 Oct 2021 09:38:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytvG4rVCFV+BpuNyehKQdLPQRxx1Ygnj4NUdFP5kbJaaZX5uxNJm1qAFcPG782/tIHjyjs X-Received: by 2002:ac2:58f7:: with SMTP id v23mr318879lfo.642.1634747884504; Wed, 20 Oct 2021 09:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634747884; cv=none; d=google.com; s=arc-20160816; b=P6BIaRi3Gf/KQ8zPPSZcaxQ/C7noIyLPgLKx1Jv8RIDu/OgcU+yb+6+/vS09+MomYh iQaqcuMqBYLhh970T/WJxO02dvMJzBQ1lhrIozv+hs6G3DkiTBPBhnbqUqGKa4t4rxGi rj7ai8d34nH/OjwN4pbZiHOsdaSiKPqPFZqxS1mTzLGpgyCSvINmS3PvNZqaoJ2W+X4e CnyuEpL7zBfVKttET57PQEInPrI0ggHfxfEc8E9T1sitfYnFOVDp70IP/cOYkscIrJfe +KyQVGZQE9B6clQbQO4CMtVbgk6FIjgNTnnfTFLAsoRp6v3JVyv2mhK5sSyLsYx+4ZtL e3KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=tcgD/o9wmWRowTtrJ4oGF1FdAPxCYeUloNVQ+uCH/R8=; b=r0ECLYJNb8R+8Zy9DsDWTq+Ad71xOltAGY2NtC1g/hw1N3F/dMcKAVnIYNryCi1wRv Qjf9AcrD3Ckcfb93WNcfhtkRHbaFIc0KuFJZtAaDek0DQ0aWUeC+ymS4kXlsTWA9GXaa VyeJ/vrRUzIj/YfHsig2ltqiDvORMvRTh0pYRpPI23bbIsxd4jGRGs8uxM1kSCGGsUPs 3VBMzA7+lV2ISikAAqUHBbCYEjCCOdh//IVBdP+IqVKfUoQj4T7JFxfRnQPNXHi+2BJI mdFKHr5+MUatdW/Oaq/OcFCTWi9DpwXTRuqGUd2EpYEr+A+Fw21CdPo6kfHHTiYbXC3h znmg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id d19si177415lfa.0.2021.10.20.09.38.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Oct 2021 09:38:03 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id 19KGc2Ul021250 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Oct 2021 18:38:02 +0200 Received: from md1za8fc.ad001.siemens.net ([167.87.35.209]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 19KGc2RK028082; Wed, 20 Oct 2021 18:38:02 +0200 Date: Wed, 20 Oct 2021 18:38:01 +0200 From: Henning Schild To: Anton Mikanovich Cc: , Baurzhan Ismagulov Subject: Re: [PATCH v2 1/2] CI: install avocado in venv if host does not have it Message-ID: <20211020183801.37ab4b03@md1za8fc.ad001.siemens.net> In-Reply-To: <20211020183237.60a819bc@md1za8fc.ad001.siemens.net> References: <1634724221-26372-1-git-send-email-amikan@ilbers.de> <20211020183237.60a819bc@md1za8fc.ad001.siemens.net> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: K9BT9GkkZWI4 Am Wed, 20 Oct 2021 18:32:37 +0200 schrieb Henning Schild : > Am Wed, 20 Oct 2021 19:10:48 +0300 > schrieb Anton Mikanovich : > > > On 20.10.21 13:03, Anton Mikanovich wrote: > > > From: Henning Schild > > > > > > Avocado packages are currently not available in Debian. Use > > > virtualenv and pip for sites that do not provide avocado as part > > > of execution environment. We expect the execution environment to > > > be Debian-based and to allow us to sudo (true for kas-isar > > > container). > > > > > > Use version 88.0 as the latest working one from pip. > > > > > > Signed-off-by: Henning Schild > > > Signed-off-by: Anton Mikanovich > > > --- > > > scripts/ci_build.sh | 11 +++++++++++ > > > 1 file changed, 11 insertions(+) > > > > > > diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh > > > index 4534957..32054c4 100755 > > > --- a/scripts/ci_build.sh > > > +++ b/scripts/ci_build.sh > > > @@ -14,6 +14,17 @@ export PATH=$PATH:/sbin > > > # Go to Isar root > > > cd "$(dirname "$0")/.." > > > > > > +# install avocado in virtualenv in case it is not there already > > > +if ! command -v avocado > /dev/null; then > > > + sudo apt-get update -qq > > > + sudo apt-get install -y virtualenv > > > + rm -rf /tmp/avocado_venv > > > + virtualenv --python python3 /tmp/avocado_venv > > > + source /tmp/avocado_venv/bin/activate > > > + # The latest working version of Avocado framework > > > + pip install avocado-framework==88.0 > > > +fi > > > + > > > # Get Avocado build tests path > > > BUILD_TEST_DIR="$(pwd)/testsuite/build_test" > > > > > > > Applied to next. > > > So the fix was to pin down the version? That will cause maint headache > ... quality tool and package manager! But thanks for the quick fix! I gave this to our gitlab to try and digest. Having a testsuite is a win for sure, even if i still tend to rant about the choice ... bats or pytest would have been OK as well and readily available via debian. Henning > Henning >