[Bug 1855002] [NEW] Cannot boot arm kernel images on s390x

2019-12-03 Thread Willian Rampazzo
Public bug reported: While running the acceptance tests on s390x, the arm tests under qemu/tests/acceptance/boot_linux_console.py will timeout, except the test using u-boot. All the arm tests run without problems on x86 and ppc. This test boots the kernel and wait for a kernel panic to make sure

Re: [PATCH 1/2] tests/acceptance: Add PVH boot test

2019-12-06 Thread Willian Rampazzo
sole=ttyS0' > + self.vm.add_args('-kernel', kbuild.vmlinux, > + '-append', kernel_command_line) > +self.vm.launch() > +wait_for_console_pattern(self, 'Kernel command line: %s' % > + kernel_command_line) > -- > 2.21.0 > Tested-by: Willian Rampazzo

Re: Avocado notes from KVM forum 2019

2019-12-10 Thread Willian Rampazzo
On Mon, Nov 25, 2019 at 3:10 PM Cleber Rosa wrote: > > On Mon, Nov 25, 2019 at 10:58:02AM -0300, Eduardo Habkost wrote: > > Thank you, Philippe, those are great ideas. I have copied them > > to the Avocado+QEMU Trello board so we don't forget about them: > >

Re: [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives

2019-11-27 Thread Willian Rampazzo
'/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb') > deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1' > try: Tested-by: Willian Rampazzo The code was tested and works as expected. --- Willian

Re: [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing"

2019-11-27 Thread Willian Rampazzo
> '/boot/vmlinux-5.3.0-1-m68k') > Tested-by: Willian Rampazzo Although I prefer to be on the safe side and keep the verification, the code works as expected. --- Willian

Re: [PATCH] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname

2020-03-11 Thread Willian Rampazzo
> That certainly sounds like an improvement. I still don't love the > idea that the test results will vary based on something outside of the > tested code, even if a cancel is definitely better than a fail. During the development of Avocado release 76.0, we have discussed how to implement a new

Re: [PATCH v5 2/3] Acceptance test: provides new functions

