* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
@ 2024-06-19 7:12 ` Leon Romanovsky
2024-06-19 14:24 ` Konstantin Ryabitsev
2024-06-19 8:08 ` Dan Carpenter
` (5 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Leon Romanovsky @ 2024-06-19 7:12 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Jonathan Corbet, Carlos Bilbao, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, workflows, linux-doc, linux-kernel,
netdev, ksummit
On Tue, Jun 18, 2024 at 12:42:11PM -0400, Konstantin Ryabitsev wrote:
> 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
>
> Cc: ksummit@lists.linux.dev
> Link: https://lore.kernel.org/20240617-arboreal-industrious-hedgehog-5b84ae@meerkat # [1]
> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
> ---
> Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
> 1 file changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> index 64739968afa6..57ffa553c21e 100644
> --- a/Documentation/process/maintainer-tip.rst
> +++ b/Documentation/process/maintainer-tip.rst
> @@ -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
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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-19 7:12 ` Leon Romanovsky
@ 2024-06-19 14:24 ` Konstantin Ryabitsev
0 siblings, 0 replies; 17+ messages in thread
From: Konstantin Ryabitsev @ 2024-06-19 14:24 UTC (permalink / raw)
To: Leon Romanovsky
Cc: Jonathan Corbet, Carlos Bilbao, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, workflows, linux-doc, linux-kernel,
netdev, ksummit
On Wed, Jun 19, 2024 at 10:12:51AM GMT, Leon Romanovsky wrote:
> 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.
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
2024-06-19 7:12 ` Leon Romanovsky
@ 2024-06-19 8:08 ` Dan Carpenter
2024-06-19 8:41 ` Michael S. Tsirkin
` (4 subsequent siblings)
6 siblings, 0 replies; 17+ messages in thread
From: Dan Carpenter @ 2024-06-19 8:08 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Jonathan Corbet, Carlos Bilbao, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, workflows, linux-doc, linux-kernel,
netdev, ksummit
On Tue, Jun 18, 2024 at 12:42:11PM -0400, Konstantin Ryabitsev wrote:
> 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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
2024-06-19 7:12 ` Leon Romanovsky
2024-06-19 8:08 ` Dan Carpenter
@ 2024-06-19 8:41 ` Michael S. Tsirkin
2024-06-19 8:53 ` Michael S. Tsirkin
2024-06-19 8:50 ` Jani Nikula
` (3 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Michael S. Tsirkin @ 2024-06-19 8:41 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Jonathan Corbet, Carlos Bilbao, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, workflows, linux-doc, linux-kernel,
netdev, ksummit
On Tue, Jun 18, 2024 at 12:42:11PM -0400, Konstantin Ryabitsev wrote:
> 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
>
> Cc: ksummit@lists.linux.dev
> Link: https://lore.kernel.org/20240617-arboreal-industrious-hedgehog-5b84ae@meerkat # [1]
> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
> ---
> Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
> 1 file changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> index 64739968afa6..57ffa553c21e 100644
> --- a/Documentation/process/maintainer-tip.rst
> +++ b/Documentation/process/maintainer-tip.rst
> @@ -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.
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?
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-19 8:41 ` Michael S. Tsirkin
@ 2024-06-19 8:53 ` Michael S. Tsirkin
0 siblings, 0 replies; 17+ messages in thread
From: Michael S. Tsirkin @ 2024-06-19 8:53 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Jonathan Corbet, Carlos Bilbao, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, workflows, linux-doc, linux-kernel,
netdev, ksummit
On Wed, Jun 19, 2024 at 04:41:49AM -0400, Michael S. Tsirkin wrote:
> On Tue, Jun 18, 2024 at 12:42:11PM -0400, Konstantin Ryabitsev wrote:
> > 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
> >
> > Cc: ksummit@lists.linux.dev
> > Link: https://lore.kernel.org/20240617-arboreal-industrious-hedgehog-5b84ae@meerkat # [1]
> > Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
> > ---
> > Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
> > 1 file changed, 18 insertions(+), 6 deletions(-)
> >
> > diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> > index 64739968afa6..57ffa553c21e 100644
> > --- a/Documentation/process/maintainer-tip.rst
> > +++ b/Documentation/process/maintainer-tip.rst
> > @@ -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.
>
> 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!
>
>
> > --
> > 2.45.2
> >
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
` (2 preceding siblings ...)
2024-06-19 8:41 ` Michael S. Tsirkin
@ 2024-06-19 8:50 ` Jani Nikula
2024-06-19 9:08 ` Michael S. Tsirkin
2024-06-20 8:45 ` Thorsten Leemhuis
` (2 subsequent siblings)
6 siblings, 1 reply; 17+ messages in thread
From: Jani Nikula @ 2024-06-19 8:50 UTC (permalink / raw)
To: Konstantin Ryabitsev, Jonathan Corbet, Carlos Bilbao,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: workflows, linux-doc, linux-kernel, netdev, Konstantin Ryabitsev,
ksummit
On Tue, 18 Jun 2024, Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> 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
>
> Cc: ksummit@lists.linux.dev
> Link: https://lore.kernel.org/20240617-arboreal-industrious-hedgehog-5b84ae@meerkat # [1]
> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
> ---
> Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
> 1 file changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> index 64739968afa6..57ffa553c21e 100644
> --- a/Documentation/process/maintainer-tip.rst
> +++ b/Documentation/process/maintainer-tip.rst
> @@ -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::
Mostly highlighting my own ignorance here, but s/provenance/origin/
would've felt more obvious to me, as a non-native speaker.
BR,
Jani.
> +
> + 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.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-19 8:50 ` Jani Nikula
@ 2024-06-19 9:08 ` Michael S. Tsirkin
0 siblings, 0 replies; 17+ messages in thread
From: Michael S. Tsirkin @ 2024-06-19 9:08 UTC (permalink / raw)
To: Jani Nikula
Cc: Konstantin Ryabitsev, Jonathan Corbet, Carlos Bilbao,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
workflows, linux-doc, linux-kernel, netdev, ksummit
On Wed, Jun 19, 2024 at 11:50:48AM +0300, Jani Nikula wrote:
> On Tue, 18 Jun 2024, Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> > 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
> >
> > Cc: ksummit@lists.linux.dev
> > Link: https://lore.kernel.org/20240617-arboreal-industrious-hedgehog-5b84ae@meerkat # [1]
> > Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
> > ---
> > Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
> > 1 file changed, 18 insertions(+), 6 deletions(-)
> >
> > diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> > index 64739968afa6..57ffa553c21e 100644
> > --- a/Documentation/process/maintainer-tip.rst
> > +++ b/Documentation/process/maintainer-tip.rst
> > @@ -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::
>
> Mostly highlighting my own ignorance here, but s/provenance/origin/
> would've felt more obvious to me, as a non-native speaker.
>
> BR,
> Jani.
Or even "origin (message id)" to be very explicit.
>
> > +
> > + 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.
>
> --
> Jani Nikula, Intel
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
` (3 preceding siblings ...)
2024-06-19 8:50 ` Jani Nikula
@ 2024-06-20 8:45 ` Thorsten Leemhuis
2024-06-22 20:10 ` Carlos Bilbao
2024-06-25 21:27 ` Steven Rostedt
6 siblings, 0 replies; 17+ messages in thread
From: Thorsten Leemhuis @ 2024-06-20 8:45 UTC (permalink / raw)
To: Konstantin Ryabitsev, Jonathan Corbet, Carlos Bilbao,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: workflows, linux-doc, linux-kernel, netdev, ksummit
On 18.06.24 18:42, Konstantin Ryabitsev wrote:
> 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
[...]
> + 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::
Link: https://patch.msgid.link/patch-source-msgid@here
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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
` (4 preceding siblings ...)
2024-06-20 8:45 ` Thorsten Leemhuis
@ 2024-06-22 20:10 ` Carlos Bilbao
2024-06-25 21:27 ` Steven Rostedt
6 siblings, 0 replies; 17+ messages in thread
From: Carlos Bilbao @ 2024-06-22 20:10 UTC (permalink / raw)
To: Konstantin Ryabitsev, Jonathan Corbet, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: workflows, linux-doc, linux-kernel, netdev, ksummit
On 6/18/24 11:42, Konstantin Ryabitsev wrote:
> 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
>
> Cc: ksummit@lists.linux.dev
> Link: https://lore.kernel.org/20240617-arboreal-industrious-hedgehog-5b84ae@meerkat # [1]
> Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Nice!
Acked-by: Carlos Bilbao <carlos.bilbao.osdev@gmail.com>
> ---
> Documentation/process/maintainer-tip.rst | 24 ++++++++++++++++++------
> 1 file changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> index 64739968afa6..57ffa553c21e 100644
> --- a/Documentation/process/maintainer-tip.rst
> +++ b/Documentation/process/maintainer-tip.rst
> @@ -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.
Thanks,
Carlos
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-18 16:42 ` [PATCH 2/2] Documentation: best practices for using Link trailers Konstantin Ryabitsev
` (5 preceding siblings ...)
2024-06-22 20:10 ` Carlos Bilbao
@ 2024-06-25 21:27 ` Steven Rostedt
2024-06-26 8:12 ` Geert Uytterhoeven
6 siblings, 1 reply; 17+ messages in thread
From: Steven Rostedt @ 2024-06-25 21:27 UTC (permalink / raw)
To: Konstantin Ryabitsev
Cc: Jonathan Corbet, Carlos Bilbao, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, workflows, linux-doc, linux-kernel,
netdev, ksummit
On Tue, 18 Jun 2024 12:42:11 -0400
Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
>
> diff --git a/Documentation/process/maintainer-tip.rst b/Documentation/process/maintainer-tip.rst
> index 64739968afa6..57ffa553c21e 100644
> --- a/Documentation/process/maintainer-tip.rst
> +++ b/Documentation/process/maintainer-tip.rst
> @@ -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
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:
Link: https://patch.msgid.link/patch-source-msgid@here # linux-trace-devel
Would anyone have an issue with that?
-- Steve
>
> Please do not use combined tags, e.g. ``Reported-and-tested-by``, as
> they just complicate automated extraction of tags.
>
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-25 21:27 ` Steven Rostedt
@ 2024-06-26 8:12 ` Geert Uytterhoeven
2024-06-26 14:16 ` Konstantin Ryabitsev
0 siblings, 1 reply; 17+ messages in thread
From: Geert Uytterhoeven @ 2024-06-26 8:12 UTC (permalink / raw)
To: Steven Rostedt
Cc: Konstantin Ryabitsev, Jonathan Corbet, Carlos Bilbao,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
workflows, linux-doc, linux-kernel, netdev, ksummit
Hi Steven,
On Tue, Jun 25, 2024 at 11:27 PM Steven Rostedt <rostedt@goodmis.org> wrote:
> On Tue, 18 Jun 2024 12:42:11 -0400
> Konstantin Ryabitsev <konstantin@linuxfoundation.org> wrote:
> > + 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.
>
> This does give me some information about what the focus of the patch
> was. Hmm, maybe I could just make it:
>
> Link: https://patch.msgid.link/patch-source-msgid@here # linux-trace-devel
>
> 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
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 17+ messages in thread* Re: [PATCH 2/2] Documentation: best practices for using Link trailers
2024-06-26 8:12 ` Geert Uytterhoeven
@ 2024-06-26 14:16 ` Konstantin Ryabitsev
0 siblings, 0 replies; 17+ messages in thread
From: Konstantin Ryabitsev @ 2024-06-26 14:16 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Steven Rostedt, Jonathan Corbet, Carlos Bilbao, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, workflows, linux-doc,
linux-kernel, netdev, ksummit
On Wed, Jun 26, 2024 at 10:12:35AM GMT, Geert Uytterhoeven wrote:
> > > + 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:
> >
> > Link: https://patch.msgid.link/patch-source-msgid@here # linux-trace-devel
> >
> > 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
^ permalink raw reply [flat|nested] 17+ messages in thread