Skip to content

qapi: enforce section ordering

John Snow qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14qapi: rename "plain" sections to "details"docs/sphinx/qapidoc.py scripts/qapi/parser.py tests/qapi-schema/doc-good.out+21 -172 replies
2/14docs/qapi-code-gen: expand each section's syntax into a mini-sectiondocs/devel/qapi-code-gen.rst+90 -200 replies
3/14qapi: re-order QAPI doc block sectionsqapi/accelerator.json qapi/block-core.json qapi/block-export.json +10 more+124 -1242 replies
4/14qapi/parser: enforce doc block section orderingdocs/devel/qapi-code-gen.rst scripts/qapi/parser.py+48 -123 replies
5/14qapi: move 'details' sections to the bottom of doc blocksdocs/interop/firmware.json docs/interop/vhost-user.json qapi/acpi.json +22 more+556 -5561 reply
6/14qapi/parser: enforce 'details' sections' relative positionscripts/qapi/parser.py+1 -20 replies
7/14qapi: re-order 'since' sections to always be lastdocs/interop/firmware.json docs/interop/vhost-user.json qapi/accelerator.json +25 more+429 -4300 replies
8/14qapi/parser: enforce strict positioning for "Since:" sectionscripts/qapi/parser.py+1 -13 replies
9/14qapi/parser: remove _insert_after_intro() helperscripts/qapi/parser.py+7 -423 replies
10/14qapi/parser: add _append() methodscripts/qapi/parser.py+31 -193 replies
11/14qapi/parser: privatize "all_sections" field as "_sections"docs/sphinx/qapidoc.py scripts/qapi/parser.py tests/qapi-schema/test-qapi.py+22 -141 reply
12/14qapi/parser: add _active_section private memberscripts/qapi/parser.py+11 -60 replies
13/14qapi/parser: add new _sections mappingdocs/sphinx/qapidoc.py scripts/qapi/parser.py tests/qapi-schema/doc-good.out+20 -641 reply
14/14qapi/parser: convert single-section properties to getter propertiesscripts/qapi/parser.py+26 -211 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] qapi: enforce section ordering

howdy,

this series begins enforcing a strict section ordering in the QAPI parser. This allows us to change how we store sections internally in QAPIDoc so that we always have well-defined points in any documentation block where we may insert auto-generated documentation sections when applicable.

This series is effectively RFC quality; I am aware that we will need more unit tests for the new negative cases at a minimum.

This is the last series messing around with the QAPIDoc format before I move on to directly working on the inliner again.

John Snow (14):
qapi: rename "plain" sections to "details" docs/qapi-code-gen: expand each section's syntax into a mini-section
qapi: re-order QAPI doc block sections
qapi/parser: enforce doc block section ordering
qapi: move 'details' sections to the bottom of doc blocks qapi/parser: enforce 'details' sections' relative position
qapi: re-order 'since' sections to always be last qapi/parser: enforce strict positioning for "Since:" section qapi/parser: remove _insert_after_intro() helper qapi/parser: add _append() method
qapi/parser: privatize "all_sections" field as "_sections" qapi/parser: add _active_section private member qapi/parser: add new _sections mapping
qapi/parser: convert single-section properties to getter properties

 docs/devel/qapi-code-gen.rst    | 117 ++++++--
 docs/interop/firmware.json      |  54 ++--
 docs/interop/vhost-user.json    |  29 +-
 docs/sphinx/qapidoc.py          |  15 +-
 qapi/accelerator.json           |  16 +-
 qapi/acpi.json                  |  36 +--
 qapi/block-core.json            | 476 ++++++++++++++++----------------
 qapi/block-export.json          |  38 +--
 qapi/block.json                 | 114 ++++----
 qapi/char.json                  |  36 +--
 qapi/compat.json                |  14 +-
 qapi/control.json               |  12 +-
 qapi/crypto.json                |   4 +-
 qapi/dump.json                  |  16 +-
 qapi/introspect.json            |  14 +-
 qapi/job.json                   |  26 +-
 qapi/machine-s390x.json         |  28 +-
 qapi/machine.json               | 324 +++++++++++-----------
 qapi/migration.json             | 144 +++++-----
 qapi/misc-arm.json              |   4 +-
 qapi/misc-i386.json             |  58 ++--
 qapi/misc.json                  |  84 +++---
 qapi/net.json                   |  64 ++---
 qapi/pci.json                   |   4 +-
 qapi/qdev.json                  |  24 +-
 qapi/qom.json                   |  56 ++--
 qapi/replay.json                |  16 +-
 qapi/rocker.json                |  16 +-
 qapi/run-state.json             |  64 ++---
 qapi/stats.json                 |   6 +-
 qapi/tpm.json                   |  12 +-
 qapi/trace.json                 |   8 +-
 qapi/transaction.json           |  34 +--
 qapi/ui.json                    |  90 +++---
 qapi/vfio.json                  |   4 +-
 qapi/virtio.json                |  46 +--
 qga/qapi-schema.json            |  80 +++---
 scripts/qapi/parser.py          | 232 ++++++++--------
 tests/qapi-schema/doc-good.json |  16 +-
 tests/qapi-schema/doc-good.out  |  34 +--
 tests/qapi-schema/doc-good.txt  |  22 +-
 tests/qapi-schema/test-qapi.py  |   2 +-
 42 files changed, 1274 insertions(+), 1215 deletions(-)
Signature · 1 line
2.55.0