From nobody Thu Apr 18 19:52:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1631282922; cv=none; d=zohomail.com; s=zohoarc; b=f5ssVPNpZU+qJIZ3KmZbj9w8/8a/iAANUegVzIqmnr7e4d4GPHiv9EzdCcnkudswSOOkWALBeglcAYLHPTIDfrWteF8TT2BQxB7zzSDz0XGCAE8BHV0vN3Gchww0SFm3XrEZmFyflb7Axh1v/oXqZlhrpsJGbOqRxgjsbAtcw78= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631282922; 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=aHH4/jKVoJCrTxKztU+SOPb49rQr8xu2rp2HWiGeWtE=; b=SMsh4UyDR1QjuC9B5uYagxZXFHgFEKG4mtfwp2zFUx5pz5g6DiGP40nUiRHPOMgNzIfxUo511jt4Ng6cuhH+ZE481K9nRRuTHOmBtv3/2yWPakL2WT6FPXBlbGejv+gpr+kiy3qm4vHp8YRE2TkTAVHDRLPzvDKoOhA2agGwOAI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1631282922835895.5700221134863; Fri, 10 Sep 2021 07:08:42 -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-408-kFdgbwYMPwWGQ_4ZZXJ6YA-1; Fri, 10 Sep 2021 10:08:39 -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 0494A362F8; Fri, 10 Sep 2021 14:08:34 +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 91AEA369A; Fri, 10 Sep 2021 14:08:33 +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 E451C1800B9E; Fri, 10 Sep 2021 14:08:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 18ADxwmW025714 for ; Fri, 10 Sep 2021 09:59:58 -0400 Received: by smtp.corp.redhat.com (Postfix) id DFF0510074E5; Fri, 10 Sep 2021 13:59:58 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.40.193.145]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4E92310016FE for ; Fri, 10 Sep 2021 13:59:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631282921; 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=aHH4/jKVoJCrTxKztU+SOPb49rQr8xu2rp2HWiGeWtE=; b=SyUouDzAm0sgXnp/0snLQyi1YXouqt8iwNTnVQl/ZsLVwrYUWUAfcnRWxxBM1srWlhQFNn h3nIbKWr9YFLu59Lls6S1177dh2JSAdM0fu/tGwiWHCf01HMqoeY2P9v6uMQ5zUqkGOlYb txeDk7YDeWuBBOCKklB2IntrWk793mI= X-MC-Unique: kFdgbwYMPwWGQ_4ZZXJ6YA-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/2] ci: Restore information about Coverity integration Date: Fri, 10 Sep 2021 15:59:54 +0200 Message-Id: <20210910135955.62046-2-abologna@redhat.com> In-Reply-To: <20210910135955.62046-1-abologna@redhat.com> References: <20210910135955.62046-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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.11 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: 1631282923902100001 Content-Type: text/plain; charset="utf-8" These were removed along with the outdated information on how to regenerate the Dockerfiles contained in the repository, but this part is still relevant. Reverts: 30856d2865122f82ec25c258c7cd2cceb52aa7a5 (partially) Signed-off-by: Andrea Bolognani Reviewed-by: Michal Privoznik --- ci/README.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ci/README.rst b/ci/README.rst index 2a7d767227..6c6c6f95b3 100644 --- a/ci/README.rst +++ b/ci/README.rst @@ -63,3 +63,25 @@ repository as usual and you'll automatically get the add= itional CI coverage. .. _Cirrus CI: https://cirrus-ci.com/ .. _MinGW: http://mingw.org/ .. _cirrus-run: https://github.com/sio/cirrus-run/ + + +Coverity scan integration +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D + +This will be used only by the main repository for master branch by running +scheduled pipeline in GitLab. + +The service is proved by `Coverity Scan`_ and requires that the project is +registered there to get free coverity analysis which we already have for +`libvirt project`_. + +To run the coverity job it requires two new variables: + + * ``COVERITY_SCAN_PROJECT_NAME``, containing the `libvirt project`_ + name. + + * ``COVERITY_SCAN_TOKEN``, token visible to admins of `libvirt project`_ + + +.. _Coverity Scan: https://scan.coverity.com/ +.. _libvirt project: https://scan.coverity.com/projects/libvirt --=20 2.31.1 From nobody Thu Apr 18 19:52:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1631282689; cv=none; d=zohomail.com; s=zohoarc; b=KgHlCZ5fOBDnP0pS5wOB5KeVWStYYiKWSDdjpE+AbjQ1syLYRUCoaxLwCsIagORNcLl+Re9ixDGvRbr6BNfvp+42vajFaecdzSmNLcUevQAd32cDQsko27UNvnqmkQ1cSQ0u/q1tTNra9UV/yp0/pDeBC9ry/JtU0315RX87mMU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631282689; 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=HdLccw1LQdmsNNhXsQd0e3ic+6mYuPG3LfMMQkTG1Yw=; b=D0poTjfy4CnG3k6o1MDZ+A4K6lMU3aCByM1ZBOh0qR8XJDwNislgbqKkhJQiAiM6t+2ilCrUpIwyoOIm5wwOYiYmqgCDW2ONOoyYQFN5HICAQxsqlBahK8rMO5qqDII9dz1YFWIoPtWyKdYssO774QqZNcwvOdj18zw8YbJWMsA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1631282689471479.840458365623; Fri, 10 Sep 2021 07:04:49 -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-305-hNfaAk6dMX6TbstC_9m2jw-1; Fri, 10 Sep 2021 10:04:40 -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 CB71E50751; Fri, 10 Sep 2021 14:04:34 +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 AFA4B1981F; Fri, 10 Sep 2021 14:04:34 +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 287F84EA37; Fri, 10 Sep 2021 14:04:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 18ADxxVf025719 for ; Fri, 10 Sep 2021 09:59:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id DC98610016FE; Fri, 10 Sep 2021 13:59:59 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.40.193.145]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4B39B10074E5 for ; Fri, 10 Sep 2021 13:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631282687; 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=HdLccw1LQdmsNNhXsQd0e3ic+6mYuPG3LfMMQkTG1Yw=; b=MSJLr0xLcbZxWAbv26WAf2CvqzMj425Woqur+fYh5l1iDGCNlXthFyH05/UmNORvP/7Lr+ f6LrhjqYLGRItTar3a3L+fwwebjvqEiOSlbF8Qnt4qB2jZLG7WBPXWDOxHutebWEAzd7RG /9NGrj6H2op2vXMWeOAUw8+E+Tcgu18= X-MC-Unique: hNfaAk6dMX6TbstC_9m2jw-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 2/2] ci: Avoid use of magic constants Date: Fri, 10 Sep 2021 15:59:55 +0200 Message-Id: <20210910135955.62046-3-abologna@redhat.com> In-Reply-To: <20210910135955.62046-1-abologna@redhat.com> References: <20210910135955.62046-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 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.11 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: 1631282690127100001 Content-Type: text/plain; charset="utf-8" The value 3 is the length of the "ci-" prefix, which is present in the items returned by get_registry_images() but not in those returned by get_dockerfiles(). Signed-off-by: Andrea Bolognani Reviewed-by: Beraldo Leal Reviewed-by: Michal Privoznik --- ci/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/util.py b/ci/util.py index d8be6631eb..f9f3c550db 100644 --- a/ci/util.py +++ b/ci/util.py @@ -68,10 +68,11 @@ def get_registry_stale_images(registry_uri: str, base_d= ir: str) -> Dict[str, int =20 dockerfiles =3D get_dockerfiles(base_dir) images =3D get_registry_images(registry_uri) + name_prefix =3D "ci-" =20 stale_images =3D {} for img in images: - if img["name"][3:] not in dockerfiles: + if img["name"][len(name_prefix):] not in dockerfiles: stale_images[img["name"]] =3D img["id"] =20 return stale_images --=20 2.31.1