Skip to contentSkip to conversation

get_maintainer.pl: Add support for moderated lists

PATCH In review Richard Weinberger 4 participants 10 messages Feb 29, 2012 – Mar 2, 2012 GET_MAINTAINER script

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 get_maintainer.pl: Add support for moderated lists

Currently get_maintainer.pl reports moderated lists as open, which is just wrong.

---
 scripts/get_maintainer.pl |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
scripts/get_maintainer.pl +7 -2
index f32a04c..b9bcfb6 100755
@@ -1027,8 +1027,13 @@ sub add_categories {
 		    if ($email_list) {
 			if (!$hash_list_to{lc($list_address)}) {
 			    $hash_list_to{lc($list_address)} = 1;
-			    push(@list_to, [$list_address,
-					    "open list${list_role}"]);
+			    if ($list_additional =~ m/moderated/) {
+				push(@list_to, [$list_address,
+						"moderated list${list_role}"]);
+			    } else {
+				push(@list_to, [$list_address,
+						"open list${list_role}"]);
+			    }
 			}
 		    }
 		}
Signature · 1 line
1.7.7.3
maintainer
#1 lore raw
Quoted 2 lines · Richard Weinberger

Currently get_maintainer.pl reports moderated lists as open, which is just wrong.

Hi Richard.

<shrug> From my perspective, it's correct and simple.

Moderated lists just means your email may get delayed and you may get a "delayed due to moderation" email.

It's not a big deal to me though if Andrew wants to pick this up. It seems that all current lists are marked the same way. You might consider using a case insensitive m/\(moderated/i though in case some list has moderated in the email address itself.

cheers, Joe

Quoted 25 lines
---
 scripts/get_maintainer.pl |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
scripts/get_maintainer.pl +7 -2
index f32a04c..b9bcfb6 100755
@@ -1027,8 +1027,13 @@ sub add_categories {
 		    if ($email_list) {
 			if (!$hash_list_to{lc($list_address)}) {
 			    $hash_list_to{lc($list_address)} = 1;
-			    push(@list_to, [$list_address,
-					    "open list${list_role}"]);
+			    if ($list_additional =~ m/moderated/) {
+				push(@list_to, [$list_address,
+						"moderated list${list_role}"]);
+			    } else {
+				push(@list_to, [$list_address,
+						"open list${list_role}"]);
+			    }
 			}
 		    }
 		}
#2 lore raw

Joe,

Am 29.02.2012 20:58, schrieb Joe Perches:

Quoted 4 lines

<shrug> From my perspective, it's correct and simple.

Moderated lists just means your email may get delayed and you may get a "delayed due to moderation" email.

Most moderated lists are "moderated" by nobody and the patch goes to /dev/null.

Quoted 5 lines

It's not a big deal to me though if Andrew wants to pick this up. It seems that all current lists are marked the same way. You might consider using a case insensitive m/\(moderated/i though in case some list has moderated in the email address itself.

Let's keep the regular expressions as simple as possible. get_maintainer.pl is already damn slow enough.

Thanks,
//richard

maintainer
#3 lore raw
Quoted 11 lines · Richard Weinberger

Joe,

Am 29.02.2012 20:58, schrieb Joe Perches:

Quoted 4 lines

<shrug> From my perspective, it's correct and simple.

Moderated lists just means your email may get delayed and you may get a "delayed due to moderation" email.

Most moderated lists are "moderated" by nobody and the patch goes to /dev/null.

Quoted 7 lines
Quoted 5 lines

It's not a big deal to me though if Andrew wants to pick this up. It seems that all current lists are marked the same way. You might consider using a case insensitive m/\(moderated/i though in case some list has moderated in the email address itself.

Let's keep the regular expressions as simple as possible.

No, let's make the expressions as specific as possible. The expression change is trivial and wouldn't have much effect on a 25Mhz 386.

Quoted 1 line

get_maintainer.pl is already damn slow enough.

It's pretty darn fast if you don't use --git or --git-fallback. --git is the thing that's slow.

On my slow netbook:

$ time ./scripts/get_maintainer.pl --nogit --nogit-fallback -f drivers/net/ethernet/intel/e1000e/mac.c
Jeff Kirsher <[email protected]> (supporter:INTEL ETHERNET DR...)
Jesse Brandeburg <[email protected]> (supporter:INTEL ETHERNET DR...)
Bruce Allan <[email protected]> (supporter:INTEL ETHERNET DR...)
Carolyn Wyborny <[email protected]> (supporter:INTEL ETHERNET DR...)
Don Skidmore <[email protected]> (supporter:INTEL ETHERNET DR...)
Greg Rose <[email protected]> (supporter:INTEL ETHERNET DR...)
Peter P Waskiewicz Jr <[email protected]> (supporter:INTEL ETHERNET DR...)
Alex Duyck <[email protected]> (supporter:INTEL ETHERNET DR...)
John Ronciak <[email protected]> (supporter:INTEL ETHERNET DR...)
[email protected] (open list:INTEL ETHERNET DR...)
[email protected] (open list:NETWORKING DRIVERS)
[email protected] (open list)

real 0m0.716s
user 0m0.512s
sys 0m0.016s

An old desktop:

$ time ./scripts/get_maintainer.pl --nogit --nogit-fallback -f drivers/net/ethernet/intel/e1000e/mac.c
Jeff Kirsher <[email protected]> (supporter:INTEL ETHERNET DR...)
Jesse Brandeburg <[email protected]> (supporter:INTEL ETHERNET DR...)
Bruce Allan <[email protected]> (supporter:INTEL ETHERNET DR...)
Carolyn Wyborny <[email protected]> (supporter:INTEL ETHERNET DR...)
Don Skidmore <[email protected]> (supporter:INTEL ETHERNET DR...)
Greg Rose <[email protected]> (supporter:INTEL ETHERNET DR...)
Peter P Waskiewicz Jr <[email protected]> (supporter:INTEL ETHERNET DR...)
Alex Duyck <[email protected]> (supporter:INTEL ETHERNET DR...)
John Ronciak <[email protected]> (supporter:INTEL ETHERNET DR...)
[email protected] (open list:INTEL ETHERNET DR...)
[email protected] (open list:NETWORKING DRIVERS)
[email protected] (open list)

real 0m0.250s
user 0m0.128s
sys 0m0.024s

Using git on the desktop (linux-next)

$ time ./scripts/get_maintainer.pl -f drivers/net/ethernet/intel/e1000e/mac.c
Jeff Kirsher <[email protected]> (supporter:INTEL ETHERNET DR...,commit_signer:17/19=89%)
Jesse Brandeburg <[email protected]> (supporter:INTEL ETHERNET DR...)
Bruce Allan <[email protected]> (supporter:INTEL ETHERNET DR...,commit_signer:15/19=79%)
Carolyn Wyborny <[email protected]> (supporter:INTEL ETHERNET DR...)
Don Skidmore <[email protected]> (supporter:INTEL ETHERNET DR...)
Greg Rose <[email protected]> (supporter:INTEL ETHERNET DR...)
Peter P Waskiewicz Jr <[email protected]> (supporter:INTEL ETHERNET DR...)
Alex Duyck <[email protected]> (supporter:INTEL ETHERNET DR...)
John Ronciak <[email protected]> (supporter:INTEL ETHERNET DR...)
"David S. Miller" <[email protected]> (commit_signer:2/19=11%)
Tobias Klauser <[email protected]> (commit_signer:1/19=5%)
Jon Mason <[email protected]> (commit_signer:1/19=5%)
[email protected] (open list:INTEL ETHERNET DR...)
[email protected] (open list:NETWORKING DRIVERS)
[email protected] (open list)

real 0m13.357s
user 0m9.649s
sys 0m0.388s

#4 lore raw
In reply to Richard Weinberger
Quoted 8 lines · On Wed, 29 Feb 2012 21:06:45 +0100 Richard Weinberger <[email protected]> wrote:

Am 29.02.2012 20:58, schrieb Joe Perches:

Quoted 4 lines

<shrug> From my perspective, it's correct and simple.

Moderated lists just means your email may get delayed and you may get a "delayed due to moderation" email.

Most moderated lists are "moderated" by nobody and the patch goes to /dev/null.

