Skip to contentSkip to conversation

Documentation: update information for mailing lists

PATCH Superseded Konstantin Ryabitsev 10 participants 17 messages Jun 18, 2024 – Jun 26, 2024

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Documentation: update information for mailing lists

There have been some important changes to the mailing lists hosted at kernel.org, most importantly that vger.kernel.org was migrated from majordomo+zmailer to mlmmj and is now being served from the unified mailing list platform called "subspace" [1].

This series updates many links pointing at obsolete locations, but also makes the following changes:

- drops the recommendation to use /r/ subpaths in lore.kernel.org links (it has been unnecessary for a number of years)
- adds some detail on how to reference specific Link trailers from inside the commit message

Some of these changes are the result of discussions on the ksummit mailing list [2].

---
Konstantin Ryabitsev (2):
Documentation: fix links to mailing list services
Documentation: best practices for using Link trailers

 Documentation/process/2.Process.rst          |  8 ++++----
 Documentation/process/howto.rst              | 10 +++++-----
 Documentation/process/kernel-docs.rst        |  5 ++---
 Documentation/process/maintainer-netdev.rst  |  5 ++---
 Documentation/process/maintainer-tip.rst     | 24 ++++++++++++++++++------
 Documentation/process/submitting-patches.rst | 15 +++++----------
 6 files changed, 36 insertions(+), 31 deletions(-)

---
base-commit: 6ba59ff4227927d3a8530fc2973b80e94b54d58f
change-id: 20240618-docs-patch-msgid-link-6961045516e0

Best regards,

Signature · 1 line
Konstantin Ryabitsev <[email protected]>
#1 lore raw

PATCH 1/2 Documentation: fix links to mailing list services

There have been some changes to the way mailing lists are hosted at kernel.org, so fix the links that are pointing at the outdated resources.

---
 Documentation/process/2.Process.rst          |  8 ++++----
 Documentation/process/howto.rst              | 10 +++++-----
 Documentation/process/kernel-docs.rst        |  5 ++---
 Documentation/process/maintainer-netdev.rst  |  5 ++---
 Documentation/process/submitting-patches.rst | 15 +++++----------
 5 files changed, 18 insertions(+), 25 deletions(-)
Documentation/process/2.Process.rst +4 -4
index 613a01da4717..ef3b116492df 100644
@@ -392,13 +392,13 @@ represent a potential hazard to developers, who risk getting buried under a
 load of electronic mail, running afoul of the conventions used on the Linux
 lists, or both.
 
-Most kernel mailing lists are run on vger.kernel.org; the master list can
+Most kernel mailing lists are hosted at kernel.org; the master list can
 be found at:
 
-	http://vger.kernel.org/vger-lists.html
+	https://subspace.kernel.org
 
-There are lists hosted elsewhere, though; a number of them are at
-redhat.com/mailman/listinfo.
+There are lists hosted elsewhere; please check the MAINTAINERS file for
+the list relevant for any particular subsystem.
 
 The core mailing list for kernel development is, of course, linux-kernel.
 This list is an intimidating place to be; volume can reach 500 messages per
Documentation/process/howto.rst +5 -5
index eebda4910a88..9438e03d6f50 100644
@@ -331,7 +331,7 @@ they need to be integration-tested.  For this purpose, a special
 testing repository exists into which virtually all subsystem trees are
 pulled on an almost daily basis:
 
-	https://git.kernel.org/?p=linux/kernel/git/next/linux-next.git
+	https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
 
 This way, the linux-next gives a summary outlook onto what will be
 expected to go into the mainline kernel at the next merge period.
@@ -373,12 +373,12 @@ As some of the above documents describe, the majority of the core kernel
 developers participate on the Linux Kernel Mailing list.  Details on how
 to subscribe and unsubscribe from the list can be found at:
 
-	http://vger.kernel.org/vger-lists.html#linux-kernel
+	https://subspace.kernel.org/subscribing.html
 
 There are archives of the mailing list on the web in many different
 places.  Use a search engine to find these archives.  For example:
 
-	https://lore.kernel.org/lkml/
+	https://lore.kernel.org/linux-kernel/
 
 It is highly recommended that you search the archives about the topic
 you want to bring up, before you post it to the list. A lot of things
@@ -393,13 +393,13 @@ groups.
 Many of the lists are hosted on kernel.org. Information on them can be
 found at:
 
