From nobody Tue Dec 16 05:49:25 2025 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C5E820127C; Mon, 3 Feb 2025 11:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738581236; cv=none; b=tNknxnJOYV2VeZUo7cOYpRMLJDLkxPykm8W5qBjm2INVo90xmEnlxlAo5XG0VUr9HnF6pZmMzRnTs9gS7hrGXJswO8EZWW7G7NK3o+ugQJGgp1m46+6Eml3Ud/sjHh1W6imsJMRARsG3VlkkKXLU2jSX773KGnbEbYtVXgHLzkc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738581236; c=relaxed/simple; bh=PSOhdo2wG1nNZgNFaChydOIJHrYmrBB3DhxiVc/T3Zs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QNeIdUMtzQ30p4gkdMi6dC5OQZd6cQc0+Yhp9CvmKp187wGsPHXj6hUv3jKOuro7wrVs4UaWRkzU8o+jsXi68WyYfjqhHH6YqvBGKYsAM8ytGZoNDB4YQt5MAY61tCnSxgA9GhoVbyAefKhgwVTOo/O0NsN+Vt0cyRvGA853FaU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=YDcW0LCE; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=YzP4I6Wf; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=u3y1G6b2; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=ywTI7Dt8; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="YDcW0LCE"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="YzP4I6Wf"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="u3y1G6b2"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="ywTI7Dt8" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D5B021F38F; Mon, 3 Feb 2025 11:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1738581229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Su8HeT8QqYu4PRQk3bpU6SicYtgiqJsFw1ydru1a46k=; b=YDcW0LCEfgFqk3HjSlJT7EdYDjudubJheXGAtKAAz+ZpC2CtYho0TtALQEZRNDhRGWOpPy 1nc/DPUewYtw5eVwLOBbw1Uyi8datCpAidJigshk66M3EikMYb+bLPj+dSrIPgWvZIW7oS 4liDRr4/WdqcGxnrwbykGMd6rBdIDXs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1738581229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Su8HeT8QqYu4PRQk3bpU6SicYtgiqJsFw1ydru1a46k=; b=YzP4I6WfMmHGXwtfosAvK76epjecULIMXiiMsbizaPqOw/51hUUSnD4/7O+J+yTeUSkj1/ Ww3rfQ5F8av+/rAQ== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=u3y1G6b2; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=ywTI7Dt8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1738581224; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Su8HeT8QqYu4PRQk3bpU6SicYtgiqJsFw1ydru1a46k=; b=u3y1G6b2ik+SA4SsfuQPGNohd6GzsXCperyb0o15fNsYL+ZFYYQIxhIPRNISytj2s7KiZ0 aK389amSfDoMtIClQ9I+C2xRcLLfOwBkj0Lh+kLK7mdl/2lvLthyGBQXbx2hnLXyZoSvk6 8rGGDTEhOPIfQrXqDXxuXrMQ5YyWIL0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1738581224; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Su8HeT8QqYu4PRQk3bpU6SicYtgiqJsFw1ydru1a46k=; b=ywTI7Dt8EWBaZg2hWVMJbcDNg5ieRNT1m5jkV33eQzrz04VMFZnr+Od/XM7hiUoxa9NbTM OOErF/WzBjQ0g6DQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C332F13A7F; Mon, 3 Feb 2025 11:13:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id +KddL+ikoGdNAwAAD6G6ig (envelope-from ); Mon, 03 Feb 2025 11:13:44 +0000 From: Vlastimil Babka Date: Mon, 03 Feb 2025 12:13:16 +0100 Subject: [PATCH v2 1/2] get_maintainer: add --substatus for reporting subsystem status Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250203-b4-get_maintainer-v2-1-83ba008b491f@suse.cz> References: <20250203-b4-get_maintainer-v2-0-83ba008b491f@suse.cz> In-Reply-To: <20250203-b4-get_maintainer-v2-0-83ba008b491f@suse.cz> To: Joe Perches , Andrew Morton Cc: workflows@vger.kernel.org, Theodore Ts'o , Bryan O'Donoghue , Thorsten Leemhuis , Kees Cook , linux-kernel@vger.kernel.org, Vlastimil Babka X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5312; i=vbabka@suse.cz; h=from:subject:message-id; bh=PSOhdo2wG1nNZgNFaChydOIJHrYmrBB3DhxiVc/T3Zs=; b=owEBbQGS/pANAwAIAbvgsHXSRYiaAcsmYgBnoKTiPHIIgmm2CeirBP9/ruJY6uKMsDl8jVCB2 +s1LbjanWeJATMEAAEIAB0WIQR7u8hBFZkjSJZITfG74LB10kWImgUCZ6Ck4gAKCRC74LB10kWI midiB/sGfOcldvIic33b/5+kdfxZzCjynq6OQhMqqti4h8hDA831WsMGTN9a0SeDWczVumJSeiX +Hx5tkgvwiaktXlfW0JqtenvEkiuzDjaqqePxV1iuDQmy1p5XVZcCrHsoeYS9p2ty6mxkmypk08 ntPF+uEZgyRMFh5ORklc/gQD/cG76zk7uql6V7EHDuE/HRX9vdhqQZeLfq52PUNyiSWsCUzm8n8 COlxVjDKWpBZVjMGhEAJQ5N4x523Kn8EURXVI3ECLtekKdp3pHv0SIhrWFKHGVu253eeR1NvM+A dWqwlxP2wS9f7zAgHMQbr6wtEpMRFoPO3pGcWVsZYECISJTn X-Developer-Key: i=vbabka@suse.cz; a=openpgp; fpr=A940D434992C2E8E99103D50224FA7E7CC82A664 X-Rspamd-Queue-Id: D5B021F38F X-Spam-Score: -4.51 X-Rspamd-Action: no action X-Spamd-Result: default: False [-4.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MID_RHS_MATCH_FROM(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[9]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo,suse.cz:dkim,suse.cz:mid,suse.cz:email]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Level: The subsystem status is currently reported with --role(stats) by adjusting the maintainer role for any status different from Maintained. This has two downsides: - if a subsystem has only reviewers or mailing lists and no maintainers, the status is not reported (i.e. typically, Orphan subsystems have no maintainers) - the Supported status means that someone is paid for maintaining, but it is reported as "supporter" for all the maintainers, which can be incorrect. People have been also confused about what "supporter" means. This patch introduces a new --substatus option and functionality aimed to report the subsystem status separately, without adjusting the reported maintainer role. After the e-mails are output, the status of subsystems will follow, for example: ... linux-kernel@vger.kernel.org (open list:LIBRARY CODE) LIBRARY CODE status: Supported In order to allow replacing the role rewriting seamlessly, the new option works as follows: - it is automatically enabled when --email and --role are enabled (the defaults include --email and --rolestats which implies --role) - usages with --norolestats e.g. for git's --cc-cmd will thus need no adjustments - the most common Maintained status is not reported at all, to reduce unnecessary noise - THE REST catch-all section (contains lkml) status is not reported - the existing --subsystem and --status options are unaffected so their users will need no adjustments Signed-off-by: Vlastimil Babka Acked-by: Lorenzo Stoakes Tested-by: Geert Uytterhoeven Tested-by: Uwe Kleine-K=C3=B6nig --- scripts/get_maintainer.pl | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 5ac02e19873722d0f5bf3ac8de8374338c7bddc3..da7fc70f17cd8d46b45da8db0b2= 029bb11b25af1 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -50,6 +50,7 @@ my $output_multiline =3D 1; my $output_separator =3D ", "; my $output_roles =3D 0; my $output_rolestats =3D 1; +my $output_substatus =3D undef; my $output_section_maxlen =3D 50; my $scm =3D 0; my $tree =3D 1; @@ -269,6 +270,7 @@ if (!GetOptions( 'separator=3Ds' =3D> \$output_separator, 'subsystem!' =3D> \$subsystem, 'status!' =3D> \$status, + 'substatus!' =3D> \$output_substatus, 'scm!' =3D> \$scm, 'tree!' =3D> \$tree, 'web!' =3D> \$web, @@ -314,6 +316,10 @@ $output_multiline =3D 0 if ($output_separator ne ", "); $output_rolestats =3D 1 if ($interactive); $output_roles =3D 1 if ($output_rolestats); =20 +if (!defined $output_substatus) { + $output_substatus =3D $email && $output_roles; +} + if ($sections || $letters ne "") { $sections =3D 1; $email =3D 0; @@ -637,6 +643,7 @@ my @web =3D (); my @bug =3D (); my @subsystem =3D (); my @status =3D (); +my @substatus =3D (); my %deduplicate_name_hash =3D (); my %deduplicate_address_hash =3D (); =20 @@ -651,6 +658,11 @@ if ($scm) { output(@scm); } =20 +if ($output_substatus) { + @substatus =3D uniq(@substatus); + output(@substatus); +} + if ($status) { @status =3D uniq(@status); output(@status); @@ -859,6 +871,7 @@ sub get_maintainers { @bug =3D (); @subsystem =3D (); @status =3D (); + @substatus =3D (); %deduplicate_name_hash =3D (); %deduplicate_address_hash =3D (); if ($email_git_all_signature_types) { @@ -1073,6 +1086,7 @@ version: $V --remove-duplicates =3D> minimize duplicate email names/addresses --roles =3D> show roles (status:subsystem, git-signer, list, etc...) --rolestats =3D> show roles and statistics (commits/total_commits, %) + --substatus =3D> show subsystem status if not Maintained (default: mat= ch --roles)" --file-emails =3D> add email addresses found in -f file (default: 0 (o= ff)) --fixes =3D> for patches, add signatures of commits with 'Fixes: ' (default: 1 (on)) --scm =3D> print SCM tree(s) if any @@ -1335,7 +1349,9 @@ sub add_categories { my $start =3D find_starting_index($index); my $end =3D find_ending_index($index); =20 - push(@subsystem, $typevalue[$start]); + my $subsystem =3D $typevalue[$start]; + push(@subsystem, $subsystem); + my $status =3D "Unknown"; =20 for ($i =3D $start + 1; $i < $end; $i++) { my $tv =3D $typevalue[$i]; @@ -1386,8 +1402,8 @@ sub add_categories { } } elsif ($ptype eq "R") { if ($email_reviewer) { - my $subsystem =3D get_subsystem_name($i); - push_email_addresses($pvalue, "reviewer:$subsystem" . $suffix); + my $subs =3D get_subsystem_name($i); + push_email_addresses($pvalue, "reviewer:$subs" . $suffix); } } elsif ($ptype eq "T") { push(@scm, $pvalue . $suffix); @@ -1397,9 +1413,14 @@ sub add_categories { push(@bug, $pvalue . $suffix); } elsif ($ptype eq "S") { push(@status, $pvalue . $suffix); + $status =3D $pvalue; } } } + + if ($subsystem ne "THE REST" and $status ne "Maintained") { + push(@substatus, $subsystem . " status: " . $status . $suffix) + } } =20 sub email_inuse { @@ -1903,6 +1924,7 @@ EOT $done =3D 1; $output_rolestats =3D 0; $output_roles =3D 0; + $output_substatus =3D 0; last; } elsif ($nr =3D~ /^\d+$/ && $nr > 0 && $nr <=3D $count) { $selected{$nr - 1} =3D !$selected{$nr - 1}; --=20 2.48.1 From nobody Tue Dec 16 05:49:25 2025 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35623202C2A; Mon, 3 Feb 2025 11:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738581236; cv=none; b=n2Wjc8ICjUIy+2I5aQYPpv6wnJhhEoUhXjATsLS+vj+bs7bsXxRqAA3SaEvpz9bLZqwJ/IZkVNQ5Ma60OB4GaW3JNLJjKKNeHHm8c48L3rjjOP66V5XFQbAle39YiRcKdyP1dBmqw5YyVzM7ZNzgUk2xRw0TyFlQEmQYajamOnA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738581236; c=relaxed/simple; bh=e7rQ6ja5aEko/PdvDV9MQiOOrhtNYuMK/XWIlX2/Y64=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TI9b7/JEpdWgL9jJkLmF6FfbFT8h04mj4E8mkll5Pu8FtYCQqTRw9Wf/19LQWYWVlX1IR1HMbEtPidIbARsdJtO3xfQA5pfidt0mShj5x1VydjoWLH236ZBjS+UIon7E7rLOASAD2Sq6cMndCfjC7vcakBH1UY1PJ7IGq4SAmdE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=mUAHpSDe; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=gfgQoOeJ; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=v+X5MjbE; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=ziMobxZ1; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="mUAHpSDe"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="gfgQoOeJ"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="v+X5MjbE"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="ziMobxZ1" Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E7F7621164; Mon, 3 Feb 2025 11:13:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1738581229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gb5zq7frvFT+WumnDDdfbhccoEdy6xM1MzWPfZkMk6o=; b=mUAHpSDe5vwJdQY9l6sZeAk2lgqT5DpLCjmFgz1GUhptWNQayhaKmOijpzF/o9ofwSW5DW pyge/eVa9TtqbgVZZABH75+s35A1usJJxM598qydI69QU7d4XrqlJ0nCnPWWvUWz9g2FEg VqqiulBy7hdsxEqP7PKXoBotAFUaLxA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1738581229; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gb5zq7frvFT+WumnDDdfbhccoEdy6xM1MzWPfZkMk6o=; b=gfgQoOeJQ0qHkNXb3JEyRqZSgwgohx8N90vSM19U1/nPs/2wJrOwXLRl3k+WqtJJ8xLI72 R+X02e2rVLj5nGBw== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1738581224; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gb5zq7frvFT+WumnDDdfbhccoEdy6xM1MzWPfZkMk6o=; b=v+X5MjbEF6yXUgShsI+DJ1Kx59U7vtL2sZEakLCBVFoM3FM2M8+t7Crh3tGxiwN4qg543H twJcqNreRhPEz0BKxC3yyfXg32kDBssO9nU3hxaEN7hjdGTylSX6QII9h+vkqPz0wiNlyR fRwP3CF/88MxDGgXZz7pu03YUB6rQ0g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1738581224; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Gb5zq7frvFT+WumnDDdfbhccoEdy6xM1MzWPfZkMk6o=; b=ziMobxZ1bAHhjHsi47Ie6TGIdL6cCZks+TvahnC+OTai6qirCg37OzGuLkjOhifDnWvD6B u8mhRdac0MQDqvCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D258013A96; Mon, 3 Feb 2025 11:13:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 0C0VM+ikoGdNAwAAD6G6ig (envelope-from ); Mon, 03 Feb 2025 11:13:44 +0000 From: Vlastimil Babka Date: Mon, 03 Feb 2025 12:13:17 +0100 Subject: [PATCH v2 2/2] get_maintainer: stop reporting subsystem status as maintainer role Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250203-b4-get_maintainer-v2-2-83ba008b491f@suse.cz> References: <20250203-b4-get_maintainer-v2-0-83ba008b491f@suse.cz> In-Reply-To: <20250203-b4-get_maintainer-v2-0-83ba008b491f@suse.cz> To: Joe Perches , Andrew Morton Cc: workflows@vger.kernel.org, Theodore Ts'o , Bryan O'Donoghue , Thorsten Leemhuis , Kees Cook , linux-kernel@vger.kernel.org, Vlastimil Babka X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2329; i=vbabka@suse.cz; h=from:subject:message-id; bh=e7rQ6ja5aEko/PdvDV9MQiOOrhtNYuMK/XWIlX2/Y64=; b=owEBbQGS/pANAwAIAbvgsHXSRYiaAcsmYgBnoKTljifJI1ftEE9Q4Cza4VPCM9k6VbLXxijZm 5oWNvUM9zuJATMEAAEIAB0WIQR7u8hBFZkjSJZITfG74LB10kWImgUCZ6Ck5QAKCRC74LB10kWI mnbaB/0W5KCbtGSA0sLJyz6Rv5jvnVZnokyA67PMzu87/QlK9CgHPfk7kaQ6u6ll1LNdO+/TbTD Rvijhz9AfV0ou+JpvN7EK528jaeUADiubMqhREcsYjTUr+O7HIaYolsWPh9Ln24XmLZsEIvfhlF nb6wIE7e3rvXjsV0nZzcJkWVs6AI153NB8HpAxKACfsAP/Huv/Dc5+R9c1l7oxgbae36oyMGAUN daMkzU0mt3CNo+5OI7qUzcxKiMgw1ZHrbxizkBhjAk4DOtsuD4ciZV9QCtMVnnVJDHxd3jbTORA JVjPQDBf+iovUAEg5IO07p4TKdUE5JdQsWA+cgGz5KAZWfjr X-Developer-Key: i=vbabka@suse.cz; a=openpgp; fpr=A940D434992C2E8E99103D50224FA7E7CC82A664 X-Spam-Level: X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_SEVEN(0.00)[9]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.cz:email,suse.cz:mid] X-Spam-Score: -4.30 X-Spam-Flag: NO After introducing the --substatus option, we can stop adjusting the reported maintainer role by the subsystem's status. For compatibility with the --git-chief-penguins option, keep the "chief penguin" role. Signed-off-by: Vlastimil Babka Reviewed-by: Lorenzo Stoakes Tested-by: Lorenzo Stoakes --- scripts/get_maintainer.pl | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index da7fc70f17cd8d46b45da8db0b2029bb11b25af1..cf902417a52cccfd5dd00ac7d2f= e43d9f43d2528 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -1084,7 +1084,7 @@ version: $V --moderated =3D> include moderated lists(s) if any (default: true) --s =3D> include subscriber only list(s) if any (default: false) --remove-duplicates =3D> minimize duplicate email names/addresses - --roles =3D> show roles (status:subsystem, git-signer, list, etc...) + --roles =3D> show roles (role:subsystem, git-signer, list, etc...) --rolestats =3D> show roles and statistics (commits/total_commits, %) --substatus =3D> show subsystem status if not Maintained (default: mat= ch --roles)" --file-emails =3D> add email addresses found in -f file (default: 0 (o= ff)) @@ -1298,8 +1298,9 @@ sub get_maintainer_role { my $start =3D find_starting_index($index); my $end =3D find_ending_index($index); =20 - my $role =3D "unknown"; + my $role =3D "maintainer"; my $subsystem =3D get_subsystem_name($index); + my $status =3D "unknown"; =20 for ($i =3D $start + 1; $i < $end; $i++) { my $tv =3D $typevalue[$i]; @@ -1307,23 +1308,13 @@ sub get_maintainer_role { my $ptype =3D $1; my $pvalue =3D $2; if ($ptype eq "S") { - $role =3D $pvalue; + $status =3D $pvalue; } } } =20 - $role =3D lc($role); - if ($role eq "supported") { - $role =3D "supporter"; - } elsif ($role eq "maintained") { - $role =3D "maintainer"; - } elsif ($role eq "odd fixes") { - $role =3D "odd fixer"; - } elsif ($role eq "orphan") { - $role =3D "orphan minder"; - } elsif ($role eq "obsolete") { - $role =3D "obsolete minder"; - } elsif ($role eq "buried alive in reporters") { + $status =3D lc($status); + if ($status eq "buried alive in reporters") { $role =3D "chief penguin"; } =20 --=20 2.48.1