All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/vm/freebsd: Increase code coverage
@ 2021-05-31 10:03 Philippe Mathieu-Daudé
  2021-05-31 20:53 ` Wainer dos Santos Moschetta
  0 siblings, 1 reply; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-31 10:03 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, Philippe Mathieu-Daudé,
	Wainer dos Santos Moschetta, Willian Rampazzo, Gerd Hoffmann,
	Alex Bennée, Warner Losh

Install more dependencies to increase code coverage.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 tests/vm/freebsd | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/vm/freebsd b/tests/vm/freebsd
index 6e20e843228..85049b43136 100755
--- a/tests/vm/freebsd
+++ b/tests/vm/freebsd
@@ -46,7 +46,9 @@ class FreeBSDVM(basevm.BaseVM):
         "gettext",
 
         # libs: crypto
+        "cyrus-sasl",
         "gnutls",
+        "nettle",
 
         # libs: images
         "jpeg-turbo",
@@ -56,6 +58,7 @@ class FreeBSDVM(basevm.BaseVM):
         "sdl2",
         "gtk3",
         "libxkbcommon",
+        "pixman",
 
         # libs: opengl
         "libepoxy",
@@ -63,6 +66,8 @@ class FreeBSDVM(basevm.BaseVM):
 
         # libs: migration
         "zstd",
+
+        "usbredir",
     ]
 
     # TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed
-- 
2.26.3



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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-05-31 10:03 [PATCH] tests/vm/freebsd: Increase code coverage Philippe Mathieu-Daudé
@ 2021-05-31 20:53 ` Wainer dos Santos Moschetta
  2021-06-15 16:55   ` Philippe Mathieu-Daudé
  2021-06-15 17:02   ` Daniel P. Berrangé
  0 siblings, 2 replies; 9+ messages in thread
From: Wainer dos Santos Moschetta @ 2021-05-31 20:53 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé, qemu-devel
  Cc: Willian Rampazzo, Thomas Huth, Alex Bennée, Gerd Hoffmann,
	Warner Losh

Hi,

On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
> Install more dependencies to increase code coverage.
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>   tests/vm/freebsd | 5 +++++
>   1 file changed, 5 insertions(+)

With or without this patch I got an error when `make vm-build-freebsd`. 
It fails to install packages.

For example, with this patch I got:

< Output omitted>

### Installing packages ...
Failed to prepare guest environment
Traceback (most recent call last):
   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
     return vm.build_image(args.image)
   File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
     self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in 
ssh_root_check
     self._ssh_do(self._config["root_user"], cmd, True)
   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
     raise Exception("SSH command failed: %s" % cmd)
Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37 
ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png 
sdl2 gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir

Is it a known issue?

>
> diff --git a/tests/vm/freebsd b/tests/vm/freebsd
> index 6e20e843228..85049b43136 100755
> --- a/tests/vm/freebsd
> +++ b/tests/vm/freebsd
> @@ -46,7 +46,9 @@ class FreeBSDVM(basevm.BaseVM):
>           "gettext",
>   
>           # libs: crypto
> +        "cyrus-sasl",
>           "gnutls",
> +        "nettle",
>   
>           # libs: images
>           "jpeg-turbo",
> @@ -56,6 +58,7 @@ class FreeBSDVM(basevm.BaseVM):
>           "sdl2",
>           "gtk3",
>           "libxkbcommon",
> +        "pixman",
>   
>           # libs: opengl
>           "libepoxy",
> @@ -63,6 +66,8 @@ class FreeBSDVM(basevm.BaseVM):
>   
>           # libs: migration
>           "zstd",
> +
> +        "usbredir",
>       ]
>   
>       # TODO: Enable gnutls again once FreeBSD's libtasn1 got fixed



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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-05-31 20:53 ` Wainer dos Santos Moschetta
@ 2021-06-15 16:55   ` Philippe Mathieu-Daudé
  2021-06-15 20:09     ` Warner Losh
  2021-06-15 17:02   ` Daniel P. Berrangé
  1 sibling, 1 reply; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-06-15 16:55 UTC (permalink / raw)
  To: wainersm, qemu-devel, Warner Losh
  Cc: Willian Rampazzo, Peter Maydell, Thomas Huth, Alex Bennée,
	Gerd Hoffmann

