Skip to contentSkip to conversation

docs: bug-bisect: add a note about bisecting -next

PATCH Applied Thorsten Leemhuis 3 participants 8 messages Nov 5, 2024 – Nov 12, 2024

Subsystems (3)
lore
Share & tools
lore

Thorsten Leemhuis

author maintainer
#0 lore raw

PATCH v3 1/1 docs: bug-bisect: add a note about bisecting -next

Explicitly mention how to bisect -next, as nothing in the kernel tree currently explains that bisects between -next versions won't work well and it's better to bisect between mainline and -next.

---
v3
- add a optional 'that' for readability/understandability

v2:
- slightly change patch descption
- make the text more how-toish to better match the rest of the document

v1: https://lore.kernel.org/all/[email protected]/
- initial release

---
 Documentation/admin-guide/bug-bisect.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
Documentation/admin-guide/bug-bisect.rst +21 -0
index 585630d14581c7..f4f867cabb1778 100644
@@ -108,6 +108,27 @@ a fully reliable and straight-forward way to reproduce the regression, too.*
 With that the process is complete. Now report the regression as described by
 Documentation/admin-guide/reporting-issues.rst.
 
+Bisecting linux-next
+--------------------
+
+If you face a problem only happening in linux-next, bisect between the
+linux-next branches 'stable' and 'master'. The following commands will start
+the process for a linux-next tree you added as a remote called 'next'::
+
+  git bisect start
+  git bisect good next/stable
+  git bisect bad next/master
+
+The 'stable' branch refers to the state of linux-mainline that the current
+linux-next release (found in the 'master' branch) is based on -- the former
+thus should be free of any problems that show up in -next, but not in Linus'
+tree.
+
+This will bisect across a wide range of changes, some of which you might have
+used in earlier linux-next releases without problems. Sadly there is no simple
+way to avoid checking them: bisecting from one linux-next release to a later
+one (say between 'next-20241020' and 'next-20241021') is impossible, as they
+share no common history.
 
 Additional reading material
 ---------------------------

base-commit: 062d98be0e3f6dcf08e40a1101e967b2eb4fb92f

Signature · 1 line
2.45.0
#1 lore raw

Documentation/admin-guide/bug-bisect.rst a fully reliable and straight-forward way to reproduce the regression, too.* · line 117

Quoted 7 lines · Thorsten Leemhuis
Documentation/admin-guide/bug-bisect.rst +7 -0
+Bisecting linux-next
+--------------------
+
+If you face a problem only happening in linux-next, bisect between the
+linux-next branches 'stable' and 'master'. The following commands will start
+the process for a linux-next tree you added as a remote called 'next'::
+

Has linux-next tree remote addition be covered before?

Confused...

Signature · 1 line
An old man doll... just what I always wanted! - Clara
author maintainer
#2 lore raw
Quoted 10 lines · Bagas Sanjaya

Documentation/admin-guide/bug-bisect.rst a fully reliable and straight-forward way to reproduce the regression, too.* · line 117

Quoted 7 lines · Thorsten Leemhuis
Documentation/admin-guide/bug-bisect.rst +7 -0
+Bisecting linux-next
+--------------------
+
+If you face a problem only happening in linux-next, bisect between the
+linux-next branches 'stable' and 'master'. The following commands will start
+the process for a linux-next tree you added as a remote called 'next'::
+

Has linux-next tree remote addition be covered before?

No. That document where this is added does not explain at all how to clone a git repo or add remotes, it just focuses on the bisection. So I don't think we need to explain this here.

Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst handles such things, as it has a different target audience. Should it cover -next as well? Not sure. I for now decided to focus on this addition.

Ciao, Thorsten

#3 lore raw
Quoted 12 lines · Thorsten Leemhuis
Quoted 10 lines · Bagas Sanjaya

Documentation/admin-guide/bug-bisect.rst a fully reliable and straight-forward way to reproduce the regression, too.* · line 117

Quoted 7 lines · Thorsten Leemhuis
Documentation/admin-guide/bug-bisect.rst +7 -0
+Bisecting linux-next
+--------------------
+
+If you face a problem only happening in linux-next, bisect between the
+linux-next branches 'stable' and 'master'. The following commands will start
+the process for a linux-next tree you added as a remote called 'next'::
+

Has linux-next tree remote addition be covered before?

Quoted 3 lines

No. That document where this is added does not explain at all how to clone a git repo or add remotes, it just focuses on the bisection. So I don't think we need to explain this here.

