From nobody Sat Dec 21 18:32:35 2024 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=1694439852; cv=none; d=zohomail.com; s=zohoarc; b=mQ39GY+Iy7KL//6tzE/4/568n60DtNMp1mvtVJ023lH8ntn8aK1n6W2a+0pgV/EUUFOdMhnVgqkQbeZ1z5R4zPgjfNFIyhrAXqjUOoP7TkCvOdL1JVZebLSJxhyEqPKGw2IXlY5ipezGUmHyF7baOtyz6FDhbF9mHipB8SbsQz8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694439852; 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=biiqwu/d3RbiYJg01lj0Tb2PDI5Fui/jOHABVn5AY14=; b=Lx6JvxLffLGEzq7RaCYj56dHJGoEsOl6OPppVxW2au1+yx+WuwjBQbolG1fUVIyniRi1rh+LnpIenYxca2VvwmaT6zI2Bx5I1iAsVGXkE8LeJX9YUzHmCFvJ7F4p78UuLzJmEPDbQ+VKTh7OgHowEx06hB8FbD1EkqGhhfBLI/Q= 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 1694439852856395.6823118820955; Mon, 11 Sep 2023 06:44:12 -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-637-G25Q9k_qMiGBZjXEn1KuVw-1; Mon, 11 Sep 2023 09:44:04 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EA666182E7E3; Mon, 11 Sep 2023 13:43:51 +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 D17222156701; Mon, 11 Sep 2023 13:43:51 +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 BF6A91946A52; Mon, 11 Sep 2023 13:43:47 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A34BD1946A52 for ; Mon, 11 Sep 2023 13:43:46 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 84C282018111; Mon, 11 Sep 2023 13:43:46 +0000 (UTC) Received: from orca.home.lan (unknown [10.45.225.151]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09AB320111D6; Mon, 11 Sep 2023 13:43:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694439851; 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=biiqwu/d3RbiYJg01lj0Tb2PDI5Fui/jOHABVn5AY14=; b=L6g8sbQRwckwI+MozSnHXbMip6HfKnRoVRFt4BtXx/9LU+E0I+Ey0iQTHgRNBSCnOLyfJU TTRDfQkIkAXHLfSRD5rUv6zhZnljFInUQtnGEP50ufXljp2dsjygvQVUmZZQMpOinxvG0h i60V39+5DVExKx+aPXQNn8I5rB4JkI0= X-MC-Unique: G25Q9k_qMiGBZjXEn1KuVw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH v2 10/35] ci: build.sh: Add a wrapper function over the 'potfile' job Date: Mon, 11 Sep 2023 15:43:11 +0200 Message-ID: <23a15b0dfa936775e8ba8f5c56a47d16ba1fd1ed.1694439815.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 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.6 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: 1694439853986100001 Content-Type: text/plain; charset="utf-8"; x-default="true" This helper is a shell function transcript of its original GitLab CI counterpart. There's one notable difference such that we pass '-j1' to the meson compile command otherwise we'd have to execute the 'run_build' function twice, passing 'libvirt-pot-dep' and 'libvirt-pot' targets in a serial manner. Signed-off-by: Erik Skultety Erik Skultety : Reviewed-by: Daniel P. Berrang=C3=A9 --- ci/build.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index e6c3225691..d6361f3ade 100644 --- a/ci/build.sh +++ b/ci/build.sh @@ -65,3 +65,14 @@ run_codestyle() { run_build run_test } + +run_potfile() { + # since meson would run jobs for each of the following target in paral= lel, + # we'd have dependency issues such that one target might depend on a + # generated file which hasn't been generated yet by the other target, = hence + # we limit potfile job to a single build job (luckily potfile build has + # negligible performance impact) + BUILD_ARGS=3D"-j1 libvirt-pot-dep libvirt-pot" + + run_build +} --=20 2.41.0