From nobody Sat Jul 4 21:04:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1782922922; cv=none; d=zohomail.com; s=zohoarc; b=ga/bapf1KMAqCAuaMnS/84pXMK0mrL6XQN/l/sevpE3GqVL73i3pmvV1GJuu0oqs62sXLlDgLZiPK1q1bEI2GEq7aMtilAxyCF6Zv73qyuYv8A4rQ895/HqmGDbQpW/flSPAfZqnk5ys9rgBTfuDCP0uXV7deORTtGPjIGwK5oM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1782922922; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1G8TPQ9nlhomp1gZxwftFAjMBKP13Qts8muVskspAPk=; b=ivP0zyTHXK0Fkm9FAr6cssDJfO+qx8WBiY6TyPxcGzfhRPIDsQAyJpVLQShJLIyxALgt8oVlMMjrf//dvA3uwGsj9KcxCSo0ECcKg6DBHEmo3f4DDSwamBNELFLZoDLQv6nTtw/pVrqwM27BcBsHYU4nCQHPlIBLP8hkrZTBTaA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 17829229226231023.2927633574549; Wed, 1 Jul 2026 09:22:02 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1350242.1607762 (Exim 4.92) (envelope-from ) id 1wexgk-0001OD-G6; Wed, 01 Jul 2026 16:21:26 +0000 Received: by outflank-mailman (output) from mailman id 1350242.1607762; Wed, 01 Jul 2026 16:21:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wexgk-0001O6-CD; Wed, 01 Jul 2026 16:21:26 +0000 Received: by outflank-mailman (input) for mailman id 1350242; Wed, 01 Jul 2026 16:21:25 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wexgj-0001Nz-IC for xen-devel@lists.xenproject.org; Wed, 01 Jul 2026 16:21:25 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1wexgi-002ATM-2p; Wed, 01 Jul 2026 16:21:24 +0000 Received: from [2a01:cb15:80c2:5100:ab28:926e:d542:4784] (helo=l14.home) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wexgi-004Str-0r; Wed, 01 Jul 2026 16:21:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From; bh=1G8TPQ9nlhomp1gZxwftFAjMBKP13Qts8muVskspAPk=; b=3t3vfSSzcJ3uaQy3gSX087FhJM 0Ja44iWmuunYrVmkFzHpnOhfPx6EcnE7wUBv2/lmhG88Rahugenw8wUmTaEH49CXW0H8nqZtZYLKC Vt4psi5W8JZ6jBr39Nl6roVKS5XNztAnKFlrAWrTm1Cg6OmJKvpp1xj8B/u2RwWdxHhU=; From: Anthony PERARD To: xen-devel@lists.xenproject.org Cc: Anthony PERARD , Andrew Cooper , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [XEN PATCH] get_maintainer: Add maintainers based on keyword after removing THE REST Date: Wed, 1 Jul 2026 18:20:22 +0200 Message-ID: <20260701162022.30265-1-anthony@xenproject.org> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @xenproject.org) X-ZM-MESSAGEID: 1782922924018158500 Content-Type: text/plain; charset="utf-8" From: Anthony PERARD There's some logic to avoid CC committers (THE REST section) when a file is fully maintained by a list of maintainers. There's also some logic to add maintainers if a patch or file contains some keywords. We do add maintainers based on keyword to the list of $email_to before checking if we can remove emails from THE REST. And at the time when checking if we can drop THE REST, we've lost the information which tell if the maintainers was added because of a keyword of because they maintain the file. Reorder the logic, add maintainers based on keywords only after checking if we can drop THE REST. For example, if we have a file covered by a sections with only reviewers, but this file also contains the keyword "XSM", then: scripts/get_maintainer.pl -f $file would suppress THE REST without this patch. Signed-off-by: Anthony PERARD --- scripts/get_maintainer.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 533d0df72ac1..b788665c08b2 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -720,13 +720,6 @@ sub get_maintainers { $suppress_the_rest =3D 0 if $file_maintained_by_the_rest; } =20 - if ($keywords) { - @keyword_tvi =3D sort_and_uniq(@keyword_tvi); - foreach my $line (@keyword_tvi) { - add_categories($line); - } - } - if ($email_drop_the_rest_supporter_if_supporter_found && $suppress_the_rest && $#email_to > 0) { my @email_new; @@ -748,6 +741,13 @@ sub get_maintainers { if $do_replace; } =20 + if ($keywords) { + @keyword_tvi =3D sort_and_uniq(@keyword_tvi); + foreach my $line (@keyword_tvi) { + add_categories($line); + } + } + foreach my $email (@email_to, @list_to) { $email->[0] =3D deduplicate_email($email->[0]); } --=20 Anthony PERARD