public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Henning Schild <henning.schild@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>
Cc: <isar-users@googlegroups.com>, Baurzhan Ismagulov <ibr@ilbers.de>
Subject: Re: [PATCH] CI: install avocado debian packages from isar-build.org
Date: Tue, 26 Oct 2021 10:02:12 +0200	[thread overview]
Message-ID: <20211026100212.2a7afcc6@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <2af99710-e905-1865-021e-a0eeac0c113c@ilbers.de>

Am Tue, 26 Oct 2021 10:37:00 +0300
schrieb Anton Mikanovich <amikan@ilbers.de>:

> 22.10.2021 10:57, Henning Schild wrote:
> > Might be better than doing it with pip. So we only need to maintain
> > one path while waiting for upsteam debian to ship packages.
> >
> > Signed-off-by: Henning Schild <henning.schild@siemens.com>
> > ---
> >   scripts/ci_build.sh | 14 ++++++++------
> >   1 file changed, 8 insertions(+), 6 deletions(-)
> >
> > diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
> > index 5ff455e3d77b..ddec9e38cb87 100755
> > --- a/scripts/ci_build.sh
> > +++ b/scripts/ci_build.sh
> > @@ -14,14 +14,16 @@ export PATH=$PATH:/sbin
> >   # Go to Isar root
> >   cd "$(dirname "$0")/.."
> >   
> > -# install avocado in virtualenv in case it is not there already
> > +# install avocado in from deb.isar-build.org 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
> > -    pip install avocado-framework
> > +    sudo apt-get install gnupg2 lsb-release curl -y
> > +    codename=$( lsb_release -cs )
> > +    curl http://deb.isar-build.org/debian-isar.key --output
> > /tmp/isar-gpg.pub
> > +    sudo apt-key add /tmp/isar-gpg.pub
> > +    echo "deb http://deb.isar-build.org/debian-isar $codename-isar
> > main" | sudo tee /etc/apt/sources.list.d/isar.list > /dev/null
> > +    sudo apt-get update -qq
> > +    sudo apt-get install -y avocado
> >   fi
> >   
> >   # Get Avocado build tests path  
> 
> What is the main difference of this patch and `[PATCH v10 17/17] 
> ci_build: Install Avocado if needed` (besides distro detection and
> apt-get)? Looks pretty much like the way we proposed originally.

I think that sums it up, it added distro-detection and uses apt-get.

Not sure which you will find easier to maintain. I guess pip might end
up being less work, because you can drop the maint of that debian
mirror (there is no trace of it in the docs, maybe on your jenkins).

While pip is moving "out of control" it will also serve as a detection
mechanism if avocado breaks again. I think i would prefer pip after
all, seeing the risk also as a chance to keep up to date with little
effort.

But feel free to take the patch if you want to go the debian route and
maintain that repo. (in which case it might be a good idea to write in
testsuite/README.md where that deb might be coming from)

Henning

  reply	other threads:[~2021-10-26  8:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-22  6:51 [PATCH] CI: Fix paths for the latest Avocado version Anton Mikanovich
2021-10-22  7:57 ` [PATCH] CI: install avocado debian packages from isar-build.org Henning Schild
2021-10-22  7:59   ` Henning Schild
2021-10-22  8:08   ` Henning Schild
2021-10-26  7:37   ` Anton Mikanovich
2021-10-26  8:02     ` Henning Schild [this message]
2021-11-02 16:21 ` [PATCH] CI: Fix paths for the latest Avocado version Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211026100212.2a7afcc6@md1za8fc.ad001.siemens.net \
    --to=henning.schild@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=ibr@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox