From: Laszlo Ersek <lersek@redhat.com>
To: Wainer dos Santos Moschetta <wainersm@redhat.com>, qemu-devel@nongnu.org
Cc: fam@euphon.net, peter.maydell@linaro.org, philmd@redhat.com,
pbonzini@redhat.com, alex.bennee@linaro.org
Subject: Re: [Qemu-devel] [PATCH 0/5] tests/vm: Python 3, improve image caching, and misc
Date: Wed, 24 Apr 2019 11:07:32 +0200 [thread overview]
Message-ID: <5bf78706-d357-a92d-7065-46a9839c9c2f@redhat.com> (raw)
In-Reply-To: <5005fcec-42af-427c-4f68-8415490e9598@redhat.com>
Hello Wainer,
(answering because I dislike ignoring emails without giving any feedback:)
On 04/23/19 21:28, Wainer dos Santos Moschetta wrote:
> Ping. More reviews needed.
>
> I've already got Philippe's reviewed-by, thanks!
I'm going to skip this one. According to "scripts/get_maintainer.pl", an
ACK from either Alex or Fam should suffice. (They could also decide to
queue your set with Phil's R-b, who's a designated reviewer on this topic.)
Thanks
Laszlo
> On 03/29/2019 06:07 PM, Wainer dos Santos Moschetta wrote:
>> Hi all!
>>
>> This series bundles the support to Python3, improvement to image
>> caching, and miscellaneous changes for the vm-test (`make vm-build-*`).
>>
>> Git tree: http://github.com/wainersm/qemu
>> Branch: vm_test_python3_and_misc
>> Travis: https://travis-ci.org/wainersm/qemu/builds/513220300
>>
>> Below you can find some general comments.
>>
>> Patch 01:
>> Uses python configured at build, although vm-test can be executed from
>> the code tree (see docs/devel/testing.rst) too. In this case $(PYTHON)
>> will be empty and it picks python pointed by the script's shebang, as
>> a result failing on Python 3 only Linux distros.
>>
>> Patch 02:
>> Ported based.py to work with Python 3 (kept Python 2 compatibility).
>> Fixed the follow errors:
>> - Raising "TypeError: Unicode-objects must be encoded before
>> hashing" exception by hashlib.sha1().
>> - get_default_jobs() is used to set the vm cpus, but it was
>> returning an invalid float number.
>> - On check_sha256sum(), subprocess.check_output() returns bytes so
>> that string comparison was failing.
>>
>> Patch 03:
>> Implemented a simple mechanism to detect the image file changed on
>> http://download.patchew.org, as discussed in
>> https://www.mail-archive.com/qemu-devel@nongnu.org/msg607839.html. I
>> didn't implement the '--force' option that Paolo suggested, because it
>> would require a major refactoring (technically the vm implementation
>> decides whether use the cache or not). My intention is to keep the
>> script as simple as possible, so IMO, if the image file changed on the
>> server then it should equally be updated the checksum on QEMU's side.
>>
>> Patch 04:
>> Default network (NETWORK=1) backend is enough to have the docker-based
>> tests run properly. Note: `make docker-test-block@centos7` is broken
>> inside the CentOS VM and apparently on my host (Fedora 29 x86_64) too.
>>
>> Wainer dos Santos Moschetta (5):
>> tests/vm: Use python configured on build
>> tests/vm: Port basevm to Python 3
>> tests/vm: Detect the image changed on server
>> tests/vm: Fix build-centos docker-based tests run
>> tests/vm: Add missing variables on help
>>
>> tests/vm/Makefile.include | 12 ++++++++----
>> tests/vm/basevm.py | 39 ++++++++++++++++++++++++++++++++++-----
>> tests/vm/centos | 6 +++---
>> 3 files changed, 45 insertions(+), 12 deletions(-)
>>
>
WARNING: multiple messages have this Message-ID (diff)
From: Laszlo Ersek <lersek@redhat.com>
To: Wainer dos Santos Moschetta <wainersm@redhat.com>, qemu-devel@nongnu.org
Cc: fam@euphon.net, peter.maydell@linaro.org, alex.bennee@linaro.org,
philmd@redhat.com, pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH 0/5] tests/vm: Python 3, improve image caching, and misc
Date: Wed, 24 Apr 2019 11:07:32 +0200 [thread overview]
Message-ID: <5bf78706-d357-a92d-7065-46a9839c9c2f@redhat.com> (raw)
Message-ID: <20190424090732.nMTfam0lDzdDniUIqcmESXr5cT_jSNdt2xUMecaOjxw@z> (raw)
In-Reply-To: <5005fcec-42af-427c-4f68-8415490e9598@redhat.com>
Hello Wainer,
(answering because I dislike ignoring emails without giving any feedback:)
On 04/23/19 21:28, Wainer dos Santos Moschetta wrote:
> Ping. More reviews needed.
>
> I've already got Philippe's reviewed-by, thanks!
I'm going to skip this one. According to "scripts/get_maintainer.pl", an
ACK from either Alex or Fam should suffice. (They could also decide to
queue your set with Phil's R-b, who's a designated reviewer on this topic.)
Thanks
Laszlo
> On 03/29/2019 06:07 PM, Wainer dos Santos Moschetta wrote:
>> Hi all!
>>
>> This series bundles the support to Python3, improvement to image
>> caching, and miscellaneous changes for the vm-test (`make vm-build-*`).
>>
>> Git tree: http://github.com/wainersm/qemu
>> Branch: vm_test_python3_and_misc
>> Travis: https://travis-ci.org/wainersm/qemu/builds/513220300
>>
>> Below you can find some general comments.
>>
>> Patch 01:
>> Uses python configured at build, although vm-test can be executed from
>> the code tree (see docs/devel/testing.rst) too. In this case $(PYTHON)
>> will be empty and it picks python pointed by the script's shebang, as
>> a result failing on Python 3 only Linux distros.
>>
>> Patch 02:
>> Ported based.py to work with Python 3 (kept Python 2 compatibility).
>> Fixed the follow errors:
>> - Raising "TypeError: Unicode-objects must be encoded before
>> hashing" exception by hashlib.sha1().
>> - get_default_jobs() is used to set the vm cpus, but it was
>> returning an invalid float number.
>> - On check_sha256sum(), subprocess.check_output() returns bytes so
>> that string comparison was failing.
>>
>> Patch 03:
>> Implemented a simple mechanism to detect the image file changed on
>> http://download.patchew.org, as discussed in
>> https://www.mail-archive.com/qemu-devel@nongnu.org/msg607839.html. I
>> didn't implement the '--force' option that Paolo suggested, because it
>> would require a major refactoring (technically the vm implementation
>> decides whether use the cache or not). My intention is to keep the
>> script as simple as possible, so IMO, if the image file changed on the
>> server then it should equally be updated the checksum on QEMU's side.
>>
>> Patch 04:
>> Default network (NETWORK=1) backend is enough to have the docker-based
>> tests run properly. Note: `make docker-test-block@centos7` is broken
>> inside the CentOS VM and apparently on my host (Fedora 29 x86_64) too.
>>
>> Wainer dos Santos Moschetta (5):
>> tests/vm: Use python configured on build
>> tests/vm: Port basevm to Python 3
>> tests/vm: Detect the image changed on server
>> tests/vm: Fix build-centos docker-based tests run
>> tests/vm: Add missing variables on help
>>
>> tests/vm/Makefile.include | 12 ++++++++----
>> tests/vm/basevm.py | 39 ++++++++++++++++++++++++++++++++++-----
>> tests/vm/centos | 6 +++---
>> 3 files changed, 45 insertions(+), 12 deletions(-)
>>
>
next prev parent reply other threads:[~2019-04-24 9:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190329210804.22121-1-wainersm@redhat.com>
[not found] ` <20190329210804.22121-3-wainersm@redhat.com>
2019-04-01 11:34 ` [Qemu-devel] [PATCH 2/5] tests/vm: Port basevm to Python 3 Philippe Mathieu-Daudé
2019-04-23 19:28 ` [Qemu-devel] [PATCH 0/5] tests/vm: Python 3, improve image caching, and misc Wainer dos Santos Moschetta
2019-04-24 9:07 ` Laszlo Ersek [this message]
2019-04-24 9:07 ` Laszlo Ersek
2019-04-25 18:02 ` Wainer dos Santos Moschetta
2019-04-25 18:02 ` Wainer dos Santos Moschetta
2019-05-29 16:50 ` Alex Bennée
[not found] ` <20190329210804.22121-4-wainersm@redhat.com>
2019-05-29 19:05 ` [Qemu-devel] [PATCH 3/5] tests/vm: Detect the image changed on server Alex Bennée
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=5bf78706-d357-a92d-7065-46a9839c9c2f@redhat.com \
--to=lersek@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=fam@euphon.net \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@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 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.