Skip to contentSkip to conversation

scripts/get_maintainer.pl: allow "odd fixes"

PATCH In review Michael S. Tsirkin 4 participants 11 messages Oct 21, 2014 – Oct 22, 2014 GET_MAINTAINER script

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/get_maintainer.pl: allow "odd fixes"

We have a bunch of modules in "Odd fixes" status, scripts/get_maintainer.pl ignores that.

Cc Paolo Bonzini <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Markus Armbruster <[email protected]>
---
 scripts/get_maintainer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +1 -1
index 38334de..d5eee8c 100755
@@ -514,7 +514,7 @@ sub range_is_maintained {
 	    my $type = $1;
 	    my $value = $2;
 	    if ($type eq 'S') {
-		if ($value =~ /(maintain|support)/i) {
+		if ($value =~ /(maintain|support|fix)/i) {
 		    return 1;
 		}
 	    }
Signature · 1 line
MST
Reviewed-by on v1 1/1
#1 lore raw
Quoted 17 lines · Michael S. Tsirkin

We have a bunch of modules in "Odd fixes" status, scripts/get_maintainer.pl ignores that.

Cc Paolo Bonzini <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Markus Armbruster <[email protected]>
---
  scripts/get_maintainer.pl | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +0 -0
index 38334de..d5eee8c 100755

scripts/get_maintainer.pl sub range_is_maintained { · line 520

Quoted 8 lines
scripts/get_maintainer.pl +1 -1
@@ -514,7 +514,7 @@ sub range_is_maintained {
  	    my $type = $1;
  	    my $value = $2;
  	    if ($type eq 'S') {
-		if ($value =~ /(maintain|support)/i) {
+		if ($value =~ /(maintain|support|fix)/i) {
  		    return 1;
  		}
  	    }

Looks good to me.

-Don Slutz

#2 lore raw
In reply to Michael S. Tsirkin
Quoted 8 lines · Michael S. Tsirkin

We have a bunch of modules in "Odd fixes" status, scripts/get_maintainer.pl ignores that.

Cc Paolo Bonzini <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Markus Armbruster <[email protected]>

Actually, it does not ignore that.
What it does it list status as "odd fixer".

So this boils down to the fact that we use "odd fixer" incorrectly.

I will apply this for now but maybe we should change MAINTAINERS switching all "Odd fixes" to "Maintained" and then revert this patch.

Thoughts?

Quoted 19 lines
---
 scripts/get_maintainer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +1 -1
index 38334de..d5eee8c 100755
@@ -514,7 +514,7 @@ sub range_is_maintained {
 	    my $type = $1;
 	    my $value = $2;
 	    if ($type eq 'S') {
-		if ($value =~ /(maintain|support)/i) {
+		if ($value =~ /(maintain|support|fix)/i) {
 		    return 1;
 		}
 	    }
Signature · 1 line
MST
#3 lore raw
Quoted 11 lines · Michael S. Tsirkin

Actually, it does not ignore that.
What it does it list status as "odd fixer".

So this boils down to the fact that we use "odd fixer" incorrectly.

I will apply this for now but maybe we should change MAINTAINERS switching all "Odd fixes" to "Maintained" and then revert this patch.

Thoughts?

To me "odd fixes" means I may help shepherding your patches into the tree, but I would rather revert a buggy patch than fix it. And unless they're trivial or egregious, I would not spend much time on bug reports. It just sets expectations right.

Paolo

#8 lore raw
In reply to Michael S. Tsirkin
Quoted 4 lines · Michael S. Tsirkin
Quoted 3 lines · Michael S. Tsirkin

We have a bunch of modules in "Odd fixes" status, scripts/get_maintainer.pl ignores that.

Quoted 8 lines
Quoted 5 lines
Cc Paolo Bonzini <[email protected]>
Cc Peter Maydell <[email protected]>
Cc Markus Armbruster <[email protected]>

Actually, it does not ignore that.
What it does it list status as "odd fixer".

Like this:

    $ scripts/get_maintainer.pl -f --no-git-fallback hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE)
    Stefan Hajnoczi <[email protected]> (odd fixer:IDE)

What's wrong with that?

Quoted 8 lines

So this boils down to the fact that we use "odd fixer" incorrectly.

I will apply this for now but maybe we should change MAINTAINERS switching all "Odd fixes" to "Maintained" and then revert this patch.

Thoughts?

What exactly does this patch fix?

#9 lore raw
Quoted 7 lines · Markus Armbruster

Like this:

    $ scripts/get_maintainer.pl -f --no-git-fallback hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE)
    Stefan Hajnoczi <[email protected]> (odd fixer:IDE)

What's wrong with that?

Michael's patch fixes the case where you do _not_ have --no-git-fallback:

    $ scripts/get_maintainer.pl -f hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE,commit_signer:6/27=22%)
    Stefan Hajnoczi <[email protected]> (odd fixer:IDE,commit_signer:18/27=67%)
    John Snow <[email protected]> (commit_signer:13/27=48%)
    Paolo Bonzini <[email protected]> (commit_signer:11/27=41%)
    Fam Zheng <[email protected]> (commit_signer:4/27=15%)

With the patch:

    $ scripts/get_maintainer.pl -f hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE)
    Stefan Hajnoczi <[email protected]> (odd fixer:IDE)

which behaves the same as:

    $ scripts/get_maintainer.pl -f block/qed.c
    Kevin Wolf <[email protected]> (supporter:Block)
    Stefan Hajnoczi <[email protected]> (supporter:Block)

Paolo

#4 lore raw
In reply to Paolo Bonzini
Quoted 7 lines · Paolo Bonzini
Quoted 6 lines · Michael S. Tsirkin

Actually, it does not ignore that.
What it does it list status as "odd fixer".

So this boils down to the fact that we use "odd fixer" incorrectly.

Quoted 8 lines
Quoted 5 lines

I will apply this for now but maybe we should change MAINTAINERS switching all "Odd fixes" to "Maintained" and then revert this patch.

Thoughts?

To me "odd fixes" means I may help shepherding your patches into the tree, but I would rather revert a buggy patch than fix it.

OK but this is not what MAINTAINERS says:

Odd Fixes: It has a maintainer but they don't have time to do
much other than throw the odd patch in. See below.

I don't know what "See below" refers to.
But it does seem to imply maintainers don't have time to review patches, so at some level, enabling fallback in this case seems to make sense.

Quoted 4 lines

they're trivial or egregious, I would not spend much time on bug reports. It just sets expectations right.

Paolo

#10 lore raw
In reply to Paolo Bonzini
Quoted 25 lines · Paolo Bonzini
Quoted 7 lines · Markus Armbruster

Like this:

    $ scripts/get_maintainer.pl -f --no-git-fallback hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE)
    Stefan Hajnoczi <[email protected]> (odd fixer:IDE)

What's wrong with that?

Michael's patch fixes the case where you do _not_ have --no-git-fallback:

    $ scripts/get_maintainer.pl -f hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE,commit_signer:6/27=22%)
    Stefan Hajnoczi <[email protected]> (odd
fixer:IDE,commit_signer:18/27=67%)
    John Snow <[email protected]> (commit_signer:13/27=48%)
    Paolo Bonzini <[email protected]> (commit_signer:11/27=41%)
    Fam Zheng <[email protected]> (commit_signer:4/27=15%)

With the patch:

    $ scripts/get_maintainer.pl -f hw/ide/core.c 
    Kevin Wolf <[email protected]> (odd fixer:IDE)
    Stefan Hajnoczi <[email protected]> (odd fixer:IDE)
Quoted 5 lines

which behaves the same as:

    $ scripts/get_maintainer.pl -f block/qed.c
    Kevin Wolf <[email protected]> (supporter:Block)
    Stefan Hajnoczi <[email protected]> (supporter:Block)

Got it, thanks!

Shows how automatic --no-git-fallback has become for me...

Quoted 10 lines
Quoted 10 lines
Quoted 8 lines

So this boils down to the fact that we use
"odd fixer" incorrectly.

I will apply this for now but maybe we should
change MAINTAINERS switching all "Odd fixes" to
"Maintained" and then revert this patch.

Thoughts?

What exactly does this patch fix?

No objections to applying the patch.

#5 lore raw
In reply to Michael S. Tsirkin
Quoted 6 lines · Michael S. Tsirkin
Quoted 3 lines
Quoted 3 lines

To me "odd fixes" means I may help shepherding your patches into the tree, but I would rather revert a buggy patch than fix it.

OK but this is not what MAINTAINERS says:

Quoted 8 lines

Odd Fixes: It has a maintainer but they don't have time to do
much other than throw the odd patch in. See below.

I don't know what "See below" refers to.
But it does seem to imply maintainers don't have time to review patches, so at some level, enabling fallback in this case seems to make sense.

To me it means that I have time to review patches, but not to do my own work on it.

Paolo

#6 lore raw
Quoted 18 lines · Paolo Bonzini
Quoted 6 lines · Michael S. Tsirkin
Quoted 3 lines
Quoted 3 lines

To me "odd fixes" means I may help shepherding your patches into the tree, but I would rather revert a buggy patch than fix it.

OK but this is not what MAINTAINERS says:

Quoted 8 lines

Odd Fixes: It has a maintainer but they don't have time to do
much other than throw the odd patch in. See below.

I don't know what "See below" refers to.
But it does seem to imply maintainers don't have time to review patches, so at some level, enabling fallback in this case seems to make sense.

Quoted 4 lines

To me it means that I have time to review patches, but not to do my own work on it.

Paolo

Intersting.
review is "other than throw the odd patch in" so it's hardly the literal meaning of this text.

Signature · 1 line
MST
#7 lore raw
Quoted 6 lines · Michael S. Tsirkin
Quoted 2 lines

To me it means that I have time to review patches, but not to do my own work on it.

Intersting.
review is "other than throw the odd patch in" so it's hardly the literal meaning of this text.

Well, review is just the prerequisite/necessary evil for throwing the odd patch in. :)

Paolo