-	http://vger.kernel.org/vger-lists.html
+	https://subspace.kernel.org
 
 Please remember to follow good behavioral habits when using the lists.
 Though a bit cheesy, the following URL has some simple guidelines for
 interacting with the list (or any list):
 
-	http://www.albion.com/netiquette/
+	https://subspace.kernel.org/etiquette.html
 
 If multiple people respond to your mail, the CC: list of recipients may
 get pretty large. Don't remove anybody from the CC: list without a good
Documentation/process/kernel-docs.rst +2 -3
index 8660493b91d0..3476fb854c7a 100644
@@ -194,9 +194,8 @@ Miscellaneous
 
     * Name: **linux-kernel mailing list archives and search engines**
 
-      :URL: http://vger.kernel.org/vger-lists.html
-      :URL: http://www.uwsg.indiana.edu/hypermail/linux/kernel/index.html
-      :URL: http://groups.google.com/group/mlist.linux.kernel
+      :URL: https://subspace.kernel.org
+      :URL: https://lore.kernel.org
       :Keywords: linux-kernel, archives, search.
       :Description: Some of the linux-kernel mailing list archivers. If
         you have a better/another one, please let me know.
Documentation/process/maintainer-netdev.rst +2 -3
index 5e1fcfad1c4c..fe8616397d63 100644
@@ -25,9 +25,8 @@ drivers/net (i.e. hardware specific drivers) in the Linux source tree.
 Note that some subsystems (e.g. wireless drivers) which have a high
 volume of traffic have their own specific mailing lists and trees.
 
-The netdev list is managed (like many other Linux mailing lists) through
-VGER (http://vger.kernel.org/) with archives available at
-https://lore.kernel.org/netdev/
+Like many other Linux mailing lists, the netdev list is hosted at
+kernel.org with archives available at https://lore.kernel.org/netdev/.
 
 Aside from subsystems like those mentioned above, all network-related
 Linux development (i.e. RFC, review, comments, etc.) takes place on
Documentation/process/submitting-patches.rst +5 -10
index 66029999b587..f310f2f36666 100644
@@ -119,10 +119,10 @@ web, point to it.
 
 When linking to mailing list archives, preferably use the lore.kernel.org
 message archiver service. To create the link URL, use the contents of the
-``Message-Id`` header of the message without the surrounding angle brackets.
+``Message-ID`` header of the message without the surrounding angle brackets.
 For example::
 
-    Link: https://lore.kernel.org/r/[email protected]/
+    Link: https://lore.kernel.org/[email protected]
 
 Please check the link to make sure that it is actually working and points
 to the relevant message.
@@ -243,11 +243,9 @@ [email protected] should be used by default for all patches, but the
 volume on that list has caused a number of developers to tune it out.  Please
 do not spam unrelated lists and unrelated people, though.
 
-Many kernel-related lists are hosted on vger.kernel.org; you can find a
-list of them at http://vger.kernel.org/vger-lists.html.  There are
-kernel-related lists hosted elsewhere as well, though.
-
-Do not send more than 15 patches at once to the vger mailing lists!!!
+Many kernel-related lists are hosted at kernel.org; you can find a list
+of them at https://subspace.kernel.org.  There are kernel-related lists
+hosted elsewhere as well, though.
 
 Linus Torvalds is the final arbiter of all changes accepted into the
 Linux kernel.  His e-mail address is <[email protected]>.
@@ -866,9 +864,6 @@ Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer".
 
   <http://www.kroah.com/log/linux/maintainer-06.html>
 
-NO!!!! No more huge patch bombs to [email protected] people!
-  <https://lore.kernel.org/r/[email protected]>
-
 Kernel Documentation/process/coding-style.rst
 
 Linus Torvalds's mail on the canonical patch format:
Signature · 1 line
2.45.2
Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] Documentation: fix links to mailing list services

Quoted 3 lines · Konstantin Ryabitsev

There have been some changes to the way mailing lists are hosted at kernel.org, so fix the links that are pointing at the outdated resources.

The change to the documented policy about patch-bombs probably deserves a mention here even though it has been effectively ignored for a while.

Otherwise,

[..]

Quoted 4 lines
Documentation/process/maintainer-netdev.rst +0 -0
index 5e1fcfad1c4c..fe8616397d63 100644

[..]

Quoted 30 lines
Documentation/process/maintainer-netdev.rst +3 -8
@@ -243,11 +243,9 @@ [email protected] should be used by default for all patches, but the
 volume on that list has caused a number of developers to tune it out.  Please
 do not spam unrelated lists and unrelated people, though.
 
