docs: netdev: clarify the need to sending reverts as patches
Subsystems (5)
Jakub Kicinski
maintainerPATCH 1/1 docs: netdev: clarify the need to sending reverts as patches
We don't state explicitly that reverts need to be submitted as a patch. It occasionally comes up.
---
CC: [email protected]
CC: [email protected]
--- Documentation/process/maintainer-netdev.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/process/maintainer-netdev.rst +8 -1
@@ -184,11 +184,18 @@ Handling misapplied patches Occasionally a patch series gets applied before receiving critical feedback, or the wrong version of a series gets applied. -There is no revert possible, once it is pushed out, it stays like that. + +Making the patch disappear once it is pushed out is not possible, the commit +history in netdev trees is stable. Please send incremental versions on top of what has been merged in order to fix the patches the way they would look like if your latest patch series was to be merged. +In cases where full revert is needed the revert has to be submitted +as a patch to the list with a commit message explaining the technical +problems with the reverted commit. Reverts should be used as a last resort, +when original change is completely wrong; incremental fixes are preferred. + Stable tree ~~~~~~~~~~~
Signature · 1 line
2.39.2
Quoted 22 lines · Jakub Kicinski
We don't state explicitly that reverts need to be submitted as a patch. It occasionally comes up.
Signed-off-by Jakub Kicinski <[email protected]>---
CC: [email protected]
CC: [email protected]--- Documentation/process/maintainer-netdev.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)Documentation/process/maintainer-netdev.rst +2
-1@@ -184,11 +184,18 @@ Handling misapplied patches Occasionally a patch series gets applied before receiving critical feedback, or the wrong version of a series gets applied. -There is no revert possible, once it is pushed out, it stays like that. + +Making the patch disappear once it is pushed out is not possible, the commit
Documentation/process/maintainer-netdev.rst Handling misapplied patches · line 198
Quoted 10 lines
Documentation/process/maintainer-netdev.rst +6
-0+history in netdev trees is stable. Please send incremental versions on top of what has been merged in order to fix the patches the way they would look like if your latest patch series was to be merged. +In cases where full revert is needed the revert has to be submitted +as a patch to the list with a commit message explaining the technical +problems with the reverted commit. Reverts should be used as a last resort, +when original change is completely wrong; incremental fixes are preferred. +
This is much clearer. It highlights that you won't rewind/modify history, and explains the desire for incremental fixes better.
Quoted 3 lines
Documentation/process/maintainer-netdev.rst +0
-0Stable tree ~~~~~~~~~~~
Quoted 16 lines · Jakub Kicinski
We don't state explicitly that reverts need to be submitted as a patch. It occasionally comes up.
Signed-off-by Jakub Kicinski <[email protected]>---
CC: [email protected]
CC: [email protected]--- Documentation/process/maintainer-netdev.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)Documentation/process/maintainer-netdev.rst +0
-0
Documentation/process/maintainer-netdev.rst Handling misapplied patches · line 189
Quoted 7 lines
Documentation/process/maintainer-netdev.rst +3
-1@@ -184,11 +184,18 @@ Handling misapplied patches Occasionally a patch series gets applied before receiving critical feedback, or the wrong version of a series gets applied. -There is no revert possible, once it is pushed out, it stays like that. + +Making the patch disappear once it is pushed out is not possible, the commit +history in netdev trees is stable.
I would write immutable instead of stable here to convey the idea that there are no history rewrites once the tree is pushed out. With that:
Signature · 1 line
Florian
Jakub Kicinski
maintainerQuoted 2 lines · On Mon, 27 Mar 2023 12:19:14 -0700 Florian Fainelli wrote:
I would write immutable instead of stable here to convey the idea that there are no history rewrites once the tree is pushed out.
I'll s/stable/immutable/ when applying, thanks!
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 27 Mar 2023 10:26:46 -0700 you wrote:
We don't state explicitly that reverts need to be submitted as a patch. It occasionally comes up.
Signed-off-by Jakub Kicinski <[email protected]>---
CC: [email protected]
CC: [email protected][...]
Here is the summary with links:
- [net-next] docs: netdev: clarify the need to sending reverts as patches
https://git.kernel.org/netdev/net-next/c/e70f94c6c75c
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
Documentation/process/maintainer-netdev.rst Handling misapplied patches · line 198
Quoted 8 lines · Jakub Kicinski
We don't state explicitly that reverts need to be submitted as a patch. It occasionally comes up.
[...]Documentation/process/maintainer-netdev.rst +5
-0+In cases where full revert is needed the revert has to be submitted +as a patch to the list with a commit message explaining the technical +problems with the reverted commit. Reverts should be used as a last resort, +when original change is completely wrong; incremental fixes are preferred. +
FWIW, I see how this is well meant, but I'm not really happy with the last sentence, as one of the problems I notice when handling regression
is: it sometimes takes weeks to get regressions fixed that could have been solved quickly by reverting the culprit (and reapplying an improved version of the change or the change together and a fix later). That's why Documentation/process/handling-regressions.rst strongly suggest to revert changes that cause regressions if the problem can't be fixed quickly -- especially if the change made it into a proper release. The two texts thus now not slightly contradict each other.
I noticed that this change was already applied, but how would you feel about changing the second sentence into something like this maybe?
``` Use reverts to quickly fix regressions that otherwise would take too long to resolve. Apart from this reverts should be used as a last resort, when the original change is completely wrong; incremental fixes are preferred. ```
Or maybe this?
``` Incremental fixes in general are preferred over reverts, but the latter are useful to quickly fix regressions that otherwise would take too long to resolve. Apart from this reverts should be used as a last resort, when the original change is completely wrong. ```
Ciao, Thorsten
Jakub Kicinski
maintainerQuoted 10 lines · On Wed, 29 Mar 2023 11:04:01 +0200 Thorsten Leemhuis wrote:
FWIW, I see how this is well meant, but I'm not really happy with the last sentence, as one of the problems I notice when handling regression
is: it sometimes takes weeks to get regressions fixed that could have been solved quickly by reverting the culprit (and reapplying an improved version of the change or the change together and a fix later). That's whyDocumentation/process/handling-regressions.rststrongly suggest to revert changes that cause regressions if the problem can't be fixed quickly -- especially if the change made it into a proper release. The two texts thus now not slightly contradict each other.
Quoted 2 lines
I noticed that this change was already applied, but how would you feel about changing the second sentence into something like this maybe?
Please escalate the cases which can be fixed by easy reverts because I can't think of any in networking :(
The entire doc is based on our painful experience telling people the same thing over and over again, we don't want to include things which don't actually happen on netdev. Longer the doc is the less likely people will actually read it :(