OK.

Quoted 4 lines

Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst handles such things, as it has a different target audience. Should it cover -next as well? Not sure. I for now decided to focus on this addition.

I think for those who want to test linux-next, they can simply follow [1]. Maybe we can add a pointer to it.

Thanks.

[1]: https://www.kernel.org/doc/man-pages/linux-next.html

Signature · 1 line
An old man doll... just what I always wanted! - Clara
author maintainer
#4 lore raw
Quoted 11 lines · Bagas Sanjaya
Quoted 6 lines · Thorsten Leemhuis
Quoted 1 line · Bagas Sanjaya

On Tue, Nov 05, 2024 at 01:11:08PM +0100, Thorsten Leemhuis wrote:

Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst handles such things, as it has a different target audience. Should it cover -next as well? Not sure. I for now decided to focus on this addition.

I think for those who want to test linux-next, they can simply follow [1]. Maybe we can add a pointer to it.
[1]: https://www.kernel.org/doc/man-pages/linux-next.html

Don't think that's worth it either for this document, as those that want to bisect -next most of the time will already have retrieved next via git. And again: providing such a pointer for -next, but not explaining how to retrieve mainline (which is left to the other document linked prominently at the top) IMHO makes no sense either.

Ciao, Thorsten

#5 lore raw
Quoted 13 lines · Thorsten Leemhuis
Quoted 11 lines · Bagas Sanjaya
Quoted 6 lines · Thorsten Leemhuis
Quoted 1 line · Bagas Sanjaya

On Tue, Nov 05, 2024 at 01:11:08PM +0100, Thorsten Leemhuis wrote:

Documentation/admin-guide/verify-bugs-and-bisect-regressions.rst handles such things, as it has a different target audience. Should it cover -next as well? Not sure. I for now decided to focus on this addition.

I think for those who want to test linux-next, they can simply follow [1]. Maybe we can add a pointer to it.
[1]: https://www.kernel.org/doc/man-pages/linux-next.html

Quoted 5 lines

Don't think that's worth it either for this document, as those that want to bisect -next most of the time will already have retrieved next via git. And again: providing such a pointer for -next, but not explaining how to retrieve mainline (which is left to the other document linked prominently at the top) IMHO makes no sense either.

OK, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
Reviewed-by on v3 1/1
#6 lore raw
In reply to Thorsten Leemhuis
Quoted 23 lines · Thorsten Leemhuis
Documentation/admin-guide/bug-bisect.rst +14 -0
index 585630d14581c7..f4f867cabb1778 100644
@@ -108,6 +108,27 @@ a fully reliable and straight-forward way to reproduce the regression, too.*
 With that the process is complete. Now report the regression as described by
 Documentation/admin-guide/reporting-issues.rst.
 
+Bisecting linux-next
+--------------------
+
+If you face a problem only happening in linux-next, bisect between the
+linux-next branches 'stable' and 'master'. The following commands will start
+the process for a linux-next tree you added as a remote called 'next'::
+
+  git bisect start
+  git bisect good next/stable
+  git bisect bad next/master
+
+The 'stable' branch refers to the state of linux-mainline that the current
+linux-next release (found in the 'master' branch) is based on -- the former
+thus should be free of any problems that show up in -next, but not in Linus'

Documentation/admin-guide/bug-bisect.rst a fully reliable and straight-forward way to reproduce the regression, too.* · line 134

Quoted 10 lines
Documentation/admin-guide/bug-bisect.rst +7 -0
+tree.
+
+This will bisect across a wide range of changes, some of which you might have
+used in earlier linux-next releases without problems. Sadly there is no simple
+way to avoid checking them: bisecting from one linux-next release to a later
+one (say between 'next-20241020' and 'next-20241021') is impossible, as they
+share no common history.
 
 Additional reading material
 ---------------------------

Looks good, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
maintainer Applied
#7 lore raw
In reply to Thorsten Leemhuis
Quoted 16 lines · Thorsten Leemhuis

Explicitly mention how to bisect -next, as nothing in the kernel tree currently explains that bisects between -next versions won't work well and it's better to bisect between mainline and -next.

---
v3
- add a optional 'that' for readability/understandability

v2:
- slightly change patch descption
- make the text more how-toish to better match the rest of the document

Quoted 5 lines

v1: https://lore.kernel.org/all/[email protected]/
- initial release

---
 Documentation/admin-guide/bug-bisect.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

Applied, thanks.

jon