2020-04-07 Thread Willian Rampazzo
:return: IP addresses as a list, otherwise will return False > +""" > +local = LocalHost() > + network_in = NetworkInterface(interface, local) > +try: > +ip = network_in.get_ipaddrs() > +if ip: > +return ip > +except: > +pass > +return False > > > class Migration(Test): > -- > 2.21.1 > > Reviewed-by: Willian Rampazzo

Re: [PATCH v5 3/3] Acceptance test: provides to use RDMA transport for migration test

2020-04-07 Thread Willian Rampazzo
iface = get_interface_rdma() > +ip = get_ip_rdma(iface) > +if ip: > +free_port = self._get_free_port(address=ip[0]) > +else: > +self.cancel("Ip address doesn't configured properly on > interface:%s" % iface) > + dest_u

Re: [PATCH v5 1/3] Acceptance test: adds param 'address' in _get_free_port

2020-04-07 Thread Willian Rampazzo
etwork.find_free_port() > +def _get_free_port(self, address='localhost'): > +port = network.find_free_port(address=address) > if port is None: > self.cancel('Failed to find a free port') > return port > -- > 2.21.1 > > Reviewed-by: Willian Rampazzo

Re: [PATCH-for-5.0 3/8] tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com

2020-04-06 Thread Willian Rampazzo
wnloaded from the mirror. I cannot > judge the mirror is more reliable than ftp.boulder.ibm.com or not, though. > During the tests I did to debug Avocado I constantly got a timeout on FTP. The HTTP URL seems to be more reliable. So far, Tested-by: Willian Rampazzo Reviewed-by: W

Re: [PATCH-for-5.1 7/8] .travis.yml: Run fetch-acceptance-assets before check-acceptance

2020-04-06 Thread Willian Rampazzo
On Mon, Apr 6, 2020 at 12:39 PM Philippe Mathieu-Daudé wrote: > > On 4/6/20 5:31 PM, Alex Bennée wrote: > > > > Philippe Mathieu-Daudé writes: > > > >> Signed-off-by: Philippe Mathieu-Daudé > >> --- > >> .travis.yml | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff

Re: [PATCH-for-5.1 7/8] .travis.yml: Run fetch-acceptance-assets before check-acceptance

2020-04-06 Thread Willian Rampazzo
On Mon, Apr 6, 2020 at 3:21 PM Alex Bennée wrote: > > > Willian Rampazzo writes: > > > On Mon, Apr 6, 2020 at 12:39 PM Philippe Mathieu-Daudé > > wrote: > >> > >> On 4/6/20 5:31 PM, Alex Bennée wrote: > >> > > >> > Philippe Mat

Re: [PATCH-for-5.1 6/8] tests/Makefile: Add fetch-acceptance-assets rule

2020-04-06 Thread Willian Rampazzo
On Mon, Apr 6, 2020 at 12:41 PM Alex Bennée wrote: > > > Philippe Mathieu-Daudé writes: > > > Signed-off-by: Philippe Mathieu-Daudé > > --- > > tests/Makefile.include | 7 +++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/tests/Makefile.include b/tests/Makefile.include > > index

Re: [PATCH-for-5.0 1/7] tests/acceptance/machine_sparc_leon3: Disable HelenOS test

2020-04-02 Thread Willian Rampazzo
On Thu, Apr 2, 2020 at 8:08 AM Philippe Mathieu-Daudé wrote: > > This issue persists, OTOH the good news is caching is working: > > https://travis-ci.org/github/philmd/qemu/builds/670078763#L1626 > Philippe, do you have a way to clean up the Travis cache and try it again? Last week, when I was

Re: [PATCH-for-5.0 1/7] tests/acceptance/machine_sparc_leon3: Disable HelenOS test

2020-04-01 Thread Willian Rampazzo
On Wed, Apr 1, 2020 at 5:21 PM Philippe Mathieu-Daudé wrote: > Odd, with avocado-framework==76.0 I get: > > https://travis-ci.org/github/philmd/qemu/jobs/669851870#L4908 > > Traceback (most recent call last): >File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main >

Re: [PATCH-for-5.0 1/7] tests/acceptance/machine_sparc_leon3: Disable HelenOS test

2020-04-01 Thread Willian Rampazzo
On Tue, Mar 31, 2020 at 5:07 PM Philippe Mathieu-Daudé wrote: > > First job failed by timeout, 2nd succeeded: > https://travis-ci.org/github/philmd/qemu/jobs/669265466 > > However "Ran for 46 min 48 sec" > > From the log: > > Fetching asset from >

Re: [PATCH v10 2/3] Acceptance test: add "boot_linux" tests

2020-03-17 Thread Willian Rampazzo
OT_AVAILABLE) > +self.vm.add_args("-accel", "kvm") > +self.vm.add_args("-cpu", "host") > +self.vm.add_args("-machine", "virt,gic-version=2") > +self.add_common_args() > + self.launch_an

Re: [PATCH v10 3/3] Acceptance tests: add make targets to download images

2020-03-17 Thread Willian Rampazzo
+ $(call quiet-command, \ > + $(TESTS_VENV_DIR)/bin/python -m avocado vmimage get \ > + --distro=fedora --distro-version=31 --arch=$*) > + > +# download all vm images, according to defined targets > +get-vm-images: $(check-venv) $(patsubst %

Re: [PATCH v3 1/3] Acceptance test: adds param 'address' in _get_free_port

2020-03-20 Thread Willian Rampazzo
port = network.find_free_port() > +def _get_free_port(self, address='localhost'): > +port = network.find_free_port(address=address) > if port is None: > self.cancel('Failed to find a free port') > return port > -- > 2.21.1 > > Reviewed-by: Willian Rampazzo

Re: [PATCH v3 3/3] Acceptance test: provides to use RDMA transport for migration test

2020-03-20 Thread Willian Rampazzo
Hi Oksana, On Fri, Mar 20, 2020 at 12:16 PM Oksana Vohchana wrote: > > Adds test for RDMA migration check > > Signed-off-by: Oksana Vohchana > --- > tests/acceptance/migration.py | 12 > 1 file changed, 12 insertions(+) > > diff --git a/tests/acceptance/migration.py

Re: [PATCH v3 2/3] Acceptance test: provides new functions

2020-03-20 Thread Willian Rampazzo
Hi Oksana, On Fri, Mar 20, 2020 at 12:15 PM Oksana Vohchana wrote: > > Provides new functions related to the rdma migration test > Adds functions to check if service RDMA is enabled and gets > the ip address on the interface where it was configured > > Signed-off-by: Oksana Vohchana > --- >

Re: [PATCH v4 1/3] Acceptance test: adds param 'address' in _get_free_port

2020-03-23 Thread Willian Rampazzo
port = network.find_free_port() > +def _get_free_port(self, address='localhost'): > +port = network.find_free_port(address=address) > if port is None: > self.cancel('Failed to find a free port') > return port > -- > 2.21.1 > Just confirming, Reviewed-by: Willian Rampazzo

Re: [PATCH v3 14/15] tests: bump avocado version

2020-09-02 Thread Willian Rampazzo
e per line, to be installed > # in the tests/venv Python virtual environment. For more info, > # refer to: https://pip.pypa.io/en/stable/user_guide/#id1 > -avocado-framework==76.0 > +avocado-framework==81.0 > pycdlib==1.9.0 > Reviewed-by: Willian Rampazzo

Re: [PATCH 2/4] boot linux test: update arm bionic URL

2020-09-08 Thread Willian Rampazzo
algorithm='sha256') > +image_path = archive.extract(image_path_xz, self.workdir) > image_pow2ceil_expand(image_path) > > self.vm.set_console() > -- > 2.25.4 > Except for the subject and description seaming a bit confusing as pointed by Philippe, the changes look good to me. Reviewed-by: Willian Rampazzo

Re: [PATCH 4/4] Acceptance tests: cancel tests on missing assets

2020-09-08 Thread Willian Rampazzo
self.do_test_advcal_2018(file_path, 'uImage', ('-cpu', 'e5500')) > > def test_ppc_g3beige(self): > @@ -260,7 +271,8 @@ class ReplayKernel(LinuxKernelTest): > tar_hash = 'e0b872a5eb8fdc5bed19bd43ffe863900ebcedfc' > tar_url = ('https://www.qemu-advent-calendar.org' > '/2018/download/day15.tar.xz') > -file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) > +file_path = self.fetch_asset(tar_url, asset_hash=tar_hash, > + cancel_on_missing=True) > self.do_test_advcal_2018(file_path, 'invaders.elf', > args=('-M', 'graphics=off')) > > @@ -272,7 +284,8 @@ class ReplayKernel(LinuxKernelTest): > tar_hash = 'e0b872a5eb8fdc5bed19bd43ffe863900ebcedfc' > tar_url = ('https://www.qemu-advent-calendar.org' > '/2018/download/day15.tar.xz') > -file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) > +file_path = self.fetch_asset(tar_url, asset_hash=tar_hash, > + cancel_on_missing=True) > self.do_test_advcal_2018(file_path, 'invaders.elf', > args=('-M', 'graphics=off')) > > @@ -284,7 +297,8 @@ class ReplayKernel(LinuxKernelTest): > tar_hash = 'b18550d5d61c7615d989a06edace051017726a9f' > tar_url = ('https://www.qemu-advent-calendar.org' > '/2018/download/day11.tar.xz') > -file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) > +file_path = self.fetch_asset(tar_url, asset_hash=tar_hash, > + cancel_on_missing=True) > self.do_test_advcal_2018(file_path, 'zImage.elf') > > def test_xtensa_lx60(self): > @@ -296,6 +310,7 @@ class ReplayKernel(LinuxKernelTest): > tar_hash = '49e88d9933742f0164b60839886c9739cb7a0d34' > tar_url = ('https://www.qemu-advent-calendar.org' > '/2018/download/day02.tar.xz') > -file_path = self.fetch_asset(tar_url, asset_hash=tar_hash) > +file_path = self.fetch_asset(tar_url, asset_hash=tar_hash, > + cancel_on_missing=True) > self.do_test_advcal_2018(file_path, 'santas-sleigh-ride.elf', > args=('-cpu', 'dc233c')) > -- > 2.25.4 > Reviewed-by: Willian Rampazzo

Re: [PATCH 7/8] tests/acceptance/boot_linux: Accept SSH pubkey

2020-09-11 Thread Willian Rampazzo
h) > > -def prepare_cloudinit(self): > -cloudinit_iso = self.download_cloudinit() > +def prepare_cloudinit(self, ssh_pubkey=None): > +cloudinit_iso = self.download_cloudinit(ssh_pubkey) > self.vm.add_args('-drive', 'file=%s,format=raw' % cloudinit_iso) > > def launch_and_wait(self): > -- > 2.26.2 > > Reviewed-by: WIllian Rampazzo

Re: [PATCH v1 22/22] tests/acceptance: disable machine_rx_gdbsim on GitLab

2020-10-07 Thread Willian Rampazzo
""" > U-Boot and checks that the console is operational. > -- > 2.20.1 > > Reviewed-by: Willian Rampazzo

