From nobody Sun Feb 8 17:03:49 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=1651851342; cv=none; d=zohomail.com; s=zohoarc; b=IWRdSeHDvQ7hFtjqwj8wQcM/XeZZ5HYxnuS8NUF7xicxw/fhFk1YD4DMpgKY8RN6xmG35W1npJ/kMVyHI+3+qYlC01p3759Ck2OEG6/sdfa2sOm0TF6U0ToIPKWd+2OOdM8xMxl+8mtir7GxP6v1HZ/FMn5K6WwrytBVMYPSnZU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1651851342; 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=jJ9FUFdXxAVaGeupJCoE92JJV+prGzOinYJYnDVcewg=; b=emwuV3TJP5t4FQY70nyM17qrMGrlLEjz1g4FrlCntOSGkqaL1zzs6QdznK6c2nsOagEpMqTlcCpeAX+arXY+AAus4uOWNnjDxplysaSoFoO25Bqrb7pYrtvcTMZsVmZe9D1c63YY6wtFIzEYVJ8kf7clg5RQFblZDWX1pZn53Ow= 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 16518513426971015.4748746156257; Fri, 6 May 2022 08:35:42 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [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-605-95IwXSPuPi-SYWuWH8QF7Q-1; Fri, 06 May 2022 11:35:38 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0493D3AF42A4; Fri, 6 May 2022 15:35:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id E523D54ECEB; Fri, 6 May 2022 15:35:31 +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 C5D7B1947058; Fri, 6 May 2022 15:35:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 127921947057 for ; Fri, 6 May 2022 15:35:30 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 024A2111E414; Fri, 6 May 2022 15:35:30 +0000 (UTC) Received: from nautilus.home.lan (unknown [10.40.192.57]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76AA81121315; Fri, 6 May 2022 15:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651851341; 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=jJ9FUFdXxAVaGeupJCoE92JJV+prGzOinYJYnDVcewg=; b=OK4iqp1rz/D1GJdiIncFMjKhvOV+tj1djKUqWNzwegXQh4rihHPVWVXPrhWEk+jgsMSnAU tZkt3i3ed+g42Q94TZCqV6PTyeWxprxa8fUF9ZOLFY04STtI1GTJ2VoDbGXhx7zNNjbUDv xKqsdl04DpfpDGYEWveojvpH0dg/WMw= X-MC-Unique: 95IwXSPuPi-SYWuWH8QF7Q-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH 3/5] ci: Introduce a template for upstream QEMU build Date: Fri, 6 May 2022 17:35:18 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 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: eskultet@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 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) X-ZM-MESSAGEID: 1651851344047100003 Content-Type: text/plain; charset="utf-8"; x-default="true" Rather than writing down the steps to build QEMU from source ourselves let's recycle what upstream QEMU uses in their CI. This has the obvious advantage that if QEMU changes something in their upstream CI build process we'll pull the change automatically. Since YAML anchors cannot be used in a cross-file scenario this patch makes use of the '!reference' keyword which allows us go even further and thus pick useful parts from the upstream QEMU's CI build template. In addition, we're also able to add more intermediary steps to these hand-picked QEMU build job sections. Signed-off-by: Erik Skultety --- ci/integration-template.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ci/integration-template.yml b/ci/integration-template.yml index 195e9cfa5f..d1934b1469 100644 --- a/ci/integration-template.yml +++ b/ci/integration-template.yml @@ -1,3 +1,20 @@ +# We want to reuse QEMU's .native_build_job_template to build it from sour= ce +include: + - project: 'qemu-project/qemu' + file: '.gitlab-ci.d/buildtest-template.yml' + + +.qemu-build-template: &qemu-build-template + - git clone --depth 1 https://gitlab.com/qemu-project/qemu.git + - cd qemu + # + # QEMU's .native_build_job_template bits + - export TARGETS=3D"x86_64-softmmu" + - export CONFIGURE_ARGS=3D"--prefix=3D/usr" + - export MAKE_CHECK_ARGS=3D"check-build" + - !reference [.native_build_job_template, before_script] + - !reference [.native_build_job_template, script] + - sudo make install =20 =20 .install-deps: &install-deps --=20 2.34.1