That's a big problem - we don't want people to send their fixes and bug reports into black holes.

So yes, I think that teaching get_maintainer to emit black hole warnings is a good idea.

Problem is, I don't think the string "moderated" explains the situation very well for the uninitiated :(

#5 lore raw

Am 01.03.2012 01:02, schrieb Andrew Morton:

Quoted 2 lines

Problem is, I don't think the string "moderated" explains the situation very well for the uninitiated :(

At least it does not lie by claiming it's open. ;-)

Thanks,
//richard

maintainer
#6 lore raw
In reply to Andrew Morton
Quoted 12 lines · Andrew Morton
Quoted 8 lines · On Wed, 29 Feb 2012 21:06:45 +0100 Richard Weinberger <[email protected]> wrote:

Am 29.02.2012 20:58, schrieb Joe Perches:

Quoted 4 lines

<shrug> From my perspective, it's correct and simple.

Moderated lists just means your email may get delayed and you may get a "delayed due to moderation" email.

Most moderated lists are "moderated" by nobody and the patch goes to /dev/null.

Quoted 8 lines

That's a big problem - we don't want people to send their fixes and bug reports into black holes.

So yes, I think that teaching get_maintainer to emit black hole warnings is a good idea.

Problem is, I don't think the string "moderated" explains the situation very well for the uninitiated :(

It's also false. Most moderated lists in MAINTAINERS (and I've probably send patches to most of them) are in fact moderated.

My patches generally show up in their list archives.

#7 lore raw

Am 01.03.2012 02:17, schrieb Joe Perches:

Quoted 19 lines · Andrew Morton
Quoted 18 lines
Quoted 8 lines · On Wed, 29 Feb 2012 21:06:45 +0100 Richard Weinberger <[email protected]> wrote:

Am 29.02.2012 20:58, schrieb Joe Perches:

Quoted 4 lines

<shrug> From my perspective, it's correct and simple.

Moderated lists just means your email may get delayed and you may get a "delayed due to moderation" email.

Most moderated lists are "moderated" by nobody and the patch goes to /dev/null.

That's a big problem - we don't want people to send their fixes and bug reports into black holes.

So yes, I think that teaching get_maintainer to emit black hole warnings is a good idea.

Quoted 6 lines
Quoted 2 lines

Problem is, I don't think the string "moderated" explains the situation very well for the uninitiated :(

It's also false. Most moderated lists in MAINTAINERS (and I've probably send patches to most of them) are in fact moderated.

What about [email protected]?
None of my patches shows up there:
http://lists.openrisc.net/pipermail/openrisc/

Quoted 2 lines

My patches generally show up in their list archives.

You must be a lucky guy. ;-)

Thanks,
//richard

maintainer Acked-by on v1 1/1
#9 lore raw
In reply to Richard Weinberger
Quoted 4 lines · Richard Weinberger

Currently get_maintainer.pl reports moderated lists as open, which is just wrong.

scripts/get_maintainer.pl

Quoted 1 line
scripts/get_maintainer.pl +0 -0

[]

Quoted 13 lines
scripts/get_maintainer.pl +7 -2
@@ -1027,8 +1027,13 @@ sub add_categories {
 		    if ($email_list) {
 			if (!$hash_list_to{lc($list_address)}) {
 			    $hash_list_to{lc($list_address)} = 1;
-			    push(@list_to, [$list_address,
-					    "open list${list_role}"]);
+			    if ($list_additional =~ m/moderated/) {
+				push(@list_to, [$list_address,
+						"moderated list${list_role}"]);
+			    } else {
+				push(@list_to, [$list_address,
+						"open list${list_role}"]);
+			    }
#8 lore raw
In reply to Richard Weinberger
Quoted 5 lines · Richard Weinberger

What about [email protected]?
None of my patches shows up there:
http://lists.openrisc.net/pipermail/openrisc/

Just for the record, that's the wrong URL and, consequently, wrong mailing list... it should be:
http://lists.openrisc.net/pipermail/linux/

I don't want to be accused of maintaining a black hole... ;)

The list is moderated, but only to keep unserious posts to a minimum (i.e. spam).

/Jonas