Re: [PATCH 1/1] hw/i386: prevent crash when an invalid number of dies is given

2020-10-19 Thread Willian Rampazzo
> +self.assertEquals(self.vm.exitcode(), 1, "QEMU exit code should be > 1") > +self.assertRegex(self.vm.get_log(), > + r'Invalid CPU topology: dies must be 1 or greater') > + > +def test_valid(self): > + self.vm.add_args('-S', '-display', 'none', '-smp', '1,dies=1') > +self.vm.launch() > +self.vm.command('quit') > +self.vm.wait() > +self.assertEquals(self.vm.exitcode(), 0, "QEMU exit code should be > 0") > -- > 2.25.4 > Reviewed-by: Willian Rampazzo

Re: [PATCH 1/3] Acceptance tests: bump pycdlib version for easier installation

2020-10-19 Thread Willian Rampazzo
59 100644 > --- a/tests/requirements.txt > +++ b/tests/requirements.txt > @@ -2,4 +2,4 @@ > # in the tests/venv Python virtual environment. For more info, > # refer to: https://pip.pypa.io/en/stable/user_guide/#id1 > avocado-framework==81.0 > -pycdlib==1.9.0 > +pycdlib==1.11.0 > -- > 2.25.4 > Reviewed-by: Willian Rampazzo

Re: [PATCH v6 14/14] tests/acceptance: add reverse debugging test

2020-09-29 Thread Willian Rampazzo
> +# start with BIOS only > +self.reverse_debugging() > + > +class ReverseDebugging_AArch64(ReverseDebugging): > +REG_PC = 32 > + > +# unidentified gitlab timeout problem > +@skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') > +def test_aarch64_virt(self): > +""" > +:avocado: tags=arch:aarch64 > +:avocado: tags=machine:virt > +:avocado: tags=cpu:cortex-a53 > +""" > +kernel_url = ('https://archives.fedoraproject.org/pub/archive/fedora' > + > '/linux/releases/29/Everything/aarch64/os/images/pxeboot' > + '/vmlinuz') > +kernel_hash = '8c73e469fc6ea06a58dc83a628fc695b693b8493' > +kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) > + > +self.reverse_debugging( > +args=('-kernel', kernel_path, '-cpu', 'cortex-a53')) > The code looks good to me! Reviewed-by: Willian Rampazzo

Re: [PATCH] tests/acceptance: Add a 'virt_kvm' test using the GICv3

