From patchwork Thu Feb 26 20:00:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1967 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136212; bh=CBKXZ3NcdefK61BZwywiKWSjoi45i8SSNXwwrUaRdEI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=lMv9xNvHq0ogST8J5oMbhRXBlTCSMkMuHm55Z1WBecBDc/pPrG4cVC6dcQFoZe7aW 2350HHDv3aGQnsqLBLH1u+vDgRCBot06/Ozr27tdj+aQLRuhF0ACVv3X4cam5huexU d2H+cJZic8nMM760uCTllE/eQ0NoKFJk3ZQrM8kNeyYbvgU3rzWILWiGlXZbN/5SJN dSv9BX8zkdBPoTjCaeEPI8biuzSbK7MiDGrSwVtw64JQxisO832QPfAsMpnUHqlgwo QLtFBTDYTJCijWxx9P+4g2uLEpNMSSvKkKtgmdLiz6eAG+PPWAdGZmVjiMVvhfgx5R 1MpEu8bX6FY8Q== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7011069E42 for ; Thu, 26 Feb 2026 13:03:32 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 5Uxn4JCd8yQG for ; Thu, 26 Feb 2026 13:03:32 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136212; bh=CBKXZ3NcdefK61BZwywiKWSjoi45i8SSNXwwrUaRdEI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=lMv9xNvHq0ogST8J5oMbhRXBlTCSMkMuHm55Z1WBecBDc/pPrG4cVC6dcQFoZe7aW 2350HHDv3aGQnsqLBLH1u+vDgRCBot06/Ozr27tdj+aQLRuhF0ACVv3X4cam5huexU d2H+cJZic8nMM760uCTllE/eQ0NoKFJk3ZQrM8kNeyYbvgU3rzWILWiGlXZbN/5SJN dSv9BX8zkdBPoTjCaeEPI8biuzSbK7MiDGrSwVtw64JQxisO832QPfAsMpnUHqlgwo QLtFBTDYTJCijWxx9P+4g2uLEpNMSSvKkKtgmdLiz6eAG+PPWAdGZmVjiMVvhfgx5R 1MpEu8bX6FY8Q== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5DDEE69D4A for ; Thu, 26 Feb 2026 13:03:32 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136211; bh=9lYTeka7xzN2ENBYY1yuu8UKR03Ey6YJGQkNFFoduOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mDvszUPVZ9vBOamrIpps05uN1vnGsV9UuzKy5nB8xXLIgEl/KJuwEK6QPZTe/jOHo IUAX5LjFtDinJFs61iZWB2TzGyRFUGi4/AZAF5L9Zk6sw8Ge2QrJ9LDZ2IPXsEUEeG eBO9A3dekeFada7MQO9VnEh0jTo48GT4X/loRui+T6ErHkModu9LRzZwe9xm4qo/+M OOZqI7P7Kwz9EvoZjBxpfqdTJw3wLOa5jmDyDuMSoDzQAfr1I7s6kvqIouqVXNQhJ6 AjnMI8eILKjtd+ZTX7V3uvi8qfkPtKK0J9ihpCsC/TLpNMG+aVDeMYB7ftx42Xursp g+TDiXJtqTrmw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 840E569D8A; Thu, 26 Feb 2026 13:03:31 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id olp9-WwN40X4; Thu, 26 Feb 2026 13:03:31 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1772136207; bh=iOm+Yg1jMPUX95gIUNzbfo1VLr9zVG6AGI7yTyLG2u4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=chh7XMLLa1wJC1abDiaZ4IS0j9updjpQWHoDz/dB0DA5UpzjE784Gn++Hd47MEJMb RfDZuY5WQ2c5KhTJMaEXqYZRD42R+ql6QG74feRj4AaaCjc2GJ8B8U2eRI1efTFJLF G4YVAwmlaW5O8Pt9rPE3dMqnFD6w2Xg2MGeNxpTE8aarvOIx+PYYxDoBZF1eTU+Bd3 hb77DUzj7qlWfy8aKTAlOz7y5YpXwuMMmWOxVSkk6W9RQDF71bwjXghafYDEOZzNCw qieEzjBk5VtLeG+mesIpZ1giZh5lC1gFU3iZrOFysTDX/GbWSLj0fCJzw9988Jl5fg YhysUuWJdFRSw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 71BA769D4A; Thu, 26 Feb 2026 13:03:27 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 26 Feb 2026 13:00:36 -0700 Message-ID: <20260226200106.1727176-31-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260226200106.1727176-1-sjg@u-boot.org> References: <20260226200106.1727176-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: SBYCFNGQS62EX3NFH43QESLEQYVNFT4B X-Message-ID-Hash: SBYCFNGQS62EX3NFH43QESLEQYVNFT4B X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 30/32] patman: Filter out AI co-developer tags from patches List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Strip Co-developed-by and Co-Authored-By tags that use noreply@ email addresses, since these indicate AI-generated contributions rather than human co-developers. Human co-developer tags are preserved. Signed-off-by: Simon Glass --- tools/patman/patchstream.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 429bbfb3bac..27cd1980e38 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -23,6 +23,10 @@ from u_boot_pylib import gitutil RE_REMOVE = re.compile(r'^BUG=|^TEST=|^BRANCH=|^Review URL:' r'|Reviewed-on:|Commit-\w*:') +# AI co-developer tags to remove (noreply@ indicates non-human) +RE_AI_TAG = re.compile(r'^(Co-developed-by|Co-Authored-By):.*noreply@', + re.IGNORECASE) + # Lines which are allowed after a TEST= line RE_ALLOWED_AFTER_TEST = re.compile('^Signed-off-by:') @@ -445,7 +449,8 @@ class PatchStream: self.commit.subject = line # Detect the tags we want to remove, and skip blank lines - elif RE_REMOVE.match(line) and not commit_tag_match: + elif (RE_REMOVE.match(line) or RE_AI_TAG.match(line) + ) and not commit_tag_match: self.skip_blank = True # TEST= should be the last thing in the commit, so remove