From nobody Mon Feb 9 12:09:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1619190548; cv=none; d=zohomail.com; s=zohoarc; b=LUy6ChXOfm1wB+bj6y0FAu9fy6R3JRcZyVrxW1Yu8lSFFyJ0q8rfJQY7Q6GWCjb1lzEtAICezRz5SD5P+CGD39oPNwKI49rD7USvF/8D5+I3isTxjjmZzcz8aTOTIpG2S1f2w000VS1FVerlxRMPn82zgEYQcQtd24KNbUMMIdM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619190548; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=g/FZ3hDOJXEGQeeqsKhngX5ARAoTJgOCxEiRR1+oW50=; b=M7I0tCFbwzO5lsuAbUOOzATPZEUMSth6K8OxisnB47YojS93NF4VaThXVd8nbhzGTFscFbG8UC8InrMZYqZqYsfsppTCK6OEf7IHJKeFs9YHgN2zobXjootSZDOymsl0ToKfS4CGK3CsWA+nKYzglJlSTiLaMcZb3p4PYKdrcIY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 161919054853373.9757969301462; Fri, 23 Apr 2021 08:09:08 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-442-j-QwbYMUMGigOcJj7aJ5aQ-1; Fri, 23 Apr 2021 11:08:16 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A568918397A8; Fri, 23 Apr 2021 15:08:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 82AE72B0A5; Fri, 23 Apr 2021 15:08:09 +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 20CC11806D22; Fri, 23 Apr 2021 15:08:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 13NF3VQu031780 for ; Fri, 23 Apr 2021 11:03:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3427C10016DB; Fri, 23 Apr 2021 15:03:31 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.195.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FFF210027A5 for ; Fri, 23 Apr 2021 15:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619190547; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=g/FZ3hDOJXEGQeeqsKhngX5ARAoTJgOCxEiRR1+oW50=; b=WpmdSoh3UlUrRiAN+ZCoK46t5ntz40Ab+n3mR9H+rRHAV6n6V4UOD9OtCYmMETodeYz7Rb ZiJ92kAWBbXxU1avsFZnC6eJRt4zBdzR4CIuqy0X9oFsWgB2ETGC4oWmHnucTMBzBqB8vu OCfby51w09Gr099sL8Z2Xx9GDJ4WRCI= X-MC-Unique: j-QwbYMUMGigOcJj7aJ5aQ-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 11/11] ci: helper: Perform some validation on containers Date: Fri, 23 Apr 2021 17:03:08 +0200 Message-Id: <20210423150308.346189-12-abologna@redhat.com> In-Reply-To: <20210423150308.346189-1-abologna@redhat.com> References: <20210423150308.346189-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This reports a nice error messages when the user attempts to perform a cross-build on a target that doesn't support it, or to use a target that doesn't exist at all. Signed-off-by: Andrea Bolognani --- ci/helper | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/helper b/ci/helper index cd3069a89a..d5bdb15112 100755 --- a/ci/helper +++ b/ci/helper @@ -191,10 +191,19 @@ class Application: sys.exit("error: 'make' failed") =20 def _make_run_action(self, action): + registry_uri =3D util.get_registry_uri(self._args.namespace, + self._args.gitlab_uri) + images =3D util.get_registry_images(registry_uri) target =3D self._args.target cross =3D self._args.cross_arch =20 + if target not in images: + sys.exit(f"Unknown target '{target}'") + if cross: + if cross not in images[target]: + sys.exit(f"Target '{target}' doesn't support cross '{cross= }'") + make_target =3D f"{action}@{target}-cross-{cross}" else: make_target =3D f"{action}@{target}" --=20 2.26.3