From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 28D4A45523; Fri, 28 Jun 2024 14:56:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5B2740F16; Fri, 28 Jun 2024 14:56:22 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 22652402D6 for ; Fri, 28 Jun 2024 14:56:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719579380; h=from:from: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; bh=cOETpM/cXLXSajJ7VJRHcJ1dHq1csyxyErgjh/UNkmc=; b=LhFA34tvHSrtcw0I9aGQADFRVjngqelIP9WRq9aR3bFshl1Lhr35rbcmf51hsUUoDLNFo1 ogjFVVY3IWGsqyIpgxHZ/4fqeSQfiUFwGUmfym/vYGFl4eRWjbaQm4SsSsVp0OfTwcmxDQ Q6NIuaUMP1gyDtB/zVqPp6NQAHuJ7lU= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-589-56jL9gkWO7OJo8gZvcddZA-1; Fri, 28 Jun 2024 08:56:17 -0400 X-MC-Unique: 56jL9gkWO7OJo8gZvcddZA-1 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8095719792D7; Fri, 28 Jun 2024 12:56:16 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.225.190]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id F19C61955D98; Fri, 28 Jun 2024 12:56:14 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: Thomas Monjalon Subject: [PATCH v2] devtools: check that maintainers are listed in mailmap Date: Fri, 28 Jun 2024 14:56:12 +0200 Message-ID: <20240628125612.3049232-1-david.marchand@redhat.com> In-Reply-To: <20240322161406.996890-1-david.marchand@redhat.com> References: <20240322161406.996890-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org When a maintainer changes its mail address, check that the associated entry in .mailmap knows this address, otherwise there is a chance .mailmap points at an obsolete address. While at it, fix Zhirun mail address in mailmap and add Jian and Srikanth. Signed-off-by: David Marchand --- Changes since v1: - merged patch 1, - added Jian and Srikanth to .mailmap, --- .mailmap | 4 +++- devtools/check-maintainers.sh | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index f76037213d..31383bc782 100644 --- a/.mailmap +++ b/.mailmap @@ -645,6 +645,7 @@ Jesper Wramberg Jesse Brandeburg Jesse Bruni Jia He +Jian Wang Jianbo Liu Jianfeng Tan Jiang Yu @@ -1378,6 +1379,7 @@ Souvik Dey Spike Du Sridhar Samudrala Sriharsha Basavapatna +Srikanth Jampala Srikanth Yalavarthi Srinivas Narayan Srisivasubramanian Srinivasan @@ -1711,7 +1713,7 @@ Zhihong Wang Zhike Wang Zhimin Huang Zhipeng Lu -Zhirun Yan +Zhirun Yan Zhiwei He Zhiyong Yang Zhuobin Huang diff --git a/devtools/check-maintainers.sh b/devtools/check-maintainers.sh index 71697bb352..8a786e14a9 100755 --- a/devtools/check-maintainers.sh +++ b/devtools/check-maintainers.sh @@ -85,6 +85,18 @@ check_fx () # done } +# Check that every maintainer mail is known of .mailmap: +check_mailmap () # +{ + sed -n -e 's/^M: \(.*<.*\)$/\1/p' $1 | sort -u | while read line; do + name=${line%% <*} + mail='<'${line##* <} + if ! grep -q "^$name <" $2 || ! grep -iq "^$name.*$mail" $2; then + echo $name mail address $mail is not in $2 + fi + done +} + # Add a line to a set of lines if it begins with right pattern add_line_to_if () # { @@ -129,4 +141,10 @@ echo '# wrong patterns' echo '##########' check_fx MAINTAINERS +echo +echo '##########' +echo '# wrong mailmap' +echo '##########' +check_mailmap MAINTAINERS .mailmap + # TODO: check overlaps -- 2.45.2