From nobody Sun Feb 8 20:34:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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 170.10.129.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=1692986184; cv=none; d=zohomail.com; s=zohoarc; b=lZjy23AL4u0tw3b6/K9cZzkRyBBn2uBt8snNqauY8dfBrQJz39f+MquXbOjEPXfpQ/tqpXZb0Gp3G6oKdCAtsObjM7M40vdav0JfEgpGkRvpwURbrrdiVkYi9H4wd6hEzLgrtq3vdvRR0Zem4D8VcCh5vEEeRQ7EOapPNAVqkJ8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692986184; h=Content-Type:Content-Transfer-Encoding:Cc: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=TWviaI5RNBuga+YZIcj97ub1pGjAFPzmpXkCl7WfLQk=; b=cOZeIfG9HSHH+mzJDsNPBzmlY199Pk2cMkQ4bfJG1IdVVmD5ZFdkoP/uWrFZbYvai4LrlzGpKAQY6/fGJ5iNGVfiIzwWYRi/tG4QGphwAxxWREqQxUdI6GPMVcpl39bSgN5iH6SMV9zxU2AFBgnrRMFit/HjeedjLi6Uxd2MM8U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1692986184359506.79428966305784; Fri, 25 Aug 2023 10:56:24 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-421-m8maTlpEPLqpl0n_ar-doQ-1; Fri, 25 Aug 2023 13:56:17 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5B413107850B; Fri, 25 Aug 2023 17:56:04 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1266740D2839; Fri, 25 Aug 2023 17:56:04 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id E8C8819465BD; Fri, 25 Aug 2023 17:56:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 570FC1946A43 for ; Fri, 25 Aug 2023 17:56:03 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 4618340282C; Fri, 25 Aug 2023 17:56:03 +0000 (UTC) Received: from orca.. (unknown [10.45.225.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id C0627403166; Fri, 25 Aug 2023 17:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692986183; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=TWviaI5RNBuga+YZIcj97ub1pGjAFPzmpXkCl7WfLQk=; b=dKoy1qPhw0rYsebdSFTZrVHu+e8EOpmIGgV/vc4PFNWQpAne5titJ5kztCxx4Ho51zeCWv AMqVW7jijun0yU+HfRFQ0mZcvwFZuAn+gVJzPQ0lPvOxAoL0isxvuNFjRTuoJsA3udX+n6 kdYebyR3xAYqFKHCLQqmF+y3xzll8Zw= X-MC-Unique: m8maTlpEPLqpl0n_ar-doQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 25/33] ci: helper: Add a job argparse subparser Date: Fri, 25 Aug 2023 19:55:33 +0200 Message-ID: <88960da15b25e16674b1cb6a2eb082e439fab441.1692986130.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Skultety Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1692986185476100001 Content-Type: text/plain; charset="utf-8"; x-default="true" The idea behind this subcommand is to follow whatever build job we have defined in the GitLab CI pipeline, so that we only have a single source of truth for the recipes. Adds 'shell' as an extra option for interactive container build debugging. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- ci/helper | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ci/helper b/ci/helper index 75552774f6..60fdaed5f4 100755 --- a/ci/helper +++ b/ci/helper @@ -114,6 +114,21 @@ class Parser: ) shellparser.set_defaults(func=3DApplication._action_shell) =20 + jobparser =3D subparsers.add_parser( + "run", + help=3D"Run a GitLab CI job or 'shell' in a local environment", + parents=3D[containerparser], + formatter_class=3Dargparse.ArgumentDefaultsHelpFormatter, + ) + jobparser.add_argument( + "--job", + choices=3D["build", "codestyle", "potfile", "rpmbuild", + "shell", "test", "website"], + default=3D"build", + help=3D"Run a GitLab CI job or 'shell' in a local environment", + ) + jobparser.set_defaults(func=3DApplication._action_run) + # list-images action listimagesparser =3D subparsers.add_parser( "list-images", --=20 2.41.0