[PATCH v2 00/15] qapi: Spring cleaning

Markus Armbruster posted 15 patches 4 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200424084338.26803-1-armbru@redhat.com
Test docker-mingw@fedora passed
Test docker-quick@centos7 failed
Test checkpatch passed
Test FreeBSD passed
Test asan passed
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Max Reitz <mreitz@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Markus Armbruster <armbru@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Michael Roth <mdroth@linux.vnet.ibm.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Liu Yuan <namei.unix@gmail.com>
docs/devel/qapi-code-gen.txt        |   4 +-
include/qapi/visitor-impl.h         |   9 +-
include/qapi/visitor.h              | 192 ++++++++++++++++------------
block.c                             |   9 +-
block/sheepdog.c                    |   9 +-
blockdev.c                          |  16 +--
hw/core/machine-hmp-cmds.c          |   2 +-
monitor/hmp-cmds.c                  |   3 +-
monitor/qmp.c                       |   5 +-
qapi/qapi-dealloc-visitor.c         |   7 -
qapi/qapi-visit-core.c              |  20 +--
qom/object.c                        |   4 +-
tests/test-qobject-output-visitor.c |  39 ------
tests/test-string-output-visitor.c  |  19 ---
scripts/qapi/commands.py            |  62 ++++-----
scripts/qapi/visit.py               |   8 ++
16 files changed, 174 insertions(+), 234 deletions(-)
[PATCH v2 00/15] qapi: Spring cleaning
Posted by Markus Armbruster 4 years ago
v2:
* PATCH 10: Redone to avoid memory leak [Eric]
* PATCH 14+15: New

Since PATCH 14 depends on "[PATCH 2/3] fuzz: Simplify how we compute
available machines and types":
Based-on: <20200424071142.3525-1-armbru@redhat.com>

Markus Armbruster (15):
  qapi: Belatedly update visitor.h's big comment for QAPI modules
  qapi: Fix the virtual walk example in visitor.h's big comment
  qapi: Fix typo in visit_start_list()'s contract
  qapi: Document @errp usage more thoroughly in visitor.h
  qapi: Polish prose in visitor.h
  qapi: Assert incomplete object occurs only in dealloc visitor
  qapi: Fix Visitor contract for start_alternate()
  qapi: Assert output visitors see only valid enum values
  qapi: Assert non-input visitors see only valid narrow integers
  qapi: Clean up visitor's recovery from input with invalid type
  qapi: Assert non-input visitors see only valid alternate tags
  qapi: Only input visitors can actually fail
  qom: Simplify object_property_get_enum()
  qapi: Disallow qmp_marshal_FOO(NULL, ...)
  qapi: Generate simpler marshalling code when no arguments

 docs/devel/qapi-code-gen.txt        |   4 +-
 include/qapi/visitor-impl.h         |   9 +-
 include/qapi/visitor.h              | 192 ++++++++++++++++------------
 block.c                             |   9 +-
 block/sheepdog.c                    |   9 +-
 blockdev.c                          |  16 +--
 hw/core/machine-hmp-cmds.c          |   2 +-
 monitor/hmp-cmds.c                  |   3 +-
 monitor/qmp.c                       |   5 +-
 qapi/qapi-dealloc-visitor.c         |   7 -
 qapi/qapi-visit-core.c              |  20 +--
 qom/object.c                        |   4 +-
 tests/test-qobject-output-visitor.c |  39 ------
 tests/test-string-output-visitor.c  |  19 ---
 scripts/qapi/commands.py            |  62 ++++-----
 scripts/qapi/visit.py               |   8 ++
 16 files changed, 174 insertions(+), 234 deletions(-)

-- 
2.21.1


Re: [PATCH v2 00/15] qapi: Spring cleaning
Posted by no-reply@patchew.org 4 years ago
Patchew URL: https://patchew.org/QEMU/20200424084338.26803-1-armbru@redhat.com/



Hi,

This series failed the docker-quick@centos7 build test. Please find the testing commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
make docker-image-centos7 V=1 NETWORK=1
time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1
=== TEST SCRIPT END ===

-...........................
+........................E..
+======================================================================
+ERROR: test_stream_pause (__main__.TestSingleDrive)
+----------------------------------------------------------------------
+Traceback (most recent call last):
+  File "030", line 93, in test_stream_pause
---
 Ran 27 tests
 
-OK
+FAILED (errors=1)
Could not access KVM kernel module: No such file or directory
qemu-system-x86_64: -accel kvm: failed to initialize kvm: No such file or directory
qemu-system-x86_64: falling back to tcg
---
Not run: 259
Failures: 030
Failed 1 of 117 iotests
make: *** [check-tests/check-block.sh] Error 1
Traceback (most recent call last):
  File "./tests/docker/docker.py", line 664, in <module>
    sys.exit(main())
---
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', '-n', 'docker', 'run', '--label', 'com.qemu.instance.uuid=a65cca4cfb0f47d6afb0146008cfda36', '-u', '1001', '--security-opt', 'seccomp=unconfined', '--rm', '-e', 'TARGET_LIST=', '-e', 'EXTRA_CONFIGURE_OPTS=', '-e', 'V=', '-e', 'J=14', '-e', 'DEBUG=', '-e', 'SHOW_ENV=1', '-e', 'CCACHE_DIR=/var/tmp/ccache', '-v', '/home/patchew/.cache/qemu-docker-ccache:/var/tmp/ccache:z', '-v', '/var/tmp/patchew-tester-tmp-eyoly1_s/src/docker-src.2020-04-24-05.52.13.3890:/var/tmp/qemu:z,ro', 'qemu:centos7', '/var/tmp/qemu/run', 'test-quick']' returned non-zero exit status 2.
filter=--filter=label=com.qemu.instance.uuid=a65cca4cfb0f47d6afb0146008cfda36
make[1]: *** [docker-run] Error 1
make[1]: Leaving directory `/var/tmp/patchew-tester-tmp-eyoly1_s/src'
make: *** [docker-run-test-quick@centos7] Error 2

real    14m41.321s
user    0m9.235s


The full log is available at
http://patchew.org/logs/20200424084338.26803-1-armbru@redhat.com/testing.docker-quick@centos7/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to patchew-devel@redhat.com
Re: [PATCH v2 00/15] qapi: Spring cleaning
Posted by Eric Blake 4 years ago
On 4/24/20 5:06 AM, no-reply@patchew.org wrote:
> Patchew URL: https://patchew.org/QEMU/20200424084338.26803-1-armbru@redhat.com/
> 
> 
> 
> Hi,
> 
> This series failed the docker-quick@centos7 build test. Please find the testing commands and
> their output below. If you have Docker installed, you can probably reproduce it
> locally.
> 
> === TEST SCRIPT BEGIN ===
> #!/bin/bash
> make docker-image-centos7 V=1 NETWORK=1
> time make docker-test-quick@centos7 SHOW_ENV=1 J=14 NETWORK=1
> === TEST SCRIPT END ===
> 
> -...........................
> +........................E..
> +======================================================================
> +ERROR: test_stream_pause (__main__.TestSingleDrive)
> +----------------------------------------------------------------------
> +Traceback (most recent call last):
> +  File "030", line 93, in test_stream_pause

Not sure how this would be related to your series, or if it is a 
spurious flakiness in the test that just chose to hit now.  iotest 30 is 
passing fine for me even with your series applied.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Re: [PATCH v2 00/15] qapi: Spring cleaning
Posted by Markus Armbruster 4 years ago
Queued.