2020-09-30 Thread Willian Rampazzo
if not kvm_available(self.arch, self.qemu_bin): > +self.cancel(KVM_NOT_AVAILABLE) > +self.vm.add_args("-accel", "kvm") > + self.vm.add_args("-cpu", "host") > +self.vm.add_args("-machine", "virt,gic-version=3") > +self.add_common_args() > +self.launch_and_wait() > + > > class BootLinuxPPC64(BootLinux): > """ > -- > 2.26.2 > Reviewed-by: Willian Rampazzo

Re: [PATCH] tests/acceptance: Disable tests dependent of unreliable apt.armbian.com

2020-09-17 Thread Willian Rampazzo
t; +++ b/tests/acceptance/replay_kernel.py > @@ -127,6 +127,8 @@ def test_arm_virt(self): > self.run_rr(kernel_path, kernel_command_line, console_pattern, > shift=1) > > @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') > +@skipUnless(os.getenv('ARMBIAN_ARTIFACTS_CACHED'), > +'Test artifacts fetched from unreliable apt.armbian.com') > def test_arm_cubieboard_initrd(self): > """ > :avocado: tags=arch:arm > -- > 2.26.2 > > Reviewed-by: Willian Rampazzo

Re: [PATCH 16/16] tests/acceptance: Test the MIPSsim machine

2020-09-28 Thread Willian Rampazzo
til_pattern(self, > + > interrupt_string='root\r', > + success_message='#') > +pattern = '3 packets transmitted, 3 packets received, 0% packet loss' > +exec_command_and_wait_for_pattern(self, 'ping -c 3 10.0.2.2', > pattern) > -- > 2.26.2 > > IMHO, although the solution of spreading images over personal repositories is not the best, I don't have a strong opinion to block this, so Reviewed-by: Willian Rampazzo (willi...@redhat.com)

Re: [PATCH v2 01/11] tests/acceptance: allow console interaction with specific VMs

2020-05-27 Thread Willian Rampazzo
; > VM as a parameter to interact with it. > > > > Signed-off-by: Pavel Dovgalyuk > > Reviewed-by: Willian Rampazzo > > --- > > 0 files changed > > > > diff --git a/tests/acceptance/avocado_qemu/__init__.py > > b/tests/acceptance/avocado_qemu/__init__.py >

Re: [PATCH 8/9] tests/acceptance: record/replay tests with advcal images

2020-05-26 Thread Willian Rampazzo
On Mon, May 25, 2020 at 8:28 AM Pavel Dovgalyuk wrote: > > This patch adds more record/replay tests with kernel images. > > Signed-off-by: Pavel Dovgalyuk > --- > tests/acceptance/replay_kernel.py | 80 > + > 1 file changed, 80 insertions(+) > > diff --git

Re: [PATCH 2/9] tests/acceptance: add base class record/replay kernel tests

2020-05-26 Thread Willian Rampazzo
On Mon, May 25, 2020 at 8:22 AM Pavel Dovgalyuk wrote: > > This patch adds a base for testing kernel boot recording and replaying. > Each test has the phase of recording and phase of replaying. > Virtual machines just boot the kernel and do not interact with > the network. > Structure and image

Re: [PATCH 1/9] tests/acceptance: allow console interaction with specific VMs

2020-05-26 Thread Willian Rampazzo
""" > -_console_interaction(test, success_message, failure_message, None) > +_console_interaction(test, success_message, failure_message, None, vm=vm) > > def exec_command_and_wait_for_pattern(test, command, >success_message, failure_message=None): > > Reviewed-by: Willian Rampazzo

Re: [PATCH 9/9] tests/acceptance: Linux boot test for record/replay

2020-05-26 Thread Willian Rampazzo
On Mon, May 25, 2020 at 8:30 AM Pavel Dovgalyuk wrote: > > This patch adds a test for record/replay, which boots Linux > image from the disk and interacts with the network. > The idea and code of this test is borrowed from boot_linux.py > However, currently record/replay works only for x86_64, >

Re: [PATCH 9/9] tests/acceptance: Linux boot test for record/replay

2020-05-26 Thread Willian Rampazzo
On Mon, May 25, 2020 at 8:30 AM Pavel Dovgalyuk wrote: > > This patch adds a test for record/replay, which boots Linux > image from the disk and interacts with the network. > The idea and code of this test is borrowed from boot_linux.py > However, currently record/replay works only for x86_64, >

Re: [PATCH v2] tests/acceptance: Skip slow quanta-gsj U-boot+Linux test

2020-09-18 Thread Willian Rampazzo
self): > """ > :avocado: tags=arch:arm > -- > 2.26.2 > > At least, this time, skipUnless is already there :D Reviewed-by: Willian Rampazzo

Re: [PATCH 2/2] tests: Exclude 'boot_linux.py' from fetch-acceptance rule

2020-07-24 Thread Willian Rampazzo
On Fri, Jul 24, 2020 at 3:26 PM Wainer dos Santos Moschetta wrote: > > Hi Philippe, > > On 7/24/20 4:35 AM, Philippe Mathieu-Daudé wrote: > > The boot_linux.py file triggers an exception: > > > >$ make fetch-acceptance > >AVOCADO tests/acceptance > >Fetching assets from

Re: [PATCH-for-5.2? 1/1] Acceptance tests: bump Fedora to 32

2020-12-03 Thread Willian Rampazzo
On Thu, Dec 3, 2020 at 2:30 PM Cleber Rosa wrote: > > On Thu, Dec 03, 2020 at 05:02:33PM +, Daniel P. Berrangé wrote: > > I think the problem with the Fedora acceptance is that we'll be constantly > > chasing a moving target. Every URL we pick will go away 6-12 months later. > > IOW, while

Re: [RFC PATCH] python: add __repr__ to ConsoleSocket to aid debugging

2020-12-07 Thread Willian Rampazzo
On Mon, Dec 7, 2020 at 5:10 PM Alex Bennée wrote: > > While attempting to debug some console weirdness I thought it would be > worth making it easier to see what it had inside. > > Signed-off-by: Alex Bennée > --- > python/qemu/console_socket.py | 8 > 1 file changed, 8 insertions(+) >