-Many kernel-related lists are hosted on vger.kernel.org; you can find a
-list of them at http://vger.kernel.org/vger-lists.html.  There are
-kernel-related lists hosted elsewhere as well, though.
-
-Do not send more than 15 patches at once to the vger mailing lists!!!
+Many kernel-related lists are hosted at kernel.org; you can find a list
+of them at https://subspace.kernel.org.  There are kernel-related lists
+hosted elsewhere as well, though.
 
 Linus Torvalds is the final arbiter of all changes accepted into the
 Linux kernel.  His e-mail address is <[email protected]>.
@@ -866,9 +864,6 @@ Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer".
 
   <http://www.kroah.com/log/linux/maintainer-06.html>
 
-NO!!!! No more huge patch bombs to [email protected] people!
-  <https://lore.kernel.org/r/[email protected]>
-
 Kernel Documentation/process/coding-style.rst
 
 Linus Torvalds's mail on the canonical patch format:
Signature · 2 lines
-- 
2.45.2
Reviewed-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] Documentation: fix links to mailing list services

In reply to Konstantin Ryabitsev
Quoted 84 lines · Konstantin Ryabitsev

There have been some changes to the way mailing lists are hosted at kernel.org, so fix the links that are pointing at the outdated resources.

---
 Documentation/process/2.Process.rst          |  8 ++++----
 Documentation/process/howto.rst              | 10 +++++-----
 Documentation/process/kernel-docs.rst        |  5 ++---
 Documentation/process/maintainer-netdev.rst  |  5 ++---
 Documentation/process/submitting-patches.rst | 15 +++++----------
 5 files changed, 18 insertions(+), 25 deletions(-)
Documentation/process/2.Process.rst +4 -4
index 613a01da4717..ef3b116492df 100644
@@ -392,13 +392,13 @@ represent a potential hazard to developers, who risk getting buried under a
 load of electronic mail, running afoul of the conventions used on the Linux
 lists, or both.
 
-Most kernel mailing lists are run on vger.kernel.org; the master list can
+Most kernel mailing lists are hosted at kernel.org; the master list can
 be found at:
 
-	http://vger.kernel.org/vger-lists.html
+	https://subspace.kernel.org
 
-There are lists hosted elsewhere, though; a number of them are at
-redhat.com/mailman/listinfo.
+There are lists hosted elsewhere; please check the MAINTAINERS file for
+the list relevant for any particular subsystem.
 
 The core mailing list for kernel development is, of course, linux-kernel.
 This list is an intimidating place to be; volume can reach 500 messages per
Documentation/process/howto.rst +5 -5
index eebda4910a88..9438e03d6f50 100644
@@ -331,7 +331,7 @@ they need to be integration-tested.  For this purpose, a special
 testing repository exists into which virtually all subsystem trees are
 pulled on an almost daily basis:
 
-	https://git.kernel.org/?p=linux/kernel/git/next/linux-next.git
+	https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
 
 This way, the linux-next gives a summary outlook onto what will be
 expected to go into the mainline kernel at the next merge period.
@@ -373,12 +373,12 @@ As some of the above documents describe, the majority of the core kernel
 developers participate on the Linux Kernel Mailing list.  Details on how
 to subscribe and unsubscribe from the list can be found at:
 
-	http://vger.kernel.org/vger-lists.html#linux-kernel
+	https://subspace.kernel.org/subscribing.html
 
 There are archives of the mailing list on the web in many different
 places.  Use a search engine to find these archives.  For example:
 
-	https://lore.kernel.org/lkml/
+	https://lore.kernel.org/linux-kernel/
 
 It is highly recommended that you search the archives about the topic
 you want to bring up, before you post it to the list. A lot of things
@@ -393,13 +393,13 @@ groups.
 Many of the lists are hosted on kernel.org. Information on them can be
 found at:
 
-	http://vger.kernel.org/vger-lists.html
+	https://subspace.kernel.org
 
 Please remember to follow good behavioral habits when using the lists.
 Though a bit cheesy, the following URL has some simple guidelines for
 interacting with the list (or any list):
 
-	http://www.albion.com/netiquette/
+	https://subspace.kernel.org/etiquette.html
 
 If multiple people respond to your mail, the CC: list of recipients may
 get pretty large. Don't remove anybody from the CC: list without a good
