From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205219; cv=none; d=zohomail.com; s=zohoarc; b=BzANyGfknjT+mKYzzEnQBmlndAbSGmN3izFcHKGh8ZCjdMILAk5Knjb2gjwWe2ZAlP6qjjgFUuU17XZgGF/8+LNfFuqnnfKx/EzJkAQLZl9z8ObYZ96T57oFBQGi/hlZQpPpVRtFVxgSW+nz8GXb1m4L2JgTYWlhr7sFd0kbqU0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205219; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=KNVSdZ0AXBHzjmT6EZIpKKKmzaZoj2AtIwXKa7oDaf4=; b=PReShxTN3vNDmpu2DRfDa6Ao30SDZcf4p6Hs4WzA4J+OnSfw5cSsIbOO8zogjHOYai+H0xVyR66vMdopG/ZFpwNJG0845ARRho7eR62nPQ6Jgh+DwPGsWk1W13xNl5Llz1ZA44Qa57Iio2RKicFS2xHMi5m9b+pIeW4kENgUTCA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205219321612.3510140291966; Fri, 20 Nov 2026 12:06:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUsY-0001RW-VN; Fri, 20 Nov 2026 15:06:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrI-00017k-DM for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:20 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrE-0001ro-0n for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:18 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4a2000d5fb1so7642285e9.1 for ; Fri, 20 Nov 2026 12:05:15 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8538b3a7sm159376295e9.3.2026.11.20.12.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:12 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8F0D65F9D0; Fri, 20 Nov 2026 20:05:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205114; x=1795809914; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=KNVSdZ0AXBHzjmT6EZIpKKKmzaZoj2AtIwXKa7oDaf4=; b=pJU1Dz/KWVVPzZcH95jC3QU7Tu/XFjxZnvDVDnA3EFO/VRULXmaQ7EnL0pXKq6R7H2 pMNRqW8GGddWT9bjpqzVKKMzrG0fmjrm8nubhxNUZSHz9M95TstOfxQz6dgD2YlK2Jdi k+ylb/Y3nxw3pLRxM783XMDys3D/ISI8LQmiOBFEwAItWNfmxIHWQgNhvh7ZSR1fNbOX DjrAjSo9ulYY+Baa+bBo6RVCTElRaX0rT3Uoc66C3xTkCuUOql7WUOOBM2hE+dRY8hj/ Iv37pWSIm/G+yyQ58Q+3uG9zyV7VmQQFptx1R3TCTqqSekt2qnfsYNaMEV3PvUOyAS6P Z/8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205114; x=1795809914; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=KNVSdZ0AXBHzjmT6EZIpKKKmzaZoj2AtIwXKa7oDaf4=; b=zS9BmemGp+138DTDrbGle8rygJLGYHCplQ7tSoPZXUsE3YRnN6XXNhrlxGpP38o5tz EhQYoFWn0Cue4q/BkZNRjV4wTvyu9EV393mDzVERjRUO5MlHRYhu3AdhOiLP4BMpD7wj unr19tliRqk+yJVc9P8BxJ6wNAfpDoMWhJZ0ibbnxUrhG6SQFIyrbnq+GksLh5evI2TP XnQahUXvmkkp66dXPs9jlITIzQ4NSxyO7pzVtzNX6d09rphEQagOKeokuzB2THuHo/TZ aVohMIS2GSjW+SmUZ2udiuEk41K2d4ROa4VMoCUGhzQ+D3t0b1ez360zROuwzQmuaLqm R7cw== X-Gm-Message-State: APuU4Z9bCiQuQ/JgaKs1bO9vu0hu+l2FM2ZtO+zp4PI2LLk7dqZjXVKG pUkXBuS8Kq/FnzO0fijsyyrGtinWz/kAntU2Bcfxy6nbdgLQyphAUQG0v8/G7xe4Cuc= X-Gm-Gg: AYBFou3W0OEucKscPCpWM3n4+0zWmNhebdLhOQO6TpjT46wS5FQQQOBh6+gkrYRz1ZY AJppHiKJko6Wcm3O97JINCIBpF4VOvfbwK2oqZW9NXUrhwdhr7Fy79uX2ERoDEHmzpRbP+8jnvz Mflrw1XU3PGzZwbzfia4BrxWOMaPUCYXdNkTUsgVJeTmTcIgu/0dwzn5R3QeR47fbPTEwko592m SFGWlKNzQxGHT089d8USGwHASX5UP40kRx0MeONapHkVMf2oN/9aDl+igecM0ep6DYkhjN1fw/N dsbsbpwR6DkY/dd+G3iVBD0Tw8j/ZytAhEM6MzG+cjprxw5IFllqkYMCBVLQZvetXr0pdn2hlC3 xBFEI14ZxLBdZntFJj3tK5qp4pgP50YxyH7JCyJ1j96Whd68tx+iNATyBYq0TLTPrSlJCiyk2Aa clQ5vXD555Z9jVGWwWmLWqd+WgBtPj0Qf3QbUJYXJvM4Uh+YkOFc+CEUnah2kbWy1WCRxxknGKp V3XafWBcQLz8od/mjs1ib5BGRQebr0IJPMxL6ktbkkzt0cgrAWftY6rOa12Gasf2ZV13BPOvqUD gsoioNt1aETSWFvhYKXrBmTZZSVB X-Received: by 2002:a05:600c:a08b:b0:4bb:6651:9eda with SMTP id 5b1f17b1804b1-4bb88922ca4mr88343765e9.14.1795205114197; Fri, 20 Nov 2026 12:05:14 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 01/22] scripts/get_maintainer.py: minimal argument parsing Date: Fri, 20 Nov 2026 20:04:49 +0000 Message-ID: <20261120200511.822573-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205220444158500 Signed-off-by: Alex Benn=C3=A9e --- v3 - treat dir as valid as well (as git ls-files lists it) - move arg parse into own function (parse_args) - set files nargs as + for more flexibility - use python3 --- scripts/get_maintainer.py | 49 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100755 scripts/get_maintainer.py diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py new file mode 100755 index 00000000000..47673a5013f --- /dev/null +++ b/scripts/get_maintainer.py @@ -0,0 +1,49 @@ +#!/usr/bin/env python3 +# +# get_maintainer.py: Print selected MAINTAINERS information +# +# usage: scripts/get_maintainer.py [OPTIONS] +# scripts/get_maintainer.py [OPTIONS] -f +# +# (c) 2025, Alex Benn=C3=A9e +# based on get_maintainers.pl +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from argparse import ArgumentParser, ArgumentTypeError +from os import path +from pathlib import Path + + +def valid_file_path(arg): + """ + Checks if arg exists and is a regular file or raises ArgumentTypeError. + """ + if not path.exists(arg): + raise ArgumentTypeError(f"File '{arg}' does not exist.") + if not path.isfile(arg) and not path.isdir(arg): + raise ArgumentTypeError(f"Path '{arg}' is not a regular file.") + return Path(path.abspath(arg)) + + +def parse_args(): + """ + Create and parse the arguments. + """ + parser =3D ArgumentParser(description=3D'Extract maintainer informatio= n. ') + + # We can either specify patches or an individual file + group =3D parser.add_mutually_exclusive_group() + group.add_argument('patch', nargs=3D'*', type=3Dvalid_file_path, + help=3D'path to patch file') + group.add_argument('-f', '--file', type=3Dvalid_file_path, nargs =3D "= +", + help=3D'path to source file(s)') + + return parser.parse_args() + +def main(): + + args =3D parse_args() + +if __name__ =3D=3D '__main__': + main() --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205183; cv=none; d=zohomail.com; s=zohoarc; b=gYBjjiPcuxVM3l6Qge1VdshGRlTnmkbGPw+tNTxktkYD1VULAV2w5fCs2DY9aeE225mKCKSpK/wLxSILLHAvI3yzmYnw3mkcVj1tWq8r3JCZBX5Zkb2nEIrlA2VOeyLWHkElezrkAbh3dv6wpkE+m16gXRTTc2Fqw2oo5Ad/X0E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205183; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6vJvZVxBKZzRtbxWnOsgZqyRwKJ20bvpsbw2Y7ZSf0Y=; b=hKFd74PPlz4lwNPvUH6V1nibYOUOwEn0fIb6sl7h+cc2UCLk6oDXskY6gp6yDodRuQFEIaNkrV1wNsswHmrwWsRKtElDMcsB6op2EZ2SJ1BohFI7iOfsXXQNmUvw9K614NZSequsfBn4PfFSVE/KYRgJOa8cnwEar9K89W+IEIY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205183587100.78263641169622; Fri, 20 Nov 2026 12:06:23 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUrv-0001LO-Uv; Fri, 20 Nov 2026 15:06:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrI-00017i-GB for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:20 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrE-0001rn-DP for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:18 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4bb64ef5a00so10526195e9.3 for ; Fri, 20 Nov 2026 12:05:15 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884865b1sm111302915e9.5.2026.11.20.12.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:12 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id A5BB85F9D9; Fri, 20 Nov 2026 20:05:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205114; x=1795809914; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=6vJvZVxBKZzRtbxWnOsgZqyRwKJ20bvpsbw2Y7ZSf0Y=; b=TN3EDQvmiz4JVh53EwCaeIiEuG9oM/KQ5llyBSFvx49Lm3kMb++QZGvzeuNFuNj0nM LP7zqSf4jrk3J8WTye7CbOVkc1UFHEZbPgChQZ7AAq8PDVtCTrJFCZMhW1TGbGkQs+FL 28XP1Dg6Dom6RIYJneaFhHaIN585DKOHmPkigXymcOw5KOJ4PYJztsrcai5/nDIQZZfY /WyHBO/UYDAincwSg4VFtZS8T110ZuetbK+58qMNxWxpNYip3IczTIsUf8ACljk5IVTS XClMB+irz2dxq6VZm5cZyPSMlIFejBA4NxXZbViwyMATmKCO1MjRmTQ4OindOaoOFC2K 2Hkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205114; x=1795809914; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6vJvZVxBKZzRtbxWnOsgZqyRwKJ20bvpsbw2Y7ZSf0Y=; b=VI1Y4gHuuP40P7Du8c34lFrYK+2t8/ckEPCvg5/ZLjge3vfmvi0qYPcmbBKvbskHJB iuVKTKYQc2sr+Vnc1sEKWFTLEER3KZWSfZ7YKNRXZvPjohEfcWvcVztxsdG4BQtS+DCY 3u0DE2iGtwunLUKsX2PeKFC2uXYWT1sgSA4am4atJKrExLkcfm0DoPN71tWz7c8DRKTB rFKjqgWGAMg6pjrYx7hml9MDYC24GFro2Aior0vPKOhvo2zLvy7Mfwe1ZRYrvuSK2jJt SBkcnMPIBRAoQq84Jquekj6VxZM/RwcxSG4ntZRXt3+Svj7I8BhSNXlN1JLURqZxW7c5 bcRQ== X-Gm-Message-State: APuU4Z9NUUZzKoxSg/eQ0e83U+hXhIOq2L7tNbKC4RI5mlGvC34mkMvI 0a4eCTcXdSl1NXRUTE5d7fHdfkf3MX80KFYG8+0ouTxdGxg09zp85U9r3O9ldK70Zwg= X-Gm-Gg: AYBFou2zI4qqWEXJUBTHhoBCGyy6I3Z7FRh+dd9OkgBmAhSDTwCcujSiHnq2fql8wtS 8hJtynWtrR6T2bYEKLCjt2x6LP9yvquG2JfPb69Idt7pCtAVV5jF9bzrFuMUbaVLHEhd68mSWvE rdWhujcdLxugbKMh+cDvuJOGV2L/0rp9KnjuXK50ughpPvLjUjyx5qkRg/777+fVFMDp4FnB+Ua NFy/Rh0OY/4Tyms5N4t5j2HMuOjla1UUN3SL19vXDo4MG6YO4rCrgEkfU87ASPvDMrj+RrEDkbO xeozGSfN2i08MqqUsGUFmghxPdlNIoBCuXWu+5/dOy+IO6Ajnf00JzNEtqxz/mbNP+Ag2fSAZG8 MClO85neQ7wiPC98O+uo79f/gFo9a1RQJlkliwt5SPuX8hcR5BKZdkcWMaUfAoHPbsyNGTZrvY6 FdPpQRyYSOdIgfAK4bNSFIEOPl7L4B97QD7rWS3Fc4+Fweoynh9wkIk2/J7LQDIZ42uV+nHiSoI z5gu/LBsquTh4Mg6jeBfD1A6d62y6s6G1H+wQ4OloFM8UGXHEBJNzh/TGgrVkJ1XFEuimLIiHO9 vH8sm/XpxwPd7fsWPcHkqHZuxtDN X-Received: by 2002:a05:600c:5249:b0:4bb:665c:a078 with SMTP id 5b1f17b1804b1-4bb8893a89bmr93920215e9.28.1795205113705; Fri, 20 Nov 2026 12:05:13 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 02/22] scripts/get_maintainer.py: resolve the source path Date: Fri, 20 Nov 2026 20:04:50 +0000 Message-ID: <20261120200511.822573-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205184401158500 We will need this to automagically find MAINTAINERS. Use the same logic as the perl script by looking for expected files and directories. Signed-off-by: Alex Benn=C3=A9e --- v2 - don't hack add_argument twice just to display default - whitespace fix - don't default to required v3 - fix conflicts from parse_args() - return src in a Path() --- scripts/get_maintainer.py | 71 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 47673a5013f..794e96d4ae8 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -15,6 +15,60 @@ from pathlib import Path =20 =20 +# +# Helper functions for dealing with the source path +# + + +def is_qemu_src_root(directory): + """ + Checks if the given path appears to be the root of a QEMU source tree, + based on the presence of key files and directories. + """ + if not path.isdir(directory): + return False + + required_files =3D ['COPYING', 'MAINTAINERS', 'Makefile', 'VERSION'] + required_dirs =3D ['docs', 'linux-user', 'system'] + + for f in required_files: + if not path.isfile(path.join(directory, f)): + return False + for d in required_dirs: + if not path.isdir(path.join(directory, d)): + return False + return True + + +def find_src_root(): + """ + Walks up the directory tree from the script's location + to find the QEMU source root. + Returns the absolute path of the root directory if found, or None. + """ + script_dir =3D path.dirname(path.abspath(__file__)) # FIXME, breaks py= thon-send-buffer + current_dir =3D script_dir + + while True: + if is_qemu_src_root(current_dir): + return current_dir + + # Move up to the parent directory + parent_dir =3D path.dirname(current_dir) + + # If we reached the filesystem root and haven't found it, stop + if parent_dir =3D=3D current_dir: + break + + current_dir =3D parent_dir + + return None + +# +# Argument validation +# + + def valid_file_path(arg): """ Checks if arg exists and is a regular file or raises ArgumentTypeError. @@ -26,6 +80,16 @@ def valid_file_path(arg): return Path(path.abspath(arg)) =20 =20 +def valid_src_root(arg): + """ + Checks if arg is a valid QEMU source root or raise ArgumentTypeError. + """ + abs_path =3D path.abspath(arg) + if not is_qemu_src_root(abs_path): + raise ArgumentTypeError(f"Path '{arg}' is not a valid QEMU source = tree") + return Path(abs_path) + + def parse_args(): """ Create and parse the arguments. @@ -39,8 +103,15 @@ def parse_args(): group.add_argument('-f', '--file', type=3Dvalid_file_path, nargs =3D "= +", help=3D'path to source file(s)') =20 + # We need to know or be told where the root of the source tree is + src =3D find_src_root() + + parser.add_argument('--src', type=3Dvalid_src_root, default=3Dsrc, + help=3Df'Root of QEMU source tree{" (default: " + = src + ")" if src else ""}') + return parser.parse_args() =20 + def main(): =20 args =3D parse_args() --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205285; cv=none; d=zohomail.com; s=zohoarc; b=n/SsuZRdw8nGOzcWdiVOY0rSS0GUt2HpRWqbW7thj4qt848LvRkcDTfCb5deYj2Y89fqWf/gXWc12CalvXmKBtxr3aQJU0DLvvVFz1SUivG3YMeZnsWDTGN24EMlAQUhj0rMFKYAIRuEF52292XEmoRLwSSL1kQUTiG2zzDn5P0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205285; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Dle+Zp+BbDLFOA/MH7EafCGd6d041LZjZYEk4N9v81o=; b=jvIn8svVN7xus4UEkp/3p8yhqA7bWL0L9hen69u+s7KI2I/CiTPLP1do/MG8RrPOBODByjBSFUix/7/2wJvZfDOSq7cJQpAWgp/gnAcdzu8Yl4IqoCLm5cBRvRo8vlJhcdVhgk178rU77YN3Z0BPw6Ta5iiz0AL7a8XtYmfZY7c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205285531946.2591053086459; Fri, 20 Nov 2026 12:08:05 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtT-00039Z-NI; Fri, 20 Nov 2026 15:07:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrN-00018q-F4 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrJ-0001sa-Tn for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-49a92144733so708414f8f.0 for ; Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c61e53asm7888669f8f.59.2026.11.20.12.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:14 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BCBA35FA0D; Fri, 20 Nov 2026 20:05:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205119; x=1795809919; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Dle+Zp+BbDLFOA/MH7EafCGd6d041LZjZYEk4N9v81o=; b=RrtG4jq6jYh3Djfyy1AJwg1YgrN5HCjRgaTLCC2lAVU+UeAvAPhveEQD2C8ATE9ro0 eKtCAs321f29fk2zw6juFNH5z2Wo/vywGeRc/Xjp1cdgSs4mdpNaKdyuk162nbhVWA/F Qa4y39Z/upx2FTYfOgbKwzBHBZYIxG1piC4sBaRo7qXpy0lx1teB3p75Rwm2gCLojnze klEoVA+rAxaNW+lLCWhRjfzser3/lnRAuc/AG49eejJquiycXy3k5zM3mTNWAInp2fLQ HUra/uZSVUopW5G86ZE09w2g6khS9hCqBYrERUxOaTBheA6Wf1ga8dwME2ei9FmI+E1R dmLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205119; x=1795809919; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Dle+Zp+BbDLFOA/MH7EafCGd6d041LZjZYEk4N9v81o=; b=IiSB4oIGZCvTyfQfY3nhypFn2Ffx8Kg9SLYp4hyUmVnmGYMgPZ0Y0NJ02fZ3CUAA0k k1YBNe213bs54OZITK8e8Ui4p+UJjUfB8yheVO/+tE/wUJ6rb7/7CmRAhKHVVxzP4iFg 0RY4Odj1DwfJN2UQOmxkgcRgBk90vGh2DX61j4cdG3Dfa1lUROJdchkzcCfw+TbpKVFp Xj23dRiXIFj0rYBw4hdYEr5UUF9T96FjGtf2vuB7zzT19Y6jZhVuOslIhwjRFLtPmCuX y9sqERSj1Ysz6SB18LI0gBJM/ME4ziykml+NyIyiKjIq12skkyOV6qmgUNOPpWbgeMdg tJpA== X-Gm-Message-State: APuU4Z+KAnJjJT0+s4TXFUZDX9mlcmeEdmm7AbJRlE85hmVyfU2zQrkv nGOHFJaLkXo63eMqttpFg4+T4AOpOJ5OG8NIVmQane0Z+3Cn6EEG1L/JUR/uApUI/Wg= X-Gm-Gg: AZFdTZeXpp/aotKWkSTRsaox3QekDrTyoO2bUl3tYprXtqG2idICxTikx86nzSHQ3Il IXBoyM6boqH4w3Yd2POw0AiDco8DSMUZU5xNli8S2P5xkHrPbjA1nwJRQF6+u0CEIdX9HjQOGe2 dQaq9l3TlVTH0FjLWFuYIf+8wpHx/+qtq2E5Pi3M8rrn3AruZTK+gs9b0zcOQPdCh0YBxH4la7m ls2xML8PGzx+Q1AZjtiaAUXjQl9zdJQOqsYWFrpuu/La4ol2NY067eyL7ceHZ+1u+22s3tbvkdr sdJK+xCNpwVJl1h/O+OBhjJH2RIkB5ZuYXj7OFq4MK3LMeUZtCfYBSQBRlRUM2bP0amdBcUonsg 75u+txnJb383PqMptSzKaJLQVwgVcpPaEx6cq9bFx4UJpwOua5VmbY5ibo075Z5qUBqY6bAZT52 1hQLYAjRq8kZ7/921PMGgsXDgXlneKqLy14n4NDfs2JfKCHDyOpTf2qzf/SGlptSY7/GEttZInN NO5tYIKnoA1wkwwo2tp7f0Wm/HYAfRx1vO5KUAUeOLAqnqUC9CPTu0MrCK1xOyB0xPfwU3Icjuh xvI8HEgJwjmyA74vJAnoPmH8U8k5 X-Received: by 2002:a05:6000:2308:b0:49b:587:121a with SMTP id ffacd0b85a97d-4abb36787afmr9073355f8f.16.1795205119264; Fri, 20 Nov 2026 12:05:19 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 03/22] scripts/get_maintainer.py: initial parsing of MAINTAINERS Date: Fri, 20 Nov 2026 20:04:51 +0000 Message-ID: <20261120200511.822573-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205287036158500 Add the basic infrastructure to parse MAINTAINERS and generate a list of MaintainerSection objects we can use later. Add a --validate argument so we can use the script to ensure MAINTAINERS is always parse-able in our CI. Signed-off-by: Alex Benn=C3=A9e --- v3 - use sys.exit in preference - properly skip preamble - clean up some pylint warnings v2 - add __str__ function for formatting Person --- scripts/get_maintainer.py | 175 +++++++++++++++++++++++++++++++++++++- 1 file changed, 174 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 794e96d4ae8..dcf132856cc 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -10,9 +10,166 @@ # # SPDX-License-Identifier: GPL-2.0-or-later =20 -from argparse import ArgumentParser, ArgumentTypeError +import sys +from argparse import ArgumentParser, ArgumentTypeError, BooleanOptionalAct= ion from os import path from pathlib import Path +from enum import StrEnum, auto +from re import compile as re_compile + +# +# Subsystem MAINTAINER entries +# +# The MAINTAINERS file is an unstructured text file where the +# important information is in lines that follow the form: +# +# X: some data +# +# where X is a documented tag and the data is variously an email, +# path, regex or link. Other lines should be ignored except the +# preceding non-blank or underlined line which represents the name of +# the "subsystem" or general area of the project. +# +# A blank line denominates the end of a section. +# + +tag_re =3D re_compile(r"^([A-Z]):") + + +class UnhandledTag(Exception): + "Exception for unhandled tags" + + +class BadStatus(Exception): + "Exception for unknown status" + + +class Status(StrEnum): + "Maintenance status" + + UNKNOWN =3D auto() + SUPPORTED =3D 'Supported' + MAINTAINED =3D 'Maintained' + ODD_FIXES =3D 'Odd Fixes' + ORPHAN =3D 'Orphan' + OBSOLETE =3D 'Obsolete' + + @classmethod + def _missing_(cls, value): + # _missing_ is only invoked by the enum machinery if 'value' + # does not match any existing enum member's value. So, if we + # reach this point, 'value' is inherently invalid for this + # enum. + raise BadStatus(f"'{value}' is not a valid maintenance status.") + + +person_re =3D re_compile(r"^(?P[^<]+?)\s*<(?P[a-zA-Z0-9._%+-]= +@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>$") + + +class BadPerson(Exception): + "Exception for un-parsable person" + + +class Person: + "Class representing a maintainer or reviewer and their details" + + def __init__(self, info): + match =3D person_re.search(info) + + if match is None: + raise BadPerson(f"Failed to parse {info}") + + self.name =3D match.group('name') + self.email =3D match.group('email') + + def __str__(self): + return f"{self.name} <{self.email}>" + + +class MaintainerSection: + "Class representing a section of MAINTAINERS" + + def _expand(self, pattern): + if pattern.endswith("/"): + return f"{pattern}*" + return pattern + + def __init__(self, section, entries): + self.section =3D section + self.status =3D Status.UNKNOWN + self.maintainers =3D [] + self.reviewers =3D [] + self.files =3D [] + self.files_exclude =3D [] + self.trees =3D [] + self.lists =3D [] + self.web =3D [] + self.keywords =3D [] + + for e in entries: + (tag, data) =3D e.split(": ", 2) + + if tag =3D=3D "M": + person =3D Person(data) + self.maintainers.append(person) + elif tag =3D=3D "R": + person =3D Person(data) + self.reviewers.append(person) + elif tag =3D=3D "S": + self.status =3D Status(data) + elif tag =3D=3D "L": + self.lists.append(data) + elif tag =3D=3D 'F': + pat =3D self._expand(data) + self.files.append(pat) + elif tag =3D=3D 'W': + self.web.append(data) + elif tag =3D=3D 'K': + self.keywords.append(data) + elif tag =3D=3D 'T': + self.trees.append(data) + elif tag =3D=3D 'X': + pat =3D self._expand(data) + self.files_exclude.append(pat) + else: + raise UnhandledTag(f"'{tag}' is not understood.") + + + + +def read_maintainers(src): + """ + Read the MAINTAINERS file, return a list of MaintainerSection objects. + """ + + mfile =3D path.join(src, 'MAINTAINERS') + entries =3D [] + + section =3D None + fields =3D [] + + with open(mfile, 'r', encoding=3D'utf-8') as f: + for line in f: + if not line.strip(): # Blank line found, potential end of a s= ection + if section and fields: + new_section =3D MaintainerSection(section, fields) + entries.append(new_section) + # reset for next section + section =3D None + fields =3D [] + elif tag_re.match(line): + fields.append(line.strip()) + else: + if line.startswith("-") or line.startswith("=3D"): + continue + + section =3D line.strip() + + if section and fields: + new_section =3D MaintainerSection(section, fields) + entries.append(new_section) + + return entries =20 =20 # @@ -103,6 +260,12 @@ def parse_args(): group.add_argument('-f', '--file', type=3Dvalid_file_path, nargs =3D "= +", help=3D'path to source file(s)') =20 + # Validate MAINTAINERS + parser.add_argument('--validate', + action=3DBooleanOptionalAction, + default=3DNone, + help=3D"Just validate MAINTAINERS file") + # We need to know or be told where the root of the source tree is src =3D find_src_root() =20 @@ -111,6 +274,16 @@ def parse_args(): =20 return parser.parse_args() =20 + try: + # Now we start by reading the MAINTAINERS file + maint_sections =3D read_maintainers(args.src) + except Exception as e: + print(f"Error: {e}") + sys.exit(-1) + + if args.validate: + print(f"loaded {len(maint_sections)} from MAINTAINERS") + sys.exit(0) =20 def main(): =20 --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205167; cv=none; d=zohomail.com; s=zohoarc; b=Xk8neZ3F83EIzjucw0IfHt8D3Upx8IdsZ+o37g1AlINn1FBNA8WE8k7x1JVVjMyayIHrYRK6zmztGNPdF3m2dZ2oE1eLyL6fMhdrqwbTnmSsnkiZGqzrk04yIpthr5R5ONx8l7lJb3r81G5mC/8+EMftgxnNqBU86bH0a34oW8Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205167; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=oyzbPI743iRy9+Ha5OOjVC6jUktBEiVSMrlt36AxKx8=; b=UTvzuGhwIwc471z9y4vGQVPGPDM/lKAzX79auf78PoY9cLaWlcPN6CHyzYiNX9vAHtf4gDhpd4WqFyavM8T9pFmzcdqRx/7ODJKueDKrn8xaFeBKLlqpmcMy7iZ/zy781GI53wRVKfLMHlPZRiF3irlVznI3dccVg9OwvKhMgGc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205167344960.6456239360762; Fri, 20 Nov 2026 12:06:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUrP-00018f-Ct; Fri, 20 Nov 2026 15:05:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrI-00017h-Cc for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:20 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrE-0001rt-FB for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:18 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4bb6ba3b244so12305165e9.3 for ; Fri, 20 Nov 2026 12:05:16 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb9067a0e6sm7096495e9.4.2026.11.20.12.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:13 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id D48815FA2D; Fri, 20 Nov 2026 20:05:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205115; x=1795809915; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=oyzbPI743iRy9+Ha5OOjVC6jUktBEiVSMrlt36AxKx8=; b=eXcKwQ1WT+jYT9I0zEBDySAocwvv/nuQJIXTeBZofMX/Ia9Nftl06SxhFlKXQRAmxg 4MUJ/jS1kWBn6du//x2MlurtC8Hn9jw8LwIMiFa+dpQXWT3WCNIXMAZ450BxM459ulAg T25f7Jd0Nb0BlNlDEu2Z4kBGr55hEKsuinHjNHW+A7moPLruBAscNuHtMHc3iqbypFkb jSkh438Q7/kFeR5rZ1ST3nssKKomRKKGp7/isUEwNbtzkRig7yzmMb94DUq9GWpcOuOe KQoFCsoJp/PzKzqKVdEKBczIWdev2iaJSrNEC0jIKGJjUG193u4suINLAl1rbRES1syw A93Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205115; x=1795809915; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=oyzbPI743iRy9+Ha5OOjVC6jUktBEiVSMrlt36AxKx8=; b=jSP9fWNhVkTXTZr1HSRJ5ZLr7UniKA+viEsibAA3N42gp/Ob/JyXmMYMmnOJ34VlGk XbXE/bkMnHyCgb+TUmc9huUUcDh3oFUOZtH7NIOoxSoY+iGM+3Iu2tZvQJzYinn0vb7D t79Kh1sN1X8kJwjBrj6Z4EQjMn7XBNly1CN9JRNKY0txaUVaxlnmqak/kQUxYCSwKLwS Vnl0z3fDtCcUcCAYn32ewoyM46bMn/X3xAgQQRIA6Q8Q4piLTlJTdh+ttRHwWWvyf7Iy u3hcqlMec4rYXFYTkuPbKqpxmtslD3iBCvcrLfpUyTOadFvuZAQM8wNZNUUxttnsmxuu VHGw== X-Gm-Message-State: APuU4Z8gL75lz7zf+Vr0RO6qSeRGN/3j829IFBgS98dLx1Xe9vzR5MVt GJjs40P4/5llqxZhekabdEjAcA8Xk038EeBWgrVgjxzbzjfwc3XjCvHiOVS03NnuVqI= X-Gm-Gg: AYBFou1skyu6Ij7Tb+k2fvlR+0eofB5oPu6KWficAsXSdLhNpEG8azex1oTU3m4Qw89 GNtgHWKJoNC6si1KnRUEotTPlFjVYAQL5zsKiFd8bGY6Wk8QHBwhBe4q6B7QeoQa3PbJa+OwQQ2 5CzxJflBahWAg80Ry1ibk4X4PdWzJ66Gog1FFr8ODWhr9WjYbYqG78shrENGEYKjCv9xIdTmcql 8KNbKeN1SExrdN1PIKc+OBMzM0gDjCSuc+4BgUgSb4cMWM9MvXhZdK8ydQL8N6Ga4MGflVIYK9y m3Q8LMzNuvJAsMmHgKD6RY86OTzI+Wibb96RpkV/sJUGn5Aep9yCF7D910qnUXIBhGOjAAcwZiZ Bp5uD8ndm6Czt5UTxMBgM8cR6mqIcE38TGKuOQzYHp4cEGt2+0Wda6ge9UyQDBp09nLhZdAIAMY r0Bf2k2lHyCMyPugjZx7guIxeH/JYyhzYzJVBdWz0+6pPuA48P52DWLWevtV3ELLO+O1IWbrylC gyHCWH691/JcKInapKH7SRhcRv5rZvmvYSQwv1XJpHzHenKiFUqPyMiF6UOfqcFVj+7g3Bfmo9s L9pqjk4ktAWd9xijEIEHXZ6Mb3GI X-Received: by 2002:a05:600c:848a:b0:4a1:fbd2:f689 with SMTP id 5b1f17b1804b1-4bb8880993amr93679535e9.7.1795205114983; Fri, 20 Nov 2026 12:05:14 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 04/22] scripts/get_maintainer.py: add support for -f Date: Fri, 20 Nov 2026 20:04:52 +0000 Message-ID: <20261120200511.822573-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205168451158500 Now we have our sections we can add support for checking each file against the maintainer list and gathering the ones we want. Finally we can print the list out. Signed-off-by: Alex Benn=C3=A9e --- v3 - Path and match are expensive checks --- scripts/get_maintainer.py | 45 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index dcf132856cc..8a018042952 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -134,6 +134,32 @@ def __init__(self, section, entries): else: raise UnhandledTag(f"'{tag}' is not understood.") =20 + def __str__(self) -> str: + entries =3D [] + + for m in self.maintainers: + entries.append(f"{m.name} <{m.email}> (maintainer: {self.secti= on})") + + for r in self.reviewers: + entries.append(f"{r.name} <{r.email}> (reviewer: {self.section= })") + + for l in self.lists: + entries.append(f"{l} (open list: {self.section})") + + return "\n".join(entries) + + def is_file_covered(self, filename): + "Is filename covered by this maintainer section" + + for fx in self.files_exclude: + if filename.match(fx): + return False + + for f in self.files: + if filename.match(f): + return True + + return False =20 =20 =20 @@ -274,6 +300,11 @@ def parse_args(): =20 return parser.parse_args() =20 + +def main(): + + args =3D parse_args() + try: # Now we start by reading the MAINTAINERS file maint_sections =3D read_maintainers(args.src) @@ -285,9 +316,19 @@ def parse_args(): print(f"loaded {len(maint_sections)} from MAINTAINERS") sys.exit(0) =20 -def main(): + files =3D [] + + if args.file: + files.extend(args.file) + + for f in files: + rf =3D f.relative_to(Path(args.src)) + relevent_maintainers =3D [ms for ms in maint_sections if + ms.is_file_covered(rf)] + + for rm in relevent_maintainers: + print(f"{rf}, {rm.section}") =20 - args =3D parse_args() =20 if __name__ =3D=3D '__main__': main() --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205273; cv=none; d=zohomail.com; s=zohoarc; b=VpyGsLiHImUMMGIv3dyPSfEP8vV46olwnWUiOk6CvcyIIAYxOwEpX/LCcWeXabZM51m+6MOwyzQnhRXv/Sq+B41yObOUKyQyYl4oGUkcYf3WHCPL3s37NUG1vWZjCn+3w+7crAEiVdQegKBTYeDDfmIzt9apM9yGy8zYKkyioJg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205273; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bFGCt9iT+9nbrFOZekH+hWs9QHdIDJ+cRLdWJfu4b8A=; b=QUHQjW4hUipaeDS1ku4mpfa7g6pyC97mE+JpIqFv06NS0lwaOBjW4JaXWFvTNJ8MOOYWIMve5deFVGJAri+23xU/qvPmdVEhAmTPuqEmv5AXmSOAJiYetHELdLFRgd407qFQZ/7ghHkaArm6l964ovT4jzKYiHrrku1/YuWIIb4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205273417213.79264329499335; Fri, 20 Nov 2026 12:07:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtW-0003SK-LK; Fri, 20 Nov 2026 15:07:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrM-00018l-Ni for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrI-0001sG-5V for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:24 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4a5b2be99a8so11725615e9.2 for ; Fri, 20 Nov 2026 12:05:18 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb9067846esm10308455e9.4.2026.11.20.12.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:14 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E9A845FA2E; Fri, 20 Nov 2026 20:05:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205117; x=1795809917; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=bFGCt9iT+9nbrFOZekH+hWs9QHdIDJ+cRLdWJfu4b8A=; b=DVGL9ArZI773+iX9Gj+Nu+z2W3K1rAjB1U2MiHYuECOMRWlzwuWgwG5ZdreDf3Vg4F v9jhMUEvQbZe+Ty6ge7uyyqYOFyU7eIIuy3+N9Mu+Gq2KMb6II0Xk8jPqkbhSr5ENgA3 9kLrVjD4OXj4+ZBvKMPJBYFoVkgfo5fa0qraTrdYoT2uc1JMe7rYjDyKub5+9k/yudGB AJR22crkZ50Fs9fOPDNhxroSrK4K33CBACdcJozvyYre+XeGQ+S/r2hBP+6x3V+BIN8O wkBTLF5C9jqospEgRnh0wh9WxhAtRNcuW1zZPuQBzkvLtPUFJ3d8dTlGX2PfmOfL50il u97Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205117; x=1795809917; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=bFGCt9iT+9nbrFOZekH+hWs9QHdIDJ+cRLdWJfu4b8A=; b=GwOTQHHRn+wTeK5cEUcG0qeAA+nuyLpbYxfKo5pyZvIPlIR5130zAsQSrI/vXSvTZS msFgoiDdvGQnYZqbXqR2pWKqf19j6GK4nVtWRXvzNpncJNNTiagg/sOT2yC6Lezt/7ZY /NU6JOW7s1qeFXxK5cVpxM2xyn9NVuuqCSQO3Y+3rd9ILwgdKzDbAlr+S8gpqcOVmqri 5PPqkQWHSfOpjDcDu0W+TFUyM7JJfQ60knsSbZW1i9cmvtfajTq8HqNptKEyyKVeH/Bj a89pINRxU8zl/sFJVN+iTQxQNjrBUwCCi6XZbXqnWrmFHBjqUlbR6KvS6aamE8Hioo1C 3vyQ== X-Gm-Message-State: APuU4Z9i791gI1Hzi90I8HiTpX5AkMc0Al+X/sJSZ/DToeHPr34ModgL meMHqT3tQ3LpJJEQzjPnwsOxBR6WjJ/kygbWd2eyhT9FC9MeO37oFRS3eeRQINm7fdw= X-Gm-Gg: AYBFou1GvyVzum7xcS+/sdqhbEybH5GGQwAEo8DUGDd98RdZHUBJ5xu5++gPqUYa3Ft PG7kr0YNlz5jPO3l3dAu1QhxC4pb6keOVsIZbrLeX4pXAnFAdaYKE2TT9XqvJ3OiVZ3BkzetSdD cXStI4dKKYzHIwJzZ4JzgG9mIz695L7yeBnjViPLB5H4R+6/LBH07RBRui1lTQY3OxagwrQ5wP5 Bl9vfwj+qTNDwlQbMnR/Li4GkYHWBOw/ENg7hfR6Imozd8Wk1dZgs7qhIKt0i8HYlbPJCMLAUT8 2rTDsqH1ARPH5Rz0SrggYw5JNF7YIjODXeRZUblOMvK3FrseqHGkvniK+w6uqa+mGCCNSG1u9Q4 XE8UmFxfXPWI7dzftLtQQZbJBO1WEkMNAotqMRi6whgT5lgiOnBRvbwJYEri2lTPn5urSVy5PSG KdXyIEz+4cXcxVFDzvUO4oBMDvOxl0LbBF66rE7whY18s8iELmOkS+mqYlRY+Rxv3AceQtdeLIb IkAivBB3JdFTJllMOteRtcU+nKhTXDuaIbbT3onrz5s56mFujbr4TkCwBXxND7WDW6qGudTWn9A M6yhunyVvV+lS29SlW4GPrL9ifXcazqNk51v47Zbwdgne7iuKA== X-Received: by 2002:a05:600c:638e:b0:4bb:6c5e:b006 with SMTP id 5b1f17b1804b1-4bb887e265fmr94262605e9.3.1795205117110; Fri, 20 Nov 2026 12:05:17 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 05/22] scripts/get_maintainer.py: add support reading patch files Date: Fri, 20 Nov 2026 20:04:53 +0000 Message-ID: <20261120200511.822573-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205274885158500 Not so different from individual files, we just need to parse the patch looking for the files and add them to the list. As we can parse multiple patches we also need to ensure the final list of sections is unique so we don't repeat ourselves. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 41 +++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 8a018042952..597db64ea16 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -16,6 +16,7 @@ from pathlib import Path from enum import StrEnum, auto from re import compile as re_compile +from re import sub as re_sub =20 # # Subsystem MAINTAINER entries @@ -197,6 +198,29 @@ def read_maintainers(src): =20 return entries =20 +# +# Helper functions for dealing with patch files +# +patchfile_re =3D re_compile(r"\+\+\+\s+(\S+)") + +#TODO: also return a list of keyword hits for K:? +def extract_filenames_from_patch(patchfile): + """ + Read a patchfile and return a list of files which are modified by + the patch. + """ + file_list =3D [] + + with open(patchfile, 'r', encoding=3D'utf-8') as f: + for line in f: + m =3D patchfile_re.match(line) + if m: + # strip leading [ab]/ + stripped =3D re_sub(r'^[^/]*/', '', m.group(1)) + as_path =3D Path(path.abspath(stripped)) + file_list.append(as_path) + + return file_list =20 # # Helper functions for dealing with the source path @@ -321,13 +345,22 @@ def main(): if args.file: files.extend(args.file) =20 + if args.patch: + for p in args.patch: + pfiles =3D extract_filenames_from_patch(p) + files.extend(pfiles) + + # unique set of maintainer sections + maintained: set[MaintainerSection] =3D set() + for f in files: rf =3D f.relative_to(Path(args.src)) - relevent_maintainers =3D [ms for ms in maint_sections if - ms.is_file_covered(rf)] + fmaint =3D [ms for ms in maint_sections if ms.is_file_covered(rf)] + for m in fmaint: + maintained.add(m) =20 - for rm in relevent_maintainers: - print(f"{rf}, {rm.section}") + for rm in maintained: + print(f"{rm}") =20 =20 if __name__ =3D=3D '__main__': --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205184; cv=none; d=zohomail.com; s=zohoarc; b=UUy/W7Fylyxol8NPl/ld3Max0I8sZCwiJLS8xlazHvaDpjFYQpXZIxlNOEKT/pSBGtZRgnGJ0/RiWSo8PTlWCcvn0u1qs/qeSFmlhAALCNiMwHchDjh8K9s3K68aLeuxP6yBmNYj/Vy6gZUv+f4rjj02NZRwK86kr2vlprCaNtE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205184; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+vY10cC3QN7kEcVd1hwXNxFZPVHdyt2YGh8opEu0YvU=; b=IBJ3H06tk1YtknbtbIB4E/2JBdGxkD0lZRwozmb3vOFDi7AqrbI7wB5N/CRzLD3TQRbH26ydvIKJPQfAnrY3xUaT8PzQ214X/XrM9qT7fXG3KIFoElb+2n7rpl7M17F+NXI8OXWpB7OQg4clIJu2vG8R/yxiEeBDC6vd+fB15zU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205183947827.5747742860057; Fri, 20 Nov 2026 12:06:23 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUri-0001Jn-TO; Fri, 20 Nov 2026 15:05:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrK-00018H-50 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:23 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrG-0001s5-6Y for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:21 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-48dfc0421d9so1256374f8f.1 for ; Fri, 20 Nov 2026 12:05:17 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf680fsm8412145f8f.14.2026.11.20.12.05.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:14 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 0DD945FA3D; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205116; x=1795809916; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=+vY10cC3QN7kEcVd1hwXNxFZPVHdyt2YGh8opEu0YvU=; b=SHCejFkhYViYNeB04YK480qG66YThnUdHu1JRztvHIKaTNVUHon6mvsjv0QrzDNFjR S0WBwaGiaJGNdJur4/XAHyE62CTPhT6hal2B4M1/1IRb/sl79CP6T0NR+Yl6dE27RJEO 8PO+AXKS8Pf19Cgz9pkxJwv02uq5kNYvZAkAcDiyXr8NAOAwEE7EzAYeRsjV84zt4PNr 6J8mLDJerx4V5NWTU2ymbHBP+yj7sj4ctFCri6MHboU9I5ddizWtPreQ05CU+IpdOr77 e1uM7P+/5mywz1Crgum5ztsF6mX9H3PLVnFnKSAR9nrdeWUYklUrolIBHJzXVNWz7GAM WbPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205116; x=1795809916; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+vY10cC3QN7kEcVd1hwXNxFZPVHdyt2YGh8opEu0YvU=; b=saXMHrGMs85showwG/KOX54gYOMhVapdE511+G0tlM6smZArya9ULWoZKaB9o6rG6z UWZ48rLdYdLfSrYi2WAgcGcs4HbCFDpxyfP/m8RMfmaDYP82AkwhZ/lClYXffFNeHGtg kCln1tzN4iP/MTfNsyoqprYDgT3jRVZvgWKaB/b7ZxhJb2Tp65gcrAlIYdoJNWWLg5Sh tVYUuLde46D29J+HX1vfZ+Ie8Zdm6XGX4w4uIuHbhVLovOS9BSZqlV3fgIvLuCLCc3oJ Ft4prsIczlb/qcPYOKVVhPU3bdiBMGrnN280mdTU+1IPlB3oQgzIYBoeHe36DHFGnp+4 T2Bw== X-Gm-Message-State: APuU4Z/+S4BQ6eG5Wxxd8BimagusmjnpRyDgNftPa2hdhs669vkSy+su OwA0UusQwcLrEML1KOHMRyvtzsZMWkb2QZqsMk7JELMwnlIncxgkEYpY1s1C/y0MIUQ= X-Gm-Gg: AYBFou2UePNXHtiBQNJykjb7OwOcFmFgkx1aNmWrnxkqv2OXL58KpQPWuUhSbTyWyfU UK8RJJ1vkvL/TBmjIM1vRAhuITg/RrbG6SAzuHJqMVpFcCl9Sp1TdFsSoN1XTFrIUPF4PQ3ZeyN bAzhJa/xs3n+6reGGonIWRZlSpLuZCLgkjj/82PIvelNgJQrCW9nBQ42vrn6kBS9XEwu3jQ9XlD W5/IeZppKE+HbZzZRYmTsvv1KhK+p27vtr2tM9uWpUsYLmybJQZ5E+M9vk73ki9fWiQfkZZ76W4 5l8Pn4OgdhZM+aikRrDW9Y6jDXJaY+brdxqDIdlF9yryaqby+V9iGACtxiKxoHiNSbB5pOhJsCh i5id6QeDXSC4oFMnhJ5DgPhBWPtjF9rt6cRx+D5xvJR7/JpzIl/ssJ+dRgCseLGPRtJPv9HBqCN 8XfFy7Rl37pP9J2ihGBA9ns+j9gFiShRsMF+NALlIfuYClEXNx2IZN/ti7STy2HHRt3I4D0kMNc QZ4U5TCQtahcGuTxKfTw4JcB7ukcwQwjSKCji4jRIgjniXDrCMg6v/gA1/di6JKVlSk7hAEb9az 836l+kDRMV9rvTqDenieOir7agHL5AlPO6SYrWzlSLKhPilJVQ== X-Received: by 2002:a05:600c:1993:b0:4bb:8711:fcb9 with SMTP id 5b1f17b1804b1-4bb88941bcemr90158275e9.33.1795205116075; Fri, 20 Nov 2026 12:05:16 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 06/22] scripts/get_maintainer.py: add keyword (K:) support Date: Fri, 20 Nov 2026 20:04:54 +0000 Message-ID: <20261120200511.822573-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205186184158500 We use the regex module to stay compatible with the Perl compatible regex used in the MAINTAINERS file. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 597db64ea16..443fbf8e875 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -17,6 +17,7 @@ from enum import StrEnum, auto from re import compile as re_compile from re import sub as re_sub +from regex import compile as prec_compile =20 # # Subsystem MAINTAINER entries @@ -126,7 +127,8 @@ def __init__(self, section, entries): elif tag =3D=3D 'W': self.web.append(data) elif tag =3D=3D 'K': - self.keywords.append(data) + match =3D prec_compile(data) + self.keywords.append(match) elif tag =3D=3D 'T': self.trees.append(data) elif tag =3D=3D 'X': @@ -162,6 +164,15 @@ def is_file_covered(self, filename): =20 return False =20 + def patch_contains_keyword(self, patch_lines): + "Does patch contain keyword covered by this maintainer section" + + for l in patch_lines: + for k in self.keywords: + if k.findall(l): + return True + + return False =20 =20 def read_maintainers(src): @@ -201,18 +212,22 @@ def read_maintainers(src): # # Helper functions for dealing with patch files # + + patchfile_re =3D re_compile(r"\+\+\+\s+(\S+)") =20 -#TODO: also return a list of keyword hits for K:? -def extract_filenames_from_patch(patchfile): + +def process_patch_file(patchfile): """ - Read a patchfile and return a list of files which are modified by - the patch. + Read a patchfile and return the message as a string and a list + of files which are modified by the patch. """ file_list =3D [] + msg =3D [] =20 with open(patchfile, 'r', encoding=3D'utf-8') as f: for line in f: + msg.append(line) m =3D patchfile_re.match(line) if m: # strip leading [ab]/ @@ -220,7 +235,7 @@ def extract_filenames_from_patch(patchfile): as_path =3D Path(path.abspath(stripped)) file_list.append(as_path) =20 - return file_list + return (msg, file_list) =20 # # Helper functions for dealing with the source path @@ -345,13 +360,16 @@ def main(): if args.file: files.extend(args.file) =20 + # unique set of maintainer sections + maintained: set[MaintainerSection] =3D set() + if args.patch: for p in args.patch: - pfiles =3D extract_filenames_from_patch(p) + (msg, pfiles) =3D process_patch_file(p) files.extend(pfiles) - - # unique set of maintainer sections - maintained: set[MaintainerSection] =3D set() + kmaint =3D [ms for ms in maint_sections if ms.patch_contains_k= eyword(msg)] + for m in kmaint: + maintained.add(m) =20 for f in files: rf =3D f.relative_to(Path(args.src)) --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205254; cv=none; d=zohomail.com; s=zohoarc; b=TpU1M2u/PfsU7DyKKbMTI/ZedPYIw7bIMl0gQb5vitRi0t55OBbuz0QKBmfkw/0b2bKR8vL4Ox+v4edsQ+2VAEZHhUoghyWEsD6aKUEEEsGm/Mr57ruPudfZA2R0IttU2nTvQrvr4oV7ASDigIeS+fOHuKH97/f2bgih3YpcF0g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205254; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JwZgYflTBmTwWzdwzA79/NwfbZ5mHHiPAcyhniuwBBw=; b=b354zKP+/n6qGpPFgAMZQU4i7Yz5227f5Hz64cPx4Cv9Hsi82LuKsN0WEHnuyCLksvdcMxvwYxazfXMvnjgPL9KeJIhNjjRysl0lZld2cuNhrewySe+5UmJHvgs1vIa28DkUkwRYHVAxWXVTMikdKH0jnvqRiHR8dVQuF+jl9kE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205254535112.30699438104364; Fri, 20 Nov 2026 12:07:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtM-0002cQ-U1; Fri, 20 Nov 2026 15:07:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrN-00018o-Ed for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrJ-0001sU-Sq for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:24 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so13766955e9.0 for ; Fri, 20 Nov 2026 12:05:19 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853a9687sm158182785e9.10.2026.11.20.12.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:14 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 247495FA4B; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205119; x=1795809919; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=JwZgYflTBmTwWzdwzA79/NwfbZ5mHHiPAcyhniuwBBw=; b=CXKCjqjm8YZzasq9hdetYnR83vuEiN+QUDManmDjZPIgdyTB665M8pOjbIscFOQ5FS IoLn06gB7dbCjDE4F+289OryJAbVdBKSfwM7+mFjl8F8m/iWolQ7gVaY5FIUfUmyMpaV FSumPx62sRBttWMme5X7hjGDhvIBrPvA6jf0wCSTB4SZxe6OY5oS60vZrtE4HRM2/t3x vOrNFyayT6l85CNVGrcvHIBVIvqo8f6mP6ANzmtoZ0W+YtbjQ9vfqHteVSuM/NN/oB40 nUkIBAfDlW3mhGFVnRtBh2wEfrYclfuqryr0yO8onvg/UXVqjImi7gwWapCAnAOAdktE V7Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205119; x=1795809919; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JwZgYflTBmTwWzdwzA79/NwfbZ5mHHiPAcyhniuwBBw=; b=HF10dMUVYXo0X5WBAI7s4O+WgFKTeUYg8M4lB1ZwZBAYFeTtu0jlHji7ruKHCpDnTu pPqQDUUx8dAWqbkc0IdXS39TG3XtR2bIjbRtDlPls1o5gpgxzWfq/smo2GmDa07sKebl WWXuXGuEvb7o9HQ3nXhZ70b4Bl76fHqsdR9mdbxNixVGwq925zkMHxvTy0xUOdmhloDy h3NQ34JTFAj+M/90GCW66Lz4+RrKjZczp8Aqipd0GquSTbfDboo081uLsK2vj/eFM61v jRVXnao0ISlRijF3a+VNW2toangssKVjaQz/Mz+++1QaJZF3/5EfUd0gO2obwLt2ASQL EcmQ== X-Gm-Message-State: APuU4Z9IveWicrimnJh28UjmaUIJC5xUa/zfN4nNW52qaA81F5i1M/PN QxV9k39Y0+BZdk6fGXxsDLgcXiY8lM19X7wAhsZ2LhclzRMJHsQ2cJtOw1N/FCmUgcmiF802Ptw J0G2r X-Gm-Gg: AYBFou2VgJbPgf3sn0jx3aYBGCEk1RuZbuWem0jnnj/U8jYfzN0diIg0c7ueLN1BHkL ZjfGb7wDFlVCEIaww5mBg6I2IDPQXnhADuquy0DyGZzdEZxnbjiqRpG0qc9CcbTghOzgxepuOwE mNGklMBHjO2r0dCh+vm2wWpfk6laFep+DRyrnZLYgkX4rEQ9SXQ+2vDM5sxIu5DusLHa3cp7mc8 zNcDYeT2XtMN/+POX7x4CcjaJDm7v6Y7VZvRjufGlvf851075d18eIVVueDLz6KYuNRkHn5QD2i +X5SVRraHRbQ715oQB0tU7MQpsIGPzQ2P+BhSsdR9WwgiUzikxjD18+Ebf4BV0XCTxYOW3TM922 5+krukWFhp0rnaxFYrq6QyCOVSSs6xG4SgURprgai3gjKhV6juHp/nxwT8NgSSwPh90GmdvmyIX NN9yXRu0bZiiSGtb302wN2NQotR+0kLuKLN9lP57qPaVnhI8YKzsV4zHr3HSpAeZSMB6fkBykv5 OZYZqLoU2Qp8URv/HCSml3i1ptflzwi19bak8ZOmmblBKkafYDlqtWdARe4Z7bFi5reydC0+Afl x4RjIxlZpoG7keB7ILXg6SgHsJBj X-Received: by 2002:a05:600c:a0b:b0:4b7:6a8b:9df2 with SMTP id 5b1f17b1804b1-4bb8882432bmr93218915e9.25.1795205118745; Fri, 20 Nov 2026 12:05:18 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 07/22] scripts/get_maintainer.py: implement basic git fallback support Date: Fri, 20 Nov 2026 20:04:55 +0000 Message-ID: <20261120200511.822573-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205256785158500 Implement the basic --git fallback support which also needs --git-since and the various knobs to control the minimum and maximum signatures to look for. As the default inverted options are slightly different in python ArgParse I've added alias options to maintain compatibility with the perl script. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 132 +++++++++++++++++++++++++++++++++++++- 1 file changed, 131 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 443fbf8e875..ae97c755de2 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -12,12 +12,16 @@ =20 import sys from argparse import ArgumentParser, ArgumentTypeError, BooleanOptionalAct= ion +from dataclasses import dataclass from os import path from pathlib import Path from enum import StrEnum, auto from re import compile as re_compile from re import sub as re_sub +from re import IGNORECASE from regex import compile as prec_compile +from git import Repo +from collections import Counter =20 # # Subsystem MAINTAINER entries @@ -237,6 +241,96 @@ def process_patch_file(patchfile): =20 return (msg, file_list) =20 +# +# Helpers for querying git +# + + +@dataclass +class GitOptions: + repo: Repo + singers: bool + since: str + min_sig: int + max_maint: int + min_percent: int + + +def rank_signers(git_opts, all_signers, total_commits): + """ + Counts signer occurrences and returns a list of (Person, count, percen= t). + """ + if total_commits =3D=3D 0: + return [] + + # Count by email to handle duplicates/mailmap issues + counts =3D Counter(s.email for s in all_signers) + + # Keep a map of email -> Person object for the most recent name used + email_to_person =3D {p.email: p for p in all_signers} + + ranked_results =3D [] + + # Sort by count descending, then take the top N + for email, count in counts.most_common(git_opts.max_maint): + percent =3D min(100.0, (count / total_commits) * 100) + if percent >=3D git_opts.min_percent: + person =3D email_to_person[email] + ranked_results.append((person, count, percent)) + + return ranked_results + + +# regex to extract name/email from *-by: tags +sig_line_re =3D re_compile(r"^\s*[\w-]+-by:\s*(?P.*)", IGNORE= CASE) + + +def extract_signers(commit_message): + """ + Return a list of Persons found in commit. + """ + signers =3D [] + for line in commit_message.splitlines(): + match =3D sig_line_re.match(line) + if match: + try: + p =3D Person(match.group('person_info')) + signers.append(p) + except BadPerson: + continue + return signers + + +def extract_from_git(git_opts, src_file): + """ + Extract 'maintainers' from examining the git history of a file. + Return an array of Person/role tuples. + """ + repo =3D git_opts.repo + + # use the porcelain to fetch the log + hashes =3D repo.git.log('--follow', f"--since=3D{git_opts.since}", + "--format=3D%H", '--', src_file).splitlines() + + if len(hashes) <=3D 0: + return [] + + commits =3D [repo.commit(h) for h in hashes] + + all_signers =3D [] + + for c in commits: + all_signers.extend(extract_signers(f"{c.message}")) + + ranked =3D rank_signers(git_opts, all_signers, len(commits)) + results =3D [] + + for person, count, percent in ranked: + role =3D f"commit_signer: {count}/{len(commits)}=3D{percent:.0f}%" + results.append((person, role)) + + return results + # # Helper functions for dealing with the source path # @@ -337,6 +431,27 @@ def parse_args(): parser.add_argument('--src', type=3Dvalid_src_root, default=3Dsrc, help=3Df'Root of QEMU source tree{" (default: " + = src + ")" if src else ""}') =20 + # Git Options + parser.add_argument('--git', action=3DBooleanOptionalAction, + default=3DFalse, + help=3D"Include recent git *-by: signers (default:= don't)") + parser.add_argument('--nogit', dest=3D'git', action=3D'store_false', + help=3D"Disable git signers (alias for --no-git)") + parser.add_argument('--git-since', default=3D"1-year-ago", + help=3D'git history to use when falling back (defa= ult: 1-year-ago)') + parser.add_argument('--git-fallback', + action=3DBooleanOptionalAction, default=3DTrue, + help=3D'use git when no exact MAINTAINERS pattern = (default: fallback)') + parser.add_argument('--nogit-fallback', dest=3D'git_fallback', + action=3D'store_false', + help=3D"Do not fallback to git (alias)") + parser.add_argument('--git-min-signatures', default=3D1, + help=3D'number of signatures required (default: 1)= ') + parser.add_argument('--git-max-maintainers', default=3D5, + help=3D'maximum number of git derived maintainers = to add (default: 5)') + parser.add_argument('--git-min-percent', default=3D5, + help=3D'minimum percentage of commits to tagged as= a maintainer (default: 5)') + return parser.parse_args() =20 =20 @@ -372,7 +487,7 @@ def main(): maintained.add(m) =20 for f in files: - rf =3D f.relative_to(Path(args.src)) + rf =3D f.relative_to(args.src) fmaint =3D [ms for ms in maint_sections if ms.is_file_covered(rf)] for m in fmaint: maintained.add(m) @@ -380,6 +495,21 @@ def main(): for rm in maintained: print(f"{rm}") =20 + # Git fallback + if args.git or (args.git_fallback and len(maintained) =3D=3D 0): + repo =3D Repo(args.src) + git_opts =3D GitOptions(repo=3Drepo, singers=3Dargs.git, + since=3Dargs.git_since, + min_sig=3Dargs.git_min_signatures, + max_maint=3Dargs.git_max_maintainers, + min_percent=3Dargs.git_min_percent) + + for f in files: + gmaint =3D extract_from_git(git_opts, f) + + for (person, role) in gmaint: + print(f"{person} ({role})") + =20 if __name__ =3D=3D '__main__': main() --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205248; cv=none; d=zohomail.com; s=zohoarc; b=bBg8g2sqCgaWj3EYnK1DCxWcjh042FZ6Qk+gKdBMWb7v0gm71Dicuf1v4LhSGkhZNmXLDvMnBLkKinz09wsNHqlnzxloD+0g0Mi7jiVmY2G9pkTAAC7SN7b0vT8djIRmQwe/XMDTtFhxnICiwZs1xtf31asicDBfTtyjK+ivA0k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205248; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=nS/2ShJ+JR4p10Rlc+DozHGxl8+1BTCVWEZnAVnh64g=; b=Z/gRu3FUBSVQZ5P4Uz0SxH7Yd2R7txgG7aRbS+FnPEOUYmwN0YihmDGs/iJNankyJfb6k6KW/PAA8jAb+Va7NZcNLi4b4E/J72KVgZzi2MC2AH/XBmxCUaKWjq7mO2pXR7oRQn6l3JGACmNxxIemYJ7LkiQqSX+MUG150NzFff0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205248646409.04081464295973; Fri, 20 Nov 2026 12:07:28 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUsv-0001xG-0C; Fri, 20 Nov 2026 15:07:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrL-00018O-Cj for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:23 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrI-0001sC-5K for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:23 -0500 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-491f34b4e0fso638345f8f.2 for ; Fri, 20 Nov 2026 12:05:17 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bb98b4dsm7842066f8f.53.2026.11.20.12.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:14 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 3C7225FA4E; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205117; x=1795809917; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=nS/2ShJ+JR4p10Rlc+DozHGxl8+1BTCVWEZnAVnh64g=; b=urihIXSFclHqsZ8zMkfIxyhDtvIDNHAvJYuoUNEcGZ63RbQZEuTDeOQP0RFI2RI8J/ rXMRg0ZTu9p0xsn/l36G7q2E6e26RHhEZoHOzkeCiRVwcyPZqJCsDl/HQfjSjftHdFQh IZg1JBuessu576qvDtFWKLj7EtuZMLE1tNLGLGaLOKWAX/c0i/S1xbg0oScxCpPnTNFV Og9Ze5nafF19ouHsS/GE/ztpXMHkeqRkJjRlIvUv/GP8MX543cRt4yk69hASbXKtkNaa 9pv9kSbMZjEP9lhs7LsWxwA9ZUzChjNjqlr+Ri3UGLGgVNq81rUuCDyLoWgfIDs+hMIG IEzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205117; x=1795809917; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=nS/2ShJ+JR4p10Rlc+DozHGxl8+1BTCVWEZnAVnh64g=; b=qKXqfRCf+wySwLOWsMzgxAutZmzKKzJDruF2Eel05BWhoKKjfLx6ckkvS5NstAzPOl bkm8HB/bg95KUGuHu2Yiapqcw3m/r8GZLPH8ePXHPiFZKQZfz20GGj0SvYYoZZguQfYZ 9GGTbkOqqkQPL+rhAoNHjtD6LZxRHNPYV5O4nBarkEXCfVFHjIsQOYJrY8vsLui92jnQ CSuLIujycEZmNucQ/GrAwwu2v5rt/EEKKQMhANC59Th7YTlcrWICSB4WN5WPOD5EW5nQ 6NrRX6Yd8y0dOm9xoeFuORtSFHaVDzk9NL1Yz0yCftIMbrxRNlFZh+ztt2MJCnLt+RMa HO2A== X-Gm-Message-State: APuU4Z8YhP7/thF+J5ydmyF/reAWDpIG6JL94/exinmnT2pB5dh0o9UR BWLkErAaXUDMCPlm14iegH3avzTr9ssdNvdUfP/nK3V6Av8FutceCDnJDoVwpSEZIT0= X-Gm-Gg: AZFdTZdFPBBWKSsHytS+6TMITDFLwK7dcZAKMz95gRdPfVIJ7/UsPofFO6k9/RiRR8D q5z5fE5ZPA503JKrcvG6H+lw88/Rm5UxG5foVj0CSEUlsQ0gXhBlknL0iFfYK1G6DfTvzYwjbTh sHr/abX2S20raQ0sXqNPY/xYflNwWkdu6nckH7VShdw3I+lz1aVdVr2GHGGsX+AdIukIqDaxDIF ijWaMerbsALe+bWDgnJc/QcM5T2mEc4ghBrqt/lvwq2IXgzhhV6nkWVGeuV7lGbnJLYEE4HLXFN aKQR9+3oGrQdbOzjdgAvnkX760UXWQteJ0SEMN3U8V7YFutLFSeypr342DRzS/FCkM3ItPtNNZv SF4eYLwpb74Kbb45OQMnAngRZsJrFgMNEJCVTRCr4YJndGtsU9Ln6bWYiWYEfaWERKFv0rgsxJ/ 2WLQ+C295W7JrXltmRmWEg2fUYa8f6//BQnU/MTAL0jSaCJb1qbpBzv2/GJG5sK0LqkE3cohkbo OjEFW2f399CBSNxnVa/SHCaXlY7YGBGlb10E27BzN1bZ5Qir4v8fESCuk0mX//C0wwVX/UI2Oi2 KhlAYLcKoM1uXds1YyVcQcy+nq0l X-Received: by 2002:a05:6000:25ca:b0:4ac:7595:6f67 with SMTP id ffacd0b85a97d-4ac7595721cmr6160419f8f.40.1795205116700; Fri, 20 Nov 2026 12:05:16 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 08/22] scripts/get_maintainer.py: add --list-[maintained|reviewed]-by Date: Fri, 20 Nov 2026 20:04:56 +0000 Message-ID: <20261120200511.822573-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205250710158500 This is a simple quality of life feature to list the sections maintained by a particular person or group. For example: ./scripts/get_maintainer.py --list-maintained-by "Alex Benn=C3=A9e" to list all the sections of MAINTAINERS where I have a M: line. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index ae97c755de2..aff2ea8282f 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -425,6 +425,12 @@ def parse_args(): default=3DNone, help=3D"Just validate MAINTAINERS file") =20 + # List sections matching regex + parser.add_argument('--list-maintained-by', metavar=3D'REGEX', + help=3D'List sections where maintainer matches REG= EX') + parser.add_argument('--list-reviewed-by', metavar=3D'REGEX', + help=3D'List sections where reviewer matches REGEX= ') + # We need to know or be told where the root of the source tree is src =3D find_src_root() =20 @@ -470,6 +476,21 @@ def main(): print(f"loaded {len(maint_sections)} from MAINTAINERS") sys.exit(0) =20 + # Build array of Path objects representing the files + if args.list_maintained_by or args.list_reviewed_by: + if args.list_maintained_by: + pattern =3D re_compile(args.list_maintained_by, IGNORECASE) + for m in maint_sections: + if any(pattern.search(str(p)) for p in m.maintainers): + print(m.section) + if args.list_reviewed_by: + pattern =3D re_compile(args.list_reviewed_by, IGNORECASE) + for m in maint_sections: + if any(pattern.search(str(p)) for p in m.reviewers): + print(m.section) + sys.exit(0) + + # Build array of Path objects representing the files files =3D [] =20 if args.file: --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205260; cv=none; d=zohomail.com; s=zohoarc; b=arMpMLrkf8/2YtFMO69/RsSWY11cH54rlDTPUtTF1trviTVkHdvmeB9yChccZK/E1BWhdPWnlfNp7d0AB8Vb2zWzfhE/wDC9rInCEiJKefbvEo5vurlks3MmzlJzDDUlkRKCOr5DvIOaG2o8GDqJrhqXQ0pJD9GNqT3mCKwuFgg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205260; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RDvtmdMQ194NiQ4xl5A88giR2nE2EpeWjbNgzjwo8rc=; b=RyaDdOQ0Lccx6Cmf6CgiDqBEjtpKsJ4DsSVXoXkjM8qVC/BjW9ONXynqOKiUkyCp8aKC9RvGHEZxHyO+RBHJjqhB/0n4QKu6DshQe76PBV9G32aMNdvDVH1X6G/yZTHnajqRmMFkfPOP+Quf4Hy5AtQ1eX5GblX64dxAwZG2vFo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205260520523.3233332439045; Fri, 20 Nov 2026 12:07:40 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtH-0002Ju-5h; Fri, 20 Nov 2026 15:07:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrO-00018w-HO for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:27 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrM-0001tX-6x for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:26 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4a2d6d01ecbso7762865e9.0 for ; Fri, 20 Nov 2026 12:05:23 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8d4f9aa8sm61062795e9.4.2026.11.20.12.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:18 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 544E35FB01; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205122; x=1795809922; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=RDvtmdMQ194NiQ4xl5A88giR2nE2EpeWjbNgzjwo8rc=; b=i9qJY+JgpAUWJbQfmjE/ZhKPHMNI255h2vIGPj3esM/bsT8G5AO1FLQ/vrLk0RO7fU SGoYWe/POUaVsFzCJsq5FhhqqH1l+343EHhWwRiYkSWF/81UC9qLiNB9vClrMf2evlZ0 BgjLTLRCowy+4XlMrfHZqGYgl+r4mtC1o+DUI4JK//KSg3p/6JuP9gzvyipq/PabkPiy 6o7JbkqZAWn4OYcIumTfn+wMNca1trtrhSz6lqi5dvtVIT/FVnoaaNrUTRRN5yQ+OaFc S92JfzStVy8S3dLc9orjFTU54BaOTJbeZQSYw97h5xB8iLHU9eM0bC1v8kd0NuSbayYS QvOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205122; x=1795809922; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RDvtmdMQ194NiQ4xl5A88giR2nE2EpeWjbNgzjwo8rc=; b=qzUEOozfIUzPLPGg418y8WyO/8kWdioNdpoKhAWcvGCzJBNzYKQD9kMYUuBkn6nLfE A75Tg77Nh51aI/KgTzgH8kB3oX/a8n5k+hmDe6nbeU7yX1G2jKSNKlr8641pCOYV5DHw u3eQlDf5nHqsr+Hpkn8Ob264lenDSwW4DIqcfs57RJRXakS5PeargzxAiB3zv4WP3a+9 YlZuqlSnMnSfGDYfwdtP5usTu3L9qYjTeDvs+GbnTNzb3JYPKY7ShkZR4jkBAgBXj+nt mQy8IeYSKmZtB6do/OwgscsFDnE4M2cN3GUPl44wQwdQMUe9q7zzxxzJoD2HKPjVeJPM oj8A== X-Gm-Message-State: APuU4Z8Uejo9xEDrCmTmmmbaRoOY0kJ/spV7kuVi5R4YhVL9S7G/ISdw dmQ+WlIHJDXpTbO2x/v5g5M3dacAEYCZS444OaCcBVidnJM4EKYrCzMDf5B94mKTTKY= X-Gm-Gg: AYBFou1Dr04DhPWctEoNPF20ObTc/TqA/xeyr9WHHefiXS9gnKHigN6R4HtunubOVR7 pNWf6b6tUPXWlhIO+ib/5XZJ5Bewba1Q+nEeCdb+JNBMIk+v6+cxIXv+YUNBbiBKO1NXQUHlRQ8 PLEeFx9GQyY0he/XRhWPNl45bmW6kqJWz9hogvAnLt0ndRROcTHIfrKu0GCVv1VZfhpAecUVbRo 7YvIKIUPiTK2PQYouqBcTwcY8wieBTWnaxwFq9Dya4DfrT8SPD8SNWFsi25Sn57CSVdgvygKX5B 0NZWE2R8nm/n5nrPeMD0N99cR1SA9PQOCwN2Zm6QHoLUd7aEAD9DOXtLx1+G6Cc9kIOVCy7LWUM 9PI+I24UKWJ5oFaG3QQwJH1RhYHklgdT5+v4WoM1kt9n8c6G7WBiUIMic5SutyIbAbulRrHIATn uWd6ToL9asYPLTh1uk+Ar+Xd30wRLDoV29QHdWSChoh/hUjtuIsgbESlMmMIEFDg/tnA2XDCeCs DAKdDCIB3+NwYsB6F7TtoYOfxf2FzwXqDiNhBG/V5q/Osi9CozM3xILoOxedws9ATA724aCsyaX cV3/HgZ912E5J4nI85yF+bS3qwpv X-Received: by 2002:a05:600c:4e16:b0:4bb:69b2:d3df with SMTP id 5b1f17b1804b1-4bb88813024mr102122435e9.25.1795205122431; Fri, 20 Nov 2026 12:05:22 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 09/22] scripts/get_maintainer.py: add --file-summary option Date: Fri, 20 Nov 2026 20:04:57 +0000 Message-ID: <20261120200511.822573-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205260794158500 This allows us to process a list of file names and dump the support details for each file. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index aff2ea8282f..fc155028cf4 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -11,7 +11,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later =20 import sys -from argparse import ArgumentParser, ArgumentTypeError, BooleanOptionalAct= ion +from argparse import Action, ArgumentParser, ArgumentTypeError, BooleanOpt= ionalAction from dataclasses import dataclass from os import path from pathlib import Path @@ -22,6 +22,7 @@ from regex import compile as prec_compile from git import Repo from collections import Counter +from csv import writer as csv_writer =20 # # Subsystem MAINTAINER entries @@ -458,6 +459,17 @@ def parse_args(): parser.add_argument('--git-min-percent', default=3D5, help=3D'minimum percentage of commits to tagged as= a maintainer (default: 5)') =20 + # Output options + class SetFileSummary(Action): + def __call__(self, parser, namespace, values, option_string=3DNone= ): + setattr(namespace, self.dest, True) + # don't fallback to git + setattr(namespace, "git_fallback", False) + + parser.add_argument('--file-summary', action=3DSetFileSummary, nargs= =3D0, + default=3DFalse, + help=3D"Summarise file maintenance status") + return parser.parse_args() =20 =20 @@ -507,14 +519,34 @@ def main(): for m in kmaint: maintained.add(m) =20 + writer =3D csv_writer(sys.stdout) + if args.file_summary and files: + writer.writerow(["File", "Subsystem", "Status", + "Num Maintainers", "Num Reviewers", "Num Lists"]) + for f in files: rf =3D f.relative_to(args.src) fmaint =3D [ms for ms in maint_sections if ms.is_file_covered(rf)] for m in fmaint: maintained.add(m) =20 - for rm in maintained: - print(f"{rm}") + if args.file_summary: + valid_ms =3D [ms for ms in fmaint if ms.status !=3D Status.UNK= NOWN] + if valid_ms: + for ms in valid_ms: + writer.writerow([rf, ms.section, str(ms.status), + len(ms.maintainers), + len(ms.reviewers),len(ms.lists)]) + else: + writer.writerow([rf, "unmaintained", Status.UNKNOWN, + 0, 0, 0]) + else: + for m in fmaint: + maintained.add(m) + + if not args.file_summary: + for rm in maintained: + print(f"{rm}") =20 # Git fallback if args.git or (args.git_fallback and len(maintained) =3D=3D 0): --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205252; cv=none; d=zohomail.com; s=zohoarc; b=UnkMB+vo+b/h3N4O6/SlOnsMjGleWJndWmXhUEk58IQGRmdVxOiVXAeJHvGsriSt6lqE+UvQf8jZUYNNEtl3bfrRhz7D57gbmnjWe5jlCnpWh3WqbmvpJ7zj4LxBa+UgmX3V2GsvVg3ZiVDLhgt7dWZCi/PqyO3xEtl2xEXVY50= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205252; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hUFQQ8sj0j4/Hz8OMPzhHPjybXNI5XiY3VTlYBCz9kU=; b=cyRPRecoTyOftqfHWRiXpkzTA+wWBc0gA1dVsJeZFMJV1W9fLS/2OzOwv03D+ix5YWTwVMsd9KpJmN8ImgSdOMRPDJBqltAOGUdiLnAWtO62uKhHru1SHLtCJs9lb94NQgg3I6PQIDVKL2yZLc5RnClRIBA6c3lVfd1JDvv+HOw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205252407416.1124551533919; Fri, 20 Nov 2026 12:07:32 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtH-0002SE-Rb; Fri, 20 Nov 2026 15:07:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrN-00018t-UA for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:27 -0500 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrJ-0001tC-U2 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-4a5024b3c28so1583713f8f.0 for ; Fri, 20 Nov 2026 12:05:21 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8960068fsm35067515e9.4.2026.11.20.12.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:17 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 6D9F25FB12; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205120; x=1795809920; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=hUFQQ8sj0j4/Hz8OMPzhHPjybXNI5XiY3VTlYBCz9kU=; b=yqlh4h3/81UaQ1KXfHHsG22JZWxIlq5CLU765967P849B8LEVa8Ti9yFzAvhgAJ9fs ipBFPCZbaZ06fY+oU3PZQILm/S6TidPGAjyKAM0FUpkw4gHEHmXlUCRT8Qo3Wzwqyb37 4GUxR+3J7QM2jfYADpHHAVy07UePgHCO8oRerXOKPSt9llqZZFrKC7YY5Ejh9vzW/Kwj kZzbAsi/meKhY+ZUMzvN+Uo4AMUzJF6Pq6KX8BAaWzX5nSk/O2VJcLAPzCEucNlEXdl1 znJU+fujTzlTbT5Bo7ER4hK8ojWIhg230rD8M1YTIirYP9/HUB/2dcW7/wOAbWGxlDK+ aDNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205120; x=1795809920; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=hUFQQ8sj0j4/Hz8OMPzhHPjybXNI5XiY3VTlYBCz9kU=; b=jvgTqIAwjtao1NEtZJZRD6zVewdzJIK8kR7nQfp3J7841yrVO6MeH0fgbI3OWqNTas u4lGPCLRtf/HUSw+5h3rJuAUOYrkMA63Ys/PWd0yNe0Th7uAjDW2G6BL97NoXNhoivMV K2Z2uM67uiHeiQhuF/tw1ti/4Q2aLBIHjFmCsW6HHf1dLJpnKah7ygAjOxnjDoil7vWc ycQfbsCe7cfg4qPrGXrdx/3n/vCrnVegWaNNQ3RiMaIJdqkPt1nUfzHUJgCrZYuZwfDh tHy1OBv9ozhbdLeBbvsG/zKPlgcuSyWBd73jmMkEieay7ng90GVOXQ/pmFfrSNJBa44r TNRg== X-Gm-Message-State: APuU4Z9f9MghIV0k2exCawQkCdsLFSBPDqYVvwDVysNwTtAnOEOozEEa j+TfskAC4MQLHoEHEPO6+0TB5Db5a0WAMjxm73DGHuSCvGKF/rik0Moz/deTE6ZP2g0= X-Gm-Gg: AYBFou3nKkiYclT+TEIdDWJDacgJ50/RFtFFqtQU5LZhqWvT5uNk0dnRBlrtpN40YSk ppg0n8lxeVN1g31D+QV9SU5Xg8MxVc6TBGaPnXYua6efXYdFwUGOf17HRPDY7SgtEmkp0EkdnN0 b6PvqYpRNvYDddtkiloK08pwuPZC30x/wmKH1fBYERjNZmBw8qyPZxd2CorgiVVGbD83iWEBkI0 jDJ8n+KwD+e5GEYaiPsOzu6yTxTuyqOAW8l2Ig2TVUkpAjcsOsqUL1BTSoTLBXv7e1tOFpArN19 bGihHFeCi/7SWPfVfx1LbjAuuoXJ7dfaNHG7hLk2nbpJmNpHmTHD6kyyPPSegyQuQNvYJCUmotP sBdUuUzD/ZFEPa2QS0WjGWrgeG9ZwztrnlJdtnlC2Fl6l489qz2ADWpZ0kyLeBzAK8TvhHhjbi1 7A+ns1iGRjBFL/25R2cX0+Kg7yRxdkyIKbyiEJFwfFaN+Tqop8tgGlQVXnX/vNEzJHOm/QrU8T3 7JaK9vMUad6bp2bvCkNM/OIZJZdafWcVgCYMiDJW2F1+wJTioNZeWULCmVw6dDN92QnJzkrLXyN /tMfPAN/aFdVagYySN3lBLLHZ/dJ X-Received: by 2002:a05:600c:4585:b0:4a1:c6f5:2450 with SMTP id 5b1f17b1804b1-4bb8881b8e4mr95685595e9.17.1795205120467; Fri, 20 Nov 2026 12:05:20 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 10/22] scripts/get_maintainer.py: optimise glob matching with Paths Date: Fri, 20 Nov 2026 20:04:58 +0000 Message-ID: <20261120200511.822573-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205252659158500 Using the built-in Path.match() method essentially ends up re-compiling the glob pattern every time we compare a path to a maintainer line. This really slows things down so skip that and pre-compile the glob pattern ourselves. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index fc155028cf4..63983064013 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -16,6 +16,7 @@ from os import path from pathlib import Path from enum import StrEnum, auto +from fnmatch import translate as fn_translate from re import compile as re_compile from re import sub as re_sub from re import IGNORECASE @@ -98,8 +99,8 @@ class MaintainerSection: =20 def _expand(self, pattern): if pattern.endswith("/"): - return f"{pattern}*" - return pattern + pattern =3D f"{pattern}*" + return re_compile(fn_translate(pattern)) =20 def __init__(self, section, entries): self.section =3D section @@ -159,12 +160,14 @@ def __str__(self) -> str: def is_file_covered(self, filename): "Is filename covered by this maintainer section" =20 + fn =3D str(filename) + for fx in self.files_exclude: - if filename.match(fx): + if fx.match(fn): return False =20 for f in self.files: - if filename.match(f): + if f.match(fn): return True =20 return False --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205235; cv=none; d=zohomail.com; s=zohoarc; b=IThkw6YdPFEroEAAqJJICp0e+wBm5Byx6Do1bQZ5AVkt1J4q4SVR21Awv08LPZQGcXdLePdm25n0FS5ji5h+lFiMOCqeXzxyORnNw1g0WYFuqqOzAfyWBVhKVPekAtFBVwBkn7c9u6bV5BMXIFZlHKDPqZvEJE5JhmP0BFAWi0o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205235; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=D78EPv3KIejmnCkL+D6GWJcStqhHxiOw9ZH8c0CKxAQ=; b=RsD1PScwUmOjJFfifSbOJIP8LzoIqHoJV/pzp3OYoYh9cX4rHh1iI4lgI5OKIa64yli1aSUwEcueMBTAqfoafYeRFiA2LbSLV8KIadMJyN6G2IpMJcpxORm6/owMW9Gjwe3mMQF5ze6Uy7cfOzPxqhYt7ypMaLUHNwKfMsJUmuw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205235248587.496843858303; Fri, 20 Nov 2026 12:07:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUsg-0001k9-5e; Fri, 20 Nov 2026 15:06:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrL-00018Y-Qj for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrI-0001sS-56 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:23 -0500 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-490c3ae81d3so832256f8f.2 for ; Fri, 20 Nov 2026 12:05:19 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61ddsm6849462f8f.12.2026.11.20.12.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:17 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8761D5FB29; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205118; x=1795809918; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=D78EPv3KIejmnCkL+D6GWJcStqhHxiOw9ZH8c0CKxAQ=; b=yGh08uDUQJL4UZW7ZFtMn+5vn9Zls/IAMV7yHd+a5A1nehkMPI7USZ/MhSowDGECnW YtI8jSYX7lwdvQgvAuXM4JnzrV5QzbG8wGpuOPRhKllwVum80OlziCmssh5SkQeVDK2B nOxTSlOR3pUeSim2MYxrqObd9Nq+uoznIPhlGOkaZWJ0zgbWpNcrS7P/iYzxEBAUWJWL m1spCMj6wWQLQvVQnkUTQDmRBuo/uH0o00JruALU7s7BB2g8lDZHFCI8Av3cmrNJHVku UKl99hewD+hS/vfP6A8Dy0Gp07SVG3w/f1oQLvPKirv6SCk8xCa6O6fBP9w/Bbx+nwRf omVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205118; x=1795809918; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=D78EPv3KIejmnCkL+D6GWJcStqhHxiOw9ZH8c0CKxAQ=; b=CUPZ1xhM6+wEKDO7VzMStYHB/WKEIrNp/FvfxAr8qG3T5eNNzkjpLonEsjZ0j6Oa13 LQJVEkTsGR15gAtAqTMkMS/R9SYGYNDY1PdrNGbr6baYbnS2PjV4wqXbrNEyjELJy0zh U51Elhh+JJYUFUzlaL9JbPO+HM0IV3XCQ6eOvE2N2j8QzNaSI0Pz5gXJIg2sG/w+IZus 66no9QQlHA6BYEC6QZnwE/d6nnFUAIWzJqAQXwgbc98QwwJarF/lzoYXQ3GLLoyEfF8y Tlhxtw3ANL2MC+40QGF8acB1imfdfc2eWneVBNCopZ6W5pm4Kgo3vzR/bsu6ofyCHUt2 5/CA== X-Gm-Message-State: APuU4Z/H7G7oMM6zQgsJ6TblGUMKC4qT4WxDsEU204HoEHu1pxHPAG6v 3DIqEXIPO7fLzku8E8WFbwxFBG3Kso1Dw+Pa19h3yr5MVCNY2C9sEw3qMR3fwxQKOoQzHqR7WUg FLw3U X-Gm-Gg: AZFdTZcE8OtLPKZd3skapd8Fv48M5nH7xOnhAy4KMas+GIHFQOGzv1hqJIze9pLQAd9 hCM5BPxB7jkBPRGiBKz1CIW7FsNMhqY6ORTnI9Jt/QgOmR+7UJ5rQo+IxHs6Sf5i4h+8HGGkMYM 7/GQ8xNlaxGgwwIeCTj/0qnU7NwlROFEW6ShTXYdpwGjBRvic+3VP8pBZluOFztVr4/cohaLiam KI7n4gA3MqUnIlSmR1mlxAlmfLt7ek4QyCjDhNNmi9QhHq5P9f+iBbZ1Ybp1zpHUGXZiYgg2Saj 8NfeM364bnc0BBE5pIL5RnUMeQThmyXHog13zUYdps1oTHNolLRavW3mvJgNejDKpwVzAfbvhqQ 8VR9Xt9IwzszThOzVc7M+J0mp4oGYGeUi++d4m4CMBYsIxnHJV0WC86fDL2w/FPYzQo9aMgepy6 5+BhJc5jDl3owbZB1smiYBQHXm45vJx90ZChDjH6nG7lytOElXNV2dmId+HJz00XC22ZigRyCGS lvfW8Z6Hk4V2/NI4qW0umvEeR5y4FVcaghc8Y0a3xRSFISU4/ew+1j0n9Li209SmugfvgHQ5zCk ANFhNjW/BHldSe8yUscRrvg8Xb7j X-Received: by 2002:a05:6000:29ce:b0:4a4:b2c8:c969 with SMTP id ffacd0b85a97d-4abb0e46a49mr6502277f8f.20.1795205118403; Fri, 20 Nov 2026 12:05:18 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 11/22] scripts/get_maintainer.py: add support for gitlab handles Date: Fri, 20 Nov 2026 20:04:59 +0000 Message-ID: <20261120200511.822573-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205236819158500 Since the last posting of this series we now have added a mapping for names to gitlab handles. Mirror the perl scripts support by adding a mapping function and using it. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 81 +++++++++++++++++++++++++++++++-------- 1 file changed, 64 insertions(+), 17 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 63983064013..e56a9238ec2 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -71,6 +71,39 @@ def _missing_(cls, value): raise BadStatus(f"'{value}' is not a valid maintenance status.") =20 =20 +# +# Helpers for GitLab handles +# + + +def load_gitlab_handles(src): + """ + Load GitLab handle to name mappings from .gitlab-map-auto and + .gitlab-map-manual. Returns a dictionary mapping name to handle. + """ + name_to_handle =3D {} + for mapfile in ['.gitlab-map-auto', '.gitlab-map-manual']: + p =3D path.join(src, mapfile) + if path.exists(p): + with open(p, 'r', encoding=3D'utf-8') as f: + for line in f: + if not line.startswith('#'): + parts =3D line.rstrip('\r\n').split('\t', 1) + if len(parts) =3D=3D 2: + name_to_handle[parts[1]] =3D parts[0] + return name_to_handle + + +def map_gitlab_handle(name, gitlab_map): + """ + Lookup GitLab handle for a real name, stripping quotes. + """ + if not gitlab_map or not name: + return None + clean_name =3D name.replace('"', '') + return gitlab_map.get(clean_name) + + person_re =3D re_compile(r"^(?P[^<]+?)\s*<(?P[a-zA-Z0-9._%+-]= +@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})>$") =20 =20 @@ -81,7 +114,7 @@ class BadPerson(Exception): class Person: "Class representing a maintainer or reviewer and their details" =20 - def __init__(self, info): + def __init__(self, info, gitlab_map=3DNone): match =3D person_re.search(info) =20 if match is None: @@ -89,10 +122,19 @@ def __init__(self, info): =20 self.name =3D match.group('name') self.email =3D match.group('email') + if gitlab_map is not None: + self.handle =3D map_gitlab_handle(self.name, gitlab_map) + else: + self.handle =3D None =20 def __str__(self): return f"{self.name} <{self.email}>" =20 + def format_role(self, role: str) -> str: + if self.handle: + return f"{role}, gitlab:@{self.handle}" + return role + =20 class MaintainerSection: "Class representing a section of MAINTAINERS" @@ -102,7 +144,7 @@ def _expand(self, pattern): pattern =3D f"{pattern}*" return re_compile(fn_translate(pattern)) =20 - def __init__(self, section, entries): + def __init__(self, section, entries, gitlab_map=3DNone): self.section =3D section self.status =3D Status.UNKNOWN self.maintainers =3D [] @@ -118,10 +160,10 @@ def __init__(self, section, entries): (tag, data) =3D e.split(": ", 2) =20 if tag =3D=3D "M": - person =3D Person(data) + person =3D Person(data, gitlab_map=3Dgitlab_map) self.maintainers.append(person) elif tag =3D=3D "R": - person =3D Person(data) + person =3D Person(data, gitlab_map=3Dgitlab_map) self.reviewers.append(person) elif tag =3D=3D "S": self.status =3D Status(data) @@ -147,10 +189,12 @@ def __str__(self) -> str: entries =3D [] =20 for m in self.maintainers: - entries.append(f"{m.name} <{m.email}> (maintainer: {self.secti= on})") + role =3D m.format_role(f"maintainer: {self.section}") + entries.append(f"{m} ({role})") =20 for r in self.reviewers: - entries.append(f"{r.name} <{r.email}> (reviewer: {self.section= })") + role =3D r.format_role(f"reviewer: {self.section}") + entries.append(f"{r} ({role})") =20 for l in self.lists: entries.append(f"{l} (open list: {self.section})") @@ -183,11 +227,10 @@ def patch_contains_keyword(self, patch_lines): return False =20 =20 -def read_maintainers(src): +def read_maintainers(src, gitlab_map=3DNone): """ Read the MAINTAINERS file, return a list of MaintainerSection objects. """ - mfile =3D path.join(src, 'MAINTAINERS') entries =3D [] =20 @@ -198,7 +241,7 @@ def read_maintainers(src): for line in f: if not line.strip(): # Blank line found, potential end of a s= ection if section and fields: - new_section =3D MaintainerSection(section, fields) + new_section =3D MaintainerSection(section, fields, git= lab_map) entries.append(new_section) # reset for next section section =3D None @@ -212,7 +255,7 @@ def read_maintainers(src): section =3D line.strip() =20 if section and fields: - new_section =3D MaintainerSection(section, fields) + new_section =3D MaintainerSection(section, fields, gitlab_map) entries.append(new_section) =20 return entries @@ -258,6 +301,7 @@ class GitOptions: min_sig: int max_maint: int min_percent: int + gitlab_map: dict =3D None =20 =20 def rank_signers(git_opts, all_signers, total_commits): @@ -289,7 +333,7 @@ def rank_signers(git_opts, all_signers, total_commits): sig_line_re =3D re_compile(r"^\s*[\w-]+-by:\s*(?P.*)", IGNORE= CASE) =20 =20 -def extract_signers(commit_message): +def extract_signers(commit_message, gitlab_map=3DNone): """ Return a list of Persons found in commit. """ @@ -298,7 +342,7 @@ def extract_signers(commit_message): match =3D sig_line_re.match(line) if match: try: - p =3D Person(match.group('person_info')) + p =3D Person(match.group('person_info'), gitlab_map=3Dgitl= ab_map) signers.append(p) except BadPerson: continue @@ -324,7 +368,8 @@ def extract_from_git(git_opts, src_file): all_signers =3D [] =20 for c in commits: - all_signers.extend(extract_signers(f"{c.message}")) + all_signers.extend(extract_signers(f"{c.message}", + git_opts.gitlab_map)) =20 ranked =3D rank_signers(git_opts, all_signers, len(commits)) results =3D [] @@ -481,8 +526,9 @@ def main(): args =3D parse_args() =20 try: - # Now we start by reading the MAINTAINERS file - maint_sections =3D read_maintainers(args.src) + # We need the gitlab map before we read the MAINTAINERS file + gitlab_map =3D load_gitlab_handles(args.src) + maint_sections =3D read_maintainers(args.src, gitlab_map) except Exception as e: print(f"Error: {e}") sys.exit(-1) @@ -558,13 +604,14 @@ def main(): since=3Dargs.git_since, min_sig=3Dargs.git_min_signatures, max_maint=3Dargs.git_max_maintainers, - min_percent=3Dargs.git_min_percent) + min_percent=3Dargs.git_min_percent, + gitlab_map=3Dgitlab_map) =20 for f in files: gmaint =3D extract_from_git(git_opts, f) =20 for (person, role) in gmaint: - print(f"{person} ({role})") + print(f"{person} ({person.format_role(role)})") =20 =20 if __name__ =3D=3D '__main__': --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205355; cv=none; d=zohomail.com; s=zohoarc; b=eCVzboP4JpGjCyRDYRSytzndwf8J1bMNZi7QFLP4g1/LnxhUPbzqcJeV0HSLkhL4gDJP4CI/xgnefAzDf2DFHyjMKB7vWEm/hDx7GgebkzjPNqCsB11wJAEZmdWIN+T0QijHAgeVWtxHXCgTAPwSyIrYlrn4luAUJ+0b0ofDnPg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205355; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=z2kFpE0C+lXr/H0GvwmT9pPfQ6YqOL7EnJXbOGH3WGA=; b=gBLJ2P8XbxBmTruvJY+NtHKUBpJAdmpNOaLHPph+PH/90vYihOmjKg4PS3j/gm9UW+RQ64D+Hxf3oMelL4pPtuoZXnebID2kf1348+djNN6vRxNITfsBbowEGZBj//mEzO6ag0LMIogGo5aOq9vA1Syocc+wtS6mviOY9EygVQ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205355441275.0587025317476; Fri, 20 Nov 2026 12:09:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtO-0002m5-I4; Fri, 20 Nov 2026 15:07:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrM-00018m-Sv for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrJ-0001t3-Tj for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:24 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-4a358881793so720163f8f.0 for ; Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab69bf61b8sm6868603f8f.19.2026.11.20.12.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:17 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 9D1435FB2B; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205120; x=1795809920; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=z2kFpE0C+lXr/H0GvwmT9pPfQ6YqOL7EnJXbOGH3WGA=; b=xfX5giIde5cWlTwN4az4mglKCDAIeMH9JSDWFzaLqpIthBuYHtDqfPI35ST4rbGEOC I51G9fGQS6VPebN9QBcKBlNheWWsnr/iwCykh2cBA4qXr2hhkqxMis4wvGm/nijG1znu Ow7DQZY3rJAxHNZsmBod6x07uImTnNAeWX+rgFjWdvvDQ1kwDvC0wfNg4yhUXN1nnnXI oYKg1bKz6ZdJ3dvomt21t48DXQkvXfzF24X42Qr+2H4qVRpNOAoc+UPlj4p+7tsFyaAf jX9Et5mmQdABz7n0cFqUxODNbu/n/rRz7OCtXqA/xPc3wH8jhoYeWVC/297nAV382ZCy v9EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205120; x=1795809920; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=z2kFpE0C+lXr/H0GvwmT9pPfQ6YqOL7EnJXbOGH3WGA=; b=GltDVGj3j6vXcJo+Ja0e2uJiL7D672X91pBXUJso5kUmgWglGwJ77PAnNeR2w4lwXG TJGWD49Rfo7LZOm/UxEIWonEy+gZ4qhWZtmY25CTZz63lD/FkxohKi047zUo4lDPy0nl 0b7mdwBdFG4xpztjQLQEXcj0LswOolugftGOV5l80pzd6nYsh3BcSQLOXyGNLiAHFdGD 6S84c7cU43Hc1Be0KT+WbVu6s0X+43qmAv0ZGT+Eao+zFlO+yChU1xZtxsUImEYY4xmM +P0AeSpp7LmuhbgsQGpir0mqNoJACW5c6jhOObmDc5Q0vEjpei4yopS9sTAejo6xmwcS 9eJw== X-Gm-Message-State: APuU4Z9nDCmQ7xPE6KdNuiy/TCJj4j+p8QoImnIzYqrnOzaFDHTAZ1lU ci9H1028nMBT9ac1alw96pYRutt4+OIhm7AY7XP3hRggNZ8c9Ze/tHzwa6udLpWMO78= X-Gm-Gg: AZFdTZcw6Hk+cPpMVAJDXY/xyxPFWowgAyV4mGzv4v9g6zM6taK2+bN2LJMbHYRl4s+ 1nQpjvhmIvuc1g5f4dCv+FFbYu89WHz1cnIvcyGrxynjx0bI1GKdMOOKgLzy3xiUfV+jfrZAOtX LjEIu3qzOx5xyJCpghcOzVU217V0jzw5TOmOm+SSbKbErxu6SHo43gGcPCK7mAQAQZQq19DYXpL QydLrW7113xGnlkzmsaHUfhNW+wMYQwLql4yfPS1n+kxH7L/S6IUjFIbGIgEZVYrgsb0yjPFhhF TtxSWQTyXJtDdFVtfYQxdf2ydBlk0b+fVNxIrm02JQ1kYQ2WVI/SvJI96eWraMeKEJqQxbP+g/S FmgRq5RDYy20guY9mIOn9OCm1RPn1EfPdAKJIfbP1zMW1m9m2fbn5pM2AdV3L5Q8blHd1fGc+jk cYIevObcS4X19IrHoVn8vDjNRp7YnZwCtgy+hEjVpA6EizeOh4t1WlYWu3eklKlqxJ2Hg7J8Etz B2YKkJjOjjTlLdq6/fxp4OiINpMdCT6fkP2ZapF2J26FUDst6nQb3G+TmxvHUn6rGm5ACUj189O 4tBZXeb3+Ly6QjIjQic4h28qvVwn X-Received: by 2002:a05:6000:2310:b0:4a2:ee0f:4fa3 with SMTP id ffacd0b85a97d-4abad6a4224mr10107124f8f.8.1795205119854; Fri, 20 Nov 2026 12:05:19 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 12/22] scripts/get_maintainer.py: implement --noroles/--norolestats Date: Fri, 20 Nov 2026 20:05:00 +0000 Message-ID: <20261120200511.822573-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205357586158500 The main purpose of this is for the git cc script invocation to get a clean list of email addresses. The handling is slightly different as we don't force roles to True if rolestats is specified. It doesn't matter as --noroles doesn't attempt to display stats anyway. As the default inverted options are slightly different in python ArgParse I've again added alias options to maintain compatibility with the perl script. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index e56a9238ec2..a3f64a4b2a0 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -376,7 +376,7 @@ def extract_from_git(git_opts, src_file): =20 for person, count, percent in ranked: role =3D f"commit_signer: {count}/{len(commits)}=3D{percent:.0f}%" - results.append((person, role)) + results.append((person, role, count, percent, len(commits))) =20 return results =20 @@ -507,6 +507,18 @@ def parse_args(): parser.add_argument('--git-min-percent', default=3D5, help=3D'minimum percentage of commits to tagged as= a maintainer (default: 5)') =20 + # Roles and Statistics options + parser.add_argument('--roles', action=3DBooleanOptionalAction, + default=3DTrue, + help=3D"Show roles (default: roles on)") + parser.add_argument('--noroles', dest=3D'roles', action=3D'store_false= ', + help=3D"Do not show roles (alias for --no-roles)") + parser.add_argument('--rolestats', action=3DBooleanOptionalAction, + default=3DTrue, + help=3D"Show statistics in git roles (default: sta= ts on)") + parser.add_argument('--norolestats', dest=3D'rolestats', action=3D'sto= re_false', + help=3D"Do not show stats in git roles (alias)") + # Output options class SetFileSummary(Action): def __call__(self, parser, namespace, values, option_string=3DNone= ): @@ -593,9 +605,16 @@ def main(): for m in fmaint: maintained.add(m) =20 + recipients =3D {} if not args.file_summary: for rm in maintained: - print(f"{rm}") + if args.roles: + print(f"{rm}") + else: + for p in rm.maintainers + rm.reviewers: + recipients.setdefault(p.email, p) + for l in rm.lists: + recipients.setdefault(l, l) =20 # Git fallback if args.git or (args.git_fallback and len(maintained) =3D=3D 0): @@ -610,8 +629,17 @@ def main(): for f in files: gmaint =3D extract_from_git(git_opts, f) =20 - for (person, role) in gmaint: - print(f"{person} ({person.format_role(role)})") + for (person, role, count, percent, total) in gmaint: + if not args.roles: + recipients.setdefault(person.email, person) + else: + if not args.rolestats: + role =3D "commit_signer" + print(f"{person} ({person.format_role(role)})") + + if not args.roles and not args.file_summary: + for r in recipients.values(): + print(f"{r}") =20 =20 if __name__ =3D=3D '__main__': --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205345; cv=none; d=zohomail.com; s=zohoarc; b=OoV46YRvCAvzqH19r8Ajms42Mpi8mIB9lxmmg0TpSQR0kQ8qjmFvdptvWiEsaAG1PK8XXr0Sudc7MBO7L+Zn5uFqPOlqKEwdWKWgi/zvOj89jiDLQMbPjvimFgVp2I3YJFxDW3haG/VIP4HnJ6WoFxC1VOEyFbjTcr0dusyPLFg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205345; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=USJT1S6huxMumyzeidJeA7o4HykBr8LNJSWIEzw9oZc=; b=TzPREvvRVrMOc/IilABmT4bQ2XuPHhnsHINuGeYSSFghA2Tl/8b7MvGQ36vLoHqEvCLkA9+JVtXKbVX0Q+6O5B4KZ8bu33a4FpC/nQC/K9pD82goUz7m59W4lljTd7JJNacRhqgLxFM4JkvNzJb8j0rJTiwJSd6h6wEXcLZ0K1M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205345709268.77605142174457; Fri, 20 Nov 2026 12:09:05 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtS-00032d-97; Fri, 20 Nov 2026 15:07:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrM-00018k-MK for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:25 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrJ-0001sc-TQ for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:24 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-4a3517554f7so13431675e9.2 for ; Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884865a2sm115192725e9.3.2026.11.20.12.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:19 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id B2ED35FB87; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205119; x=1795809919; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=USJT1S6huxMumyzeidJeA7o4HykBr8LNJSWIEzw9oZc=; b=kXZ5obvtROsL8usmRglsQc2qze+mrCymtWXAw+Nc4Bevy17/gOkAx2UvFdh2nOQJxt OJI48NacQmJCezYlO4ceGb4iVOxCzdalVoRKeWLMH7NgQNJrsLjWyI45xJzf049g8iqw CelZd4QLwiPVFQ+4kRFpXqwSd47qEQpLXTaB/ly4mLxEeUc5+5sqsbavWpjYOedrNHnm hDmzg8owCR3n18V89M4+MWt714BsQWvSMEwWhXTq9PP0/wpsHPzeHet6Tk4RHeq2wejI IV74mnYAcxbDWJjDkGaZ8exFbtwnOK7mGlpQ/xWVk6ikhY3nnrQSpHmpq9GIXx+GXHxz 8jcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205119; x=1795809919; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=USJT1S6huxMumyzeidJeA7o4HykBr8LNJSWIEzw9oZc=; b=1U7M+keHWXxYgeBq6NBfMISQs8lEx9qlpHxkjqiCGatbSnXGJhXl0RcsmM9UqdI3oq ldmeg6h3AM4P4Xgi3UNla0lshy1QVC2lhLbHH4kKDiyr34eU1dj11uM572uJLbxkoUdF xmZRUiI0uaBRaqnLFgn+s/gU3CcCNU8yjD4gldyUdvP8gv+QPSFpGIBUiTt59itKhQEl uwYQWdMN5qgyscnRXntR5rTTdWudfToqAwIHg4AbkANv+4rVtHLt7i6rw+hADqJ0kuFH whTMI9QrD5WjDIjQatGvAFN1qYAt8JFKgfwLA0wBjfBi2WpYm/lGq9DK68AeSpN1CoBV 5f7Q== X-Gm-Message-State: APuU4Z+jpMj5cQa1/thjUWNgD8DUX8S5meIwvwNYOHsZ3YwV3y/M5ZsK AjE3dU4XnJEggoJ6hczTKidTBEzWvI8tRvOCH4TO1jpiVPnEyYv30tCUuej1uvjnrbSBOO+e/Vi gBTbD X-Gm-Gg: AYBFou0vPyKBckf4nPQewocNfWkPjvk+2H7tFNI4ABRhHR8fIUNc+NIK5XrTxopJ9QZ 3rf6kgKDsBbj9zPfbCPWyBGgk19PaKKvSJ4+Zpx+kyRIdq1hljZTOo03OIlofSMoUl7ppzhJqYP xvpLSCh4KLob6abvunSpzWsxHcrWlFH1oV4Js/T4xdblUowHmeaqXLUS3zRAq2a08JYjw72vG7E 08UVd0E73qS66mtet9PugcN9oTyEPWveea8BW2gGhCBoS8yIzAbI3rkeT4Kh3LXzP9cJAicJIdh T3UujN7lGfUfuHifmaOw5hRFojIkvOWFn0hPIrPuK2/fmkn4wrWDobVjl90hk1CUhX7hPy+iTXp fjZvgRt1W3dy05MQh9JS+eXcXE7/VUx3HEwHnSVdzd2umuUQubEMrFpSbXFEd7ugtinhqnhgLGq VaDZWzDBCOlrnaM0xtL47D9kxsDW4gtiJG30wBkcy3+ySEW0jGfWZE5I0ETr4MWEoDfu88SwQg1 ZlTNW8zm4nflWVw5jyyKbo+fJMJaGyK41ju8q6V1YliC9SRasHYWdm2nplTw/2bhiPZ40Z2L6Nx GGOGqo5iP0pFaFtkMiXiQ2vXWgwc X-Received: by 2002:a05:600c:1d29:b0:4a9:2a92:231f with SMTP id 5b1f17b1804b1-4bb88804d4dmr105570885e9.7.1795205119466; Fri, 20 Nov 2026 12:05:19 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 13/22] scripts/get_maintainer.py: expand --validate output to CSV summary Date: Fri, 20 Nov 2026 20:05:01 +0000 Message-ID: <20261120200511.822573-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205347426158500 Instead of merely printing the count of parsed maintainer sections, have --validate dump a CSV table of all sections including their maintenance status, maintainer/reviewer/list counts, and counts of matching file patterns, keywords, and trees. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index a3f64a4b2a0..154f2650f72 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -546,7 +546,14 @@ def main(): sys.exit(-1) =20 if args.validate: - print(f"loaded {len(maint_sections)} from MAINTAINERS") + writer =3D csv_writer(sys.stdout) + writer.writerow(["Section", "Status", + "Num Maintainers", "Num Reviewers", "Num Lists", + "Num Matches", "Num Keywords", "Num Trees"]) + for ms in maint_sections: + writer.writerow([ms.section, str(ms.status), + len(ms.maintainers), len(ms.reviewers), len(m= s.lists), + len(ms.files), len(ms.keywords), len(ms.trees= )]) sys.exit(0) =20 # Build array of Path objects representing the files --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205244; cv=none; d=zohomail.com; s=zohoarc; b=Ao8D4ZsSym0NtylPwYpXvJAm3TQrDnaxlzsIXIpH7u87rFGWnTomqCxQzpwFBKWznCsPMOFWurUXpo6EBF99m8Zi2LPrtvrGmcy4VgXIxscg/lAP0LV5a0xpTfoqFR4TBuQFrjV2mf/ktRHMiB4/nfQmCGx+jQhneKlSGsJqdig= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205244; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=8sj3XM3juFxRlzwk37qD2+Hj895MXW4UVML2Y9WgI8c=; b=V+oEwIWcOCtWicb3L5FwNf+epU5Y2HdXH+J9B5u89PI1vIhjN01HoUXbqPmLV2cf7/J5P4g7pAFrzgfapjcR1pXBbL/X/kZ+VpSJNNrc1ejRZW/ETRg2GwyFxvE36ZdD5MkeYM0W0BJm9pvchPikvhLaMkfVkPZx29r47QWaNqU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205244166748.3983224903261; Fri, 20 Nov 2026 12:07:24 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUsY-0001RV-VW; Fri, 20 Nov 2026 15:06:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrO-00018v-BX for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:27 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrJ-0001sf-Tg for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:26 -0500 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-48e09aa5264so724373f8f.2 for ; Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6bc8ce06sm7379746f8f.47.2026.11.20.12.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:19 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CAD4D5FBA6; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205119; x=1795809919; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=8sj3XM3juFxRlzwk37qD2+Hj895MXW4UVML2Y9WgI8c=; b=tKKp6jJetxyxS3fZw/z+a2HiLc3sGjLoxym3mnRa4EZi5Zce9tDpkwj825wsR1jr5S Yoa9CkjFrgzxt1FxByhmuLmyY+2ox+t+65TdKYHxaFGOnAJWYvnZQNdeb5WqvN26FMN7 dU5kMhfJmF14pjQvnunOxnsnDuhj9mr2pyuLBf3N2z61d6sKy4H8TiLbZ2ve03JvXRgc 1thiLSf67y2u1qjKFa4O8spoDV5CPOWBMkfgLUBhIqxCIdSBlLo0AwblQlwESvOIyZMT EajZwMhwkeS8X+GQuwPvY5okF8IidmT0r5s7fp2wta+Jp8xDpM33USsA0ycZsVirZBJB TPOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205119; x=1795809919; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8sj3XM3juFxRlzwk37qD2+Hj895MXW4UVML2Y9WgI8c=; b=WegFzWsoSCdoFPjBc3p43IlhzLOtagzZWaaNkA4aldl9YNCpR1g8OZGzENRaUkNBfx 8g6rjuE0mVGc8EmuNdNbn+xvWuwLBG8gNXTyilv8fXhNboQr6w/OLtjxc6f7vMEJ8awU 473fKsinWjZgBobX+dP7yWsL/rSae6fFX6zmXtHheJKer1dOfvae7Xcf6xhrgCbKo8b/ Rtp9OpDEAesrdH6MYILGgmxlMyDknGAUTzgE/IYo9dwB1sJfon+hwnCxCsETzvzA3585 /sQauCQuiWBS5B1S6EI+qlm/gKwFOLSeQS/Dr9I+TtTULJoQt5AySog7gvPAtLVnn6Or BNqQ== X-Gm-Message-State: APuU4Z+t/QsHcI/yVLImleDSWreTQl6xBRX4ADFMpqBYlqviOpcIxD2J HnPJgFY37DCUndoeXRrMXcthAreIocto/rx77FcocGhw+/LXZ6M2Hb7PzTxS6b3I2yo= X-Gm-Gg: AZFdTZfbvr98o+9E83AjvGbM+qQqLwqUyQy2ZvDtSz7+1RRbQkHJOhrspm8EDtmmrR2 5A381hQ60eA/bhxCRSW5tXLXICjqROglDP6BsMbHVjLe1ouTpPF2zGQ5p6w8TdODXJooP4ILr1A VoLarNnCeOY9QVIwPOTq8yX2LtgvHc5feJ4vokem8tNDCkrKUiHMb3Bq8QgjJhwv05YxFqidEhF nwowSo7Sw2vNX+IL6pew+JoxMwwrAPBOm4b/vZN122uDvCPKDS4XTti5mu8LWZHjvdVhttliU6X 0eHqnQyUckhz4kwkrXzhcd9dogbU1SyfJU6nJPf3eafRwHhhzJoc1ZwLZe3Vt4WJG7u5tMBkQoY phgytvkZeJYFRq5h/iWnH7M5Anipqpz5EFImGUOGFn8/zFi9ErFl+xydxwPXcXneU/V8SCrJgPD tAhaIoy9zq3viGIyUWShjGYG0SjDF4HywcUKP4513JtNsD91OZGrLPO8lTp+ICTHd9HpW6tRkgq dvl1rGjcWyScPKMziIcd9J7xT1yN7AYRwm7W4utN8H26sojc+AGUu1/M30zA4aImmGtRfJtq8t/ urWkn8FXTRb7bNibIHv/oECWfr6g X-Received: by 2002:a05:6000:4705:b0:48d:f851:ee5f with SMTP id ffacd0b85a97d-4abb225e5f9mr9218847f8f.24.1795205119460; Fri, 20 Nov 2026 12:05:19 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 14/22] scripts/get_maintainer.py: add --list-maintainers Date: Fri, 20 Nov 2026 20:05:02 +0000 Message-ID: <20261120200511.822573-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205246882158500 This option will dump a list of maintainers in a CSV format together with some useful information including: - Name - gitlab handle - the date they first became a maintainer - the date they first become a reviewer - the date of their first contribution (commit or on list) - the date of the last contribution - how many sub-systems they maintain The idea being we can feed this information into a graphing tool to get an idea of the demographics of our maintainers. The last contribution date will hopefully replace custom scripts when we are cleaning up the MAINTAINERS file for those no longer active in development. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 155 +++++++++++++++++++++++++++++++++++++- 1 file changed, 154 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 154f2650f72..f164e2c5c55 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -22,7 +22,7 @@ from re import IGNORECASE from regex import compile as prec_compile from git import Repo -from collections import Counter +from collections import Counter, defaultdict from csv import writer as csv_writer =20 # @@ -429,6 +429,149 @@ def find_src_root(): =20 return None =20 +# +# Helpers for maintainer statistics +# +# We assume the current state of MAINTAINERS as parsed from the +# working tree is the authoritative source for who is currently a +# maintainer, as well as their canonical name spelling and primary +# email address. Historical commits or older MAINTAINERS revisions +# with alternate name transliterations or older email addresses are +# mapped back onto these current canonical maintainer names. +# + + +def get_maintainer_since(repo, maintainers, email_to_maint): + """ + Scan git history of MAINTAINERS to determine the earliest date + each maintainer was added as a maintainer (M:) or reviewer (R:). + Returns (maintainer_since, reviewer_since) dictionaries. + """ + maintainer_since =3D {} + reviewer_since =3D {} + current_date =3D None + + tag_re =3D re_compile(r'^\+\s*([MR]):\s*([^<]+?)\s*<([^>]+)>') + + log_output =3D repo.git.log('-p', '--format=3DCOMMIT %as', '--', 'MAIN= TAINERS') + for line in log_output.splitlines(): + if line.startswith('COMMIT '): + current_date =3D line[7:17] + elif line.startswith('+') and not line.startswith('+++'): + m =3D tag_re.match(line) + if m: + tag, name, email =3D m.group(1), m.group(2), m.group(3) + target =3D (name if name in maintainers + else email_to_maint.get(email)) + if target: + since_dict =3D (maintainer_since if tag =3D=3D 'M' + else reviewer_since) + if (target not in since_dict or + current_date < since_dict[target]): + since_dict[target] =3D current_date + return maintainer_since, reviewer_since + + +def get_contributor_dates(repo, maintainers, email_to_maint): + """ + Scan git history for author and committer dates, as well as review/ack + trailers, to determine the first and last contribution dates for + maintainers. + + Trailers are dated by the author date, as are MAINTAINERS entries in + get_maintainer_since(), so a patch adding its own maintainer lines + doesn't appear to predate the maintainer's involvement. + + Returns (first_contrib, last_contrib) dictionaries mapping maintainer + canonical names to ISO date strings. + """ + trailer_keys =3D [ + 'Signed-off-by', + 'Co-developed-by', + 'Reviewed-by', + 'Tested-by', + 'Acked-by', + ] + trailer_args =3D ','.join(f'key=3D{k}' for k in trailer_keys) + log_format =3D ( + '%as|%aN|%aE|%cs|%cN|%cE|' + f'%(trailers:{trailer_args},valueonly,unfold,separator=3D|)' + ) + + first_contrib =3D {} + last_contrib =3D {} + + def record_date(name, email, date): + target =3D name if name in maintainers else email_to_maint.get(ema= il) + if target: + first_contrib[target] =3D min(first_contrib.get(target, date),= date) + last_contrib[target] =3D max(last_contrib.get(target, date), d= ate) + + for line in repo.git.log(f'--format=3D{log_format}').splitlines(): + if not line: + continue + parts =3D line.split('|') + a_date, a_name, a_email, c_date, c_name, c_email =3D parts[:6] + + record_date(a_name, a_email, a_date) + record_date(c_name, c_email, c_date) + + for trailer in parts[6:]: + m =3D person_re.match(trailer.strip()) + if m: + record_date(m.group('name'), m.group('email'), a_date) + + return first_contrib, last_contrib + + +def dump_maintainers_csv(src, maint_sections): + """ + Dump a CSV summary of maintainer statistics to stdout. + """ + maintainers =3D defaultdict(lambda: {'subsystems': 0, 'emails': set()}) + for s in maint_sections: + if s.status not in (Status.ORPHAN, Status.OBSOLETE): + for m in s.maintainers: + maintainers[m.name]['subsystems'] +=3D 1 + maintainers[m.name]['emails'].add(m.email) + + email_to_maint =3D {} + for name, data in maintainers.items(): + for email in data['emails']: + email_to_maint[email] =3D name + + name_to_handle =3D load_gitlab_handles(src) + repo =3D Repo(src) + + maintainer_since, reviewer_since =3D get_maintainer_since( + repo, maintainers, email_to_maint + ) + first_contrib, last_contrib =3D get_contributor_dates( + repo, maintainers, email_to_maint + ) + + writer =3D csv_writer(sys.stdout) + headers =3D [ + "Maintainer Name", + "gitlab handle", + "Subsystems Maintained", + "Maintainer Since", + "Reviewer Since", + "Contributor Since", + "Date of last contribution", + ] + writer.writerow(headers) + for name in sorted(maintainers.keys()): + writer.writerow([ + name, + name_to_handle.get(name, ""), + maintainers[name]["subsystems"], + maintainer_since.get(name, ""), + reviewer_since.get(name, ""), + first_contrib.get(name, ""), + last_contrib.get(name, ""), + ]) + # # Argument validation # @@ -480,6 +623,12 @@ def parse_args(): parser.add_argument('--list-reviewed-by', metavar=3D'REGEX', help=3D'List sections where reviewer matches REGEX= ') =20 + # List maintainers + parser.add_argument('--list-maintainers', + action=3DBooleanOptionalAction, + default=3DFalse, + help=3D"Dump maintainers summary as CSV") + # We need to know or be told where the root of the source tree is src =3D find_src_root() =20 @@ -556,6 +705,10 @@ def main(): len(ms.files), len(ms.keywords), len(ms.trees= )]) sys.exit(0) =20 + if args.list_maintainers: + dump_maintainers_csv(args.src, maint_sections) + sys.exit(0) + # Build array of Path objects representing the files if args.list_maintained_by or args.list_reviewed_by: if args.list_maintained_by: --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205650; cv=none; d=zohomail.com; s=zohoarc; b=FzltO7gekieeIZc+mSujJRCG5epeht33pZyNab356bzCW86u3fH2+qLr68hseVVXkAnqTGyHxlb9ND4GsMTLigZXu3uK/jrASZ1lz9Uc2ejUsKh8MFTaz4+QL4aAzCCf0zw9jAJP8S0T0Evl0j+q9qBt4nmtIXtu6JvM5c8pS4A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205650; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/sUrhc/j2W+qZQYqzBP63I6cOB4pgh6BcSJJ3pmvGy4=; b=nf3XkPlWFvNcFCqZTdQqGD/5mxmrWiqv4lEQVtvjv2KXagApOYMxPRFE79hQ3eYMDxCzj2xGOOUispRKJvxvI/P4a/4Msu5LROG/iWjVNnowNMYpyg8qOns7dQjcr948aI/x7rPmTN8zGEIBmCC8Sn/FJVElKo6ZHl2VSJy5Rkc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205650873241.37098237828502; Fri, 20 Nov 2026 12:14:10 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUzV-0008Ot-0E; Fri, 20 Nov 2026 15:13:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUzI-0008Nx-Tc for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:13:37 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUzG-0003tz-FN for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:13:36 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4bb666304fdso22514035e9.0 for ; Fri, 20 Nov 2026 12:13:33 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884ab091sm160538705e9.11.2026.11.20.12.13.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:13:31 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E26165FBB2; Fri, 20 Nov 2026 20:05:12 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205612; x=1795810412; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=/sUrhc/j2W+qZQYqzBP63I6cOB4pgh6BcSJJ3pmvGy4=; b=kzkP9Nl9UbVHQwbikQ64gcKHDSfyKwPxlBlOtCr2pxtuOPjA2eO1WZIygZW1BaakGB QQQFC2asS+uQUfq5Lbrf0ujTt8YsIuz/FYC0eVHsW4sJOGc6mfzp/RGh5+OoB85UE1gQ uAr8P2/ysBWUytwUbKzyY5Q0purJ8MvjFPOE9CjbJMudn2eyWonxYdZmYxuZ14A7wUtg D4amvDkmrfIYGH+iy/jxzsw5HZhstMRQxnErsjIHWyLv9hsodY6srgu/Ic4l5w8S3q1R zdHrSYCZYBswJuJUhtJG/X6+tsCLlUBjN3xtgcS6ijm+OXhd1f9GtsywhrJCfSrQIQjP HN6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205612; x=1795810412; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/sUrhc/j2W+qZQYqzBP63I6cOB4pgh6BcSJJ3pmvGy4=; b=KVaAmqJ22XRFIX0QNjnlDVT0O2sQngNus6oaAS4FlAbyh/bhp50BF53DM5uxrovIMP +gSjukLBrSYJnzEGtIpoGjgBczSwMDetwElx/nWhEqGJLgK8os5KpKmA1iNPYJxqTZqs MXbpHGR/Q+tF+WqnYJ0Z+VzQPIvJnCPWhfCaIStHTtheOWKGKW5BrmlqzQnKv6V1VvTw CQQyqB3UpoSitHeGthCLN6Im93F68V3hd7BCkAibc2iwzAXqkgPfwJa7XitjS3FjFZd8 NUjPxhU5Clqkn1bZlhGit2mPxxVHtw5ug3ai1M4vqi82qJROnn6I1jGyjbniJjfDt9Ir GoDQ== X-Gm-Message-State: APuU4Z/ZuJtd7ixbDLB9CMqQe7vi6H9jw/dh+yd6pw6vHbCPj0sbIEvG 9KcAuKi2sDjFDWxHcWdcOX+4nkr9qnv5mbDAlYvcUWylag/m9pgNJQRbI81ePMVyt6vPE6aicHU lGn1u X-Gm-Gg: AYBFou2aMO+Yf1SQcjRqdFkmofrvY7nzmcuFs4iBU+MZ1sPozAXAFKI781oCTuHI4ol X8vFs3UJ3URGXVXh3f0dNiaIjhpCuuC20bZ9QNnopGr+YvDR0R//u4etlNXOaQYrayWQ7TA1NC2 X1kEgJc76DLRZQKvidNdWDVHMN1JFAGeugXFRQg4+aUjl/3aHtALWRQECOAECi0d54iO9k0c1LF 5xvpAcNANOZWLul3rT9wxDjKgp3EFI8ElUeHKLohGkYO+qnS8z0MinaH6NsvJX6yNoD7xTFhft6 y1mkl5lqQSIhOqwYq0L56gHn9uYiThZvgYguOIjVbGd5v9j4+MudD5PzL4CLrNvQbYdeWFbhjLi z5qKyjgZ9UC43y+hIAzjLBY0GZZ4LwITMkvJUsPLCKeAaW7naGh7gNWY2i/WxCZ/8wkKXgMekiA Ny/pVgd4ggXjSLiuZMQqeBoyVdtsCArVwQ4HZhVHAUYJQHS4A/kViJQ3HIpM8xdrHhi9Db3WKeK v+m1uVr1I3dCaOOryMFrjL1VJ7XVIxx+CugSiXyECLz8WyVgtHziG79Pzw3eWJvVi6lSihUjO+D ED3QfjM0qR53DaAllJLAt8sE8UN7 X-Received: by 2002:a05:600c:64c6:b0:49e:6581:7baf with SMTP id 5b1f17b1804b1-4bb887c3412mr92358195e9.2.1795205612414; Fri, 20 Nov 2026 12:13:32 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 15/22] scripts/get_maintainer.py: add --list-absent-maintainers-since Date: Fri, 20 Nov 2026 20:05:03 +0000 Message-ID: <20261120200511.822573-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205651900158500 Previously people had their own scripts for cleaning up MAINTAINERS so we might as well bake the functionality into it here. Signed-off-by: Alex Benn=C3=A9e --- scripts/get_maintainer.py | 80 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index f164e2c5c55..55f961c857a 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -24,6 +24,7 @@ from git import Repo from collections import Counter, defaultdict from csv import writer as csv_writer +from datetime import datetime, timezone =20 # # Subsystem MAINTAINER entries @@ -572,6 +573,77 @@ def dump_maintainers_csv(src, maint_sections): last_contrib.get(name, ""), ]) =20 + +def list_absent_maintainers(src, maint_sections, since_str): + """ + Pretty print a list of maintainers and reviewers whose last + contribution was prior to since_str, or who have never contributed. + """ + people =3D defaultdict(lambda: {'subsystems': [], 'emails': set()}) + for s in maint_sections: + if s.status not in (Status.ORPHAN, Status.OBSOLETE): + for p in s.maintainers + s.reviewers: + if s.section not in people[p.name]['subsystems']: + people[p.name]['subsystems'].append(s.section) + people[p.name]['emails'].add(p.email) + + email_to_maint =3D {} + for name, data in people.items(): + for email in data['emails']: + email_to_maint[email] =3D name + + repo =3D Repo(src) + try: + out =3D repo.git.rev_parse(f'--since=3D{since_str}') + ts =3D int(out.split('=3D')[1]) + cutoff_date =3D datetime.fromtimestamp( + ts, tz=3Dtimezone.utc + ).strftime('%Y-%m-%d') + except Exception as e: + print(f"Error: failed to parse date '{since_str}': {e}", + file=3Dsys.stderr) + sys.exit(1) + + _first, last_contrib =3D get_contributor_dates( + repo, people, email_to_maint + ) + + rows =3D [] + for name, data in people.items(): + last =3D last_contrib.get(name) + if last is None: + rows.append((name, 'Never', ', '.join(sorted(data['emails'])), + ', '.join(data['subsystems']))) + elif last < cutoff_date: + rows.append((name, last, ', '.join(sorted(data['emails'])), + ', '.join(data['subsystems']))) + + # Sort most stale first (Never first, then earliest date, then by name) + rows.sort(key=3Dlambda x: (1 if x[1] !=3D 'Never' else 0, x[1], x[0])) + + if not rows: + print(f"No maintainers absent since {cutoff_date} ({since_str}).") + return + + max_name =3D max([len(r[0]) for r in rows] + [len('Maintainer')]) + max_date =3D max([len(r[1]) for r in rows] + [len('Last Seen')]) + max_email =3D max([len(r[2]) for r in rows] + [len('Email(s)')]) + + header =3D (f"{'Maintainer':<{max_name}} " + f"{'Last Seen':<{max_date}} " + f"{'Email(s)':<{max_email}} " + f"Subsystems") + sep_len =3D max_name + 2 + max_date + 2 + max_email + 2 + len('Subsyst= ems') + separator =3D '-' * sep_len + + print(header) + print(separator) + for r in rows: + print(f"{r[0]:<{max_name}} " + f"{r[1]:<{max_date}} " + f"{r[2]:<{max_email}} " + f"{r[3]}") + # # Argument validation # @@ -628,6 +700,9 @@ def parse_args(): action=3DBooleanOptionalAction, default=3DFalse, help=3D"Dump maintainers summary as CSV") + parser.add_argument( + '--list-absent-maintainers-since', metavar=3D'DATE', + help=3D"List maintainers with no contributions since DATE") =20 # We need to know or be told where the root of the source tree is src =3D find_src_root() @@ -709,6 +784,11 @@ def main(): dump_maintainers_csv(args.src, maint_sections) sys.exit(0) =20 + if args.list_absent_maintainers_since: + list_absent_maintainers(args.src, maint_sections, + args.list_absent_maintainers_since) + sys.exit(0) + # Build array of Path objects representing the files if args.list_maintained_by or args.list_reviewed_by: if args.list_maintained_by: --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205349; cv=none; d=zohomail.com; s=zohoarc; b=O4DIQSN/G6Qkla7zS0VQBKbmdECXFTvQOlhJtgIRXKd7TgTi/SqQklfF75HDFV36NFbir0i61jGUEnkdjU38IFekkeOxWgDiOBg3QKLU6ro/u9ds3TQxnOrRGO/5KcYE+fv+xTUZ0B504/z7R+J2bFSmUC0WQeherOC/QBmF62k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205349; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=3R91EV5Vo0R+ysQFpX1NS64YKXxk7YrfzSxtifqKgZU=; b=aik6sqq+6x7eqqpPfIESs6OQvssu9/pY3gEM3hf52tSfQffYRo7+gyPNX5ldJaUsbqJLxWoU+dOyfdV1lnqDh+Dh+0gpLgUkMgOgSuIe11/hPsYX7jzyHOvDXUo6Q+NmqkbxxlBuYl1pg/B3lqXM3EJO9NhQCd/G4XuHRmIbvFg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205349466186.58182292465074; Fri, 20 Nov 2026 12:09:09 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUu6-0004D0-1F; Fri, 20 Nov 2026 15:08:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrR-0001AE-Fp for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:35 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrP-0001uc-Br for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:29 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso9904235e9.1 for ; Fri, 20 Nov 2026 12:05:26 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb906817ccsm8461435e9.5.2026.11.20.12.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 02A955FBBD; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205126; x=1795809926; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=3R91EV5Vo0R+ysQFpX1NS64YKXxk7YrfzSxtifqKgZU=; b=ZXs3iKUToRdBsl8D/dfwJli3ACc97iGG7NsKHFCgrgEe5QPZiPpL+Z1jgYpF+WDZx3 3BlBPBxK47Vlkz9DEBGeqwLt31vQknh8+Hx01Edz24Ua3QvjuNRbKulDpJdS2wQMrCK2 11LXGsly229mGdqS2Pt1kI2ryql9X58aOlGFGid2RcKdi8pSzYWdAMt20/KGP7QVQst0 hWXIlStd8idH+FGyvYrsYLDxrF0WIipxsJrht8nHCkYNGTfDzTEEa8NhGS1sM0DytIKm ee/vG4xnOTxGe5j+z5PdP5LDI8VthjzQh7GqocWu5Yoz7kTL2hjYtd8v/xI/JoXjOwiO 1I/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205126; x=1795809926; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3R91EV5Vo0R+ysQFpX1NS64YKXxk7YrfzSxtifqKgZU=; b=B0PfMJhvXnLISkxS1AOgxlpQmqf2fqA7XCmKnQfwa1QWNZRgwr6/zwufaSFGMbyxVH WiUbU2LyYWRXRS8UWdb3V4mRWPNMhM8fA9Qk+1HhMta8eAMVeqhIiMcHeCRXwYPopEOS UoZ0uPtzizwr/+IJ/VAGecMitiL4l0n7jzoadrGCzaLgKcCzP2qi7zBWaW3GQ/jARDeG VRVC5y2gFlJTn8DgF6e9Oy5AR5BszDKYJw0yytAQkUdkxsMlC6Pc3Yod5RvkGJ5v6qU2 ZbcI0xFVq0EibiMJrcgNXFBB3oNaAUgC/Dz7KBfyOj1HLRrUYUDF/aSgoIWkBGeEKyFU M+5g== X-Gm-Message-State: APuU4Z9w5airUr9gChJUMBl54qBEDSK1vi66QoqAY4ove76KNIFySPVv wM6KEaTI4XwrmaV6POepGGs43vZ+Edf1KT6NqV/PXW97lQ54Rp7kq1TNGvlQkgdcRJE= X-Gm-Gg: AYBFou3+brvlVIzdF/iIL5F5Rj78/nH/QQW5WhjK2MWPevdrx3vEehAarsLyxMll94N mbrmd797fgCwHH+NszS9yu7sAYMjpRfYRcu/7LpIq5CQuL8oVAAVYuVJF9g2ELOJELCCkqWJutf +Jj2kWJ1EknQ3IpJNGqL7KhrKUQNFM7g+9YZAPsfYLtlxt0Z/UketIcPnYEv8j2nuW6ZKcBj7R3 19HnXf0CL+uFnTMygC1FrP+1sFs6JP8I8OfF8u+6Qcu/tLmS3br7EimPYIT4+EG9tO44ZBqBMS0 6qHCfqOkNu2HlbEUzIwZyR0RIsKZbhXsl3GL9AKUOntrxvbnUSiGCuVxsut/A2vjgz2sxtUOnvG 7PlR4Eru3Wt2B9Onp8vG+Pm6/VW+/WsMJlI/ZNelyu2SbXc/2IZwJ2WXn/nz+NhEWRoIViqMcx2 ln8QCtjdQbp+D9Ima5HW6HOPDHFW+Z6Gbqna948srSoaen4vhBWwXw1NDN4HqyqlLcGKcB6AhXR YxdMYr6Tae0GHN4sfb+BFanU+DNY7NuO1reVjIDL4xh3KdYkU2iqWtdK+ol4OQzA2RRVbDna8RJ 9JJYry9GyTn53C8dPE3WDNm2uoU= X-Received: by 2002:a05:600c:3b9e:b0:4a1:cf60:dcc3 with SMTP id 5b1f17b1804b1-4bb88820687mr109809445e9.29.1795205125072; Fri, 20 Nov 2026 12:05:25 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 16/22] scripts/maintainer: add plot-maintainer-experience.py Date: Fri, 20 Nov 2026 20:05:04 +0000 Message-ID: <20261120200511.822573-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205351569158500 This is a script to plot the experience of maintainers and when they started contributing to the project (either with review or commits). We also handle the case when they become maintainers with the code the submit. Signed-off-by: Alex Benn=C3=A9e --- .../maintainers/plot-maintainer-experience.py | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100755 scripts/maintainers/plot-maintainer-experience.py diff --git a/scripts/maintainers/plot-maintainer-experience.py b/scripts/ma= intainers/plot-maintainer-experience.py new file mode 100755 index 00000000000..1db2863a667 --- /dev/null +++ b/scripts/maintainers/plot-maintainer-experience.py @@ -0,0 +1,163 @@ +#!/usr/bin/env python3 +# +# plot-maintainer-experience.py: plot the experience of the current +# maintainer pool +# +# Copyright (C) 2026 Linaro, Ltd. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +""" +Plot the distribution of experience across the current maintainers, +using the CSV from get_maintainer.py --list-maintainers: + + years as a maintainer now - Maintainer Since + experience when appointed Maintainer Since - Contributor Since + +"Contributor Since" is the first commit authored or committed, or the +first Signed-off-by, Co-developed-by, Reviewed-by, Tested-by or Acked-by +trailer. Maintainers added within ARRIVED_DAYS of that usually came with +their own code (a new board, device or port) and are shaded apart. +Individuals are not labelled; those left out are listed on stdout. +""" + +import argparse +import os +import sys + +import matplotlib +if not (os.environ.get("DISPLAY") or os.environ.get("WAYLAND_DISPLAY")): + matplotlib.use("Agg") +import matplotlib.pyplot as plt +import numpy as np +import pandas as pd + +REQUIRED_COLUMNS =3D {"Maintainer Name", "Contributor Since", + "Maintainer Since"} +# added to MAINTAINERS this soon after first involvement: arrived with +# their code rather than being appointed after contributing +ARRIVED_DAYS =3D 30 +COLOR =3D "#2a78d6" +ARRIVED_COLOR =3D "#a9c9f0" + + +def years_between(start, end): + return ((end - start).dt.days / 365.25).dropna() + + +def plot_panel(ax, years, title, xlabel, bins, color, arrived=3DNone): + if arrived is None: + ax.hist(years, bins=3Dbins, color=3Dcolor, edgecolor=3D"white", + linewidth=3D1.5) + else: + # all the arrivals fall in the first bin, stacked under the rest + ax.hist([years[arrived], years[~arrived]], bins=3Dbins, stacked=3D= True, + color=3D[ARRIVED_COLOR, color], edgecolor=3D"white", + linewidth=3D1.5, + label=3D[f"Arrived with their code " + f"(within {ARRIVED_DAYS} days): {arrived.sum()}", + "Appointed after contributing"]) + ax.legend(frameon=3DFalse, fontsize=3D9, loc=3D"upper right") + + median =3D years.median() + ax.axvline(median, color=3D"0.2", linewidth=3D1) + ax.annotate(f"median {median:.1f}", (median, 1), xycoords=3D("data", + "axes fraction"), xytext=3D(4, -4), textcoords=3D"offset p= oints", + ha=3D"left", va=3D"top", fontsize=3D9, color=3D"0.2") + + title =3D (f"{title} (n=3D{len(years)}, mean {years.mean():.1f}, " + f"skew {years.skew():+.2f})") + ax.set_title(title, fontsize=3D11, loc=3D"left") + ax.set_xlabel(xlabel, fontsize=3D10) + ax.set_ylabel("Maintainers", fontsize=3D10) + ax.grid(axis=3D"y", linestyle=3D"--", alpha=3D0.5) + ax.set_axisbelow(True) + for side in ("top", "right"): + ax.spines[side].set_visible(False) + + +def plot_experience(df, now, title): + contributor =3D pd.to_datetime(df["Contributor Since"]) + maintainer =3D pd.to_datetime(df["Maintainer Since"]) + + tenure =3D years_between(maintainer, pd.Series(now, index=3Ddf.index)) + before =3D years_between(contributor, maintainer) + # no involvement at all, or a maintainer entry before it: someone + # else's patch added them, or MAINTAINERS doesn't match git + left_out =3D df.loc[~df.index.isin(before[before >=3D 0].index)] + if not left_out.empty: + print(f"Left out of the experience panel ({len(left_out)}): " + "no matching involvement, or in MAINTAINERS before it") + for _, row in left_out.iterrows(): + first =3D row["Contributor Since"] + print(f" {row['Maintainer Name']}: maintainer " + f"{row['Maintainer Since']}, first involvement " + f"{first if pd.notna(first) else 'none'}") + before =3D before[before >=3D 0] + arrived =3D (maintainer - contributor).dt.days[before.index] <=3D ARRI= VED_DAYS + + top =3D int(np.ceil(max(tenure.max(), before.max()))) + bins =3D np.arange(0, top + 1) + + fig, (upper, lower) =3D plt.subplots(2, 1, figsize=3D(10, 7.5), sharex= =3DTrue) + plot_panel(upper, tenure, "Years as a maintainer", + f"Years before {now:%Y-%m-%d}", bins, "#eb6834") + plot_panel(lower, before, "Experience when becoming a maintainer", + "Years from first involvement (commit or trailer) to " + "entering MAINTAINERS", bins, COLOR, arrived) + # sharex hides the upper tick labels, but its xlabel still applies + upper.tick_params(labelbottom=3DTrue) + lower.set_xlim(0, top) + lower.set_xticks(bins[::2]) + + fig.suptitle(title or "Experience of the Current QEMU Maintainers", + fontsize=3D14, fontweight=3D"bold") + fig.tight_layout() + return fig + + +def build_parser(): + parser =3D argparse.ArgumentParser( + description=3D"Plot the experience distribution of current maintai= ners.", + formatter_class=3Dargparse.RawDescriptionHelpFormatter, + epilog=3D"""\ +examples: + scripts/get_maintainer.py --list-maintainers > maintainers.csv + %(prog)s -i maintainers.csv -o maintainer-experience.png +""", + ) + parser.add_argument("-i", "--input", required=3DTrue, + help=3D"CSV from get_maintainer.py --list-maintain= ers") + parser.add_argument("-o", "--output", default=3DNone, + help=3D"Output image file. If not specified, " + "displays interactively.") + parser.add_argument("--title", default=3DNone, help=3D"Plot title") + return parser + + +def main(): + args =3D build_parser().parse_args() + + try: + df =3D pd.read_csv(args.input) + except (OSError, pd.errors.ParserError) as e: + print(f"Error reading '{args.input}': {e}", file=3Dsys.stderr) + sys.exit(1) + + missing =3D REQUIRED_COLUMNS - set(df.columns) + if missing: + print(f"Error: '{args.input}' lacks columns: {', '.join(missing)}", + file=3Dsys.stderr) + sys.exit(1) + + now =3D pd.Timestamp.now().normalize() + fig =3D plot_experience(df, now, args.title) + if args.output: + fig.savefig(args.output, dpi=3D300) + print(f"Plot saved to {args.output}") + else: + plt.show() + + +if __name__ =3D=3D "__main__": + main() --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205253; cv=none; d=zohomail.com; s=zohoarc; b=FLltIqqOfGSbXQOiJYCyN3KeZ1oNZZIMoVRFU/W2T/A+2Nx/GR5AJgThvXoCGxk3WSc+dD+wdZTGeWIR3RbvsB78OS2AYuatG1iEt/DMT2uyuqHUVGvjUb7YPVmz2FsmMteReQ87uDCnh82N2FxaLq2dAeSP07tMHMt9z74RCcU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205253; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JO79tS4Kaj2YYiEt7SOtl1SToVZSkgS2FK0imq6vEsU=; b=OK4v25rnHTl1nqev6+kmDjgfkrrJaIuHLzBKJmMbG/v6I2hAen2Fcc2clY2OTc4OkhY8PAVTNNm6irBFLtBSW7S90MQq6rHvATVsAwFbCXwETZtNCn8VkvGWjG2GeaMUeBzVr0ap1A8tng4eY3t6lhkO711Sz2l/nCobXP2Upds= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205253773261.20817223582867; Fri, 20 Nov 2026 12:07:33 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtN-0002ga-V0; Fri, 20 Nov 2026 15:07:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrP-0001AB-Ow for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:32 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrO-0001uM-6o for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:27 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-4aa5833c263so1209870f8f.2 for ; Fri, 20 Nov 2026 12:05:25 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b2437sm209223845e9.13.2026.11.20.12.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 19F875FC32; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205125; x=1795809925; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=JO79tS4Kaj2YYiEt7SOtl1SToVZSkgS2FK0imq6vEsU=; b=mg2y7EnuN150KwAdyhf822NJYu9EZpx2S6Az9HKFHYg8gELQUmFpaycwKzYDVcjLG2 mBvtBNLs9f0fLpcIBBn6KijOz2uHefKBu2+yEtGAMIEjufkQCiNGW0a3nfpIlSq0niL+ 4FKwTCbTg6kn5RxJMBusWMCvh2otMjFxvbfmLJzLAhspDGuhjP+5gypE0zGzbI2uFUQO +fld0F8SL1ZeYs2ZFh1nlQ5eW4BfeSz7p4Fip/2wcXceB91uuC/vzurWngyG67tZZc1R bEccFpCmGY3rM08csBgGPsKZJh7jOpcVe8TOhDbIcAd4HCS76LkuXmBgPI+NMVWKdgoA d6ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205125; x=1795809925; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=JO79tS4Kaj2YYiEt7SOtl1SToVZSkgS2FK0imq6vEsU=; b=R/Sx7NQcItVi14doju1MYfCtLzszittTMz2Vp5DYdYZCI8X1cLBCqB2bOK5cNoFnMx 9qP1FFgJl+IBdXG+aVZpAn3Z6zNAoGDff9X6MBs9xUMr6E3UqoqfAcdlRbn+D8xcwb3Z jgogUHdtenvB4KUxnIu5rjyYSwrFqnYP9AHpfi1DYiAjZubWORkpUTc8/wa68WW7Kl45 lKyi5eH280LltrIeBlIM+s3EQ3U5Uecsv4CCXCbt23ILcuiclVg7hXAcZ6h3/LFYBbc2 MFQ9znKoZHzfbYa5ym8pE+8RIZSds1P5cOjYtsKdTBNfNr4NKcPFrUE3WM1kvVgomwtB iCdA== X-Gm-Message-State: APuU4Z/YY7pG7qHdGD6zd9yTTH+zGFi5kLzCod1c+fhbnh4hL5q9EHCN bM3rZljZ80O5ETJaUjkVUwM8K/3q7chMZr6EYRdgJu96RKmzNQlPWNBLZRQODIr/a6v52dAOdRv kiAxL X-Gm-Gg: AYBFou1L7Q/QPWcH+fqgfLAs/z/kHNFDzY+A2HS16ql2B1Iz30VwjgT4gCfVxIBAReg T7XZ/cxhTpuqe5E0cizNIvUxVk4zBiGxRiQahS8Z4Qf2UWaUK30VxxhFq9dC4r7QZfQv1pnGzNh pMdgC5Bs/gXq1jApkOduZt1tMZlaEYpKVbVFi81Ao1bkxqyZzqvKy9RpA2A1gCUkTWs2Re8LQ1Z JwjN4+1gYI4/huTXUQey9vhGgiuEKmvG3JbcssvVSF1dvHfwGGil3VRYEDl0ou7/pbv2OO3Aj7c LWuYPO+CVZUR8/Fh9uXlx29Qsmz4Qdp8rEQhn5+JRxgpPgln0pYk/Z1V6wMafcjh7el1/fvGBmO ZYBIFtYx5TJgeq2/vEgwPftJCptApf0W/A2rhZajnKKM46CSFKthWLESDsFG5hsD/I/yS3P68rE MB1KYMTNDCBdxk/fBlSOWWRoZi3NEL9bPjk35yzKbj1A1/ENiBoxRRPZWhkhroTVCbTrKqHLd+z /Z3+NuATCUalb38sbMVzDdl8G8eqY/0WXnNoCnCtBMEQtboM5//S7ylTWhnalbwaswcKmioAiZo axPKAq05kpzhjjVDjcYxUZTCRuIA X-Received: by 2002:a05:600c:3b1a:b0:4bb:875b:3d91 with SMTP id 5b1f17b1804b1-4bb88820bfamr97530555e9.30.1795205123746; Fri, 20 Nov 2026 12:05:23 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 17/22] gitlab: add a check-maintainers task Date: Fri, 20 Nov 2026 20:05:05 +0000 Message-ID: <20261120200511.822573-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205254751158500 Now we have a more flexible get_maintainer script we can use it to validate MAINTAINERS. Signed-off-by: Alex Benn=C3=A9e --- .gitlab-ci.d/static_checks.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.d/static_checks.yml b/.gitlab-ci.d/static_checks.yml index 568e56e1204..f72bd79e14e 100644 --- a/.gitlab-ci.d/static_checks.yml +++ b/.gitlab-ci.d/static_checks.yml @@ -23,6 +23,15 @@ check-dco: before_script: - apk -U add git =20 +check-maintainers: + extends: .base_job_template + stage: build + image: python:3.10-alpine + needs: [] + script: scripts/get_maintainer.py --validate + variables: + GIT_DEPTH: 1 + check-python-minreqs: extends: .base_job_template stage: test --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205173; cv=none; d=zohomail.com; s=zohoarc; b=Kq8gvo6SVyl16uSls4hVzeOQCWE2SKyBYXBA+v+LHWstNSR4OwYh4bbz9Ba0nDONOgk5Tr7cqoAZ27aDlcGnks0mbEVn2joy/Ya5uLkaKWXgH0f2GIYmh1aFg5K0F6ttZG9hMX9nFUwXwhQSI/97vZEASaTMoFfcs8TG69M9lrU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205173; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=fnmqKdmm58bKwG+wkVcI14sV7PN4tzLg6CI/lKCm1QU=; b=M6EhC8LZcXiDtu1MXz7xcEHsmrci8pmZsTeiz4dsD5gQPSK4pROf75cy+0HM3pn5355vBH3L77J/L+uNw+9BCYmwn+OXARsuluO1g6JCA7UDTrAPZQJOR9fhLYOZkOkNEhsYedogNqTTLclUvn6AtWAGAbuBmbQdeeU6a9aAto0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205173928510.41057914793896; Fri, 20 Nov 2026 12:06:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUrv-0001LN-V6; Fri, 20 Nov 2026 15:06:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrP-0001AA-LV for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:31 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrM-0001tk-RK for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:26 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4bb64ef5a00so10527305e9.3 for ; Fri, 20 Nov 2026 12:05:24 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853c9170sm155069345e9.14.2026.11.20.12.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 36DED5FC4B; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205123; x=1795809923; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=fnmqKdmm58bKwG+wkVcI14sV7PN4tzLg6CI/lKCm1QU=; b=vOjigwHBJoCBL/FluVoeLE8in5JwABWnTlj1iMzU5MWCvh1o6tMw7GxdFyuhlo9xrZ uEOuuAkW9kMZkEZ8WuefIvsnI2cnkVZYI9T5wiSsZpwJD4bglnI/QX/Pg/d5FjCN3mn2 lQHqPMM3AQRMiBZGBYt/zaMX/Thvft1xM3EE33rTG9d9xP4PDL585cI81Neynzvi+vw0 JT1lADLzFFeCUaRJd1UiM3LEhVb/SnVSy50wzM34NOA7cE0VJ/n81C7jT+Fcgdud6XuM ehf9RY8mvRtG7eM64g2JYRmILMSqC6fsT7TKNBsIlg8cu/lnOKSn5+mDM0FUt9+DuD/N /daA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205123; x=1795809923; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=fnmqKdmm58bKwG+wkVcI14sV7PN4tzLg6CI/lKCm1QU=; b=JgiLCv2suTS8/tNfDFTO7vQbQEmsVFg/AfrlBGfCzoihQXXr89CDqaNKAko+fm4IgU JlUGJKOMPyMOkEhT9749FahJDZiIqTaqPPnVmKbOe9C1FT3C9g4dgODfTe92f/QDnmn+ oAXqpqjYHTYqKsRR3hXGW9wzApITSXZqztx8WH8vbp6bmGArxBiQ9ELQApxtcPFSJa27 +dzzbalNv4u3cMUDPIO/+/uogf71afNRootCA/e84bqz0pTkRCVTKzYwPUSacCXpOYSe qqaYEgaa12f88mcAhdC26+H4NJ2v8KdaPNfALroWv5IjvhB9FJuJLY7adFQolAQZ7RCp JVHQ== X-Gm-Message-State: APuU4Z+Xp7BQUVMOCpp+ulFSXvd48zlBqsbhnC6gi40a1QCkQKGFIRXH N9TAPIsQnynzxHUKS0u0zzbu4P5qlQHZ5YgzwBVwVXKszB+Dk5qwXHXr0hWos0mOYMtkwIAJcda IsuXZ X-Gm-Gg: AYBFou1p9xYgeyote+n0t3kgYn/LQcyVOO8eaBKj69b+0bm5Em8Q0mRGiSAO7Ak/kqD /BwURvbRjvFznEOJvDuPQPNr9SX0Y1jyciz8wiIRhE4oocLXayDRtaT2XktdsyzVRkF2m3wP41U CWtU5D96BpNqpYJsIyBLwdLSGizFeh8V+tIJ9PYq1rGqOJ5lfQachJ1AnvUm96zqN7ew65iR172 XREh/Dv0WSUuakH00v9PdAgTpIBvNwVfSiliokKr/NThC00sZHbY/IenB3erZYwKPxrVp4kBTfN ExjUX39au/P8cjmP8nxqSPAwd5ZB6e8znChRJNdReWAt706uTTpkz8vj/l1zCaeKniu1N0Jrl+a UgrgTl/PFjlIJW9bNqHCqN6BYfbhMvDNU46nf1s86VU0+0yUTVX4G4H9HmVOPCx8GsgSX41jjxA yPeyO4oF0X5kSvSpPcjAVMepmMdGJq7P31Btn7lncVfhx3619AzRF99ORV2CsK4K7f3N9neqWjq 3T3/jnNu41ChDlGiQddEcrqN0DPmgeoHDg9XU2gDzmrR8TcstOhubbRcfk+8F1PCVkZ91R+WPXA H3d7DwXZ6bGqM8XypL+LRQpFPQI+ X-Received: by 2002:a05:600c:154f:b0:4bb:6842:66ef with SMTP id 5b1f17b1804b1-4bb8893a963mr92679415e9.30.1795205123150; Fri, 20 Nov 2026 12:05:23 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 18/22] MAINTAINERS: update Daniel's entries to be consistent Date: Fri, 20 Nov 2026 20:05:06 +0000 Message-ID: <20261120200511.822573-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205176201158500 When testing my get_maintainers.py I was shocked to see: =E2=9E=9C ./scripts/get_maintainer.py --list-absent-maintainers-since "2= years ago" Maintainer Last Seen Email(s) Subsy= stems -------------------------------------------------------------------------= ----- ... Daniel P. Berrange 2024-06-10 berrange@redhat.com QOM, = QDev, Seccomp, Cryptography, Buffers, I/O Channels, User authorization, Soc= kets, File monitor, Functional testing framework, Build system architecture= , Meson, GIT submodules Which is of course incorrect but tripped up by the fact we have been utf-8 clean for some time. There are some entries that are correct so fix up the rest in solidarity with my fellow utf-8 using hackers ;-) Signed-off-by: Alex Benn=C3=A9e --- MAINTAINERS | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index e2bd501f18e..031183706a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3748,7 +3748,7 @@ T: git https://github.com/kostyanf14/qemu.git qga-win= 32 =20 QOM M: Paolo Bonzini -R: Daniel P. Berrange +R: Daniel P. Berrang=C3=A9 S: Supported F: docs/devel/qom.rst F: include/qom/ @@ -3763,7 +3763,7 @@ F: tests/qtest/qom-test.c =20 QDev M: Paolo Bonzini -R: Daniel P. Berrange +R: Daniel P. Berrang=C3=A9 S: Supported F: docs/qdev-device-use.txt F: hw/core/qdev* @@ -3996,14 +3996,14 @@ F: tests/qtest/dbus* F: scripts/xml-preprocess* =20 Seccomp -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Odd Fixes F: system/qemu-seccomp.c F: include/system/seccomp.h F: tests/unit/test-seccomp.c =20 Cryptography -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Maintained F: crypto/ F: include/crypto/ @@ -4024,20 +4024,20 @@ F: include/qemu/coroutine* F: tests/unit/test-coroutine.c =20 Buffers -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Odd Fixes F: util/buffer.c F: include/qemu/buffer.h =20 I/O Channels -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Maintained F: io/ F: include/io/ F: tests/unit/test-io-* =20 User authorization -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Maintained F: authz/ F: qapi/authz.json @@ -4045,14 +4045,14 @@ F: include/authz/ F: tests/unit/test-authz-* =20 Sockets -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Maintained F: include/qemu/sockets.h F: util/qemu-sockets.c F: qapi/sockets.json =20 File monitor -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Odd Fixes F: util/filemonitor*.c F: include/qemu/filemonitor.h @@ -4190,7 +4190,7 @@ F: docs/specs/fsi.rst F: tests/qtest/aspeed_fsi-test.c =20 Firmware schema specifications -R: Daniel P. Berrange +R: Daniel P. Berrang=C3=A9 R: Kashyap Chamarthy S: Orphan F: docs/interop/firmware.json @@ -4691,7 +4691,7 @@ F: tests/vm/freebsd Functional testing framework M: Thomas Huth R: Philippe Mathieu-Daud=C3=A9 -R: Daniel P. Berrange +R: Daniel P. Berrang=C3=A9 S: Odd Fixes F: docs/devel/testing/functional.rst F: scripts/clean_functional_cache.py @@ -4723,7 +4723,7 @@ F: .gitlab-ci.d/custom-runners/debian-13-ppc64le.yml Documentation ------------- Build system architecture -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Odd Fixes F: docs/devel/build-system.rst =20 @@ -4753,7 +4753,7 @@ Build System Meson M: Paolo Bonzini R: Marc-Andr=C3=A9 Lureau -R: Daniel P. Berrange +R: Daniel P. Berrang=C3=A9 R: Pierrick Bouvier S: Maintained F: meson.build @@ -4785,7 +4785,7 @@ F: hw/*/Kconfig* F: target/*/Kconfig* =20 GIT submodules -M: Daniel P. Berrange +M: Daniel P. Berrang=C3=A9 S: Odd Fixes F: scripts/git-submodule.sh =20 --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205356; cv=none; d=zohomail.com; s=zohoarc; b=dqakKRMhbpeNheTokHRbIe4ZcOMnrcL14HSl2Sm1iL1SPYoObY+178XsjY1qLe6LTvBDKshvzhr/2HM9IxnuBaXXiwAm8CUI/Scxg0BVzhw9S5DDTyTGiaNRByQokhK56V9rpkM9Wvvb6sn/04bGainQya/b7Ct6ju6Ji0Z36gE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205356; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=PIe6ou7eDh3j24I9zndpQ8TZCmYl8i9whubcYxJ0DUI=; b=HXR1O0EgivWNsL//qLdD1oXwFNUUhZIIz8R4O0WKiiK9ZilYYi6L7VYEYwm+1VJ9IlVdtxHVwvyGoweZRY7OZqzjYAyvnAl/eacp4jdE372q7cSZF/VK+9SIqulkl9w1d73ySBraS3GNXV4W3r2vU2klka1B4yqj+E8fSHHIs88= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205356109852.8681875222111; Fri, 20 Nov 2026 12:09:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUum-0004gN-OB; Fri, 20 Nov 2026 15:09:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrZ-0001It-Tm for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:46 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrR-0001v6-6i for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:32 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4bb64ef5a14so14555855e9.1 for ; Fri, 20 Nov 2026 12:05:27 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884865a2sm115195185e9.3.2026.11.20.12.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:22 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 50F715F7FE; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205127; x=1795809927; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=PIe6ou7eDh3j24I9zndpQ8TZCmYl8i9whubcYxJ0DUI=; b=nb0b6sbrq8o0m1AmofASorjIBCtOdmLGFbuEhSwm4gCzKatQPV+UUgKnaV7YZfDEou kfdq0D8tDp8ewGPGupJN21i6TyAMMEIAxbul+k/3IRm4d7yfhdlaRd0GtCwpa1sf4GEg fi9KHccdK/UAPsioEGGVvJydEHAFUr/hfnavtofB40gchs/NdpiUhgEuNKDE0kn7WK0T YpvS3oMYiqNKZrQNcomdYkWBTdck6DaVVVnpeBj35WlkKsMWhc86sDj4c8FUfL6YY+fP gvmi3vuBWMkWiMPvrxh08MmWajdni+E15H+ws+O278dtIHUERlygS0rktuxWctPGtnri 1peQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205127; x=1795809927; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PIe6ou7eDh3j24I9zndpQ8TZCmYl8i9whubcYxJ0DUI=; b=X6SUWahNkSzYllSozrUft8clPkFsARKfuSjCUhihMJSeP6ihuHguK20iXrA84CvXJM j1f0/JY4qt+1mSZDqY0pHsgMPb1dBLfJb7mKlixWgZBuTEdN0HBHNn7TXaXGn9pC3YbX 2/tSJgWiJpzC1mJE5u7sLW4Y3ziatpUHOabP4jC32oNuUXjVtGbZDkijiPjWm5jAvRZW qo+2zX4hRBA6rIvSmVUgN//81VQoRCsiZCzRC/smywSazhASWVFh9u64VMprYs4wYjVR fyleV0vv13KaoQhzg1TD4A/7dJXfmFJt2raL/hB2NtgV0FOTFZpnHp2ehCLKvnJbbOcm uddQ== X-Gm-Message-State: APuU4Z8u52fsBr+5uT0V/NnJLH9sJvOM8mPkh2px63vN1O7NOB9wt2zG zAOm6t32mXMiCt4amkz5PGu+lmKpC4D2XRlWMMWtyAjXCymHngI5hQejJYJzMImPznE= X-Gm-Gg: AYBFou0rdWOw8NXiK25uxOPUVTYQ7wQTKM/bOsqphY4HEjfgkTKdNImnOLvQyJOSCSN 34FVuIdz3p/2yMEynA2wz1i1f1EjnseA5mnOUiY7wd2DOOrc64XX1yxziutxcyLiqgI3Qmv/BlL jq764sy8eBFdDO+3iIJ+SYTrSq4TlIFcviT3p0qN9OGG2St7xRAaDB8exPlmIr3HbjcuiYYP9wb ozW5LEfiYyWHMXQMVLtrXhrsyOkGyam2Wf+ZV4xVJvYNqtojXtmvLOao8SHDjVUco7HBOcWkDoT ABmNegoNT8njjQA78XBdRvptUErijBVy0Byamz8k9s7ApOw2c5dTDV17INOsCZ2EBwIpmCzi5EL CUN1Hwl+KO+/GT1R2waUbtx4wE7+89NMQXMmyEie/JXczESC3uUAk/KbgyM9V1anN3SI3Bqk4Te 5NKSux5CRDc6bpeZ/JtlalyMEh4a4v+mEH8X7FxkHV1v4qywFs3Y8Q6msvVWjd//Pm0TCmpdrm1 xJ82wlrqZvIKEzIajLRs7U/o45NphN3cGJkF7wgM6aFqsNI/h5F8Nzos/42Mm5aWW4VDvaBBYr7 qKQCBUyM1G1OlGLVUQ/CAX3D0yTFfeMQQgxAeCTOxFsycFMV0g== X-Received: by 2002:a05:600c:64c9:b0:4bb:679a:86ee with SMTP id 5b1f17b1804b1-4bb88938dbemr100575625e9.29.1795205126032; Fri, 20 Nov 2026 12:05:26 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa , "Collin L. Walling" Subject: [PATCH 19/22] MAINTAINERS: make Collin's entries consistent with .mailmap Date: Fri, 20 Nov 2026 20:05:07 +0000 Message-ID: <20261120200511.822573-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205357548158500 We should use the same form everywhere to keep the scripts happy. Signed-off-by: Alex Benn=C3=A9e Cc: Collin L. Walling --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 031183706a5..c5d0b07aad3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3140,7 +3140,7 @@ F: include/hw/timer/mips_gictimer.h S390 3270 device M: Halil Pasic M: Christian Borntraeger -R: Collin Walling +R: Collin L. Walling S: Odd Fixes F: include/hw/s390x/3270-ccw.h F: hw/char/terminal3270.c @@ -3150,7 +3150,7 @@ L: qemu-s390x@nongnu.org S390 diag 288 watchdog M: Halil Pasic M: Christian Borntraeger -R: Collin Walling +R: Collin L. Walling S: Supported F: hw/watchdog/wdt_diag288.c F: include/hw/watchdog/wdt_diag288.h --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205251; cv=none; d=zohomail.com; s=zohoarc; b=UWjQPLGkiPjdH7Iwv7PC9WxcK61mcd7a96jKZjEjmkn4oCq0kUHjZU7j5QeiC4wJ2GtuRHCpOsevEtFBJiJ4r0wM9ya5CNnsAtXGWH2ac/7ZTRke3aTiP4mTFKUt9a0HkCIpbI/vl8/1SupIUyT3bqYPnX/SbnhHbTIo+LOzIbg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205251; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=jqaJoBWzttMgghzDuItN9fmBIgP/5WwcVslib+c7UTE=; b=AqL/RzsqZVVvEC287ytNjeWyj65sga9Mfd+UW85MxOuhp5qWi/y3QeIb8AgGjoQMIB74Ns9/kUx8F5adHBswcStjCBK/Ky44r1wASmzGfNj9T+6sEjljSRpgcrcEGahZnjF4rvXkCt6+f+7cwd2yupJuWM4elI7/6HXIgDOxXu8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205251805167.51011180513603; Fri, 20 Nov 2026 12:07:31 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUtK-0002XC-3D; Fri, 20 Nov 2026 15:07:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUrR-0001AF-Fp for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:33 -0500 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUrP-0001ug-D3 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:05:28 -0500 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-4a32576da88so788652f8f.3 for ; Fri, 20 Nov 2026 12:05:26 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b110d56sm7413199f8f.40.2026.11.20.12.05.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:05:20 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 66E785FC5A; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205126; x=1795809926; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=jqaJoBWzttMgghzDuItN9fmBIgP/5WwcVslib+c7UTE=; b=Se8/GJD9u6eYzwsTb5jZ2t5vkD9OksKDPxjFiMQ+EZOsQsR22dqEz8XGvjscxjuzSK vJVTbSzBP7/AiJuD6dX4V7Kx+yZLyWHN0/oXQdaqzYJJi5XGWBs5iuNApvkVCvIWgMeh z48y3nECZlAkICILtxP4Xp7fR5tHKGbsYNE6tF5VxiB2CkFIeWWmCOWvrVPDJR68JJRk 9r4e6yw/wMXi3v13RIoYPzcUtZSgtzA4FFeHA4DA6XsMgerXFCF867433o+fW/FxjpVG pQWIY7PK/KRn/GT9PSxkN13X8hmEAHDD5EOPIjQ3S+NcVpx7l/NvH+3lp1JzGSd+4e/U hPKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205126; x=1795809926; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jqaJoBWzttMgghzDuItN9fmBIgP/5WwcVslib+c7UTE=; b=AuHrpsYxg1wTD12033ectH6Z2PekCZ6eA2EwusRRqriLirUEMvqFQS/E4IFTF2mRf5 iekhGLO0IuO05lPkhg2m+iZcSsTsTuzNP6zbYYTFsfDLrdksZZYy51V+XP/G9SplgIb5 iPV4QgT+IfSMDgdXWgtRNcY/g701LQEHiD2sjm6wQV7LsZITT5zOYiKQa6Mbz0abE6WV JeM+g/pc1tWhifmWoV7c/fFz7gyzRF3fv83Y3HJR95Es3O2fPBhw0MEx/jTR7xtjXBzp VftQCjMXsd+znoH85PjpDiIWLYap+Ih16Og9pSnydxlaObU+ee7MMcopVNazBzfu8wqJ VLiw== X-Gm-Message-State: APuU4Z/Eh4D7W5j1Lcy5jFj+n2iWF/JgCkIMrONlSbGX8LdfgK3Q5f3O eMygSu+r/o3bWKMt34f+MUsxwC4lMer2EeeYlFln7Gd/LVh4v7sbqlhVZoAdhtVRwYZrqRO8Ef5 SObUd X-Gm-Gg: AZFdTZfku3hyzHhTOBMqSwWYx7Br2hKoSy+kL9GQKHaEHFPOK6W8gFuHrLSLG+7SU7r QkmOxzV7u5L0rKnGoCYXBbPgsFYvidnHW7Ah2L6wQn9Y8UM5/QDcKQa5wmSoWIryPgAo77y6B3t lB7X9lfSCUly4yUbEDvvmnVqkab7TMr/KQ/1UjzkOUhspQCXWMJF5nkZKid6LJZ7lhkyHQ4Sbd3 UxlxJWBSR6hwZndlhe2cFNgdM9oP2mY9Kol5HTmRwL5hQqHM/Gi1DIfR4GGfD6/70akCkcMHJ+s fRs7kBwsd1itMPRUaap2xfvoPKXfQlS9bSzUGKdIAd1Tluk44l4Qn5k5A5m2fVm3MuK+uZJMCFU cgWnDC+BJLO+1vqJYzl9o8fnF819DpY7aXbH0iXwLBHQZwc1PTBkeY8RlKTJV0I5QUVD0xiurpp XSLrA0qenqEGpSPAL5von+kQg7h2oAqZ5MT0bREyufUU6Hp0kCzuzPQkG+t1/wKAhO0vgG8UGzr fBYYdq6VyuugBXdKBNMooV000t+iMnB6/BPxMQUweOSjGO6Vlsy64sxA5//IwKKuZhnqejR1jb3 j0P4YV2GBBK33yJ6iXKZWoGMQjY5 X-Received: by 2002:a05:6000:184d:b0:48c:7386:af18 with SMTP id ffacd0b85a97d-4abacfea55cmr8822312f8f.8.1795205125547; Fri, 20 Nov 2026 12:05:25 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa , LIU Zhiwei Subject: [PATCH 20/22] MAINTAINERS: make LIU's entries consistent Date: Fri, 20 Nov 2026 20:05:08 +0000 Message-ID: <20261120200511.822573-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205252672158500 All the commits and s-o-b's use capitalised entries. Signed-off-by: Alex Benn=C3=A9e Cc: LIU Zhiwei Reviewed-by: LIU Zhiwei --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index c5d0b07aad3..5d1444ff661 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -367,7 +367,7 @@ M: Palmer Dabbelt M: Alistair Francis R: Weiwei Li R: Daniel Henrique Barboza -R: Liu Zhiwei +R: LIU Zhiwei R: Chao Liu L: qemu-riscv@nongnu.org S: Supported --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205659; cv=none; d=zohomail.com; s=zohoarc; b=FTW4t1kJcb+16sg2s/l7wZr3IhSPHDmB4X9dQsgQGsnI36m6D50HbFPLzlDgXFHBgVJhOYWBGlBvdWIqZLt6zbdLphN2MOr93A47sMHs5HYNe3nVd8cnn2rpCFGkPl2O/mekxSgL4JkMXn3L/USbIpJ4HDpZroFRYDFBSRkyZXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205659; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xVA4eSJllNhT2+e1ValvpLI+kjPVaRNCOlngOE8rHjs=; b=nYaSRPJMhouaQ3QYSPw8kWNsKBGa0+xBW2N+CPUamb2l6f62FSEeBZUgHQ6H3e0E5c3heGTbESF4+Nb2LRqz7CZjUeIHCWKbk9/k5FtgPZzt27D7+4Dyl1oyStno53QcUY9VdUD7A5ULOJBPL9sm/QfRw+QGeiWYBcDEcN6Gr+8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1795205659871240.70747530442134; Fri, 20 Nov 2026 12:14:19 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUzc-0008PZ-Kk; Fri, 20 Nov 2026 15:13:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUzI-0008Nq-3A for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:13:37 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUzG-0003xC-F5 for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:13:35 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-49465892f7bso1046555f8f.1 for ; Fri, 20 Nov 2026 12:13:34 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6b9add26sm7747126f8f.44.2026.11.20.12.13.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:13:32 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 7E6C95FCA3; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205613; x=1795810413; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=xVA4eSJllNhT2+e1ValvpLI+kjPVaRNCOlngOE8rHjs=; b=wexQHmR43hBUnBetoKywk0lbYw/APMjPkVh+VHXhdG0IKwInDO2bF+SzZK3fqeTSIu DhYrhKEHOCJWslc1sM0+QIdKOYYccnq0PZJ7NO18Q5ZYJmIBgVyxkBrXAmtnId3/7CUt 9J741JjIp48ABnEewnd6xB2kdMbkUd/VRdnSsiVyfoOBGVVyYENXHYeyOdFaujdDpXVN KkCF9fSt+F1xboPu8Pcf4SEx4qNxhA5xZR0rheUEjJv/bvfOLKr5YQuCH4BXFYZFPNkg OkqyX//pP/VDb9ndacZPiiqBvnYRqqGfpyTbq2cnG9BmI0ALogEDzRLrTcNx0meo1gVW pp1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205613; x=1795810413; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=xVA4eSJllNhT2+e1ValvpLI+kjPVaRNCOlngOE8rHjs=; b=xqH8xdR4aDyrPR9c1CtpvIf6kXNCCM5Danw8i3l0Eb4FGKXPmK4cIVdNX4l+LxGmC2 Ldg6I4/7LnNtnRSApXJCyGbkwJQU5J+de1foj42Rco+s3fCMEaPXeguGgFU0aNv36UmK 2V1indklhkkFrb/ASq/W9rQHWuUIi5LJZWAhxFvMHpVsgJ7onholVQVzdLGye7m+Zbdj 564EbEpl3Q3D3zu4L+WFNgT6B38c/3AvIqU352GIvTZkZHsvFDs8jYNN6Wo/NrvGVDv2 GdXlCFkbx/X8ybRdqe2CAI0HUvo1tPVwqhYRw9tZKEuO95kFqiVk9rRzz+zPSnBZUMwL EIdA== X-Gm-Message-State: APuU4Z9N6D/ScGrHL5sj6fJvCmM+7eTmvYqpXzuvF4xz1W6zCCPnjH5m GQ1j+gzrSZYQeMkdZIgWWWfg701ZitkrZnVMgMPvs7tUiDM2LJBhUwYFtyDZbnVU6oo= X-Gm-Gg: AZFdTZeJ466TE1xETbX1hZ9SVaL5Dx+3mHuOxMK8x6ar8O6AuUX1kmHIJrLaakIWUiZ RGLLsDZYFPhuAggSmwh5RtQA65svewJH81PCF+pLTDErbCEs7y+nlcLa3qO6SxIqFK2iyU37JUq fJfVRKcLnPMgrTVa1vJGh/GSCQPXFCSlA3l0+ebpDYLUsLiUXvJuji6rwzuZpRvM3BdLWbm08JU hfeMXtXwJ1qJKrqLBTXyDEg4wGn6m4HFrzNX049d4Zx1VcZVwuTJiRDHg9vVivhfWRTyoTkO7cA x9l+iwPzh8l13XInx8iicgUD+mcuV2uzPsw3HdUeq5eTkDkjbc4V/aycm+7iqDypMGwBMofZ3DB cgx8CbM6GQSAKKZi0ovdQ21Hq4WyjRAhvXvqSmvsB8MGhU5rOyA0F+lxAF/BbOY1ZN6Tk1IGLJV MeHRTHQSQz+bmq5kOyeGOOEG3s8VB0loRpelrWkoNfitkLneVVMOFS7JofqEqiOBaTL/Jpbb9tm pNA7sPyNOzXOvSMRbPi7urLBYlvFoT8Ty+0TFIqndEqjjsTn9AZ4Uco1iQpIBd6cuBL3N748eA4 k8cAa6aws+Hwrdx8wzXx7fL18zfR X-Received: by 2002:a05:6000:490b:b0:491:8462:20be with SMTP id ffacd0b85a97d-4abb1baaad9mr8808569f8f.12.1795205613085; Fri, 20 Nov 2026 12:13:33 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa , Alistair Francis Subject: [PATCH 21/22] MAINTAINERS: use consistent capitalisation for Alistair Date: Fri, 20 Nov 2026 20:05:09 +0000 Message-ID: <20261120200511.822573-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205661900158500 The last emails with capitalisation where in 2019, make it consistent. We can also tweak .mailmap so this sticks in history as well. Signed-off-by: Alex Benn=C3=A9e Cc: Alistair Francis --- MAINTAINERS | 10 +++++----- .mailmap | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 5d1444ff661..456d835ce70 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -878,7 +878,7 @@ F: tests/functional/arm/test_canona1100.py F: docs/system/arm/digic.rst =20 Goldfish RTC -M: Alistair Francis +M: Alistair Francis L: qemu-riscv@nongnu.org S: Maintained F: hw/rtc/goldfish_rtc.c @@ -1806,7 +1806,7 @@ F: tests/functional/ppc64/test_fadump.py RISC-V Machines --------------- OpenTitan -M: Alistair Francis +M: Alistair Francis L: qemu-riscv@nongnu.org S: Supported F: hw/riscv/opentitan.c @@ -1844,7 +1844,7 @@ F: include/hw/riscv/shakti_c.h F: include/hw/char/shakti_uart.h =20 SiFive Machines -M: Alistair Francis +M: Alistair Francis M: Palmer Dabbelt L: qemu-riscv@nongnu.org S: Supported @@ -4240,7 +4240,7 @@ F: hw/i386/amd_iommu* F: tests/qtest/amd-iommu-test.c =20 OpenSBI Firmware -M: Alistair Francis +M: Alistair Francis R: Daniel Henrique Barboza L: qemu-riscv@nongnu.org S: Supported @@ -4341,7 +4341,7 @@ F: tcg/ppc64/ =20 RISC-V TCG target M: Palmer Dabbelt -M: Alistair Francis +M: Alistair Francis R: Daniel Henrique Barboza L: qemu-riscv@nongnu.org S: Maintained diff --git a/.mailmap b/.mailmap index bd8bf07feb7..c44990fd3d6 100644 --- a/.mailmap +++ b/.mailmap @@ -80,6 +80,7 @@ Aleksandar Rikalo Aleksandar Rikalo Alex Williamson Alexander Graf +Alistair Francis Andrew Jones Andrew Jones Ani Sinha --=20 2.47.3 From nobody Mon Nov 23 04:28:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1795205642; cv=none; d=zohomail.com; s=zohoarc; b=B2uTfPpOF5oxxShcoe6lYen7JcWVBKCuIb8c6rl7/hJOEyprrwNDZuPTl77Dxh2TjwW6Ug0dV0g2l4iDAgsouoNml6qleuNoprOoL1wuv7w0x2i3Ll+hyTqMjKCywCkvPMil7Wehc+GWICJ0USsRBMZ0SHfzTHoot1i9jxVzyFU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795205642; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6B6MosqdBYMqMo0NdkfmSRTBc2dK32MFhV5BDQjJhfE=; b=fPoadg0zCt+duv84FnEj8eXnictDinwid/duDg5nPWTRiRiEbuJ1tJ3PugpRcyGYUxXeSy4uDQg7uZ4OQPSHG6CVnPE1cR74E369XRqshLpw/70BG5KA2X8/0Tpe2aarD1R+47rKPAUhJ7xNhARzchmjV+gEFV8YLpHxfbttuVA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179520564251466.34803338159861; Fri, 20 Nov 2026 12:14:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xUUzU-0008Of-VH; Fri, 20 Nov 2026 15:13:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xUUzH-0008Nl-3a for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:13:36 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xUUzF-0003rU-Ia for qemu-devel@nongnu.org; Fri, 20 Nov 2026 15:13:34 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4bb64c99d2fso13874685e9.3 for ; Fri, 20 Nov 2026 12:13:33 -0800 (PST) Received: from draig.lan ([185.124.0.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb884b7515sm155703035e9.13.2026.11.20.12.13.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 12:13:31 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 967E55FCC6; Fri, 20 Nov 2026 20:05:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795205612; x=1795810412; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=6B6MosqdBYMqMo0NdkfmSRTBc2dK32MFhV5BDQjJhfE=; b=NmwgllAtYkvZQtI3Yu5DTKCpXctPI2cmGUOrCx2Be8gZ+Pmi516E/gjLUsL18mVWym MVZST26htz5cGMiDarzI9KmNL/67hHmBE5dBikHj3l34cDxOdT2p5T+POsYje7PN6hKV TPjrnR9zvQ/1Hsvi6LMMIkbcYTvzsBtPsMh5ldR32qOr+xBKSJf0LxjLl9+Ljukwf8dw 5UqnWopbbwSgr38iVQ1Z4BZMkW0UaNaYy2iNTJ6GQ4KdMJ6Cc7vmIUI6v6LB7f4mq/fz CZGwNR2RANJiWLMeq4/7b+4UdlrssS38Kf/QDTlaU2BRGP9tVOIzVvSPurqwRyL6rf+P bBSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795205612; x=1795810412; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6B6MosqdBYMqMo0NdkfmSRTBc2dK32MFhV5BDQjJhfE=; b=09lyruCk/ZUaXiR0DW0UX9S+hkEf6+sUNvCOGM/p3AZW9IneM7+8wTgRtyueU2n8X3 OOuWaQ8Oz6hFk4c5uRb+9it4tMPcWjdbsZYSiCPH6UQRVybJxOvsHA+U7T8R6c6ia3SH 1RH3sMfoYs+XY7rlnFR1awNH7IKr6Yz7Y2L4Nje1jojBnj9WV981UvDQo+zEgxwtygnE 7IIkF1DFSJ6ML2DIK62s+zuMQO7yHWQpAmZn0ixjkYlkSiv7j+oGD53GaidaMRHyJ6CO LQdVZNFsiMxC/L0PgOtXb8R8Cee96v+uTk4j0dUQwsaBFnSHS2YT9Qv717pumsiH6cTS We6A== X-Gm-Message-State: APuU4Z//MKMirInigvwJWfgeRBfOR7KsHZzu0XWE+U7UCYG98JzZeeSp MPszUVJFdq1VyXOe97ira/OxSvSgjxWKJhPpUC2hz78PLucgHPAkDoZX44AJcXqcuHQ= X-Gm-Gg: AYBFou3dD5J1cqkZE3SZvLkDpOnfkA+FhQ+NVAW3BBPUmIV/chv1ipQCpe/Hwzu010+ QByumRZYw37EdFU79mHND7894iuEAh/4Ikp/Pkdputiu9lLevnfwieg6KgPro//3Sb3vQEUzU/Y JsazOWebiha4Fu06SmqLZLqMvnPHkVVmdW67W1H0gKjMYOFhncQtgZJloMtp9O8XiTwkOxtVPP/ qpHFDni7QH6Vrgkt9H73jzBsf1xqz2mrH5yLQMJEO7KTRC80VMbISma8WO3ehBtYN8SyPi9cATb MXceBS+Kgdyid9y9qZfTeWndzCXcorTHCQjXvIb/ZAOsmfHFKsYU0Nxt1LAMK6qkB9nS/THwHOc jjXq0lEMlDlhFdVFl6CyWnFU5V5utbyLKv2nt1zt/gWvnuWYg7h+qauj61GCiG+V89EJ/2H7mjM WZMj+BRr7PoXgw44n7h2GLqirsnNkSA0r1Yg+PTLW2to36A6G/yZTVzpLJnDY7fIkdX0Ww5Haid lVhXGZo1ai0oQqWnizhGZmDMWJYuzkVqyOnaG/2A796xMB13GorPLPyQg3SoS2evw1EfU5BYOMn uLeSn2DBU/nX9PJJzNF/djHPiB0J X-Received: by 2002:a05:600c:1c21:b0:4bb:52bd:a3c7 with SMTP id 5b1f17b1804b1-4bb88804d41mr114084625e9.6.1795205611951; Fri, 20 Nov 2026 12:13:31 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: John Snow , Pierrick Bouvier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa Subject: [PATCH 22/22] MAINTAINERS: update security reporting links Date: Fri, 20 Nov 2026 20:05:10 +0000 Message-ID: <20261120200511.822573-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120200511.822573-1-alex.bennee@linaro.org> References: <20261120200511.822573-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1795205644120158500 We've updated the online pages but we should make sure MAINTAINERS doesn't point people to the wrong place. Signed-off-by: Alex Benn=C3=A9e --- MAINTAINERS | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 456d835ce70..c10cb0f2a0c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -82,9 +82,7 @@ F: docs/glossary.rst =20 Responsible Disclosure, Reporting Security Issues ------------------------------------------------- -W: https://wiki.qemu.org/SecurityProcess -M: Michael S. Tsirkin -L: qemu-security@nongnu.org +W: https://www.qemu.org/contribute/security-process/ =20 Trivial patches --------------- --=20 2.47.3