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 1DED5A0A0A; Thu, 20 May 2021 12:39:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D123E40143; Thu, 20 May 2021 12:39:51 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 4004F40041 for ; Thu, 20 May 2021 12:39:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621507189; 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=1jeMqgNQmy9xc1y3El/XILzMC6R7yaHtX7VhZs0teS8=; b=eC1eAW5gdhXwupC+NWne6U/BDz0DRFcUbxfk0sMUbQ1AiJ1zSVwlI83o7dbYpJY1ssFwA6 zB0IX7omEhd6lxwNzQe2npHamU8UBPgkhIl1RF7f8mN9fxniO2rw5zMHWQr6Bgy/S0ntvp PluA4kSxcPCtN1Xy0dvxp0E+tiobTmg= 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-587-coTdpUQrOHSDjKSvWd8PxQ-1; Thu, 20 May 2021 06:39:47 -0400 X-MC-Unique: coTdpUQrOHSDjKSvWd8PxQ-1 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 783DE501F4; Thu, 20 May 2021 10:39:46 +0000 (UTC) Received: from dmarchan.remote.csb (unknown [10.40.193.146]) by smtp.corp.redhat.com (Postfix) with ESMTP id 43A3110023AF; Thu, 20 May 2021 10:39:45 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com Date: Thu, 20 May 2021 12:39:38 +0200 Message-Id: <20210520103938.18069-1-david.marchand@redhat.com> In-Reply-To: <20210520075837.30954-1-david.marchand@redhat.com> References: <20210520075837.30954-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Subject: [dpdk-dev] [PATCH v2] devtools: warn about release notes updates 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 Sender: "dev" Touching release notes should only be for the current version. Signed-off-by: David Marchand --- Changes since v1: - dropped unrelevant change, - simplified VERSION extract and updated variable names, --- devtools/checkpatches.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index db4c7d8301..aff7d2a161 100755 --- a/devtools/checkpatches.sh +++ b/devtools/checkpatches.sh @@ -198,6 +198,15 @@ check_internal_tags() { # return $res } +check_release_notes() { # + rel_notes_prefix=doc/guides/rel_notes/release_ + IFS=. read year month release < VERSION + current_rel_notes=${rel_notes_prefix}${year}_${month}.rst + + ! grep -e '^--- a/'$rel_notes_prefix -e '^+++ b/'$rel_notes_prefix $1 | + grep -v $current_rel_notes +} + number=0 range='origin/main..' quiet=false @@ -289,6 +298,14 @@ check () { # ret=1 fi + ! $verbose || printf '\nChecking release notes updates:\n' + report=$(check_release_notes "$tmpinput") + if [ $? -ne 0 ] ; then + $headline_printed || print_headline "$3" + printf '%s\n' "$report" + ret=1 + fi + if [ "$tmpinput" != "$1" ]; then rm -f "$tmpinput" trap - INT -- 2.23.0