Skip to contentSkip to conversation

maintainers: add regex matching for xsm

PATCH Superseded Daniel P. Smith 3 participants 5 messages May 19, 2023 – May 22, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maintainers: add regex matching for xsm

XSM is a subsystem where it is equally important of how and where its hooks are called as is the implementation of the hooks. The people best suited for evaluating the how and where are the XSM maintainers and reviewers. This creates a challenge as the hooks are used throughout the hypervisor for which the XSM maintainers and reviewers are not, and should not be, a reviewer for each of these subsystems in the MAINTAINERS file. Though the MAINTAINERS file does support the use of regex matches, 'K' identifier, that are applied to both the commit message and the commit delta. Adding the 'K' identifier will declare that any patch relating to XSM require the input from the XSM maintainers and reviewers. For those that use the get_maintianers script, the 'K' identifier will automatically add the XSM maintainers and reviewers. Any one not using get_maintainers, it will be their responsibility to ensure that if their work touches and XSM hook, to ensure the XSM maintainers and reviewers are copied.

This patch adds a pair of regex expressions to the XSM section. The first is xsm_.* which seeks to match XSM hooks in the commit's delta. The second is \b(xsm|XSM)\b which seeks to match strictly the words xsm or XSM and should not capture words with a substring of "xsm".

---
 MAINTAINERS | 2 ++
 1 file changed, 2 insertions(+)
MAINTAINERS +2 -0
index f2f1881b32..f7c8961dbb 100644
@@ -674,6 +674,8 @@ F:	tools/flask/
 F:	xen/include/xsm/
 F:	xen/xsm/
 F:	docs/misc/xsm-flask.txt
+K:  xsm_.*
+K:  \b(xsm|XSM)\b
 
 THE REST
 M:	Andrew Cooper <[email protected]>
Signature · 1 line
2.20.1
#1 lore raw
Quoted 11 lines · Daniel P. Smith

XSM is a subsystem where it is equally important of how and where its hooks are called as is the implementation of the hooks. The people best suited for evaluating the how and where are the XSM maintainers and reviewers. This creates a challenge as the hooks are used throughout the hypervisor for which the XSM maintainers and reviewers are not, and should not be, a reviewer for each of these subsystems in the MAINTAINERS file. Though the MAINTAINERS file does support the use of regex matches, 'K' identifier, that are applied to both the commit message and the commit delta. Adding the 'K' identifier will declare that any patch relating to XSM require the input from the XSM maintainers and reviewers. For those that use the get_maintianers script, the 'K' identifier will automatically add the XSM maintainers and reviewers.

With, aiui, a fair chance of false positives when e.g. XSM hook invocations are only in patch context. Much like ...

Quoted 3 lines

Any one not using
get_maintainers, it will be their responsibility to ensure that if their work touches and XSM hook, to ensure the XSM maintainers and reviewers are copied.

... manual intervention is needed in the case of not using the script, I think people should also be at least asked to see about avoiding stray Cc-s in that case. Unless of course I'm misreading get_maintainers.pl (my Perl isn't really great) or the script would be adjusted to only look at added/ removed lines (albeit even that would leave a certain risk of false positives).

MAINTAINERS F: tools/flask/ · line 678

Quoted 8 lines
MAINTAINERS +2 -0
@@ -674,6 +674,8 @@ F:	tools/flask/
 F:	xen/include/xsm/
 F:	xen/xsm/
 F:	docs/misc/xsm-flask.txt
+K:  xsm_.*
+K:  \b(xsm|XSM)\b

Nit: Please make padding match that of adjacent lines.

Jan

Acked-by
#2 lore raw

Hi,

Quoted 16 lines · Jan Beulich
Quoted 11 lines · Daniel P. Smith

XSM is a subsystem where it is equally important of how and where its hooks are called as is the implementation of the hooks. The people best suited for evaluating the how and where are the XSM maintainers and reviewers. This creates a challenge as the hooks are used throughout the hypervisor for which the XSM maintainers and reviewers are not, and should not be, a reviewer for each of these subsystems in the MAINTAINERS file. Though the MAINTAINERS file does support the use of regex matches, 'K' identifier, that are applied to both the commit message and the commit delta. Adding the 'K' identifier will declare that any patch relating to XSM require the input from the XSM maintainers and reviewers. For those that use the get_maintianers script, the 'K' identifier will automatically add the XSM maintainers and reviewers.

With, aiui, a fair chance of false positives when e.g. XSM hook invocations are only in patch context. Much like ...

Quoted 7 lines
Quoted 3 lines

Any one not using
get_maintainers, it will be their responsibility to ensure that if their work touches and XSM hook, to ensure the XSM maintainers and reviewers are copied.

... manual intervention is needed in the case of not using the script, I think people should also be at least asked to see about avoiding stray Cc-s in that case.

I don't particularly like this suggestion because the sender may mistakenly believe this is a "stray CC".

Personally, I would prefer to be in CC more often than less often. I think we should give the choice to Daniel to decide whether he is happy to be in CC potentially more often.

If it is becoming too much then we can decide to adjust the script.

Quoted 5 lines

Unless of course I'm misreading get_maintainers.pl (my Perl isn't really great) or the script would be adjusted to only look at added/ removed lines (albeit even that would leave a certain risk of false positives).

Quoted 8 lines