Re: [RFC PATCH] python: add __repr__ to ConsoleSocket to aid debugging

2020-12-07 Thread Willian Rampazzo
Em seg, 7 de dez de 2020 19:14, Philippe Mathieu-Daudé escreveu: > Hi Willian, > > On 12/7/20 10:35 PM, Willian Rampazzo wrote: > > On Mon, Dec 7, 2020 at 5:10 PM Alex Bennée > wrote: > >> > >> While attempting to debug some console weirdness I thought it

Re: [PATCH-for-5.2? 1/5] tests/acceptance: Restrict virtio_check_params tests to X86 target

2020-11-23 Thread Willian Rampazzo
\w+'.format(prop) for prop in props] > @@ -117,7 +123,6 @@ def seg_max_adjust_enabled(mt): > return True > return False > > -@skip("break multi-arch CI") > def test_machine_types(self): > # collect all machine types except 'none', 'isapc', 'microvm' > with QEMUMachine(self.qemu_bin) as vm: > -- > 2.26.2 > > Reviewed-by: Willian Rampazzo

Re: [PATCH v3 06/11] gitlab-ci: Rename acceptance_test_job -> integration_test_job

2020-11-23 Thread Willian Rampazzo
eptance_test_job > +integration-system-centos: > + extends: .integration_test_job >needs: > - job: build-system-centos >artifacts: true > -- > 2.26.2 > > Makes sense, thanks! Reviewed-by: Willian Rampazzo

Re: [PATCH] tests: add prefixes to the bare mkdtemp calls

2020-11-23 Thread Willian Rampazzo
python/qemu/machine.py| 2 +- > tests/acceptance/avocado_qemu/__init__.py | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v3] tests/acceptance: test hot(un)plug of ccw devices

2020-12-09 Thread Willian Rampazzo
| CANCEL 0 JOB TIME : 7.18 s Tested-by: Willian Rampazzo Reviewed-by: Willian Rampazzo

Re: [RFC PATCH-for-5.2] gitlab-ci: Do not automatically run Avocado integration tests anymore

2020-11-30 Thread Willian Rampazzo
On Fri, Nov 27, 2020 at 2:41 PM Philippe Mathieu-Daudé wrote: > > We lately realized that the Avocado framework was not designed > to be regularly run on CI environments. Therefore, as of 5.2 > we deprecate the gitlab-ci jobs using Avocado. To not disrupt > current users, it is possible to keep

Re: [PATCH 3/3] gitlab-ci: Archive logs of acceptance tests

2020-12-17 Thread Willian Rampazzo
--- > .gitlab-ci.yml | 4 > 1 file changed, 4 insertions(+) > Reviewed-by: Willian Rampazzo

Re: [PATCH 0/3] tests/acceptance: Test virtio-rng and -balloon on s390x

2020-12-14 Thread Willian Rampazzo
On Sat, Dec 12, 2020 at 4:15 AM Thomas Huth wrote: > > On 11/12/2020 21.10, Willian Rampazzo wrote: > > On 12/11/20 2:31 PM, Thomas Huth wrote: > >> Add two more simple tests to check that virtio-rng and virtio-balloon > >> are at least (very) basically wor

Re: [PATCH 0/3] tests/acceptance: Test virtio-rng and -balloon on s390x

2020-12-14 Thread Willian Rampazzo
On Mon, Dec 14, 2020 at 8:39 AM Cornelia Huck wrote: > > On Sat, 12 Dec 2020 08:15:13 +0100 > Thomas Huth wrote: > > > On 11/12/2020 21.10, Willian Rampazzo wrote: > > > On 12/11/20 2:31 PM, Thomas Huth wrote: > > >> Add two more simple tests to c

Re: [PATCH v2 8/8] tests/acceptance: Test boot_linux_console for fuloong2e

2020-12-21 Thread Willian Rampazzo
On Sat, Dec 19, 2020 at 4:30 AM Jiaxun Yang wrote: > > The kernel comes from debian archive so it's trusted. > > Signed-off-by: Jiaxun Yang > --- > tests/acceptance/boot_linux_console.py | 21 + > 1 file changed, 21 insertions(+) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2] tests/acceptance: Add a test with the Fedora 31 kernel and initrd

2020-12-18 Thread Willian Rampazzo
ATCH 1/3] tests/acceptance: Extract the code to clear dmesg and wait for CRW reports" defined the method as "clear_guests_dmesg". After fixing this in the code: Tested-by: Willian Rampazzo +self.vm.command('object-add', qom_type='cryptodev-backend-builtin', +

Re: [PATCH] tests/acceptance: Test PMON with Loongson-3A1000 CPU

2020-12-18 Thread Willian Rampazzo
wait_for_console_pattern(self, 'godson2 caches found') Inspite of a small comment, Reviewed-by: Willian Rampazzo

Re: [PATCH 1/3] tests/acceptance: Bump avocado requirements to 83.0

2020-12-14 Thread Willian Rampazzo
insertion(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH 2/3] gitlab-ci: Refactor code that show logs of failed acceptances

2020-12-14 Thread Willian Rampazzo
--- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Willian Rampazzo

Re: [PATCH] tests: update for rename of CentOS8 PowerTools repo

