From nobody Mon Feb 9 12:25:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1532017958416340.7748558467075; Thu, 19 Jul 2018 09:32:38 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B88A6C04AC5D; Thu, 19 Jul 2018 16:32:36 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 77D8B308332F; Thu, 19 Jul 2018 16:32:36 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0343914B08; Thu, 19 Jul 2018 16:32:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w6JGWJVR003754 for ; Thu, 19 Jul 2018 12:32:20 -0400 Received: by smtp.corp.redhat.com (Postfix) id D2EA31C5B7; Thu, 19 Jul 2018 16:32:19 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74B401C5BC for ; Thu, 19 Jul 2018 16:32:19 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 19 Jul 2018 18:32:07 +0200 Message-Id: <20180719163208.23126-8-abologna@redhat.com> In-Reply-To: <20180719163208.23126-1-abologna@redhat.com> References: <20180719163208.23126-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com Subject: [libvirt] [jenkins-ci PATCH 7/8] lcitool: Allow installing a subset of build dependencies X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 19 Jul 2018 16:32:37 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" For CentOS CI, we need build dependencies for all known projects to be installed; however, when using lcitool for development purposes, it is very convenient to install just the subset relevant to the project that's being worked on, as doing so reduces the storage requirements and makes the update procedure quite a bit faster. The previous behavior can still be obtained by using $ lcitool -a update -p all ... Signed-off-by: Andrea Bolognani Reviewed-by: Erik Skultety --- guests/lcitool | 4 +++- guests/playbooks/update/main.yml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/guests/lcitool b/guests/lcitool index 96a59ac..2aa9674 100755 --- a/guests/lcitool +++ b/guests/lcitool @@ -430,7 +430,7 @@ class Application: except Exception: raise Error("Failed to install '{}'".format(host)) =20 - def _action_update(self, hosts, _projects): + def _action_update(self, hosts, projects): base =3D Util.get_base() =20 flavor =3D self._config.get_flavor() @@ -438,6 +438,7 @@ class Application: root_pass_file =3D self._config.get_root_password_file() =20 ansible_hosts =3D ",".join(self._inventory.expand_pattern(hosts)) + selected_projects =3D self._projects.expand_pattern(projects) =20 ansible_cfg_path =3D os.path.join(base, "ansible.cfg") playbook_base =3D os.path.join(base, "playbooks", "update") @@ -448,6 +449,7 @@ class Application: "playbook_base": playbook_base, "root_password_file": root_pass_file, "flavor": flavor, + "selected_projects": selected_projects, }) =20 cmd =3D [ diff --git a/guests/playbooks/update/main.yml b/guests/playbooks/update/mai= n.yml index 4de759b..753bac4 100644 --- a/guests/playbooks/update/main.yml +++ b/guests/playbooks/update/main.yml @@ -34,11 +34,11 @@ # Install build dependencies for each project - include: '{{ playbook_base }}/tasks/packages.yml' with_items: - '{{ projects }}' + '{{ selected_projects }}' loop_control: loop_var: project when: - - projects is defined + - project in projects =20 # Install packages needed for the Jenkins agent - include: '{{ playbook_base }}/tasks/packages.yml' --=20 2.17.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list