MAINTAINERS F: tools/flask/ · line 678

Quoted 8 lines
MAINTAINERS +2 -0
@@ -674,6 +674,8 @@ F:	tools/flask/
  F:	xen/include/xsm/
  F:	xen/xsm/
  F:	docs/misc/xsm-flask.txt
+K:  xsm_.*
+K:  \b(xsm|XSM)\b

Aside the NIT from Jan, this change is only affecting the number of e-mails the XSM maintainers will receive. So:

Cheers,

Signature · 1 line
Julien Grall
#4 lore raw
In reply to Jan Beulich
Quoted 13 lines · Jan Beulich
Quoted 11 lines · Daniel P. Smith

XSM is a subsystem where it is equally important of how and where its hooks are called as is the implementation of the hooks. The people best suited for evaluating the how and where are the XSM maintainers and reviewers. This creates a challenge as the hooks are used throughout the hypervisor for which the XSM maintainers and reviewers are not, and should not be, a reviewer for each of these subsystems in the MAINTAINERS file. Though the MAINTAINERS file does support the use of regex matches, 'K' identifier, that are applied to both the commit message and the commit delta. Adding the 'K' identifier will declare that any patch relating to XSM require the input from the XSM maintainers and reviewers. For those that use the get_maintianers script, the 'K' identifier will automatically add the XSM maintainers and reviewers.

Quoted 2 lines

With, aiui, a fair chance of false positives when e.g. XSM hook invocations are only in patch context. Much like ...

I was torn between matching lines with xsm_ and matching lines with the first non-whitespace character being a + and having xsm_. In the end, I opted for the former because the concern is not just a change to the line with the XSM hook, but the changing context around the hook. As a result, yes, there will be false positives as well as the potentially false negatives as a relevant context change may happen far enough outside the diff scope. Regardless, the end result will be an increased awareness at the cost of some noise. INHO I find this to be a better situation than the current place we are at today.

Quoted 11 lines
Quoted 3 lines

Any one not using
get_maintainers, it will be their responsibility to ensure that if their work touches and XSM hook, to ensure the XSM maintainers and reviewers are copied.

... manual intervention is needed in the case of not using the script, I think people should also be at least asked to see about avoiding stray Cc-s in that case. Unless of course I'm misreading get_maintainers.pl (my Perl isn't really great) or the script would be adjusted to only look at added/ removed lines (albeit even that would leave a certain risk of false positives).

Quoted 10 lines

MAINTAINERS F: tools/flask/ · line 678

Quoted 8 lines
MAINTAINERS +2 -0
@@ -674,6 +674,8 @@ F:	tools/flask/
  F:	xen/include/xsm/
  F:	xen/xsm/
  F:	docs/misc/xsm-flask.txt
+K:  xsm_.*
+K:  \b(xsm|XSM)\b

Nit: Please make padding match that of adjacent lines.

s
Apologies, I didn't catch expandtab was on, will resubmit with hard tabs in place.

v/r,
dps

#3 lore raw
In reply to Julien Grall
Quoted 49 lines · Julien Grall

Hi,

Quoted 16 lines · Jan Beulich
Quoted 11 lines · Daniel P. Smith

XSM is a subsystem where it is equally important of how and where its hooks are called as is the implementation of the hooks. The people best suited for evaluating the how and where are the XSM maintainers and reviewers. This creates a challenge as the hooks are used throughout the hypervisor for which the XSM maintainers and reviewers are not, and should not be, a reviewer for each of these subsystems in the MAINTAINERS file. Though the MAINTAINERS file does support the use of regex matches, 'K' identifier, that are applied to both the commit message and the commit delta. Adding the 'K' identifier will declare that any patch relating to XSM require the input from the XSM maintainers and reviewers. For those that use the get_maintianers script, the 'K' identifier will automatically add the XSM maintainers and reviewers.

With, aiui, a fair chance of false positives when e.g. XSM hook invocations are only in patch context. Much like ...

Quoted 7 lines
Quoted 3 lines

Any one not using
get_maintainers, it will be their responsibility to ensure that if their work touches and XSM hook, to ensure the XSM maintainers and reviewers are copied.

... manual intervention is needed in the case of not using the script, I think people should also be at least asked to see about avoiding stray Cc-s in that case.

I don't particularly like this suggestion because the sender may mistakenly believe this is a "stray CC".

Personally, I would prefer to be in CC more often than less often. I think we should give the choice to Daniel to decide whether he is happy to be in CC potentially more often.

If it is becoming too much then we can decide to adjust the script.

Quoted 5 lines

Unless of course I'm misreading get_maintainers.pl (my Perl isn't really great) or the script would be adjusted to only look at added/ removed lines (albeit even that would leave a certain risk of false positives).

Quoted 8 lines

MAINTAINERS F: tools/flask/ · line 678

Quoted 8 lines
MAINTAINERS +0 -0
@@ -674,6 +674,8 @@ F:    tools/flask/

  F:    xen/include/xsm/
  F:    xen/xsm/
  F:    docs/misc/xsm-flask.txt

MAINTAINERS +2 -0
+K:  xsm_.*
+K:  \b(xsm|XSM)\b

Aside the NIT from Jan, this change is only affecting the number of e-mails the XSM maintainers will receive. So:

Quoted 1 line

Apologies, I missed your ack before I sent v2 out.

v/r,
dps