2020-12-16 Thread Willian Rampazzo
s fix > > https://gitlab.com/berrange/qemu/-/jobs/915862731 > > tests/docker/dockerfiles/centos8.docker | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2] tests/acceptance: Add a test with the Fedora 31 kernel and initrd

2020-12-21 Thread Willian Rampazzo
On Mon, Dec 21, 2020 at 10:00 AM Cornelia Huck wrote: > > On Fri, 18 Dec 2020 15:23:32 -0300 > Willian Rampazzo wrote: > > > On 12/17/20 5:53 AM, Thomas Huth wrote: > > > > +# Hot-plug a virtio-crypto device and see whether it gets > > > accepte

Re: [PATCH v4] tests/acceptance: Add a test with the Fedora 31 kernel and initrd

2020-12-21 Thread Willian Rampazzo
ust to be sure > > tests/acceptance/machine_s390_ccw_virtio.py | 110 > 1 file changed, 110 insertions(+) > Reviewed-by: Willian Rampazzo Tested-by: Willian Rampazzo AVOCADO tests/acceptance Fetching asset from tests/acceptance/machine_s390_ccw_virtio.py:S390CCWVirtioMach

Re: [PATCH 0/3] tests/acceptance: Test virtio-rng and -balloon on s390x

2020-12-11 Thread Willian Rampazzo
that after the whole series is merged. As far as code concerned, Reviewed-by: Willian Rampazzo Tested-by: Willian Rampazzo Fetching asset from tests/acceptance/machine_s390_ccw_virtio.py:S390CCWVirtioMachine.test_s390x_devices Fetching asset from tests/acceptance

Re: [PATCH] tests/acceptance: bound the size of readline in s390_ccw_virtio

2021-01-05 Thread Willian Rampazzo
owever short of cleaning up the test to be more binary focused at > least limit the attempt to dump the whole file as hexified zeros in > the logs. > > Signed-off-by: Alex Bennée > --- > tests/acceptance/machine_s390_ccw_virtio.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH] cirrus: don't run full qtest on macOS

2021-01-06 Thread Willian Rampazzo
target only, > since that has very few machine types and thus is least badly > impacted in the qom-test execution. > > With this change, the macOS jobs complete in approx 35 minutes. > > Signed-off-by: Daniel P. Berrangé > --- > .cirrus.yml | 14 ++ > 1 file changed, 10 insertions(+), 4 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [RFC PATCH 5/5] tests/integration: Test Fuloong2E IDE drive, run userspace commands

2021-01-06 Thread Willian Rampazzo
console: / # reboot > console: / # umount: devtmpfs busy - remounted read-only > console: EXT4-fs (sda): re-mounted. Opts: (null) > console: The system is going down NOW! > console: Sent SIGTERM to all processes > console: Sent SIGKILL to all processes > console: Requesting system reboot > console: sd 0:0:0:0: [sda] Synchronizing SCSI cache > console: reboot: Restarting system > PASS (8.44 s) > RESULTS: PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | > CANCEL 0 > JOB TIME : 8.85 s > > [*] https://github.com/groeck/linux-build-test/ > > Signed-off-by: Philippe Mathieu-Daudé > --- > Cc: Guenter Roeck > --- > tests/acceptance/boot_linux_console.py | 30 -- > 1 file changed, 28 insertions(+), 2 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH] tests/acceptance: Fix race conditions in s390x tests & skip fedora on gitlab-CI

2021-01-08 Thread Willian Rampazzo
gt; tests/acceptance/machine_s390_ccw_virtio.py | 14 ++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > Reviewed-by: Willian Rampazzo Tested-by: Willian Rampazzo JOB ID : 6b2b3c1f6f6b0c4c2e9fd694b475bd12c193adbd JOB LOG: /home/linux1/src/qemu.d

Re: [PATCH] tests/acceptance: Fix race conditions in s390x tests & skip fedora on gitlab-CI

2021-01-14 Thread Willian Rampazzo
On Tue, Jan 12, 2021 at 10:53 AM Philippe Mathieu-Daudé wrote: > ... > We explained this feature request to the Avocado project at the > KVM forum 2018 in Lyon. There was an entry filled on their Trello > dashboard. Then the project switched to GitLab and I lost track > of it. We moved our

Re: [PATCH v2 06/12] Makefile: wrap etags in quiet-command calls

2021-01-14 Thread Willian Rampazzo
On Thu, Jan 14, 2021 at 2:41 PM Alex Bennée wrote: > > For prettier output. > > Signed-off-by: Alex Bennée > --- > Makefile | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v3 09/10] iotests/129: Clean up pylint and mypy complaints

2021-01-14 Thread Willian Rampazzo
part of mypy/pylint cleanup? It seems you are doing more than that here. It would be good to have this listed in the commit message. Despite that, Reviewed-by: Willian Rampazzo > '151', '152', '155', '163', '165', '169', '194', '196', '199', '202', > '203', '205', '206', '207', '208', '210', '211', '212', '213', '216', > '218', '219', '222', '224', '228', '234', '235', '236', '237', '238', > -- > 2.29.2 > >

Re: [PATCH] tests/acceptance: Fix race conditions in s390x tests & skip fedora on gitlab-CI

2021-01-14 Thread Willian Rampazzo
Avocado-QEMU Trello board missing in my previous mail. On Thu, Jan 14, 2021 at 4:13 PM Willian Rampazzo wrote: > > On Tue, Jan 12, 2021 at 10:53 AM Philippe Mathieu-Daudé > wrote: > > > ... > > We explained this feature request to the Avocado project at the &g