On 5/31/21 10:53 PM, Wainer dos Santos Moschetta wrote:
> Hi,
> 
> On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
>> Install more dependencies to increase code coverage.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>   tests/vm/freebsd | 5 +++++
>>   1 file changed, 5 insertions(+)
> 
> With or without this patch I got an error when `make vm-build-freebsd`.
> It fails to install packages.
> 
> For example, with this patch I got:
> 
> < Output omitted>
> 
> ### Installing packages ...
> Failed to prepare guest environment
> Traceback (most recent call last):
>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
>     return vm.build_image(args.image)
>   File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
>     self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
> ssh_root_check
>     self._ssh_do(self._config["root_user"], cmd, True)
>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
>     raise Exception("SSH command failed: %s" % cmd)
> Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37
> ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png
> sdl2 gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
> 
> Is it a known issue?

I'll defer that to Warner, I suppose the package repository got updated
and I am not hitting that because my VM installed them earlier? (Similar
to the problems with Docker packages). Is there a way to use a snapshot
mirror of FreeBSD packages?


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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-05-31 20:53 ` Wainer dos Santos Moschetta
  2021-06-15 16:55   ` Philippe Mathieu-Daudé
@ 2021-06-15 17:02   ` Daniel P. Berrangé
  2021-06-15 17:19     ` Daniel P. Berrangé
  1 sibling, 1 reply; 9+ messages in thread
From: Daniel P. Berrangé @ 2021-06-15 17:02 UTC (permalink / raw)
  To: Wainer dos Santos Moschetta
  Cc: Thomas Huth, Philippe Mathieu-Daudé,
	qemu-devel, Willian Rampazzo, Gerd Hoffmann, Alex Bennée,
	Warner Losh

On Mon, May 31, 2021 at 05:53:25PM -0300, Wainer dos Santos Moschetta wrote:
> Hi,
> 
> On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
> > Install more dependencies to increase code coverage.
> > 
> > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> > ---
> >   tests/vm/freebsd | 5 +++++
> >   1 file changed, 5 insertions(+)
> 
> With or without this patch I got an error when `make vm-build-freebsd`. It
> fails to install packages.
> 
> For example, with this patch I got:
> 
> < Output omitted>
> 
> ### Installing packages ...
> Failed to prepare guest environment
> Traceback (most recent call last):
>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
>     return vm.build_image(args.image)
>   File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
>     self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
> ssh_root_check
>     self._ssh_do(self._config["root_user"], cmd, True)
>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
>     raise Exception("SSH command failed: %s" % cmd)
> Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37
> ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png sdl2
> gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
> 
> Is it a known issue?

