All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <mlureau@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5)
Date: Tue, 13 Sep 2016 10:29:27 -0400 (EDT)	[thread overview]
Message-ID: <1315953386.299567.1473776967487.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <87y42v5241.fsf@dusky.pond.sub.org>

Hi

----- Original Message -----
> Marc-André Lureau <marcandre.lureau@redhat.com> writes:
> 
> > Hi,
> >
> > The QAPI documentation is currently done in two places, the json
> > schema and a more human-friendly text file. The goal is to avoid
> > duplication and to generate friendly versions from the schema (pdf,
> > man etc).  Thus, all documentation should be moved to the schema.
> >
> > In order to facilitate the review, the documentation move has been
> > splitted, and is going to sent by chunks of ~30 patches. This way it
> > should take about 5 series to complete (~150 patches). I suggest that
> > the qapi maintainers (Markus/Eric) compile the reviewed patches in a
> > branch and merge upstream in one go (either merging move commits or
> > not) when the series complete and the documentation is finally
> > generated to avoid an in-between state.
> >
> > The wip branch with all the pending patches:
> > https://github.com/elmarco/qemu/commits/qapi-doc
> 
> Ah, now I understand why you asked whether to post everything!  The
> "move FOO doc to schema" patches make no sense until the very end of the
> full branch, when you actually generate documentation from the schema.
> 
> Perhaps you could structure like this:
> 
> 1. Fix existing issues in QAPI schema comments
> 
> 2. Generate documentation from it (not a replacement for
>    qmp-commands.txt, yet)
> 
> 3. Merge qmp-commands.txt into QAPI schema comments, step by step
> 
>    (a) If you only update the QAPI schema comments, qmp-commands.txt
>    stays intact throughout this work.
> 
>    (b) If you delete qmp-commands.txt section as you cover them in the
>    QAPI schema, command documentation regresses temporarily.  Tolerable,
>    but needs to be explained in commit messages.  Your choice.
> 
> 4. Generated documentation now contains everything qmp-commands.txt
>    contains; delete qmp-commands.txt
> 
> Getting to this structure with option (3b) could be as simple as
> reordering your branch.

3(a) makes it hard to check that everything has been moved properly, while removing 3(b) makes it clear what is removed and adjusted in the corresponding schema doc, and by the end of 3(b) it's clear that nothing has been left behind.

Generating the documentation before the end of 3(b) will also lead to temporarily incomplete generated doc, and will conflict with existing qmp-commands.txt.

That's why I think the best solution is to go through 3(b) now, collect the move in a branch and push it in one go when qmp-commands.txt is empty and the doc is generated.

      reply	other threads:[~2016-09-13 14:29 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13 13:01 [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5) Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 01/30] qmp-commands: move 'add_client' doc to schema Marc-André Lureau
2016-09-20 17:47   ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 02/30] qmp-commands: move 'query-name' " Marc-André Lureau
2016-09-20 18:05   ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 03/30] qmp-commands: move 'query-kvm' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 04/30] qmp-commands: move 'query-status' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 05/30] qmp-commands: move 'query-uuid' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 06/30] qmp-commands: move 'query-chardev' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 07/30] qmp-commands: move 'query-chardev-backends' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 08/30] qmp-commands: move 'ringbuf-write' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 09/30] qmp-commands: move 'ringbuf-read' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 10/30] qmp-commands: move 'query-events' " Marc-André Lureau
2016-09-20 18:14   ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 11/30] qmp-commands: move 'query-migrate' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 12/30] qmp-commands: move 'migrate-set-capabilities' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 13/30] qmp-commands: move 'query-migrate-capabilities' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 14/30] qmp-commands: move 'migrate-set-parameters' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 15/30] qmp-commands: move 'query-migrate-parameters' " Marc-André Lureau
2016-09-21 19:31   ` Eric Blake
2016-09-21 20:01     ` Marc-André Lureau
2016-09-22  8:40       ` Markus Armbruster
2016-09-22  8:45         ` Marc-André Lureau
2016-09-22 11:19           ` Markus Armbruster
2016-09-22 11:54             ` Marc-André Lureau
2016-09-22 12:30               ` Markus Armbruster
2016-09-22 12:39                 ` Marc-André Lureau
2016-09-23  7:32                   ` Markus Armbruster
2016-09-23  8:03                     ` Marc-André Lureau
2016-09-22 12:57               ` Eric Blake
2016-09-13 13:01 ` [Qemu-devel] [PATCH 16/30] qmp-commands: move 'client_migrate_info' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 17/30] qmp-commands: move 'migrate-start-postcopy' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 18/30] qmp-commands: move 'query-mice' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 19/30] qmp-commands: move 'query-cpus' " Marc-André Lureau
2016-09-13 13:01 ` [Qemu-devel] [PATCH 20/30] qmp-commands: move 'query-iothreads' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 21/30] qmp-commands: move 'query-vnc' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 22/30] qmp-commands: move 'query-spice' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 23/30] qmp-commands: move 'query-balloon' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 24/30] qmp-commands: move 'query-pci' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 25/30] qmp-commands: move 'quit' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 26/30] qmp-commands: move 'stop' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 27/30] qmp-commands: move 'system_reset' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 28/30] qmp-commands: move 'system_powerdown' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 29/30] qmp-commands: move 'cpu-add' " Marc-André Lureau
2016-09-13 13:02 ` [Qemu-devel] [PATCH 30/30] qmp-commands: move 'memsave' " Marc-André Lureau
2016-09-21 19:43   ` Eric Blake
2016-09-13 14:02 ` [Qemu-devel] [PATCH 00/30] Move qapi documentation to schema (part 1/5) Markus Armbruster
2016-09-13 14:29   ` Marc-André Lureau [this message]

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=1315953386.299567.1473776967487.JavaMail.zimbra@redhat.com \
    --to=mlureau@redhat.com \
    --cc=armbru@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.