qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Cleber Rosa <crosa@redhat.com>,
	David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-devel@nongnu.org,
	"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
	"Kamil Rytarowski" <kamil@netbsd.org>,
	qemu-ppc@nongnu.org, "Willian Rampazzo" <wrampazz@redhat.com>,
	"Hervé Poussineau" <hpoussin@reactos.org>,
	"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname
Date: Tue, 10 Mar 2020 09:44:27 +0100	[thread overview]
Message-ID: <910181c0-b15f-a5d2-bc45-a4fd5d9736de@redhat.com> (raw)
In-Reply-To: <517418432.204149.1583807554368.JavaMail.zimbra@redhat.com>

On 3/10/20 3:32 AM, Cleber Rosa wrote:
> ----- Original Message -----
>> From: "David Gibson" <david@gibson.dropbear.id.au>
>> To: "Alex Bennée" <alex.bennee@linaro.org>
>> Cc: qemu-devel@nongnu.org, "Wainer dos Santos Moschetta" <wainersm@redhat.com>, "Kamil Rytarowski"
>> <kamil@netbsd.org>, "Hervé Poussineau" <hpoussin@reactos.org>, "Cleber Rosa" <crosa@redhat.com>,
>> qemu-ppc@nongnu.org, "Philippe Mathieu-Daudé" <philmd@redhat.com>
>> Sent: Monday, March 9, 2020 9:41:16 PM
>> Subject: Re: [PATCH] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname
>>
>> On Fri, Feb 28, 2020 at 04:10:19PM +0000, Alex Bennée wrote:
>>>
>>> Philippe Mathieu-Daudé <philmd@redhat.com> writes:
>>>
>>>> Use NetBSD content delivery network to get faster downloads.
>>>
>>> Even with this patch I get failures on my big dev box:
>>>
>>>   (48/67)
>>>   tests/acceptance/ppc_prep_40p.py:IbmPrep40pMachine.test_openbios_and_netbsd:
>>>   INTERRUPTED: Failed to fetch NetBSD-7.1.2-prep.iso.\nRunner error
>>>   occurred: Timeout reached\nOriginal status: ERROR\n{'name':
>>>   '48-tests/acceptance/ppc_prep_40p.py:IbmPrep40pMachine.test_openbios_and_netbsd',
>>>   'logdir': '/home/alex/lsrc/qemu.git/builds/all/tests/results/jo... (60.31
>>>   s)
>>>
>>> I think ultimately a whole ISO download is just too much for an
>>> acceptance test.
>>
>> I tend to agree.  Here in a network-remote part of the world, these
>> always seem to cause timeouts and other problems, in a bunch of the
>> testcases.
>>
>> Those are testing useful things though, so I'd really like to see the
>> downloads split out into some sort of preparation step that can be
>> done just once, rather than part of the test proper.
>>
> 
> We have added functionality in the latest Avocado that will let us
> easily set a "cancel this test if the ISO has not being previously
> downloaded", or "cancel if it fails to be downloaded during the test".
> 
> +Willian can explain how it works, and if found to be suitable, and work
> on a patch.

I suppose this is the relevant Avocado patch:

'Extends fetch_asset core method to find assets and cancel the test'
https://github.com/avocado-framework/avocado/commit/c345569fd

> 
> -Cleber.
> 
>>>> Suggested-by: Kamil Rytarowski <kamil@netbsd.org>
>>>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>>>> ---
>>>>   tests/acceptance/ppc_prep_40p.py | 4 ++--
>>>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/tests/acceptance/ppc_prep_40p.py
>>>> b/tests/acceptance/ppc_prep_40p.py
>>>> index efe06037ba..6729d96f5e 100644
>>>> --- a/tests/acceptance/ppc_prep_40p.py
>>>> +++ b/tests/acceptance/ppc_prep_40p.py
>>>> @@ -34,7 +34,7 @@ def test_factory_firmware_and_netbsd(self):
>>>>                       '7020-40p/P12H0456.IMG')
>>>>           bios_hash = '1775face4e6dc27f3a6ed955ef6eb331bf817f03'
>>>>           bios_path = self.fetch_asset(bios_url, asset_hash=bios_hash)
>>>> -        drive_url = ('https://ftp.netbsd.org/pub/NetBSD/NetBSD-archive/'
>>>> +        drive_url = ('https://cdn.netbsd.org/pub/NetBSD/NetBSD-archive/'
>>>>                        'NetBSD-4.0/prep/installation/floppy/generic_com0.fs')
>>>>           drive_hash = 'dbcfc09912e71bd5f0d82c7c1ee43082fb596ceb'
>>>>           drive_path = self.fetch_asset(drive_url, asset_hash=drive_hash)
>>>> @@ -67,7 +67,7 @@ def test_openbios_and_netbsd(self):
>>>>           :avocado: tags=arch:ppc
>>>>           :avocado: tags=machine:40p
>>>>           """
>>>> -        drive_url = ('https://ftp.netbsd.org/pub/NetBSD/iso/7.1.2/'
>>>> +        drive_url = ('https://cdn.netbsd.org/pub/NetBSD/iso/7.1.2/'
>>>>                        'NetBSD-7.1.2-prep.iso')
>>>>           drive_hash = 'ac6fa2707d888b36d6fa64de6e7fe48e'
>>>>           drive_path = self.fetch_asset(drive_url, asset_hash=drive_hash,
>>>
>>>
>>
>> --
>> David Gibson			| I'll have my music baroque, and my code
>> david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
>> 				| _way_ _around_!
>> http://www.ozlabs.org/~dgibson
>>
> 



  reply	other threads:[~2020-03-10  8:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-11 13:45 [PATCH] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname Philippe Mathieu-Daudé
2020-02-13 20:24 ` Wainer dos Santos Moschetta
2020-02-28 16:10 ` Alex Bennée
2020-03-10  1:41   ` David Gibson
2020-03-10  2:32     ` Cleber Rosa
2020-03-10  8:44       ` Philippe Mathieu-Daudé [this message]
2020-03-11  4:54       ` David Gibson
     [not found]         ` <CAKJDGDZpRrtSVkH0+h0ec8bfnAvfQGftTu7whOn9hXpYLLnDqA@mail.gmail.com>
2020-03-23  4:50           ` David Gibson

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=910181c0-b15f-a5d2-bc45-a4fd5d9736de@redhat.com \
    --to=philmd@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=crosa@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=hpoussin@reactos.org \
    --cc=kamil@netbsd.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=wainersm@redhat.com \
    --cc=wrampazz@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 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).