Hard to actually tell what the error really is. This message is
only giving the command that was invoked, but seems to have thrown
away stdout/stderr which would have the messages telling us what
went wrong.  This lack of error reporting in basevm.py so badly
needs to be fixed, otherwise we're working blind when debugging
failures.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-06-15 17:02   ` Daniel P. Berrangé
@ 2021-06-15 17:19     ` Daniel P. Berrangé
  2021-06-15 17:40       ` Wainer dos Santos Moschetta
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel P. Berrangé @ 2021-06-15 17:19 UTC (permalink / raw)
  To: Wainer dos Santos Moschetta, Thomas Huth,
	Philippe Mathieu-Daudé,
	qemu-devel, Willian Rampazzo, Gerd Hoffmann, Alex Bennée,
	Warner Losh

On Tue, Jun 15, 2021 at 06:02:02PM +0100, Daniel P. Berrangé wrote:
> On Mon, May 31, 2021 at 05:53:25PM -0300, Wainer dos Santos Moschetta wrote:
> > Hi,
> > 
> > On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
> > > Install more dependencies to increase code coverage.
> > > 
> > > Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> > > ---
> > >   tests/vm/freebsd | 5 +++++
> > >   1 file changed, 5 insertions(+)
> > 
> > With or without this patch I got an error when `make vm-build-freebsd`. It
> > fails to install packages.
> > 
> > For example, with this patch I got:
> > 
> > < Output omitted>
> > 
> > ### Installing packages ...
> > Failed to prepare guest environment
> > Traceback (most recent call last):
> >   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
> >     return vm.build_image(args.image)
> >   File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
> >     self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
> >   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
> > ssh_root_check
> >     self._ssh_do(self._config["root_user"], cmd, True)
> >   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
> >     raise Exception("SSH command failed: %s" % cmd)
> > Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37
> > ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png sdl2
> > gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
> > 
> > Is it a known issue?
> 
> Hard to actually tell what the error really is. This message is
> only giving the command that was invoked, but seems to have thrown
> away stdout/stderr which would have the messages telling us what
> went wrong.  This lack of error reporting in basevm.py so badly
> needs to be fixed, otherwise we're working blind when debugging
> failures.

Hmm, when I try the same command, it *does* print all the output
so you can see what's going on, but it doesn't actually fail for
me either (without this patch).

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-06-15 17:19     ` Daniel P. Berrangé
@ 2021-06-15 17:40       ` Wainer dos Santos Moschetta
  2021-11-06 14:30         ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 9+ messages in thread
From: Wainer dos Santos Moschetta @ 2021-06-15 17:40 UTC (permalink / raw)
  To: Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé,
	qemu-devel, Willian Rampazzo, Gerd Hoffmann, Alex Bennée,
	Warner Losh

Hi,

On 6/15/21 2:19 PM, Daniel P. Berrangé wrote:
> On Tue, Jun 15, 2021 at 06:02:02PM +0100, Daniel P. Berrangé wrote:
>> On Mon, May 31, 2021 at 05:53:25PM -0300, Wainer dos Santos Moschetta wrote:
>>> Hi,
>>>
>>> On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
>>>> Install more dependencies to increase code coverage.
>>>>
>>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>>> ---
>>>>    tests/vm/freebsd | 5 +++++
>>>>    1 file changed, 5 insertions(+)
>>> With or without this patch I got an error when `make vm-build-freebsd`. It
>>> fails to install packages.
>>>
>>> For example, with this patch I got:
>>>
>>> < Output omitted>
>>>
>>> ### Installing packages ...
>>> Failed to prepare guest environment
>>> Traceback (most recent call last):
>>>    File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
>>>      return vm.build_image(args.image)
>>>    File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
>>>      self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
>>>    File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
>>> ssh_root_check
>>>      self._ssh_do(self._config["root_user"], cmd, True)
>>>    File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
>>>      raise Exception("SSH command failed: %s" % cmd)
>>> Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37
>>> ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png sdl2
>>> gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
>>>
>>> Is it a known issue?
>> Hard to actually tell what the error really is. This message is
>> only giving the command that was invoked, but seems to have thrown
>> away stdout/stderr which would have the messages telling us what
>> went wrong.  This lack of error reporting in basevm.py so badly
>> needs to be fixed, otherwise we're working blind when debugging
>> failures.
> Hmm, when I try the same command, it *does* print all the output
> so you can see what's going on, but it doesn't actually fail for
> me either (without this patch).

Thomas sent me a message in private while ago that the error could be 
related with the amount of ssh keys in my agent-ssh. I didn' t check 
that hypothesis yet; will debug a littler further and let you all posted.

ah, if this problem cannot be reproduced on other machines....I see no 
reason to hold this patch.

- Wainer

>
> Regards,
> Daniel



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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-06-15 16:55   ` Philippe Mathieu-Daudé
@ 2021-06-15 20:09     ` Warner Losh
  2021-06-15 20:51       ` Warner Losh
  0 siblings, 1 reply; 9+ messages in thread