Documentation/process/kernel-docs.rst +0 -0
index 8660493b91d0..3476fb854c7a 100644

Documentation/process/kernel-docs.rst Miscellaneous · line 198

Quoted 8 lines
Documentation/process/kernel-docs.rst +2 -3
@@ -194,9 +194,8 @@ Miscellaneous
 
     * Name: **linux-kernel mailing list archives and search engines**
 
-      :URL: http://vger.kernel.org/vger-lists.html
-      :URL: http://www.uwsg.indiana.edu/hypermail/linux/kernel/index.html
-      :URL: http://groups.google.com/group/mlist.linux.kernel
+      :URL: https://subspace.kernel.org
+      :URL: https://lore.kernel.org

Nice!

Quoted 53 lines
Documentation/process/kernel-docs.rst +0 -0
       :Keywords: linux-kernel, archives, search.
       :Description: Some of the linux-kernel mailing list archivers. If
         you have a better/another one, please let me know.
Documentation/process/maintainer-netdev.rst +2 -3
index 5e1fcfad1c4c..fe8616397d63 100644
@@ -25,9 +25,8 @@ drivers/net (i.e. hardware specific drivers) in the Linux source tree.
 Note that some subsystems (e.g. wireless drivers) which have a high
 volume of traffic have their own specific mailing lists and trees.
 