Re: [PATCH v2 04/12] Add newline when generating Dockerfile

2021-01-14 Thread Willian Rampazzo
| 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2 12/12] scripts/checkpatch.pl: fix git-show invocation to include diffstat

2021-01-14 Thread Willian Rampazzo
ff-by: Alex Bennée > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2 01/12] tests/docker: Remove Debian 9 remnant lines

2021-01-14 Thread Willian Rampazzo
uot;) > Signed-off-by: Philippe Mathieu-Daudé > Message-Id: <20210107072933.3828450-1-f4...@amsat.org> > Signed-off-by: Alex Bennée > Reviewed-by: Thomas Huth > --- > tests/docker/Makefile.include | 1 - > 1 file changed, 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2 11/12] gitlab: migrate the minimal tools and unit tests from Travis

2021-01-14 Thread Willian Rampazzo
> --- > .gitlab-ci.yml | 4 +++- > .travis.yml| 9 - > 2 files changed, 3 insertions(+), 10 deletions(-) > And, it helps moving out of Travis. Reviewed-by: Willian Rampazzo

Re: [PATCH v2 07/12] Makefile: wrap cscope in quiet-command calls

2021-01-14 Thread Willian Rampazzo
On Thu, Jan 14, 2021 at 2:29 PM Alex Bennée wrote: > > For prettier output. > > Signed-off-by: Alex Bennée > --- > Makefile | 14 +++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH 1/3] tests/acceptance: Move the pseries test to a separate file

2021-01-14 Thread Willian Rampazzo
cceptance/machine_ppc.py| 34 ++ > 3 files changed, 35 insertions(+), 19 deletions(-) > create mode 100644 tests/acceptance/machine_ppc.py > We can have other tests moved to this file later. For now, Reviewed-by: Willian Rampazzo

Re: [PATCH v2 05/12] Makefile: wrap ctags in quiet-command calls

2021-01-14 Thread Willian Rampazzo
On Thu, Jan 14, 2021 at 2:21 PM Alex Bennée wrote: > > For prettier output. > > Signed-off-by: Alex Bennée > --- > Makefile | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2 09/12] gitlab: move docs and tools build across from Travis

2021-01-14 Thread Willian Rampazzo
t; 2 files changed, 22 insertions(+), 22 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v2 08/12] docker: expand debian-amd64 image to include tag tools

2021-01-14 Thread Willian Rampazzo
r | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v3 09/10] iotests/129: Clean up pylint and mypy complaints

2021-01-15 Thread Willian Rampazzo
On Fri, Jan 15, 2021 at 6:30 AM Max Reitz wrote: > > On 14.01.21 21:02, Willian Rampazzo wrote: > > On Thu, Jan 14, 2021 at 2:41 PM Max Reitz wrote: > >> > >> Signed-off-by: Max Reitz > >> --- > >> tests/qemu-iotests/129 | 4 ++-- > >>

Re: [PATCH v3 04/10] iotests/129: Remove test images in tearDown()

2021-01-15 Thread Willian Rampazzo
On Thu, Jan 14, 2021 at 2:29 PM Max Reitz wrote: > > Signed-off-by: Max Reitz > Reviewed-by: Vladimir Sementsov-Ogievskiy > Reviewed-by: Eric Blake > --- > tests/qemu-iotests/129 | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Willian Rampazzo

Re: [PATCH v3 08/10] iotests/129: Limit mirror job's buffer size

2021-01-15 Thread Willian Rampazzo
Ogievskiy > --- > tests/qemu-iotests/129 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH 2/3] tests/acceptance: Test the mpc8544ds machine

2021-01-15 Thread Willian Rampazzo
On Tue, Jan 12, 2021 at 1:44 PM Thomas Huth wrote: > > We can use the "Stupid creek" image to test the mpc8544ds ppc machine. > > Signed-off-by: Thomas Huth > --- > tests/acceptance/machine_ppc.py | 17 + > 1 file changed, 17 insertions(+) Reviewed-by: Willian Rampazzo

Re: [PATCH 3/3] tests/acceptance: Add a test for the virtex-ml507 ppc machine

2021-01-15 Thread Willian Rampazzo
+ > 1 file changed, 18 insertions(+) Reviewed-by: Willian Rampazzo

Re: [PATCH v4 10/10] iotests/300: Clean up pylint and mypy complaints

2021-01-15 Thread Willian Rampazzo
- > 2 files changed, 16 insertions(+), 4 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v4 07/10] iotests/129: Actually test a commit job

2021-01-15 Thread Willian Rampazzo
> --- > tests/qemu-iotests/129 | 27 +-- > 1 file changed, 25 insertions(+), 2 deletions(-) Reviewed-by: Willian Rampazzo

Re: [PATCH v4 06/10] iotests/129: Use throttle node

2021-01-15 Thread Willian Rampazzo
Reitz > Reviewed-by: Eric Blake > Reviewed-by: Vladimir Sementsov-Ogievskiy > --- > tests/qemu-iotests/129 | 37 + > 1 file changed, 13 insertions(+), 24 deletions(-) Reviewed-by: Willian Rampazzo

Re: [PATCH v4 05/10] iotests/129: Do not check @busy

2021-01-15 Thread Willian Rampazzo
> tests/qemu-iotests/129 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v4 03/10] iotests: Move try_remove to iotests.py