From: Warner Losh @ 2021-06-15 20:09 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Peter Maydell, Thomas Huth, qemu-devel, wainersm,
	Willian Rampazzo, Gerd Hoffmann, Alex Bennée, Warner Losh

[-- Attachment #1: Type: text/plain, Size: 1929 bytes --]



> On Jun 15, 2021, at 10:55 AM, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
> 
> On 5/31/21 10:53 PM, Wainer dos Santos Moschetta wrote:
>> Hi,
>> 
>> On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
>>> Install more dependencies to increase code coverage.
>>> 
>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>> ---
>>>   tests/vm/freebsd | 5 +++++
>>>   1 file changed, 5 insertions(+)
>> 
>> With or without this patch I got an error when `make vm-build-freebsd`.
>> It fails to install packages.
>> 
>> For example, with this patch I got:
>> 
>> < Output omitted>
>> 
>> ### Installing packages ...
>> Failed to prepare guest environment
>> Traceback (most recent call last):
>>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
>>     return vm.build_image(args.image)
>>   File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
>>     self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
>>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
>> ssh_root_check
>>     self._ssh_do(self._config["root_user"], cmd, True)
>>   File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
>>     raise Exception("SSH command failed: %s" % cmd)
>> Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37
>> ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png
>> sdl2 gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
>> 
>> Is it a known issue?
> 
> I'll defer that to Warner, I suppose the package repository got updated
> and I am not hitting that because my VM installed them earlier? (Similar
> to the problems with Docker packages). Is there a way to use a snapshot
> mirror of FreeBSD packages?

I’m still trying to replicate this, but I do know FreeBSD’s packages moved
from python 3.7 to 3.8 by default recently….

Warner

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 874 bytes --]

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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-06-15 20:09     ` Warner Losh
@ 2021-06-15 20:51       ` Warner Losh
  0 siblings, 0 replies; 9+ messages in thread
From: Warner Losh @ 2021-06-15 20:51 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Peter Maydell, Thomas Huth, qemu-devel, wainersm,
	Willian Rampazzo, Gerd Hoffmann, Alex Bennée, Warner Losh