-The netdev list is managed (like many other Linux mailing lists) through
-VGER (http://vger.kernel.org/) with archives available at
-https://lore.kernel.org/netdev/
+Like many other Linux mailing lists, the netdev list is hosted at
+kernel.org with archives available at https://lore.kernel.org/netdev/.
 
 Aside from subsystems like those mentioned above, all network-related
 Linux development (i.e. RFC, review, comments, etc.) takes place on
Documentation/process/submitting-patches.rst +5 -7
index 66029999b587..f310f2f36666 100644
@@ -119,10 +119,10 @@ web, point to it.
 
 When linking to mailing list archives, preferably use the lore.kernel.org
 message archiver service. To create the link URL, use the contents of the
-``Message-Id`` header of the message without the surrounding angle brackets.
+``Message-ID`` header of the message without the surrounding angle brackets.
 For example::
 
-    Link: https://lore.kernel.org/r/[email protected]/
+    Link: https://lore.kernel.org/[email protected]
 
 Please check the link to make sure that it is actually working and points
 to the relevant message.
@@ -243,11 +243,9 @@ [email protected] should be used by default for all patches, but the
 volume on that list has caused a number of developers to tune it out.  Please
 do not spam unrelated lists and unrelated people, though.
 
-Many kernel-related lists are hosted on vger.kernel.org; you can find a
-list of them at http://vger.kernel.org/vger-lists.html.  There are
-kernel-related lists hosted elsewhere as well, though.
-
-Do not send more than 15 patches at once to the vger mailing lists!!!
+Many kernel-related lists are hosted at kernel.org; you can find a list
+of them at https://subspace.kernel.org.  There are kernel-related lists
+hosted elsewhere as well, though.
 
 Linus Torvalds is the final arbiter of all changes accepted into the
 Linux kernel.  His e-mail address is <[email protected]>.

Documentation/process/submitting-patches.rst Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer". · line 869

Quoted 9 lines
Documentation/process/submitting-patches.rst +0 -3
@@ -866,9 +864,6 @@ Greg Kroah-Hartman, "How to piss off a kernel subsystem maintainer".
 
   <http://www.kroah.com/log/linux/maintainer-06.html>
 
-NO!!!! No more huge patch bombs to [email protected] people!
-  <https://lore.kernel.org/r/[email protected]>
-
 Kernel Documentation/process/coding-style.rst
 
 Linus Torvalds's mail on the canonical patch format:

Thanks,
Carlos

#4 lore raw

PATCH 2/2 Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +18 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here
 
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.
Signature · 1 line
2.45.2
#5 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

Quoted 38 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +8 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 397

Quoted 10 lines
Documentation/process/maintainer-tip.rst +10 -0
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here

Default b4.linkmask points to https://msgid.link/ and not to https://patch.msgid.link/

https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/.b4-config#n3
https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/docs/config.rst#n46

It will be good to update the default value in b4 to point to the correct domain.

Thanks

#6 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

Quoted 1 line · Leon Romanovsky

Default b4.linkmask points to https://msgid.link/ and not to https://patch.msgid.link/

That's the default for the b4 project itself, though, not the global default.

Quoted 4 lines

https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/.b4-config#n3
https://git.kernel.org/pub/scm/utils/b4/b4.git/tree/docs/config.rst#n46

It will be good to update the default value in b4 to point to the correct domain.

Once the series is accepted and becomes the official documentation, I will be happy to change the global default.

-K

#7 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev
Quoted 6 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

You should add something to checkpatch to complain about patch.msgid.link URLs. Those URLs should only be added by the committers, not the patch authors.

regards,
dan carpenter

#8 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev
Quoted 41 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +11 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 400

Quoted 10 lines
Documentation/process/maintainer-tip.rst +7 -0
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here
 
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.

I don't really understand what this is saying.
So when is msgid.link preferable to kernel.org?
And when is kernel.org preferable to msgid?

Quoted 3 lines
Signature · 1 line
2.45.2
#9 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

Quoted 50 lines · Michael S. Tsirkin
Quoted 49 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +18 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here
 
Quoted 6 lines

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 400

Quoted 2 lines
Documentation/process/maintainer-tip.rst +0 -0
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.

I don't really understand what this is saying.
So when is msgid.link preferable to kernel.org
And when is kernel.org preferable to msgid?

After reading the discussion in the commit log, it's now clearer what's meant to me, but the Documentation patch itself does not really make it clear IMHO.

It is also sad that instead of just setting
[am]
messageid = true

one now apparently has to resort to funky scripts.
Any chance to at least document the best practices - what has to be done as part of this patch to make git-am create these Link: things?

Thanks!

Quoted 5 lines
Quoted 5 lines
Signature · 2 lines
-- 
2.45.2
#10 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev
Quoted 36 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +6 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 395

Quoted 10 lines
Documentation/process/maintainer-tip.rst +10 -0
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::

Mostly highlighting my own ignorance here, but s/provenance/origin/ would've felt more obvious to me, as a non-native speaker.

BR,
Jani.

Quoted 5 lines
Documentation/process/maintainer-tip.rst +2 -0
+
+     Link: https://patch.msgid.link/patch-source-msgid@here
 
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.
Signature · 1 line
Jani Nikula, Intel
#11 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

Quoted 51 lines · Jani Nikula
Quoted 36 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +6 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 395

Quoted 10 lines
Documentation/process/maintainer-tip.rst +10 -0
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::

Mostly highlighting my own ignorance here, but s/provenance/origin/ would've felt more obvious to me, as a non-native speaker.

Quoted 2 lines

BR,
Jani.

Or even "origin (message id)" to be very explicit.

Quoted 9 lines
Quoted 6 lines
Documentation/process/maintainer-tip.rst +2 -0
+
+     Link: https://patch.msgid.link/patch-source-msgid@here
 
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.
Signature · 1 line
Jani Nikula, Intel
#12 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev
Quoted 6 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

[...]

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 397

Quoted 6 lines
Documentation/process/maintainer-tip.rst +6 -0
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here

I wonder how long it will take until someone starts using patch.msgid.link/ for things that are not the submission of the change, for example by misunderstanding what "provenance of the patch" is meant to mean here.

How about something this:

"""
In case you want to record the public review submission of a patch while committing it, use a ``Link:`` trailer with the dedicated ``patch.msgid.link`` domain::

This makes it possible to reliably look the submission up, hence don't use that domain for any other patches you might want to link to. """

But I suspect some people will never see this and start assuming that this domain should be meant for all patches -- and not all of these cases will be found during review (or by checkpatch, in case we add a check and people actually run it). Writing that made me think a dedicated tag like "Lore-Submission" or "Public-Review-Link" could avoid this while keeping some of the aspects that Linus likes about "Link" -- but I doubt that will convince him.

Ciao, Thorsten

Acked-by on v1 2/2
#13 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev
Quoted 10 lines · Konstantin Ryabitsev

Based on multiple conversations, most recently on the ksummit mailing list [1], add some best practices for using the Link trailer, such as:

- how to use markdown-like bracketed numbers in the commit message to indicate the corresponding link
- when to use lore.kernel.org vs patch.msgid.link domains

Nice!

Quoted 31 lines
---
 Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)
Documentation/process/maintainer-tip.rst +11 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 400

Quoted 10 lines
Documentation/process/maintainer-tip.rst +7 -0
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here
 
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.

Thanks,
Carlos

#14 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