2021-01-15 Thread Willian Rampazzo
ged, 8 insertions(+), 11 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v4 01/10] iotests.py: Assume a couple of variables as given

2021-01-15 Thread Willian Rampazzo
this patch wants to prevent. > > Signed-off-by: Max Reitz > Reviewed-by: Vladimir Sementsov-Ogievskiy > --- > tests/qemu-iotests/300| 1 - > tests/qemu-iotests/iotests.py | 26 +- > 2 files changed, 13 insertions(+), 14 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v4 02/10] iotests/297: Rewrite in Python and extend reach

2021-01-15 Thread Willian Rampazzo
> +iotests.logger.debug('Files to be checked:') > +iotests.logger.debug(', '.join(sorted(files))) > + > +print('=== pylint ===') > +sys.stdout.flush() > + > +# Todo notes are fine, but fixme's or xxx's should probably just be > +# fixed (in tests, at least) > +env = os.environ.copy() > +try: > +env['PYTHONPATH'] += ':../../python/' Do you have any objection to using os.path.dirname and os.path.join here? This would make the code more pythonic. > +except KeyError: > +env['PYTHONPATH'] = '../../python/' Same here. You could do it once, before the 'try' and use it inside. Other than that, Reviewed-by: Willian Rampazzo

Re: [PATCH v3 1/5] gitlab-ci: Document 'build-tcg-disabled' is a KVM X86 job

2020-12-11 Thread Willian Rampazzo
+++ > 1 file changed, 5 insertions(+) Reviewed-by: WIllian Rampazzo

Re: [RFC PATCH] scripts/checkpatch: roll diff tweaking into checkpatch itself

2021-06-07 Thread Willian Rampazzo
> --- > .gitlab-ci.d/static_checks.yml | 3 --- > .patchew.yml | 3 --- > scripts/checkpatch.pl | 7 ++- > 3 files changed, 6 insertions(+), 7 deletions(-) > Reviewed-by: Willian Rampazzo

Re: [PATCH v6 1/4] Jobs based on custom runners: documentation and configuration placeholder

2021-06-09 Thread Willian Rampazzo
> docs/devel/index.rst| 1 + > 4 files changed, 44 insertions(+) > create mode 100644 .gitlab-ci.d/custom-runners.yml > create mode 100644 docs/devel/ci.rst > Reviewed-by: Willian Rampazzo

Re: [PATCH v6 2/4] Jobs based on custom runners: build environment docs and playbook

2021-06-09 Thread Willian Rampazzo
On Tue, Jun 8, 2021 at 3:48 PM Wainer dos Santos Moschetta wrote: > > Hi, > > On 6/8/21 12:14 AM, Cleber Rosa wrote: > > To run basic jobs on custom runners, the environment needs to be > > properly set up. The most common requirement is having the right > > packages installed. > > > > The

Re: [PATCH v6 2/4] Jobs based on custom runners: build environment docs and playbook

2021-06-09 Thread Willian Rampazzo
endency messages on the apt side. After I updated the packages on the system, the playbook worked without problems. So, my suggestion is to add the "update = yes" here, or add a note in the documentation asking the user to update the system before running the playbook. Except for the above comment and Wainer's comments, it looks good to me. With these changes: Reviewed-by: Willian Rampazzo Tested-by: Willian Rampazzo

Re: [PATCH 2/4] Python QEMU utils: introduce a generic feature list

2021-06-10 Thread Willian Rampazzo
On Tue, Jun 8, 2021 at 8:55 PM Cleber Rosa Junior wrote: > > > > On Tue, Jun 8, 2021 at 5:42 PM Wainer dos Santos Moschetta > wrote: >> >> Hi, >> >> On 6/8/21 11:09 AM, Cleber Rosa wrote: >> > Which can be used to check for any "feature" that is available as a >> > QEMU command line option, and

Re: [PATCH 4/4] Jobs based on custom runners: add CentOS Stream 8

2021-06-10 Thread Willian Rampazzo
On Tue, Jun 8, 2021 at 11:10 AM Cleber Rosa wrote: > > This introduces three different parts of a job designed to run > on a custom runner managed by Red Hat. The goals include: > > a) serve as a model for other organizations that want to onboard > their own runners, with their specific

Re: [PATCH 3/4] Acceptance Tests: introduce method to require a feature and option

2021-06-10 Thread Willian Rampazzo
ature is "machine", option can be "q35". > +type option: str > +""" > +try: > + options_available = list_feature(self.qemu_bin, feature) Looking at this code, the previous patch makes more sense the way it is now :) Maybe, splitting it into multiple `list_` functions will make the code here more complex. Anyway, I'll let you decide. Reviewed-by: Willian Rampazzo

Re: [PATCH 0/4] Jobs based on custom runners: add CentOS Stream 8

2021-06-10 Thread Willian Rampazzo
gh the formal method of tracking machine/job maintainers have > not been formalized, it should be known that the contacts/admins for > this machine and job are: > > - Cleber Rosa > >clebergnu on #qemu > > - Willian Rampazzo > >willianr on #qemu Acked-by: Willian Rampazzo

Re: [PATCH 2/4] Python QEMU utils: introduce a generic feature list

2021-06-10 Thread Willian Rampazzo
gt; 3 files changed, 48 insertions(+), 13 deletions(-) > create mode 100644 python/qemu/utils/feature.py > Based on my comments from the next patch of this series: Reviewed-by: Willian Rampazzo

  1   2   3   4   5   >