qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Kashyap Chamarthy <kchamart@redhat.com>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Eric Blake" <eblake@redhat.com>,
	"Laurent Vivier" <laurent@vivier.eu>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"John Snow" <jsnow@redhat.com>
Subject: Re: [PATCH 1/2] docs: Fix botched rST conversion of 'submitting-a-patch.rst'
Date: Mon, 22 Nov 2021 10:51:15 +0100	[thread overview]
Message-ID: <56026d2a-0b9e-ff83-d953-a284a810a8ed@redhat.com> (raw)
In-Reply-To: <20211119193118.949698-2-kchamart@redhat.com>

On 19/11/2021 20.31, Kashyap Chamarthy wrote:
> I completely botched up the merged[0] rST conversion of this document by
> accidentally dropping entire hunks (!) of text. :-(  I made it very hard
> for reviewers to spot it, as the omitted text was buried deep in the
> document.  To fix my hatchet job, I reconverted the "SubmitAPatch"
> wiki[1] page from scratch and replaced the existing rST with it, while
> making sure I incorporated previous feedback.

Thanks for the quick update! I've now tripple-checked the differences 
between the old wiki page and the new rst page, and I think with some 
additional small changes on top (which I will do while picking up your 
patch, see below), we should be fine now.

[...]
> @@ -55,16 +55,15 @@ Writing your Patches
>   Use the QEMU coding style
>   ~~~~~~~~~~~~~~~~~~~~~~~~~
>   
> -You can run run *scripts/checkpatch.pl <patchfile>* before submitting to
> -check that you are in compliance with our coding standards. Be aware
> -that ``checkpatch.pl`` is not infallible, though, especially where C
> +You can run run *scripts/checkpatch.pl <patch file>* before submitting
> +to check that you are in compliance with our coding standards. Be aware
> +that checkpatch.pl is not infallible, though, especially where C
>   preprocessor macros are involved; use some common sense too. See also:
>   
> -- `QEMU Coding Style
> -  <https://qemu-project.gitlab.io/qemu/devel/style.html>`__
> -
> +-  `QEMU Coding Style <https://qemu-project.gitlab.io/qemu/devel/style.html>`__

While we're at it, I'll replace the link with an internal link when picking 
up this patch (so that it can also be used in offline documentation).

>   -  `Automate a checkpatch run on
> -   commit <http://blog.vmsplice.net/2011/03/how-to-automatically-run-checkpatchpl.html>`__
> +   commit <https://blog.vmsplice.net/2011/03/how-to-automatically-run-checkpatchpl.html>`__
> +-  Spell check your patches

I'll add the link to https://wiki.qemu.org/Contribute/SpellCheck again.

> @@ -85,7 +91,7 @@ Split up longer patches into a patch series of logical code changes.
>   Each change should compile and execute successfully. For instance, don't
>   add a file to the makefile in patch one and then add the file itself in
>   patch two. (This rule is here so that people can later use tools like
> -`git bisect <http://git-scm.com/docs/git-bisect>`__ without hitting
> +```git bisect`` <http://git-scm.com/docs/git-bisect>`__ without hitting

You've re-introduced the broken git-bisect link. I'll fix it again.

> @@ -170,11 +175,74 @@ displays the subject line some distance apart (that is, a body that
>   starts with "... so that" as a continuation of the subject line is
>   harder to follow).
>   
> +If your patch fixes a commit that is already in the repository, please
> +add a line with "Fixes: ("Fixed commit subject")" below the patch

Missing the "<at-least-12-digits-of-SHA-commit-id>" from the Wiki page. I'll 
add it.

> +description / before your "Signed-off-by:" line in the commit message.
> +
> +If your patch fixes a bug in the gitlab bug tracker, please add a line
> +with "Resolves: " to the commit message, too. Gitlab can close bugs

Missing the "<URL-of-the-bug>" from the Wiki. I'll add it.

> +automatically once commits with the "Resolved:" keyword get merged into
> +the master branch of the project. And if your patch addresses a bug in
> +another public bug tracker, you can also use a line with "Buglink: " for

dito.

> @@ -223,13 +291,22 @@ use --numbered so the cover and the patch have distinct subject lines).

I noticed that the --numbered will be translated into –numbered, so I'll add 
some `` quotes here.

> @@ -288,6 +370,18 @@ it's best to:
>      of the patchset you're looking for review on, and why reviewers
>      should care
>   
> +.. _consider_whether_your_patch_is_applicable_for_stable:
> +
> +Consider whether your patch is applicable for stable
> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +If your patch fixes a severe issue or a regression, it may be applicable
> +for stable. In that case, consider adding ``Cc: qemu-stable@nongnu.org``
> +to your patch to notify the stable maintainers.
> +
> +For more details on how QEMU's stable process works, refer to
> +`docs/devel/stable-process.rst <https://git.qemu.org/?p=qemu.git;a=blob_plain;f=docs/devel/stable-process.rst;hb=HEAD>`__.

While at this, I'll also replace this external link with an internal one.

>   Is my patch in?
>   ~~~~~~~~~~~~~~~
>   
> +QEMU has some Continuous Integration machines that try to catch patch
> +submission problems as soon as possible.  `patchew
> +<http://patchew.org/QEMU/>`__ includes a web interface for tracking the
> +status of various threads that have been posted to the list, and may
> +send you an automated mail if it detected a problem with your patch.
> +
>   Once your patch has had enough review on list, the maintainer for that
>   area of code will send notification to the list that they are including
>   your patch in a particular staging branch. Periodically, the maintainer
>   then sends a `pull request
>   <https://qemu-project.gitlab.io/qemu/devel/submitting-a-pull-request.html>`__

I'll also use an internal link for this reference here.

> -for aggregating topic branches into mainline qemu. Generally, you do not
> +for aggregating topic branches into mainline QEMU. Generally, you do not
>   need to send a pull request unless you have contributed enough patches
>   to become a maintainer over a particular section of code. Maintainers
>   may further modify your commit, by resolving simple merge conflicts or

  Thomas



  reply	other threads:[~2021-11-22  9:52 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-19 19:31 [PATCH 0/2] Fix broken rST conversion of "submitting-a-patch.rst" Kashyap Chamarthy
2021-11-19 19:31 ` [PATCH 1/2] docs: Fix botched rST conversion of 'submitting-a-patch.rst' Kashyap Chamarthy
2021-11-22  9:51   ` Thomas Huth [this message]
2021-11-22 10:20     ` Kashyap Chamarthy
2021-11-22 10:36       ` Thomas Huth
2021-11-22 12:19         ` Kashyap Chamarthy
2021-11-22 12:36           ` Thomas Huth
2021-11-22 12:59             ` Kashyap Chamarthy
2021-11-22 13:25             ` Peter Maydell
2021-11-22 13:30               ` Thomas Huth
2021-11-22 13:33                 ` Daniel P. Berrangé
2021-11-22 13:38                   ` Thomas Huth
2021-11-22 13:53                 ` Peter Maydell
2021-11-22 14:01                   ` Thomas Huth
2021-11-22 14:45                     ` Kashyap Chamarthy
2021-11-19 19:31 ` [PATCH 2/2] docs: List more commit-message tags "in submitting-a-patch" Kashyap Chamarthy
2021-11-19 20:19 ` [PATCH 0/2] Fix broken rST conversion of "submitting-a-patch.rst" Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56026d2a-0b9e-ff83-d953-a284a810a8ed@redhat.com \
    --to=thuth@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kchamart@redhat.com \
    --cc=laurent@vivier.eu \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).