From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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=1585226160; cv=none; d=zohomail.com; s=zohoarc; b=Wo37hyuNdOtI0ouS+0NNK7e+iZ6n5o/rnpCEDSAsrtlPJPMMKOk08733UNk3wadlp+OtkS9F7FnUFxf5ksLlpRNVDZPDLyz3h0ChpF+wPXLhm392tagU0yi60/AmevRgAVxupN88c8oAVwiTbH0YvnSeOxOd9b+kB7AytnDbMak= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226160; 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=xCvlG7qxgPR+e5t+1iA5qPlSJ+ZREbGOBQfxlbgW8EM=; b=aJJ2KUC67jPSG7xBynIyFMNaFz5N7BDCdgLxnCIklotjWsp82kE0CCzG9wgQf9jUOKUNUCMIE0QR2EwISXRaLh9wm66ONhgeywbPgemQB+ooP7NMocG++qznc9qdbGvyLOvNPP/XMQ4IR2ggSbpodUMeNPOt/Vf6yBGhP3cec2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1585226160182324.7899260937079; Thu, 26 Mar 2020 05:36:00 -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-484-EGW2KW6GPR6yBSuV0P2ZGA-1; Thu, 26 Mar 2020 08:35:56 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EB3C38017DF; Thu, 26 Mar 2020 12:35:50 +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 0F281A0A6F; Thu, 26 Mar 2020 12:35:49 +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 A17771832DA3; Thu, 26 Mar 2020 12:35:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZj6P022577 for ; Thu, 26 Mar 2020 08:35:45 -0400 Received: by smtp.corp.redhat.com (Postfix) id 75E97A0A6F; Thu, 26 Mar 2020 12:35:45 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 25A56A0A94; Thu, 26 Mar 2020 12:35:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226158; 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=xCvlG7qxgPR+e5t+1iA5qPlSJ+ZREbGOBQfxlbgW8EM=; b=SG4j3LyCcHfF5jfq40FpLPbEEf1h2V+RLSgRp8R45bleiDaU4QEdr4WZAk8MQxqTQNzj02 xeqM6QmmSh1lNTANgKF5Y2kCZJxxQnBPh1hwNSM/TBldvKY4i5vFbXVfbG0Ib6pcDXRJw/ a6HAtycSyrt98mJ61o6+Qy4dbozDcS8= X-MC-Unique: EGW2KW6GPR6yBSuV0P2ZGA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 01/12] gitlab: add variable for make command name Date: Thu, 26 Mar 2020 12:35:27 +0000 Message-Id: <20200326123538.4177062-2-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Andrea Bolognani , Erik Skultety 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.11 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" To facilitate future jobs that will use FreeBSD Reviewed-by: Andrea Bolognani Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ea49c6178b..6f77ab55ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,12 @@ +variables: + MAKE: make + .job_template: &job_definition script: - mkdir build - cd build - ../autogen.sh $CONFIGURE_OPTS || (cat config.log && exit 1) - - make -j $(getconf _NPROCESSORS_ONLN) + - $MAKE -j $(getconf _NPROCESSORS_ONLN) =20 # We could run every arch on every versions, but it is a little # overkill. Instead we split jobs evenly across 9, 10 and sid --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585226167; cv=none; d=zohomail.com; s=zohoarc; b=i5b/S1dsGjrF5C8jiOMFkhol5Qyqc4KvAcyRWqQ/J8yWxH4SiXhQ7R4ySbrPFUjwYQBi06szxx6c0PsheIP6E2iJXlIFAG3zELKH3u9ywxQJ6BGM7qvDxE27IQI/OIl7lGKVp4W0FpEd6dJ9ps6zUy7I8NSWkJ8y4sQJ/sDiHLM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226167; 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=7t4MMgpjjMMke+LZ2UiMATvvq7JpK9JS6SAWyIgUo3E=; b=R6sHCumO1iBId3OZzm46PQHDsFncKK3z9HcoUolZKZt/MVB0Za+IelAjZhVQdC4ijAFi6WNISFLWc/M+FkP/YlWuDcLgau30Xn6oeKrC6mhbyZ808nwYr71rkGVi2RqAv/6qQc72dnDw75671bkdfhUy6+WgDht0mvQidWUXClw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585226167171501.93122850950976; Thu, 26 Mar 2020 05:36:07 -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-147-WL9V8Sn8OwCvoAIQk073Dw-1; Thu, 26 Mar 2020 08:36:00 -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 D13AC801E66; Thu, 26 Mar 2020 12:35:54 +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 767A992FA2; Thu, 26 Mar 2020 12:35:54 +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 23DFB1832DAA; Thu, 26 Mar 2020 12:35:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZlTR022587 for ; Thu, 26 Mar 2020 08:35:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id 8217AA0A60; Thu, 26 Mar 2020 12:35:47 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 106D0A0A94; Thu, 26 Mar 2020 12:35:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226165; 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=7t4MMgpjjMMke+LZ2UiMATvvq7JpK9JS6SAWyIgUo3E=; b=MMM4e7J5n7t0jcXcE6uKoXADWzBFbqXWwfVlb/07RagnCvEMqZ/EoMcRuezxkBAqrA2Y9R WLS4OKYStxNn/+7RzlAdRp/cAnixhqUsiePB4fO0P6pAbArfdz7Ex9bP8i0MacniP2tvgu 8bOq7zjPfIVCirYQMBBoK8xPTvhVB5I= X-MC-Unique: WL9V8Sn8OwCvoAIQk073Dw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 02/12] gitlab: restrict git history to 100 commits Date: Thu, 26 Mar 2020 12:35:28 +0000 Message-Id: <20200326123538.4177062-3-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Andrea Bolognani , Erik Skultety 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 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" We don't need the full git history when running CI jobs. From a code POV we only need the most recent commit, but we want to be able to run checks on the commits too. In particular to validate the DCO signoff for each commit. Reviewed-by: Andrea Bolognani Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f77ab55ba..4438f51a6a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ variables: MAKE: make + GIT_DEPTH: 100 =20 .job_template: &job_definition script: --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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=1585226176; cv=none; d=zohomail.com; s=zohoarc; b=gve8H8RlfxeZoB0sGpnXhwI5QBzTwyYSymkFnSO2FDdqYM8MifZKU7JarXj0fazEc8uchttRpOF0GofE9SEMy8r7/QkxzaCFZVpa3CPD3dL6pq451rPBMyUVZNYxmvk9YaZ13hIBL1KZkSkSDnEEHAwJllY+2HLiW7epQ4kgCeA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226176; 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=XJBHa99Qt0ohE0A2bHhAdK9F9PbULIgNZuvR7R12eu8=; b=hFEaTNPlwPXq5CXRRa8Dwo9f7oIbHvOSMCTjKQZDS+9oyx2Ni8HdA/0s2BcundbBx9MOq/j40wRkOOmcXtH19wfTZkdZOCwsm3LJuL/onakg09TU7nMW96P6s4nOfqhmwkeuNBhg0oDZbuEW5620rgxUCxYQCQBEDNvG+zsywMQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1585226176176485.34478692124014; Thu, 26 Mar 2020 05:36:16 -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-462-NJ0pYfX4NF-3RZyNholiAg-1; Thu, 26 Mar 2020 08:36:12 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A85BC18FF660; Thu, 26 Mar 2020 12:36:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FEED60BF7; Thu, 26 Mar 2020 12:36:06 +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 B0AB88A039; Thu, 26 Mar 2020 12:36:05 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZn9K022603 for ; Thu, 26 Mar 2020 08:35:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id CE55EA0A97; Thu, 26 Mar 2020 12:35:49 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2622DA0A60; Thu, 26 Mar 2020 12:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226174; 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=XJBHa99Qt0ohE0A2bHhAdK9F9PbULIgNZuvR7R12eu8=; b=c40nSmuPrM3VQafODmuzenj61rPqn79Ou7PJ7QTIvZ67lgCOwqa+qSdgeUFUMvnl8remIp KXRrxIzrzutepodNlVJE4t23JCm/xgxmxtPkYZk1zSuRJuGkYPc4/2HSxvFtVlhpolHZSn zuQkoruuMIicaxXjqfVTi/qNfAneWnE= X-MC-Unique: NJ0pYfX4NF-3RZyNholiAg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 03/12] gitlab: create an explicit stage for cross build jobs Date: Thu, 26 Mar 2020 12:35:29 +0000 Message-Id: <20200326123538.4177062-4-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Erik Skultety 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.12 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" As we introduce more build jobs, it will be useful to have a grouping of jobs to more easily visualize the results and potentially control build ordering. Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Andrea Bolognani --- .gitlab-ci.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4438f51a6a..8d22706bd4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,12 @@ variables: MAKE: make GIT_DEPTH: 100 =20 -.job_template: &job_definition +stages: + - cross_build + + +.cross_build_default_job_template: &cross_build_default_job_definition + stage: cross_build script: - mkdir build - cd build @@ -14,37 +19,37 @@ variables: # to achieve reasonable cross-coverage. =20 debian-9-cross-armv6l: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-armv6l:latest =20 debian-9-cross-mips64el: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips64el:latest =20 debian-9-cross-mips: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips:latest =20 debian-10-cross-aarch64: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-aarch64:latest =20 debian-10-cross-ppc64le: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-ppc64le:latest =20 debian-10-cross-s390x: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-s390x:latest =20 debian-sid-cross-armv7l: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-armv7l:latest =20 debian-sid-cross-i686: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-i686:latest =20 debian-sid-cross-mipsel: - <<: *job_definition + <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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=1585226214; cv=none; d=zohomail.com; s=zohoarc; b=e0+7ucuDD9sdf0Pn0Lv2MfG8shxgXu7v2pSgy38XsJC8U/g5kpshr8eKmGI7793178C8wMnJ18GM7q6IKxFvz2crSKpqs9Qn31ypirTkaelM7Jop6bHCop82kaApjUWkzRQq2xYW9PBU+JslIscItyMnAOeHcuNoKAyFlrZ4+oE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226214; 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=Lo3qqhUxLnixQC7edLOGiP5R1CCl5J2CMIWq6lKUrVk=; b=TtIvHy/vINqsdq7+PeuYnHbaB8tivPywu01k0hxte2b3nR3OMEAh6at9llCbpnk6sP5Zu1ADPqa/GrxVM68gvHo4cFLBcpAnSzUke48Dj/91PZPJNCJ97tMZnoK0Z2BS37s2Uhj4tL3Wav7WzTvFdD4ysjUQJ0IPcD0EHk/13r4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 158522621458355.54993626448049; Thu, 26 Mar 2020 05:36:54 -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-202-GS2uTFpTNralWvMBVNR2oQ-1; Thu, 26 Mar 2020 08:36:50 -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 2CC6A108443F; Thu, 26 Mar 2020 12:36:45 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0568792FA9; Thu, 26 Mar 2020 12:36:45 +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 A8DEF8A045; Thu, 26 Mar 2020 12:36:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZpDZ022611 for ; Thu, 26 Mar 2020 08:35:51 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4355DA0A97; Thu, 26 Mar 2020 12:35:51 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2AE02A0A60; Thu, 26 Mar 2020 12:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226213; 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=Lo3qqhUxLnixQC7edLOGiP5R1CCl5J2CMIWq6lKUrVk=; b=Zv53zgs51f+h76rSMdhatU5x/HJqj9fQp8IUm8VxJccNHcMguDrw5HiJxnsDdtW0pSxgX0 nJo192Q/fpIrgxvJBuxF5OQfNGwSl8csISUZ+rThkxcZKkH1EA8lgSk/SLh7P2FbxL3RaR HKCpSYBONADjJJWOlLxD7xNsq2rjE5g= X-MC-Unique: GS2uTFpTNralWvMBVNR2oQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 04/12] gitlab: use CI for building website contents Date: Thu, 26 Mar 2020 12:35:30 +0000 Message-Id: <20200326123538.4177062-5-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Erik Skultety 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 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" Run the bare minimum build that is possible to create the docs, avoiding compiling code which other jobs will deal with. The generated website is published as an artifact and thus is browsable by developers on build completion and can be downloaded as a zip file. Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Andrea Bolognani --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d22706bd4..b79d9a2b77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: GIT_DEPTH: 100 =20 stages: + - prebuild - cross_build =20 =20 @@ -53,3 +54,25 @@ debian-sid-cross-i686: debian-sid-cross-mipsel: <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest + +# This artifact published by this job is downloaded by libvirt.org to +# be deployed to the web root: +# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?j= ob=3Dwebsite +website: + stage: prebuild + script: + - mkdir build + - cd build + - ../autogen.sh --prefix=3D$(pwd)/../vroot || (cat config.log && exit = 1) + - $MAKE -j $(getconf _NPROCESSORS_ONLN) -C docs + - $MAKE -j $(getconf _NPROCESSORS_ONLN) -C docs install + - cd .. + - mv vroot/share/doc/libvirt/html/ website + image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest + artifacts: + expose_as: 'Website' + name: 'website' + when: on_success + expire_in: 30 days + paths: + - website --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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=1585226181; cv=none; d=zohomail.com; s=zohoarc; b=FNpIddxS3hzvIPJGYSByrOkSas9SFcYEuNv6vQBN5pw/xYkquHivGPIYwPzK9AIWjR/kc0tnU0gNkCOkqm4pxOrAdT3njFX4CF3rxpfjC8CJq9L+3oSgCDn9NvjpwI5uYtt5R/usELDclG7BXBp13Uq4BE2Ff3QBhojxMh6mrWY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226181; 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=iTA9f2jcHea5dRmrdrk1fNC3R7qVAcA9AKjID4sYzkY=; b=NJ787GaYgRFP6K4OUPr/XzOYwUdMw3EETeyyArNENNb/mfbJYKrwsxZ3beKrh2UzN46LFICxqyEdx1CFRFQoKuivHm0xyfQ/UsgDwWiKQ0sBB1sjPFAbTddEgmUMApZLBpG4wk+0yu7eVPtrI5cXL7E5RaPqknzKnd1VlmT3t+A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1585226181144292.3600894779278; Thu, 26 Mar 2020 05:36:21 -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-192-ceozPDXOOdSjNJ0zi1xp1w-1; Thu, 26 Mar 2020 08:36:16 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1629F800D6C; Thu, 26 Mar 2020 12:36:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CCCB4953C0; Thu, 26 Mar 2020 12:36:10 +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 3705D8A045; Thu, 26 Mar 2020 12:36:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZqCi022618 for ; Thu, 26 Mar 2020 08:35:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7D0C0A0A94; Thu, 26 Mar 2020 12:35:52 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA70FA0A6F; Thu, 26 Mar 2020 12:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226179; 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=iTA9f2jcHea5dRmrdrk1fNC3R7qVAcA9AKjID4sYzkY=; b=PQo2ebrenYuVbbDeoCeD+YRW2GiZjoE7HMTECRk86wa4yRWCCil+Ixwwn0oI71bxWou7JK wUfB7wLezvhslV2fCttIAFgdTa/1UDinDCD7YvNi1U2/67ql0Ql1HSiG48Qdc/LsTG4jDV ryWM/ClftjHOE29Nau8mX6aRaB9Xmx8= X-MC-Unique: ceozPDXOOdSjNJ0zi1xp1w-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 05/12] gitlab: reduce number of cross build jobs run by default Date: Thu, 26 Mar 2020 12:35:31 +0000 Message-Id: <20200326123538.4177062-6-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.15 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" Currently we nine different cross build jobs, but as we introduce more native jobs this is going to result in a very long CI execution time. For developers testing their personal branches under development it is generally sufficient to just look at a couple of interesting scenarios, namely 32-bit and big endian. This splits the cross build jobs so that by default only the armv7 and s390x archs are built. The remainining archs are setup so that they are only built for code on the master branch, which will have the effect of doing post-merge testing. Developers can opt-in to full testing of their pre-merge code by pushing it to a branch with a name prefix of "ci-extra-". Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Erik Skultety --- .gitlab-ci.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b79d9a2b77..5fa80a0458 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,7 @@ stages: - cross_build =20 =20 +# Default cross build jobs that are always run .cross_build_default_job_template: &cross_build_default_job_definition stage: cross_build script: @@ -15,28 +16,33 @@ stages: - ../autogen.sh $CONFIGURE_OPTS || (cat config.log && exit 1) - $MAKE -j $(getconf _NPROCESSORS_ONLN) =20 -# We could run every arch on every versions, but it is a little -# overkill. Instead we split jobs evenly across 9, 10 and sid -# to achieve reasonable cross-coverage. +# Extra cross build jobs that are only run post-merge, or +# when code is pushed to a branch with "ci-extra-" name prefix +.cross_build_extra_job_template: &cross_build_extra_job_definition + <<: *cross_build_default_job_definition + only: + - master + - /^ci-extra-.*$/ + =20 debian-9-cross-armv6l: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-armv6l:latest =20 debian-9-cross-mips64el: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips64el:latest =20 debian-9-cross-mips: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips:latest =20 debian-10-cross-aarch64: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-aarch64:latest =20 debian-10-cross-ppc64le: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-ppc64le:latest =20 debian-10-cross-s390x: @@ -48,11 +54,11 @@ debian-sid-cross-armv7l: image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-armv7l:latest =20 debian-sid-cross-i686: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-i686:latest =20 debian-sid-cross-mipsel: - <<: *cross_build_default_job_definition + <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest =20 # This artifact published by this job is downloaded by libvirt.org to --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585226218; cv=none; d=zohomail.com; s=zohoarc; b=QrGeNfFNGbaylj5s0w/VEFu48XeYvO2C6ToN+vBGqR6VNyBzH5LcGJrFkHSnuw64NUAWOMuklbpPcZHr1m17g0fkbaTcTGcUuiO3tvXW2p8A5GBJjCCK1u6yppo0Y8YtDIBbCJlboyOxZjgG77MMMtzFKGly/k3D7/pPzeezevc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226218; 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=BN2JimS4+mxCNc9Nr7ntjQxM+SJxYDCA5qJ9BdqU20o=; b=lQUtBK/SSSB5Gtw72K18dRGLjFoOhnrhe9DqCfidPjKZ71sCL9vx8nyTAz2x+0DXEgB3xYqdj8b/6WtJCcUsX1fzJRSLqvrWQXhVRhxEqRxlgpe5uKee7D+DHfWEDdioxfgGh61xP4hyeUfL84UX4XwIdKwtJVbxArBh4UfQRFM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 15852262189021013.7711730406832; Thu, 26 Mar 2020 05:36:58 -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-243-bPMoFsShPnmjez7vU7kHLg-1; Thu, 26 Mar 2020 08:36:55 -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 0140F800D53; Thu, 26 Mar 2020 12:36:49 +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 D045592FA6; Thu, 26 Mar 2020 12:36:48 +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 83AAC1832DAD; Thu, 26 Mar 2020 12:36:48 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZsJA022629 for ; Thu, 26 Mar 2020 08:35:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 7C5CDA0A6F; Thu, 26 Mar 2020 12:35:54 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id D318EA0A85; Thu, 26 Mar 2020 12:35:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226217; 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=BN2JimS4+mxCNc9Nr7ntjQxM+SJxYDCA5qJ9BdqU20o=; b=Okh3Uj4zXCZOzIX24PmXw0LTIp/c41se/PIDePBOJc3RUtx3NprfN56r++vKrjEBZ607fK HXCkNBwOC7sACVNnuYs3oHQD7j0HKDWe6VMRIbI/yAtEwof2tucEWW6gXTDyl3Q1Za1V2h LV9vKJ0Y+BKp39VXB92ixa1Cb8SOPyk= X-MC-Unique: bPMoFsShPnmjez7vU7kHLg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 06/12] gitlab: rename the cross build jobs Date: Thu, 26 Mar 2020 12:35:32 +0000 Message-Id: <20200326123538.4177062-7-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Erik Skultety 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 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" The pipeline UI will truncate the names of jobs after about 15 characters. As a result with the cross-builds, we truncate the most important part of the job name. Putting the most important part first is robust against truncation, and we can drop the redundant "-cross" stub. Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Andrea Bolognani --- .gitlab-ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5fa80a0458..7de450e37d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,39 +25,39 @@ stages: - /^ci-extra-.*$/ =20 =20 -debian-9-cross-armv6l: +armv6l-debian-9: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-armv6l:latest =20 -debian-9-cross-mips64el: +mips64el-debian-9: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips64el:latest =20 -debian-9-cross-mips: +mips-debian-9: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-mips:latest =20 -debian-10-cross-aarch64: +aarch64-debian-10: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-aarch64:latest =20 -debian-10-cross-ppc64le: +ppc64le-debian-10: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-ppc64le:latest =20 -debian-10-cross-s390x: +s390x-debian-10: <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-10-cross-s390x:latest =20 -debian-sid-cross-armv7l: +armv7l-debian-sid: <<: *cross_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-armv7l:latest =20 -debian-sid-cross-i686: +i686-debian-sid: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-i686:latest =20 -debian-sid-cross-mipsel: +mipsel-debian-sid: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest =20 --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585226279; cv=none; d=zohomail.com; s=zohoarc; b=LwUWk7aGbmvOZXkqMRhJOFCiuC+EK+Ip41WNr3gjfxSZekPqqfA5VlOKzOU3wpsOV8v2japXKXxpY7qE/lTdnPxM2dWfRwAfthnvGX8Se1/rLyr/nAzRyAEnyLaGKaR8Mex38R86OvZKbvJz06oLT2qT+cy/fUN5jLczDCHbBRE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226279; 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=DlGARRGPwGqHmsH8Yh1wM3VEKnHnTYeUfZ3ZU68s5yE=; b=cZyyREJbwgVFX3tWYfwt/hY1Q2ITbSSYlybWDGXwF1xNIXNB04kLWy+ValgR03cW0OisqGEC8i1sVJvlLE1LiR0X/D1URUxm1un/B5SdEpKGDhUa9ecdDYnoq5uLo8Yvc78y01dCi8vm0a6OCzuwyLrs2CMYnojhCAHgp05/8GE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585226279557405.07851823248836; Thu, 26 Mar 2020 05:37:59 -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-169-rPzPdSwTO62TGb4vSpDwKQ-1; Thu, 26 Mar 2020 08:36:20 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DB8FDDB60; Thu, 26 Mar 2020 12:36:14 +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 AC1CA1001DD8; Thu, 26 Mar 2020 12:36:14 +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 53A901832DA9; Thu, 26 Mar 2020 12:36:14 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZuNl022648 for ; Thu, 26 Mar 2020 08:35:56 -0400 Received: by smtp.corp.redhat.com (Postfix) id 63F1FA0A60; Thu, 26 Mar 2020 12:35:56 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B6B2A0A94; Thu, 26 Mar 2020 12:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226278; 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=DlGARRGPwGqHmsH8Yh1wM3VEKnHnTYeUfZ3ZU68s5yE=; b=FlkgEQszMdIWBtmw9mp9iqY+HLhLyqxdvY+wH96F1baUYkmD4wZIIBeULfYQILGIrRQ6R0 uzx26SYY3LZDPSqnWVS4LU+SesvKSS63MpMrCO7XGzEo/NHxmYEOIqz2GXj7Awqy+oaCbT TZb0eZPJh5G5lnLViLSErJ6gwB0NSqs= X-MC-Unique: rPzPdSwTO62TGb4vSpDwKQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 07/12] gitlab: add mingw cross build CI jobs Date: Thu, 26 Mar 2020 12:35:33 +0000 Message-Id: <20200326123538.4177062-8-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.84 on 10.5.11.22 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 pulls in the mingw cross build jobs using Fedora 30 as a base, matching what is done on Jenkins and Travis. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Andrea Bolognani Reviewed-by: Erik Skultety --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7de450e37d..631c447793 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,6 +61,15 @@ mipsel-debian-sid: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-sid-cross-mipsel:latest =20 +mingw32-fedora-30: + <<: *cross_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-fedora-30-cross-mingw32:latest + +mingw64-fedora-30: + <<: *cross_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-fedora-30-cross-mingw64:latest + + # This artifact published by this job is downloaded by libvirt.org to # be deployed to the web root: # https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?j= ob=3Dwebsite --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585226223; cv=none; d=zohomail.com; s=zohoarc; b=ZKIEtdH5X5o6SYoRgKg+11c4HfiuLHDCs3TC4g2iLxDlEFjhlR5RYTBS27y/Eb4Y8xKIOYo8pQxLkmeatc/NfPKU/e2xTm48/GJS8CcfTDj47ntqWUHalJje76kJpgk5fREW1TLuAR6XxLRyfa0j9XdPRGMfKWy70qIfkhvB6gs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226223; 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=xa2dpYBT5DZtix7mE7fVeaSyQ9bOR35Qofg9bwB+gMw=; b=n9aJFq73dsaJQdGVYUfR7YVFut2e5mMmZqW5uayGnOwMy/6NghUHN53W1xWdEE0YbNZzfjstdSSxGF4jag/jtvAGKaG9wvu5ySeAjChqeLL1Zbk0CBvtSmJMUo0L+bG9yCmC1c2VgReRe1eP0NNbCbSbcS0NgHCdJBhtJsdHWpQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585226223523249.2890512806481; Thu, 26 Mar 2020 05:37:03 -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-275-xvUPt9HzMdWkjXN47M8cxg-1; Thu, 26 Mar 2020 08:36:58 -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 912481007273; Thu, 26 Mar 2020 12:36:52 +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 6C30992FA9; Thu, 26 Mar 2020 12:36:52 +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 295E31832DAF; Thu, 26 Mar 2020 12:36:52 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZvPG022656 for ; Thu, 26 Mar 2020 08:35:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id 9909AA0A60; Thu, 26 Mar 2020 12:35:57 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id B3DFCA0A94; Thu, 26 Mar 2020 12:35:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226221; 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=xa2dpYBT5DZtix7mE7fVeaSyQ9bOR35Qofg9bwB+gMw=; b=Q+YoXac8JiP/R++VB3C8NVaNxEcvwqDsudOd+Bmj8lbGsmdOmRtVkA1Qo5mUTbwCh7gCjs 2b5+iaJfip/A3EprSpgMCDJbBrSEKOgfcxy1JkBeZm2gRj6sJCbSTuryQMltk5RS+2s05S nfQrldCrvRnaujTMYxxEm2MRSlSTJZ8= X-MC-Unique: xvUPt9HzMdWkjXN47M8cxg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 08/12] gitlab: add x86_64 native CI jobs Date: Thu, 26 Mar 2020 12:35:34 +0000 Message-Id: <20200326123538.4177062-9-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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 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 patch adds x86_64 native CI jobs for all distros that we currently build container images for. This is a superset of the Linux jobs run on current Jenkins and Travis platforms. The remaining missing platforms are FreeBSD and macOS, neither of which can use the shared runner container based infrastructure. We may add further native jobs in the future which are not x86_64 based, if we get access to suitable hardware, thus the jobs all have an arch prefix in their name, just like the cross-built jobs do. As with the cross-arch builds, the native jobs are split into two groups. One group is run in all situations, while the other group is only run on the master branch, or branches with a name prefix 'ci-extra-'. This avoids the build time getting too long when developers are testing their code prior to submission, while keeping full coverage of code that is merged. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Erik Skultety --- .gitlab-ci.yml | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 631c447793..85ab8424e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,9 +4,30 @@ variables: =20 stages: - prebuild + - native_build - cross_build =20 =20 +# Common templates + +# Default native build jobs that are always run +.native_build_default_job_template: &native_build_default_job_definition + stage: native_build + script: + - mkdir build + - cd build + - ../autogen.sh $CONFIGURE_OPTS || (cat config.log && exit 1) + - $MAKE -j $(getconf _NPROCESSORS_ONLN) distcheck + +# Extra native build jobs that are only run post-merge, or +# when code is pushed to a branch with "ci-extra-" name prefix +.native_build_extra_job_template: &native_build_extra_job_definition + <<: *native_build_default_job_definition + only: + - master + - /^ci-extra-.*$/ + + # Default cross build jobs that are always run .cross_build_default_job_template: &cross_build_default_job_definition stage: cross_build @@ -25,6 +46,55 @@ stages: - /^ci-extra-.*$/ =20 =20 +# Native architecture build + test jobs + +x64-debian-9: + <<: *native_build_extra_job_definition + image: quay.io/libvirt/buildenv-libvirt-debian-9:latest + +x64-debian-10: + <<: *native_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-debian-10:latest + +x64-debian-sid: + <<: *native_build_extra_job_definition + image: quay.io/libvirt/buildenv-libvirt-debian-sid:latest + +x64-centos-7: + <<: *native_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-centos-7:latest + +x64-centos-8: + <<: *native_build_extra_job_definition + image: quay.io/libvirt/buildenv-libvirt-centos-8:latest + +x64-fedora-30: + <<: *native_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-fedora-30:latest + +x64-fedora-31: + <<: *native_build_extra_job_definition + image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest + +x64-fedora-rawhide: + <<: *native_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-fedora-rawhide:latest + +x64-opensuse-151: + <<: *native_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-opensuse-151:latest + +x64-ubuntu-1604: + <<: *native_build_default_job_definition + image: quay.io/libvirt/buildenv-libvirt-ubuntu-1604:latest + +x64-ubuntu-1804: + <<: *native_build_extra_job_definition + image: quay.io/libvirt/buildenv-libvirt-ubuntu-1804:latest + + +# Cross compiled build jobs + armv6l-debian-9: <<: *cross_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-debian-9-cross-armv6l:latest --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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=1585226226; cv=none; d=zohomail.com; s=zohoarc; b=CnJVs8mbLTcIqRTZ9lcP8LmzrM9b5NxDUTljinQJJUb2rVYHqU4kZKcWzI7160WmkpTynh4sPXkJuk3JrdcGcVn9cDlWVmfpU+mWzqlngKvG2tTRnGa2O+XKcuoq744cFtHvU4C5SaXlIUhnAh7t/t80ZbGUB1N+jNu4D0dTXLo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226226; 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=22dddH4zgIMYX2f5UPZJwjVK6GLh3IVNWg6abhFBfMs=; b=ltkiC6xTnqUfsaI0DLfl6aKkfAZdN09HIs4HA7WnqKrALcSATeJn5uI+JcSPj/QdOYwnOzPwFEK8wSnSk9RukxRN2wmDnLIhNo/WjpzqaKoij4KEpjlhn5JiMZET/+uxgUa0MroNaaa3S3n3ploTBjOjaVBHcrPIYkrI62GPnFI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1585226226824916.7378263860899; Thu, 26 Mar 2020 05:37:06 -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-285-teclW1NxOoe2aA2SwrDfag-1; Thu, 26 Mar 2020 08:36:25 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 518ADDB67; Thu, 26 Mar 2020 12:36:19 +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 229FC1001925; Thu, 26 Mar 2020 12:36:19 +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 BE7161832DAD; Thu, 26 Mar 2020 12:36:18 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCZxN1022668 for ; Thu, 26 Mar 2020 08:35:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 613CACDBC1; Thu, 26 Mar 2020 12:35:59 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id EBC34A0A60; Thu, 26 Mar 2020 12:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226225; 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=22dddH4zgIMYX2f5UPZJwjVK6GLh3IVNWg6abhFBfMs=; b=jLXIOySciJ7eKk+J2r0a6oUYWbZYyDS3bZFfou0HWOZFAvfRWPjAFcXWIa16XvwwTuX3v6 Tdd8VhJta/X1QSRX2xUQPQd71y5PKjPKame1/Gri26ckjkct4BjurWkfRNo8FtBt6v5Ybw +elTMchC9DdNGpy0miCst9A/70/kTUY= X-MC-Unique: teclW1NxOoe2aA2SwrDfag-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 09/12] gitlab: add job for building latest potfile Date: Thu, 26 Mar 2020 12:35:35 +0000 Message-Id: <20200326123538.4177062-10-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Andrea Bolognani , Erik Skultety 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.84 on 10.5.11.22 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" Whenever there is a change to the translatable strings we need to push a new libvirt.pot to weblate. This only needs to be done when code merges into git master, so the job is restricted to that branch. Reviewed-by: Andrea Bolognani Reviewed-by: Erik Skultety Signed-off-by: Daniel P. Berrang=C3=A9 --- .gitlab-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85ab8424e1..53600c3a96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -161,3 +161,28 @@ website: expire_in: 30 days paths: - website + + +# This artifact published by this job is downloaded to push to Weblate +# for translation usage: +# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?j= ob=3Dpotfile +potfile: + stage: prebuild + only: + - master + script: + - mkdir build + - cd build + - ../autogen.sh || (cat config.log && exit 1) + - $MAKE -j $(getconf _NPROCESSORS_ONLN) -C src generated-sources + - $MAKE -j $(getconf _NPROCESSORS_ONLN) -C po libvirt.pot + - cd .. + - mv build/po/libvirt.pot libvirt.pot + image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest + artifacts: + expose_as: 'Potfile' + name: 'potfile' + when: on_success + expire_in: 30 days + paths: + - libvirt.pot --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585226286; cv=none; d=zohomail.com; s=zohoarc; b=U0yr6pRDbnj2J5XtPhDA+a550MuJ4Q9pR4Laor6RGAlmopedRDUMKpbo1y2nKgrmP3ZDEZ4IP7RjjTm3PKPqA1A3oxOW8ZZSsCnlV6aum5OeuXHB8JmV8byHwmCJW3oc6sQi1vvU+QtpVwgxnyHZy/PgayxfRUXLUPDFAPMF0S8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226286; 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=L0lQpPXijPvSSWZ/nFu5cOlDTYa+7ycpwnqbocqKUqQ=; b=nNoZX04P4TInTrDMlZl2qEm/XV47AnS/XGA/a9vQf9r7kfcarzPwB16o/I2BVl7Ul4oPoFghUWA8PF7NmIa4iab4aJawGKd4BVjiaYb6gkIT1F6TFOLqcN4HfX++SEszMr4I7h9G29mcksIPRxKSHX2YQFZnFBH6yROk3VB9+EA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585226286922288.5230452259947; Thu, 26 Mar 2020 05:38:06 -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-367-xfkF7XUBPDiUspdDDsIPJw-1; Thu, 26 Mar 2020 08:37:05 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7BB63108443B; Thu, 26 Mar 2020 12:36:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 44EAB3A9; Thu, 26 Mar 2020 12:36:56 +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 D15698A039; Thu, 26 Mar 2020 12:36:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCa3wi022693 for ; Thu, 26 Mar 2020 08:36:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id 72FAEA0A94; Thu, 26 Mar 2020 12:36:03 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 688BEA0A60; Thu, 26 Mar 2020 12:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226285; 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=L0lQpPXijPvSSWZ/nFu5cOlDTYa+7ycpwnqbocqKUqQ=; b=XLFA8b96IkLF0ffHWSxs9U01X/C0weiJY166kPqPKGcNyvpIdDC27JRlE78nPCw01w6FI5 IZ4aOX0l0vv0qQy4Z4ZXcGBIkv2Z7AJsplGpzawewv3FYIlaEdUTKnM2h+8WK+uZdXC6ZZ v5XqXss0V5brWDQh1MHW25FpcvUau6U= X-MC-Unique: xfkF7XUBPDiUspdDDsIPJw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 10/12] gitlab: introduce use of ccache for speeding up rebuilds Date: Thu, 26 Mar 2020 12:35:36 +0000 Message-Id: <20200326123538.4177062-11-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.84 on 10.5.11.23 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" For any given job there is a high liklihood that ccache will be able to reuse previously built object files. This will result in faster build pipelines in later updates. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Andrea Bolognani Reviewed-by: Erik Skultety --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 53600c3a96..d38672f260 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -13,6 +13,15 @@ stages: # Default native build jobs that are always run .native_build_default_job_template: &native_build_default_job_definition stage: native_build + cache: + paths: + - ccache/ + key: "$CI_JOB_NAME" + before_script: + - mkdir -p ccache + - export CC=3D"ccache gcc" + - export CCACHE_BASEDIR=3D${PWD} + - export CCACHE_DIR=3D${PWD}/ccache script: - mkdir build - cd build @@ -31,6 +40,15 @@ stages: # Default cross build jobs that are always run .cross_build_default_job_template: &cross_build_default_job_definition stage: cross_build + cache: + paths: + - ccache/ + key: "$CI_JOB_NAME" + before_script: + - mkdir -p ccache + - export CC=3D"ccache ${ABI}-gcc" + - export CCACHE_BASEDIR=3D${PWD} + - export CCACHE_DIR=3D${PWD}/ccache script: - mkdir build - cd build @@ -63,10 +81,14 @@ x64-debian-sid: x64-centos-7: <<: *native_build_default_job_definition image: quay.io/libvirt/buildenv-libvirt-centos-7:latest + # ccache isn't available + before_script: =20 x64-centos-8: <<: *native_build_extra_job_definition image: quay.io/libvirt/buildenv-libvirt-centos-8:latest + # ccache isn't available + before_script: =20 x64-fedora-30: <<: *native_build_default_job_definition --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.74 as permitted sender) client-ip=63.128.21.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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=1585226177; cv=none; d=zohomail.com; s=zohoarc; b=VLnoMMmaHPDwrej+If2lIW5GxGnUPvJP3WNHnT/7mdrK8anBY01jZvkHSUKGEYA4jqoe1XRLF2VLp1dW7wMjEdweSPzWrwsbXWJX3mUHIq1mBoXRsToumEOAMBykJ+gg6CUV+nYX7QOT9qG7/1DRGLGxcAgXi6wTfdmKu2IWIAA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226177; 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=2NxRfyHvPlhjhyy6olPVdWmDR2Z5Iuvu2Z9ZTFvWE7s=; b=UpxoZoprd3xZeaDVXSzygl3ssj0iXYi+mQ0eaJhDUE7f77ZLSEn9VjrIs57rn/NtO3Or08FWp3jx3h6HmLqAvZ9ZyCQ9PiG486zb4D5G/33rvVzJOG0vlCC/EKSne9PBMfaP8Zd5bdf1srGemdPG5uqKq88As8tXP6hnxb6/n/w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [63.128.21.74]) by mx.zohomail.com with SMTPS id 1585226177774481.34286142022097; Thu, 26 Mar 2020 05:36:17 -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-220-KLlWEdVaNzS4TCtKzhq9-g-1; Thu, 26 Mar 2020 08:36:13 -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 667271005512; Thu, 26 Mar 2020 12:36:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3C4407E311; Thu, 26 Mar 2020 12:36:07 +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 BFEF48A03E; Thu, 26 Mar 2020 12:36:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCa5ms022707 for ; Thu, 26 Mar 2020 08:36:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4CDC5A0A85; Thu, 26 Mar 2020 12:36:05 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0E003A0A60; Thu, 26 Mar 2020 12:36:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226176; 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=2NxRfyHvPlhjhyy6olPVdWmDR2Z5Iuvu2Z9ZTFvWE7s=; b=fAD8OKpSeqFPdcmP8csxCulPCwqsvsRnF6je7pumC1kkMbAyR+ajPtnpbKNV23AWoqKdBC cKPkr96Cm+OWb7ui/9sI/MZGEoEad/qDNV0/Yb5+DvZdcCBDHiljp6lE2z9Y9NeTebwjS1 Q9Og9CNnGzT4Rglz42VHnqDo2HhNf5Y= X-MC-Unique: KLlWEdVaNzS4TCtKzhq9-g-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 11/12] gitlab: introduce a check for validate DCO sign-off Date: Thu, 26 Mar 2020 12:35:37 +0000 Message-Id: <20200326123538.4177062-12-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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 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 introduces a CI job for validating DCO sign-off in every commit message. The CI jobs are not provided any information on what the baseline commit for the branch was. We can't compare against the forked repo's master branch, as there's no guarantee the user is keeping master up2date in their fork. Thus we add the master upstream repo as a git remote and identify the common ancestor. Signed-off-by: Daniel P. Berrang=C3=A9 --- .gitlab-ci.yml | 14 ++++++ scripts/require-dco.py | 96 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100755 scripts/require-dco.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d38672f260..965db22d62 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -208,3 +208,17 @@ potfile: expire_in: 30 days paths: - libvirt.pot + + +# Check that all commits are signed-off for the DCO. Skip +# on master branch and -maint branches, since we only need +# to test developer's personal branches. +dco: + stage: prebuild + image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest + script: + - ./scripts/require-dco.py + only: + - branches + except: + - /^v.*-maint$/ diff --git a/scripts/require-dco.py b/scripts/require-dco.py new file mode 100755 index 0000000000..3b642d6679 --- /dev/null +++ b/scripts/require-dco.py @@ -0,0 +1,96 @@ +#!/usr/bin/env python3 + +# require-dco.py: validate all commits are signed off +# +# Copyright (C) 2020 Red Hat, Inc. +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library. If not, see +# . + +import os +import os.path +import sys +import subprocess + +cwd =3D os.getcwd() +reponame =3D os.path.basename(cwd) +repourl =3D "https://gitlab.com/libvirt/%s.git" % reponame + +subprocess.check_call(["git", "remote", "add", "dcocheck", repourl]) +subprocess.check_call(["git", "fetch", "dcocheck", "master"], + stdout=3Dsubprocess.DEVNULL, + stderr=3Dsubprocess.DEVNULL) + +ancestor =3D subprocess.check_output(["git", "merge-base", "dcocheck/maste= r", "HEAD"], + universal_newlines=3DTrue) + +ancestor =3D ancestor.strip() + +subprocess.check_call(["git", "remote", "rm", "dcocheck"]) + +errors =3D False + +print("\nChecking for 'Signed-off-by: NAME ' on all commits since %= s...\n" % ancestor) + +log =3D subprocess.check_output(["git", "log", "--format=3D%H %s", ancesto= r + "..."], + universal_newlines=3DTrue) + +commits =3D [[c[0:40], c[41:]] for c in log.strip().split("\n")] + +for sha, subject in commits: + + msg =3D subprocess.check_output(["git", "show", "-s", sha], + universal_newlines=3DTrue) + lines =3D msg.strip().split("\n") + + print("=F0=9F=94=8D %s %s" % (sha, subject)) + sob =3D False + for line in lines: + if "Signed-off-by:" in line: + sob =3D True + if "localhost" in line: + print(" =E2=9D=8C FAIL: bad email in %s" % line) + errors =3D True + + if not sob: + print(" =E2=9D=8C FAIL missing Signed-off-by tag") + errors =3D True + +if errors: + print(""" + +=E2=9D=8C ERROR: One or more commits are missing a valid Signed-off-By tag. + + +This project requires all contributors to assert that their contributions +are provided in compliance with the terms of the Developer's Certificate +of Origin 1.1 (DCO): + + https://developercertificate.org/ + +To indicate acceptance of the DCO every commit must have a tag + + Signed-off-by: REAL NAME + +This can be achieved by passing the "-s" flag to the "git commit" command. + +To bulk update all commits on current branch "git rebase" can be used: + + git rebase -i master -x 'git commit --amend --no-edit -s' + +""") + + sys.exit(1) + +sys.exit(0) --=20 2.24.1 From nobody Sun Apr 28 20:12:45 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585226182; cv=none; d=zohomail.com; s=zohoarc; b=LmlgX0dEgXPGyJSiP7TDLy0ELuKtsnCAocHXJpCFBIymgIRHC1spMt/adEnnXobF8F1cGQ1mgLO6xYgOnvt7NdfPHW4C7DcW6SmFBxioRDII7pxSjUexmbn4kOLVEanjx1Tku3PDTAGpW7yDrbQkDIryjSYPBkopACE6wVPQeYc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585226182; 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=70pMei1BB3HWJMrWu/uYMni5B5PPtRtc7f1bwya3epo=; b=P6/YIJMYtua4YP60MU6uUq0hfNfJO8/0gxg2xZKWBd+GnbeLjzohTWjYDxSz4i1S8pvWdGUCM1xS8JLeHoGIZcYMtNkU9/7YVU4lbIvgG4+Nq7u9V7GKSskRXY/GYo8PNkcItUcooRq5/BMp2MwyvnAKPmr7ZgOQu9BfTfQ8obk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 1585226182340518.3365596518591; Thu, 26 Mar 2020 05:36:22 -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-51-ygbMNkevMJ2GxbNIiPt7BQ-1; Thu, 26 Mar 2020 08:36:17 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9D2701084424; Thu, 26 Mar 2020 12:36:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 66E2010002AA; Thu, 26 Mar 2020 12:36:11 +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 1A7468A049; Thu, 26 Mar 2020 12:36:11 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02QCa6XZ022715 for ; Thu, 26 Mar 2020 08:36:06 -0400 Received: by smtp.corp.redhat.com (Postfix) id DCF9CA0A6F; Thu, 26 Mar 2020 12:36:06 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.36.110.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB9E1A0A60; Thu, 26 Mar 2020 12:36:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585226180; 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=70pMei1BB3HWJMrWu/uYMni5B5PPtRtc7f1bwya3epo=; b=WEy8C7kEZriWwEy+H8pEOvkmV3NTu/laz4F76VtshtLZxCkPOO1Z6ovQUdwtXaojoA1+qT GDDkxExLIRoI4trMCZSfG0C8Xe9t7xMb2MWD7PGWD+FYDr12xjYVyRrzvWhtSJ2E0gU6Y5 qOl5vO/DezlB+23gSWYCJKvSYQUaXIY= X-MC-Unique: ygbMNkevMJ2GxbNIiPt7BQ-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v3 12/12] gitlab: add explicit early job for syntax-check Date: Thu, 26 Mar 2020 12:35:38 +0000 Message-Id: <20200326123538.4177062-13-berrange@redhat.com> In-Reply-To: <20200326123538.4177062-1-berrange@redhat.com> References: <20200326123538.4177062-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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.84 on 10.5.11.22 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" Running the code style syntax-check as part of the build jobs leads to all jobs failing in the same way. Have a prebuild job for validating syntax-check to catch code style problems upfront and thus avoid needing to run all the build jobs. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Erik Skultety --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 965db22d62..9ef7ad0325 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -185,6 +185,16 @@ website: - website =20 =20 +codestyle: + stage: prebuild + script: + - mkdir build + - cd build + - ../autogen.sh --prefix=3D$(pwd)/../vroot || (cat config.log && exit = 1) + - $MAKE -j $(getconf _NPROCESSORS_ONLN) syntax-check + image: quay.io/libvirt/buildenv-libvirt-fedora-31:latest + + # This artifact published by this job is downloaded to push to Weblate # for translation usage: # https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?j= ob=3Dpotfile --=20 2.24.1