From nobody Mon Feb 9 00:56:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1692986185; cv=none; d=zohomail.com; s=zohoarc; b=Sqz660+PtOBqrWh4/QzCzxa1PKJLwRez0EhUaGVeHaPdTcCHCLIHPyDyy/dZrGvOhrvXtDaUxa4/yh55Budgs5o+2YrN9X44oRvFcN6P20V28hIK1y8s0zFsDcS5W26nV2UuqA8AIL1Ba1RGXmEWAyiAdZPaX6d+4w4Tv8O4vYQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1692986185; 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=xtRaUZ96J/xOnKOTHHJ+Sf48JllM+TpxA8K+Zt18PaQ=; b=jog9cX0EqlHttq5908enOhOVjab66iwxiHHt2ZI7UutIDXtwR8eLpDPiDH07xvpvb5PulF331qmSXBhNx38ifcpvN64zTvlrNPKkC1wL16Dw0EA9KWZMTUm3L4UQhYJSIRgSt+mqToi8gb2zEFJqhwJSyXBUgj/fWp/goeWqEsc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1692986185063785.3476703137507; Fri, 25 Aug 2023 10:56:25 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-384-OtWOyYn2MD6WQtex6FwAkA-1; Fri, 25 Aug 2023 13:56:18 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D7BB7280FED8; Fri, 25 Aug 2023 17:56:06 +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 C461E2026D68; Fri, 25 Aug 2023 17:56:06 +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 A181419465B5; Fri, 25 Aug 2023 17:56:06 +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 E02FF19465BC for ; Fri, 25 Aug 2023 17:56:04 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B4C9E492C14; Fri, 25 Aug 2023 17:56:04 +0000 (UTC) Received: from orca.. (unknown [10.45.225.96]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3AA794A9005; Fri, 25 Aug 2023 17:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692986184; 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=xtRaUZ96J/xOnKOTHHJ+Sf48JllM+TpxA8K+Zt18PaQ=; b=Cb0+vA2ht8u2zeHfisgQb3oxwkZ29hTWJNJGx3TnNiMUvsQfTil1ngQPxPVHgB7qoLnAqW lAaltZwmHiW6kQz4q/W9S0/DFKKhxYapriPRBHYSsbsnVh8nB+ytk0OPjaRXTOsY9yOfYM QIXl+XwGphilmRC9QX4G8oEJduwtqgk= X-MC-Unique: OtWOyYn2MD6WQtex6FwAkA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 27/33] ci: helper: Add Python code hangling git clones Date: Fri, 25 Aug 2023 19:55:35 +0200 Message-ID: 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.4 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: 1692986185947100003 Content-Type: text/plain; charset="utf-8"; x-default="true" This helper will be utilized by a future patch which will add the lcitool container execution logic. The reason why the required_deps decorator isn't being used here is because this is a property. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- ci/helper | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/helper b/ci/helper index 780f4161f5..2a51ce1786 100755 --- a/ci/helper +++ b/ci/helper @@ -174,9 +174,18 @@ class Parser: =20 =20 class Application: + @property + def repo(self): + if self._repo is None: + from git import Repo + + self._repo =3D Repo(search_parent_directories=3DTrue) + return self._repo + def __init__(self): self._basedir =3D pathlib.Path(__file__).resolve().parent self._args =3D Parser().parse() + self._repo =3D None =20 def _make_run(self, target): args =3D [ --=20 2.41.0