New requirement for getting block layer patches merged
The time it takes for block layer patches to be reviewed and merged is a concern. Kevin and I want to discuss this issue, which was raised by Benoit, on the mailing list.
The volume of patches is so high that Kevin and I cannot review them all in a timely manner. We are adjusting the process as a result.
Summary
-------
From now on, 1 Reviewed-by from another contributor is required before Kevin and I will look at patches.
Hint: CC a regular contributor (not Kevin or me) who you think might be able to review your patches.
This will:
1. Spread the load of patch review.
2. Let Kevin and me focus on patches that are ready to be merged.
Caveats:
1. Expect a few weeks before everyone has adjusted and improvement is visible.
2. Exceptions may be made such as for security or critical bug fixes.
Read on for the rationale and more details...
Background
----------
Both regular contributors and newcomers should experience quick code review feedback so patches can be iterated and merged at a rapid pace.
Kevin and I co-maintain the block layer. Each week one of us is on full-time duty to review patches, investigate qemu.git build or test failures, and participate in the release process.
The volume of patches is so high that we have a hard time consistently providing review feedback within a reasonable timeframe.
A reminder why maintainers review patches: they are familiar with the code and often identify bugs before the patches are committed. They also take a big picture view of the codebase and can advise on the design of code, whereas individual contributors may not be aware of the activities in other areas of the code.
The challenge is making this scale. There are two ways to achieve this:
1. Increase Kevin and my productivity
2. Add more resources
Increasing productivity
-----------------------
There are 3 time-consuming activities:
1. Replying to patches that are fundamentally broken
2. Screening patches that do not meet the code submission guidelines
http://qemu-project.org/Contribute/SubmitAPatch
3. Bisecting build or test failures
If Kevin and I spend our time dealing with patches that cannot be merged we have less time to spend on realistic candidates.
#1 can be solved by requiring review from the community. This gets patches out of the way that need to be redone with more care.
#2 and #3 can be solved by automated builds and tests. I have a plan for a bot that evaluates every patch series on the mailing list. This way no human time is spent verifying that the patch meets the basic requirements.
As a result of eliminating these time-consuming activities, Kevin and I can focus on merging the good patch series.
Adding more resources
---------------------
Unfortunately, it is not easy to add more co-maintainers without losing the big picture and sacrificing code quality. Instead the focus is to delegate sections of the codebase, as was done successfully with nbd, sheepdog, vmdk, etc.
Delegating has natural boundaries like block drivers or source files. It is not possible to add more people arbitrarily and still get good results.
The alternative is to scale patch review by requiring 1 Reviewed-by before Kevin and I will look at a patch. Contributors need to participate in code review amongst each other in order to get code merged.
To keep Reviewed-by tags meaningful, they can only be accepted from regular contributors. If Kevin or I find the review quality from a person is consistently poor, we will talk to them and may not count them.
Patch review priorities
-----------------------
Benoit asked what factors influence which patch series get reviewed. I think this is less relevant with the new 1 R-b rule, but others may be wondering the same thing.
Kevin and I use multiple factors and make a subjective decision when selecting patches to review. This includes:
* Is it a bug fix?
* Is the patch series short?
* Does it touch familiar parts of the codebase?
* Does the contributor usually submit high-quality code?
* Is the design straightforward?
* Does the contributor participate in code review?
There is no formula or algorithm that Kevin or I want to commit to, because it would make the already tough review process even less motivating.
The problem is that traffic is too high for the current process, not that the patch selection algorithm isn't fair. That is why it's necessary to scale the review process (what the rest of this email is about).
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.
Great mail.
Now we need a wiki entry describing the process.
Also we need something reminding who is the maintainer of the current week.
Best regards
Benoît
Quoted 6 lines · Benoît Canet
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.Great mail.
Yup. Let's see how it works out.
Quoted 2 lines
Now we need a wiki entry describing the process.
Also we need something reminding who is the maintainer of the current week.
Usually obvious from the "applied to my tree" messages.
Hi,
Quoted 5 lines
Subject: Re: [Qemu-devel] New requirement for getting block layer patches merged
Benoît Canet <[email protected]> writes:
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.Great mail.
Yup. Let's see how it works out.
Yes. I can't agree more with you.
Recently I posted some patch series, but I can't get maintainer's feedback in time. That make me feel soulless TBH. I know maintainers are very busy usually. They need to develop their own code and also need review the contributors' code. If some other peoples can spread the load of patch review, that's a great thing IMHO.
Quoted 5 lines
Quoted 2 lines
Now we need a wiki entry describing the process.
Also we need something reminding who is the maintainer of the currentweek.
Usually obvious from the "applied to my tree" messages.
Some exciting words! :)
Best regards,
-Gonglei
Am 12.09.2014 um 09:02 hat Gonglei (Arei) geschrieben:
Quoted 17 lines
Hi,
Quoted 5 lines
Subject: Re: [Qemu-devel] New requirement for getting block layer patches merged
Benoît Canet <[email protected]> writes:
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.Great mail.
Yup. Let's see how it works out.
Quoted 6 lines
Yes. I can't agree more with you.
Recently I posted some patch series, but I can't get maintainer's feedback in time. That make me feel soulless TBH. I know maintainers are very busy usually. They need to develop their own code and also need review the contributors' code. If some other peoples can spread the load of patch review, that's a great thing IMHO.
This is what Stefan's mail was actually for in some way: Letting you know that you should get a Reviewed-by first.
At least for me, to be honest, this isn't a truly new process. I haven't been consistently requiring a Reviewed-by, but when I see someone else discuss a patch series and I don't have much time, I may scan the discussion to chime in if there is something fundamentally wrong, but otherwise let the author and the reviewer sort it out and wait until the discussion has settled. If I don't see a discussion, I might wait a few days for one.
I'll probably keep reviewing paches without an R-b when they are simple or in my area of expertise (like qcow2), like any other reviewer should. The point is just that when I don't, before you ping us maintainers about a patch, try to get a good review from some other contributor.
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Now we need a wiki entry describing the process.
Also we need something reminding who is the maintainer of the currentweek.
Usually obvious from the "applied to my tree" messages.
You should CC both of us anyway (the patch might not be merged in the same week), so it doesn't matter that much who'll be handling it.
Kevin
Quoted 36 lines
From: Kevin Wolf [mailto:[email protected]]
Sent: Friday, September 12, 2014 4:14 PM
Subject: Re: [Qemu-devel] New requirement for getting block layer patches mergedAm 12.09.2014 um 09:02 hat Gonglei (Arei) geschrieben:
Quoted 12 lines
Hi,
Quoted 10 lines
Subject: Re: [Qemu-devel] New requirement for getting block layer patches merged
Quoted 5 lines · Benoît Canet
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Great mail.
Yup. Let's see how it works out.
Yes. I can't agree more with you.
Recently I posted some patch series, but I can't get maintainer's feedback in
time.
Quoted 1 line
That make me feel soulless TBH. I know maintainers are very busy usually.
They
Quoted 2 lines
need to develop their own code and also need review the contributors' code. If some other peoples can spread the load of patch review, that's a great
thing IMHO.
This is what Stefan's mail was actually for in some way: Letting you know that you should get a Reviewed-by first.
Quoted 8 lines
At least for me, to be honest, this isn't a truly new process. I haven't been consistently requiring a Reviewed-by, but when I see someone else discuss a patch series and I don't have much time, I may scan the discussion to chime in if there is something fundamentally wrong, but otherwise let the author and the reviewer sort it out and wait until the discussion has settled. If I don't see a discussion, I might wait a few days for one.
Good method. :)
Quoted 5 lines
I'll probably keep reviewing paches without an R-b when they are simple or in my area of expertise (like qcow2), like any other reviewer should. The point is just that when I don't, before you ping us maintainers about a patch, try to get a good review from some other contributor.
But there's a problem that a patch may have not get a review from other contributors in some areas, maybe only few people worked on it. After a few weeks, maintainers can give some response to author if the author is pinging...?
Best regards,
-Gonglei
Quoted 10 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Now we need a wiki entry describing the process.
Also we need something reminding who is the maintainer of the currentweek.
Usually obvious from the "applied to my tree" messages.
You should CC both of us anyway (the patch might not be merged in the same week), so it doesn't matter that much who'll be handling it.
Kevin
Am 12.09.2014 um 10:32 hat Gonglei (Arei) geschrieben:
Quoted 51 lines
Quoted 36 lines
From: Kevin Wolf [mailto:[email protected]]
Sent: Friday, September 12, 2014 4:14 PM
Subject: Re: [Qemu-devel] New requirement for getting block layer patches mergedAm 12.09.2014 um 09:02 hat Gonglei (Arei) geschrieben:
Quoted 12 lines
Hi,
Quoted 10 lines
Subject: Re: [Qemu-devel] New requirement for getting block layer patches merged
Quoted 5 lines · Benoît Canet
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Great mail.
Yup. Let's see how it works out.
Yes. I can't agree more with you.
Recently I posted some patch series, but I can't get maintainer's feedback in
time.
Quoted 1 line
That make me feel soulless TBH. I know maintainers are very busy usually.
They
Quoted 2 lines
need to develop their own code and also need review the contributors' code. If some other peoples can spread the load of patch review, that's a great
thing IMHO.
This is what Stefan's mail was actually for in some way: Letting you know that you should get a Reviewed-by first.
Quoted 8 lines
At least for me, to be honest, this isn't a truly new process. I haven't been consistently requiring a Reviewed-by, but when I see someone else discuss a patch series and I don't have much time, I may scan the discussion to chime in if there is something fundamentally wrong, but otherwise let the author and the reviewer sort it out and wait until the discussion has settled. If I don't see a discussion, I might wait a few days for one.
Good method. :)
Quoted 5 lines
I'll probably keep reviewing paches without an R-b when they are simple or in my area of expertise (like qcow2), like any other reviewer should. The point is just that when I don't, before you ping us maintainers about a patch, try to get a good review from some other contributor.
Quoted 4 lines
But there's a problem that a patch may have not get a review from other contributors in some areas, maybe only few people worked on it. After a few weeks, maintainers can give some response to author if the author is pinging...?
If you try and still fail to get review after a few weeks, sure, talk to us and we'll find a solution.
But keep in mind that if only few people have worked on the code, Stefan and I probably haven't either. So automatically delegating all such cases for us to review isn't going to be helpful, because reviewing patches to code that you don't know is one of the most time consuming activities. Spreading them over more contributors is the goal of this change.
Kevin
Quoted 63 lines
From: Kevin Wolf [mailto:[email protected]]
Sent: Friday, September 12, 2014 4:46 PM
To: Gonglei (Arei)
Cc: Markus Armbruster; Benoît Canet; [email protected]; Stefan Hajnoczi
Subject: Re: [Qemu-devel] New requirement for getting block layer patches mergedAm 12.09.2014 um 10:32 hat Gonglei (Arei) geschrieben:
Quoted 9 lines
Quoted 9 lines
From: Kevin Wolf [mailto:[email protected]]
Sent: Friday, September 12, 2014 4:14 PM
Subject: Re: [Qemu-devel] New requirement for getting block layer patches mergedAm 12.09.2014 um 09:02 hat Gonglei (Arei) geschrieben:
Quoted 3 lines
Hi,
Quoted 1 line
Subject: Re: [Qemu-devel] New requirement for getting block layer
patches
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
merged
Quoted 5 lines · Benoît Canet
Quoted 4 lines
EOF
---
If you have feedback or questions, let us know. The process can be tweaked as time goes on so we can continue to improve.Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Great mail.
Yup. Let's see how it works out.
Yes. I can't agree more with you.
Recently I posted some patch series, but I can't get maintainer's feedback
in
Quoted 4 lines
Quoted 4 lines
time.
Quoted 1 line
That make me feel soulless TBH. I know maintainers are very busy usually.
They
Quoted 1 line
need to develop their own code and also need review the contributors'
code.
Quoted 21 lines
Quoted 6 lines
Quoted 1 line
If some other peoples can spread the load of patch review, that's a great
thing IMHO.
This is what Stefan's mail was actually for in some way: Letting you know that you should get a Reviewed-by first.
Quoted 8 lines
At least for me, to be honest, this isn't a truly new process. I haven't been consistently requiring a Reviewed-by, but when I see someone else discuss a patch series and I don't have much time, I may scan the discussion to chime in if there is something fundamentally wrong, but otherwise let the author and the reviewer sort it out and wait until the discussion has settled. If I don't see a discussion, I might wait a few days for one.
Good method. :)
Quoted 5 lines
I'll probably keep reviewing paches without an R-b when they are simple or in my area of expertise (like qcow2), like any other reviewer should. The point is just that when I don't, before you ping us maintainers about a patch, try to get a good review from some other contributor.
Quoted 8 lines
Quoted 4 lines
But there's a problem that a patch may have not get a review from other contributors in some areas, maybe only few people worked on it. After a few weeks, maintainers can give some response to author if the author is pinging...?
If you try and still fail to get review after a few weeks, sure, talk to us and we'll find a solution.
OK.
Quoted 7 lines
But keep in mind that if only few people have worked on the code, Stefan and I probably haven't either. So automatically delegating all such cases for us to review isn't going to be helpful, because reviewing patches to code that you don't know is one of the most time consuming activities. Spreading them over more contributors is the goal of this change.
Understand. Thanks for your patient answer! I think it is helpful for other contributors too. :)
Best regards,
-Gonglei
Quoted 1 line · Gonglei (Arei)
Quoted 1 line
From: Kevin Wolf [mailto:[email protected]]
[...]
Quoted 9 lines
Quoted 5 lines
I'll probably keep reviewing paches without an R-b when they are simple or in my area of expertise (like qcow2), like any other reviewer should. The point is just that when I don't, before you ping us maintainers about a patch, try to get a good review from some other contributor.
But there's a problem that a patch may have not get a review from other contributors in some areas, maybe only few people worked on it. After a few weeks, maintainers can give some response to author if the author is pinging...?
If you're having difficulties getting a satisfactory review, and you don't know whom to ask for one, then asking for help is fair. I'd ask the list, cc'ing my best guess at who could be willing to help with finding reviewers. The guess generally include maintainers.
[...]
Quoted 21 lines
From: Markus Armbruster [mailto:[email protected]]
Sent: Friday, September 12, 2014 5:02 PM
To: Gonglei (Arei)
Cc: Kevin Wolf; Benoît Canet; Stefan Hajnoczi; [email protected]
Subject: Re: [Qemu-devel] New requirement for getting block layer patches mergedQuoted 1 line · Gonglei (Arei)
Quoted 1 line
From: Kevin Wolf [mailto:[email protected]]
[...]
Quoted 9 lines
Quoted 5 lines
I'll probably keep reviewing paches without an R-b when they are simple or in my area of expertise (like qcow2), like any other reviewer should. The point is just that when I don't, before you ping us maintainers about a patch, try to get a good review from some other contributor.
But there's a problem that a patch may have not get a review from other contributors in some areas, maybe only few people worked on it. After a few weeks, maintainers can give some response to author if the author is pinging...?
Quoted 5 lines
If you're having difficulties getting a satisfactory review, and you don't know whom to ask for one, then asking for help is fair. I'd ask the list, cc'ing my best guess at who could be willing to help with finding reviewers. The guess generally include maintainers.
Yes. Indeed!
Best regards,
-Gonglei
Quoted 9 lines · Kevin Wolf
Am 12.09.2014 um 09:02 hat Gonglei (Arei) geschrieben:
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines
Now we need a wiki entry describing the process.
Also we need something reminding who is the maintainer of the currentweek.
Usually obvious from the "applied to my tree" messages.
You should CC both of us anyway (the patch might not be merged in the same week), so it doesn't matter that much who'll be handling it.
This is also what the get_maintainer.pl script says:
$ scripts/get_maintainer.pl -f block.c Kevin Wolf <[email protected]> (supporter:Block) Stefan Hajnoczi <[email protected]> (supporter:Block)
Please CC both of us.
Stefan