[-- Attachment #1: Type: text/plain, Size: 2292 bytes --]



> On Jun 15, 2021, at 2:09 PM, Warner Losh <wlosh@bsdimp.com> wrote:
> 
> 
> 
>> On Jun 15, 2021, at 10:55 AM, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>> 
>> On 5/31/21 10:53 PM, Wainer dos Santos Moschetta wrote:
>>> Hi,
>>> 
>>> On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
>>>> Install more dependencies to increase code coverage.
>>>> 
>>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>>> ---
>>>>  tests/vm/freebsd | 5 +++++
>>>>  1 file changed, 5 insertions(+)
>>> 
>>> With or without this patch I got an error when `make vm-build-freebsd`.
>>> It fails to install packages.
>>> 
>>> For example, with this patch I got:
>>> 
>>> < Output omitted>
>>> 
>>> ### Installing packages ...
>>> Failed to prepare guest environment
>>> Traceback (most recent call last):
>>>  File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
>>>    return vm.build_image(args.image)
>>>  File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in build_image
>>>    self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
>>>  File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
>>> ssh_root_check
>>>    self._ssh_do(self._config["root_user"], cmd, True)
>>>  File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in _ssh_do
>>>    raise Exception("SSH command failed: %s" % cmd)
>>> Exception: SSH command failed: pkg install -y git pkgconf bzip2 python37
>>> ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo png
>>> sdl2 gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
>>> 
>>> Is it a known issue?
>> 
>> I'll defer that to Warner, I suppose the package repository got updated
>> and I am not hitting that because my VM installed them earlier? (Similar
>> to the problems with Docker packages). Is there a way to use a snapshot
>> mirror of FreeBSD packages?
> 
> I’m still trying to replicate this, but I do know FreeBSD’s packages moved
> from python 3.7 to 3.8 by default recently….

It’s not this… I’m seeing inability to pull from the pkg repo, I think, as the root cause… Still unclear why… Sometimes it dies part way into the download. I’ve not yet worked out why it gets to different spots different times.

Warner

[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 874 bytes --]

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

* Re: [PATCH] tests/vm/freebsd: Increase code coverage
  2021-06-15 17:40       ` Wainer dos Santos Moschetta
@ 2021-11-06 14:30         ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-11-06 14:30 UTC (permalink / raw)
  To: wainersm, Daniel P. Berrangé,
	Thomas Huth, qemu-devel, Willian Rampazzo, Gerd Hoffmann,
	Alex Bennée, Warner Losh

On 6/15/21 19:40, Wainer dos Santos Moschetta wrote:
> Hi,
> 
> On 6/15/21 2:19 PM, Daniel P. Berrangé wrote:
>> On Tue, Jun 15, 2021 at 06:02:02PM +0100, Daniel P. Berrangé wrote:
>>> On Mon, May 31, 2021 at 05:53:25PM -0300, Wainer dos Santos Moschetta
>>> wrote:
>>>> Hi,
>>>>
>>>> On 5/31/21 7:03 AM, Philippe Mathieu-Daudé wrote:
>>>>> Install more dependencies to increase code coverage.
>>>>>
>>>>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>>>>> ---
>>>>>    tests/vm/freebsd | 5 +++++
>>>>>    1 file changed, 5 insertions(+)
>>>> With or without this patch I got an error when `make
>>>> vm-build-freebsd`. It
>>>> fails to install packages.
>>>>
>>>> For example, with this patch I got:
>>>>
>>>> < Output omitted>
>>>>
>>>> ### Installing packages ...
>>>> Failed to prepare guest environment
>>>> Traceback (most recent call last):
>>>>    File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 634, in main
>>>>      return vm.build_image(args.image)
>>>>    File "/home/wmoschet/src/qemu/tests/vm/freebsd", line 206, in
>>>> build_image
>>>>      self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs))
>>>>    File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 255, in
>>>> ssh_root_check
>>>>      self._ssh_do(self._config["root_user"], cmd, True)
>>>>    File "/home/wmoschet/src/qemu/tests/vm/basevm.py", line 242, in
>>>> _ssh_do
>>>>      raise Exception("SSH command failed: %s" % cmd)
>>>> Exception: SSH command failed: pkg install -y git pkgconf bzip2
>>>> python37
>>>> ninja bash gmake gsed gettext cyrus-sasl gnutls nettle jpeg-turbo
>>>> png sdl2
>>>> gtk3 libxkbcommon pixman libepoxy mesa-libs zstd usbredir
>>>>
>>>> Is it a known issue?
>>> Hard to actually tell what the error really is. This message is
>>> only giving the command that was invoked, but seems to have thrown
>>> away stdout/stderr which would have the messages telling us what
>>> went wrong.  This lack of error reporting in basevm.py so badly
>>> needs to be fixed, otherwise we're working blind when debugging
>>> failures.
>> Hmm, when I try the same command, it *does* print all the output
>> so you can see what's going on, but it doesn't actually fail for
>> me either (without this patch).
> 
> Thomas sent me a message in private while ago that the error could be
> related with the amount of ssh keys in my agent-ssh. I didn' t check
> that hypothesis yet; will debug a littler further and let you all posted.
> 
> ah, if this problem cannot be reproduced on other machines....I see no
> reason to hold this patch.

OK thank you!


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

end of thread, other threads:[~2021-11-06 14:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-31 10:03 [PATCH] tests/vm/freebsd: Increase code coverage Philippe Mathieu-Daudé
2021-05-31 20:53 ` Wainer dos Santos Moschetta
2021-06-15 16:55   ` Philippe Mathieu-Daudé
2021-06-15 20:09     ` Warner Losh
2021-06-15 20:51       ` Warner Losh
2021-06-15 17:02   ` Daniel P. Berrangé
2021-06-15 17:19     ` Daniel P. Berrangé
2021-06-15 17:40       ` Wainer dos Santos Moschetta
2021-11-06 14:30         ` Philippe Mathieu-Daudé

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.