qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"
@ 2021-03-23 15:23 Peter Maydell
  2021-03-23 15:49 ` Willian Rampazzo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Maydell @ 2021-03-23 15:23 UTC (permalink / raw)
  To: QEMU Developers; +Cc: Cleber Rosa

I just got this running 'make check-acceptance': does it
ring a bell with anybody?

[etc]
Fetching asset from
tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
Fetching asset from
tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
Fetching asset from
tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_4k
Fetching asset from
tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_16k_up
Fetching asset from
tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_64k_dbg
Fetching asset from
tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt
Fetching asset from
tests/acceptance/virtio-gpu.py:VirtioGPUx86.test_virtio_vga_virgl
Error running method "pre_tests" of plugin "fetchasset": 'bytes'
object has no attribute 'encode'
JOB ID     : 71b2d5569d9ccc8b68957d3ad2b2026bea437d66
JOB LOG    : /home/petmay01/linaro/qemu-from-laptop/qemu/build/clang/tests/results/job-2021-03-23T15.09-71b2d55/job.log
 (001/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_tcg:
PASS (465.84 s)
 (002/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_kvm:
PASS (27.46 s)
 (003/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_q35_tcg:
PASS (99.43 s)
[etc]

thanks
-- PMM


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"
  2021-03-23 15:23 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'" Peter Maydell
@ 2021-03-23 15:49 ` Willian Rampazzo
  2021-03-23 15:52 ` Cleber Rosa
  2021-03-23 15:56 ` Philippe Mathieu-Daudé
  2 siblings, 0 replies; 4+ messages in thread
From: Willian Rampazzo @ 2021-03-23 15:49 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers, Cleber Rosa

Hi Peter,

On Tue, Mar 23, 2021 at 12:28 PM Peter Maydell <peter.maydell@linaro.org> wrote:
>
> I just got this running 'make check-acceptance': does it
> ring a bell with anybody?
>
> [etc]
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_4k
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_16k_up
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_64k_dbg
> Fetching asset from
> tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt
> Fetching asset from
> tests/acceptance/virtio-gpu.py:VirtioGPUx86.test_virtio_vga_virgl
> Error running method "pre_tests" of plugin "fetchasset": 'bytes'
> object has no attribute 'encode'

The side effect of this bug is that when you run check-acceptance for
the first time, it won't download this specific image before the test
starts, but during the test execution. After the first run, the asset
is already on cache and will not be downloaded again, working as
expected.

This bug is fixed here
https://github.com/avocado-framework/avocado/pull/4416 and already
available on release 86.0 of Avocado.

It will reach the QEMU side as soon as we bump the version here.

> JOB ID     : 71b2d5569d9ccc8b68957d3ad2b2026bea437d66
> JOB LOG    : /home/petmay01/linaro/qemu-from-laptop/qemu/build/clang/tests/results/job-2021-03-23T15.09-71b2d55/job.log
>  (001/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_tcg:
> PASS (465.84 s)
>  (002/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_kvm:
> PASS (27.46 s)
>  (003/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_q35_tcg:
> PASS (99.43 s)
> [etc]
>
> thanks
> -- PMM
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"
  2021-03-23 15:23 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'" Peter Maydell
  2021-03-23 15:49 ` Willian Rampazzo
@ 2021-03-23 15:52 ` Cleber Rosa
  2021-03-23 15:56 ` Philippe Mathieu-Daudé
  2 siblings, 0 replies; 4+ messages in thread
From: Cleber Rosa @ 2021-03-23 15:52 UTC (permalink / raw)
  To: Peter Maydell; +Cc: QEMU Developers



----- Original Message -----
> From: "Peter Maydell" <peter.maydell@linaro.org>
> To: "QEMU Developers" <qemu-devel@nongnu.org>
> Cc: "Cleber Rosa" <crosa@redhat.com>
> Sent: Tuesday, March 23, 2021 11:23:30 AM
> Subject: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"
> 
> I just got this running 'make check-acceptance': does it
> ring a bell with anybody?
> 
> [etc]
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_4k
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_16k_up
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_64k_dbg
> Fetching asset from
> tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt
> Fetching asset from
> tests/acceptance/virtio-gpu.py:VirtioGPUx86.test_virtio_vga_virgl
> Error running method "pre_tests" of plugin "fetchasset": 'bytes'
> object has no attribute 'encode'
> JOB ID     : 71b2d5569d9ccc8b68957d3ad2b2026bea437d66
> JOB LOG    :
> /home/petmay01/linaro/qemu-from-laptop/qemu/build/clang/tests/results/job-2021-03-23T15.09-71b2d55/job.log
>  (001/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_tcg:
> PASS (465.84 s)
>  (002/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_kvm:
> PASS (27.46 s)
>  (003/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_q35_tcg:
> PASS (99.43 s)
> [etc]
> 
> thanks
> -- PMM
> 
> 

Yes.  But it's harmless, and it has been fixed here:

  https://github.com/avocado-framework/avocado/pull/4416

It will go away on the next Avocado version bump (post 6.0).

Regards,
- Cleber.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'"
  2021-03-23 15:23 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'" Peter Maydell
  2021-03-23 15:49 ` Willian Rampazzo
  2021-03-23 15:52 ` Cleber Rosa
@ 2021-03-23 15:56 ` Philippe Mathieu-Daudé
  2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-03-23 15:56 UTC (permalink / raw)
  To: Peter Maydell, QEMU Developers; +Cc: avocado-devel, Cleber Rosa

Cc'ing avocado-devel@

On 3/23/21 4:23 PM, Peter Maydell wrote:
> I just got this running 'make check-acceptance': does it
> ring a bell with anybody?
> 
> [etc]
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips64el_malta_5KEc_cpio
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_4k
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_16k_up
> Fetching asset from
> tests/acceptance/replay_kernel.py:ReplayKernelSlow.test_mips_malta32el_nanomips_64k_dbg
> Fetching asset from
> tests/acceptance/reverse_debugging.py:ReverseDebugging_AArch64.test_aarch64_virt
> Fetching asset from
> tests/acceptance/virtio-gpu.py:VirtioGPUx86.test_virtio_vga_virgl
> Error running method "pre_tests" of plugin "fetchasset": 'bytes'
> object has no attribute 'encode'
> JOB ID     : 71b2d5569d9ccc8b68957d3ad2b2026bea437d66
> JOB LOG    : /home/petmay01/linaro/qemu-from-laptop/qemu/build/clang/tests/results/job-2021-03-23T15.09-71b2d55/job.log
>  (001/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_tcg:
> PASS (465.84 s)
>  (002/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_i440fx_kvm:
> PASS (27.46 s)
>  (003/142) tests/acceptance/boot_linux.py:BootLinuxX8664.test_pc_q35_tcg:
> PASS (99.43 s)
> [etc]
> 
> thanks
> -- PMM
> 



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-23 17:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 15:23 'make check-acceptance' odd error: "'bytes' object has no attribute 'encode'" Peter Maydell
2021-03-23 15:49 ` Willian Rampazzo
2021-03-23 15:52 ` Cleber Rosa
2021-03-23 15:56 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).