In reply to Konstantin Ryabitsev
Quoted 25 lines · On Tue, 18 Jun 2024 12:42:11 -0400 Konstantin Ryabitsev…
Documentation/process/maintainer-tip.rst +8 -6
index 64739968afa6..57ffa553c21e 100644
@@ -375,14 +375,26 @@ following tag ordering scheme:
    For referring to an email on LKML or other kernel mailing lists,
    please use the lore.kernel.org redirector URL::
 
-     https://lore.kernel.org/r/email-message@id
+     Link: https://lore.kernel.org/email-message@id
 
-   The kernel.org redirector is considered a stable URL, unlike other email
-   archives.
+   This URL should be used when referring to relevant mailing list
+   resources, related patch sets, or other notable discussion threads.
+   A convenient way to associate Link trailers with the accompanying
+   message is to use markdown-like bracketed notation, for example::
 
-   Maintainers will add a Link tag referencing the email of the patch
-   submission when they apply a patch to the tip tree. This tag is useful
-   for later reference and is also used for commit notifications.
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 397

Quoted 10 lines
Documentation/process/maintainer-tip.rst +10 -0
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here

Hmm, I mentioned this in the other thread, but I also like the fact that my automated script uses the list that it was Cc'd to. That is, if it Cc'd linux-trace-kernel, if not, if it Cc'd linux-trace-devel, it adds that, otherwise it uses lkml. Now, I could just make the lkml use the patch-source-msgid instead.

This does give me some information about what the focus of the patch was. Hmm, maybe I could just make it:

Would anyone have an issue with that?

-- Steve

Quoted 4 lines
Documentation/process/maintainer-tip.rst +0 -0
 Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
 they just complicate automated extraction of tags.
 
#15 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

Hi Steven,

Quoted 22 lines · Steven Rostedt

Documentation/process/maintainer-tip.rst following tag ordering scheme: · line 397

Quoted 13 lines · On Tue, 18 Jun 2024 12:42:11 -0400 Konstantin Ryabitsev…
Documentation/process/maintainer-tip.rst +13 -0
+     A similar approach was attempted before as part of a different
+     effort [1], but the initial implementation caused too many
+     regressions [2], so it was backed out and reimplemented.
+
+     Link: https://lore.kernel.org/some-msgid@here # [1]
+     Link: https://bugzilla.example.org/bug/12345  # [2]
+
+   When using the ``Link:`` trailer to indicate the provenance of the
+   patch, you should use the dedicated ``patch.msgid.link`` domain. This
+   makes it possible for automated tooling to establish which link leads
+   to the original patch submission. For example::
+
+     Link: https://patch.msgid.link/patch-source-msgid@here

Hmm, I mentioned this in the other thread, but I also like the fact that my automated script uses the list that it was Cc'd to. That is, if it Cc'd linux-trace-kernel, if not, if it Cc'd linux-trace-devel, it adds that, otherwise it uses lkml. Now, I could just make the lkml use the patch-source-msgid instead.

Quoted 6 lines

This does give me some information about what the focus of the patch was. Hmm, maybe I could just make it:

Would anyone have an issue with that?

Or, just like with lore links:

https://patch.msgid.link/linux-trace-devel/patch-source-msgid@here

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#16 lore raw

Re: [PATCH 2/2] Documentation: best practices for using Link trailers

Quoted 11 lines · Geert Uytterhoeven
Quoted 11 lines
Quoted 1 line

+ Link: https://patch.msgid.link/patch-source-msgid@here

Hmm, I mentioned this in the other thread, but I also like the fact that my automated script uses the list that it was Cc'd to. That is, if it Cc'd linux-trace-kernel, if not, if it Cc'd linux-trace-devel, it adds that, otherwise it uses lkml. Now, I could just make the lkml use the patch-source-msgid instead.

This does give me some information about what the focus of the patch was. Hmm, maybe I could just make it:

Quoted 7 lines
Quoted 3 lines

Would anyone have an issue with that?

Or, just like with lore links:

https://patch.msgid.link/linux-trace-devel/patch-source-msgid@here

I don't recommend this because it is not always a reliable mechanism to just take the local part of the list address and assume that it will match the list directory on lore.kernel.org. We've had lists that moved around or got renamed, or disambiguated for clarity.

Overall, we're generally moving away from "where was this sent?" having any importance -- we already support lei queries and should soon have bridges exposing patches submitted via forge interfaces. If you want to indicate the focus of the patch, then going by the list to which it was sent is going to increasingly lose importance.

-K