* [PATCH-for-4.2? v2 0/2] tests/acceptance: Fix the m68k/q800 Linux test
@ 2019-11-26 22:38 Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing" Philippe Mathieu-Daudé
0 siblings, 2 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-11-26 22:38 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Philippe Mathieu-Daudé, Laurent Vivier,
Willian Rampazzo, Cleber Rosa, Alex Bennée, Beraldo Leal
Today someone (William/Beraldo?) complained this test was still
failing while fetching the asset. This test already handle the
OSError exception, maybe we are missing another one.
Regardless, it is easier to refresh my previous patch which use
a stable link, so the problem should be fixed.
It seems cleaner to add the 2nd patch after the 1st one, but we don't need
it for 4.2, so it can wait 5.0 (and I'll update its description to refer to
the 1st patch sha1).
William/Beraldo, can you test this please?
Thanks!
Phil.
v1: https://www.mail-archive.com/qemu-devel@nongnu.org/msg656892.html
Philippe Mathieu-Daudé (2):
tests/boot_linux_console: Fetch assets from Debian snapshot archives
Revert "Acceptance test: cancel test if m68k kernel packages goes
missing"
tests/acceptance/boot_linux_console.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
--
2.21.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives
2019-11-26 22:38 [PATCH-for-4.2? v2 0/2] tests/acceptance: Fix the m68k/q800 Linux test Philippe Mathieu-Daudé
@ 2019-11-26 22:38 ` Philippe Mathieu-Daudé
2019-11-27 14:51 ` Willian Rampazzo
2019-12-06 14:46 ` Cleber Rosa
2019-11-26 22:38 ` [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing" Philippe Mathieu-Daudé
1 sibling, 2 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-11-26 22:38 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Philippe Mathieu-Daudé, Laurent Vivier,
Willian Rampazzo, Cleber Rosa, Alex Bennée, Beraldo Leal
The kernel packaged was fetched from an unstable repository.
Use the stable snapshot archive instead.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
v2:
- Rebased
- Dropped Alex's Tested-by tag, since commit 2ecde8b2fb got merged
since and it changed the tested kernel version.
---
tests/acceptance/boot_linux_console.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index 7e41cebd47..752f776f68 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -479,7 +479,8 @@ class BootLinuxConsole(Test):
:avocado: tags=arch:m68k
:avocado: tags=machine:q800
"""
- deb_url = ('http://ftp.ports.debian.org/debian-ports/pool-m68k/main'
+ deb_url = ('https://snapshot.debian.org/archive/debian-ports'
+ '/20191021T083923Z/pool-m68k/main'
'/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
try:
--
2.21.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives
2019-11-26 22:38 ` [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives Philippe Mathieu-Daudé
@ 2019-11-27 14:51 ` Willian Rampazzo
2019-12-06 14:46 ` Cleber Rosa
1 sibling, 0 replies; 8+ messages in thread
From: Willian Rampazzo @ 2019-11-27 14:51 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Eduardo Habkost, Laurent Vivier, qemu-devel, Cleber Rosa,
Alex Bennée, Beraldo Leal
On Tue, Nov 26, 2019 at 7:38 PM Philippe Mathieu-Daudé
<philmd@redhat.com> wrote:
>
> The kernel packaged was fetched from an unstable repository.
> Use the stable snapshot archive instead.
>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> v2:
> - Rebased
> - Dropped Alex's Tested-by tag, since commit 2ecde8b2fb got merged
> since and it changed the tested kernel version.
> ---
> tests/acceptance/boot_linux_console.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> index 7e41cebd47..752f776f68 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -479,7 +479,8 @@ class BootLinuxConsole(Test):
> :avocado: tags=arch:m68k
> :avocado: tags=machine:q800
> """
> - deb_url = ('http://ftp.ports.debian.org/debian-ports/pool-m68k/main'
> + deb_url = ('https://snapshot.debian.org/archive/debian-ports'
> + '/20191021T083923Z/pool-m68k/main'
> '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
> deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
> try:
Tested-by: Willian Rampazzo <wrampazz@redhat.com>
The code was tested and works as expected.
---
Willian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives
2019-11-26 22:38 ` [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives Philippe Mathieu-Daudé
2019-11-27 14:51 ` Willian Rampazzo
@ 2019-12-06 14:46 ` Cleber Rosa
2019-12-06 15:07 ` Philippe Mathieu-Daudé
1 sibling, 1 reply; 8+ messages in thread
From: Cleber Rosa @ 2019-12-06 14:46 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Eduardo Habkost, Laurent Vivier, qemu-devel, Willian Rampazzo,
Alex Bennée, Beraldo Leal
[-- Attachment #1: Type: text/plain, Size: 1500 bytes --]
On Tue, Nov 26, 2019 at 11:38:09PM +0100, Philippe Mathieu-Daudé wrote:
> The kernel packaged was fetched from an unstable repository.
> Use the stable snapshot archive instead.
>
> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> v2:
> - Rebased
> - Dropped Alex's Tested-by tag, since commit 2ecde8b2fb got merged
> since and it changed the tested kernel version.
> ---
> tests/acceptance/boot_linux_console.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> index 7e41cebd47..752f776f68 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -479,7 +479,8 @@ class BootLinuxConsole(Test):
> :avocado: tags=arch:m68k
> :avocado: tags=machine:q800
> """
> - deb_url = ('http://ftp.ports.debian.org/debian-ports/pool-m68k/main'
> + deb_url = ('https://snapshot.debian.org/archive/debian-ports'
> + '/20191021T083923Z/pool-m68k/main'
> '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
> deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
> try:
> --
> 2.21.0
>
Works great, sorry for not picking it up earlier. Now with rc-4, I'll
check with Peter if we can still have this on 4.2 and send a PR.
Thanks!
- Cleber.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives
2019-12-06 14:46 ` Cleber Rosa
@ 2019-12-06 15:07 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-12-06 15:07 UTC (permalink / raw)
To: Cleber Rosa
Cc: Eduardo Habkost, Laurent Vivier, QEMU Developers,
Willian Rampazzo, Alex Bennée, Beraldo Leal
On Fri, Dec 6, 2019 at 3:46 PM Cleber Rosa <crosa@redhat.com> wrote:
> On Tue, Nov 26, 2019 at 11:38:09PM +0100, Philippe Mathieu-Daudé wrote:
> > The kernel packaged was fetched from an unstable repository.
> > Use the stable snapshot archive instead.
> >
> > Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
> > Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> > ---
> > v2:
> > - Rebased
> > - Dropped Alex's Tested-by tag, since commit 2ecde8b2fb got merged
> > since and it changed the tested kernel version.
> > ---
> > tests/acceptance/boot_linux_console.py | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> > index 7e41cebd47..752f776f68 100644
> > --- a/tests/acceptance/boot_linux_console.py
> > +++ b/tests/acceptance/boot_linux_console.py
> > @@ -479,7 +479,8 @@ class BootLinuxConsole(Test):
> > :avocado: tags=arch:m68k
> > :avocado: tags=machine:q800
> > """
> > - deb_url = ('http://ftp.ports.debian.org/debian-ports/pool-m68k/main'
> > + deb_url = ('https://snapshot.debian.org/archive/debian-ports'
> > + '/20191021T083923Z/pool-m68k/main'
> > '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
> > deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
> > try:
> > --
> > 2.21.0
> >
>
> Works great, sorry for not picking it up earlier. Now with rc-4, I'll
> check with Peter if we can still have this on 4.2 and send a PR.
Nobody complained and this is not a critical bugfix, so I'd now defer
it, to not delay 5.0 any longer.
> Thanks!
> - Cleber.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing"
2019-11-26 22:38 [PATCH-for-4.2? v2 0/2] tests/acceptance: Fix the m68k/q800 Linux test Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives Philippe Mathieu-Daudé
@ 2019-11-26 22:38 ` Philippe Mathieu-Daudé
2019-11-27 14:53 ` Willian Rampazzo
1 sibling, 1 reply; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-11-26 22:38 UTC (permalink / raw)
To: qemu-devel
Cc: Eduardo Habkost, Philippe Mathieu-Daudé, Laurent Vivier,
Willian Rampazzo, Cleber Rosa, Alex Bennée, Beraldo Leal
Now than we use the stable snapshot archive, we can remove this check.
This reverts commit d2499aca4bac613d837e2720e7bbe3378bc91245.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
tests/acceptance/boot_linux_console.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
index 752f776f68..ab4c8a5e5a 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -483,10 +483,7 @@ class BootLinuxConsole(Test):
'/20191021T083923Z/pool-m68k/main'
'/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
- try:
- deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
- except OSError as exp:
- self.cancel(exp)
+ deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
kernel_path = self.extract_from_deb(deb_path,
'/boot/vmlinux-5.3.0-1-m68k')
--
2.21.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing"
2019-11-26 22:38 ` [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing" Philippe Mathieu-Daudé
@ 2019-11-27 14:53 ` Willian Rampazzo
2019-11-27 15:06 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 8+ messages in thread
From: Willian Rampazzo @ 2019-11-27 14:53 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Eduardo Habkost, Laurent Vivier, qemu-devel, Cleber Rosa,
Alex Bennée, Beraldo Leal
On Tue, Nov 26, 2019 at 7:38 PM Philippe Mathieu-Daudé
<philmd@redhat.com> wrote:
>
> Now than we use the stable snapshot archive, we can remove this check.
>
> This reverts commit d2499aca4bac613d837e2720e7bbe3378bc91245.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> tests/acceptance/boot_linux_console.py | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
> index 752f776f68..ab4c8a5e5a 100644
> --- a/tests/acceptance/boot_linux_console.py
> +++ b/tests/acceptance/boot_linux_console.py
> @@ -483,10 +483,7 @@ class BootLinuxConsole(Test):
> '/20191021T083923Z/pool-m68k/main'
> '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
> deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
> - try:
> - deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
> - except OSError as exp:
> - self.cancel(exp)
> + deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
> kernel_path = self.extract_from_deb(deb_path,
> '/boot/vmlinux-5.3.0-1-m68k')
>
Tested-by: Willian Rampazzo <wrampazz@redhat.com>
Although I prefer to be on the safe side and keep the verification,
the code works as expected.
---
Willian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing"
2019-11-27 14:53 ` Willian Rampazzo
@ 2019-11-27 15:06 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2019-11-27 15:06 UTC (permalink / raw)
To: Willian Rampazzo, Cleber Rosa
Cc: Laurent Vivier, Alex Bennée, qemu-devel, Eduardo Habkost,
Beraldo Leal
On 11/27/19 3:53 PM, Willian Rampazzo wrote:
> On Tue, Nov 26, 2019 at 7:38 PM Philippe Mathieu-Daudé
> <philmd@redhat.com> wrote:
>>
>> Now than we use the stable snapshot archive, we can remove this check.
>>
>> This reverts commit d2499aca4bac613d837e2720e7bbe3378bc91245.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>> ---
>> tests/acceptance/boot_linux_console.py | 5 +----
>> 1 file changed, 1 insertion(+), 4 deletions(-)
>>
>> diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py
>> index 752f776f68..ab4c8a5e5a 100644
>> --- a/tests/acceptance/boot_linux_console.py
>> +++ b/tests/acceptance/boot_linux_console.py
>> @@ -483,10 +483,7 @@ class BootLinuxConsole(Test):
>> '/20191021T083923Z/pool-m68k/main'
>> '/l/linux/kernel-image-5.3.0-1-m68k-di_5.3.7-1_m68k.udeb')
>> deb_hash = '044954bb9be4160a3ce81f8bc1b5e856b75cccd1'
>> - try:
>> - deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
>> - except OSError as exp:
>> - self.cancel(exp)
>> + deb_path = self.fetch_asset(deb_url, asset_hash=deb_hash)
>> kernel_path = self.extract_from_deb(deb_path,
>> '/boot/vmlinux-5.3.0-1-m68k')
>>
>
> Tested-by: Willian Rampazzo <wrampazz@redhat.com>
Thanks for testing!
> Although I prefer to be on the safe side and keep the verification,
> the code works as expected.
If we want to catch that kind of errors, we should do it consistently in
all the tests.
I understand the recent 'avocado assets' command from release 73
properly fixes our problem, isn't it Cleber?
See https://avocado-framework.readthedocs.io/en/73.0/releases/73_0.html:
INSTRUMENTED tests using the avocado.core.test.Test.fetch_asset()
can take advantage of plugins that will attempt to download (and
cache) assets before the test execution. This should make the
overall test execution more reliable, and give better test
execution times as the download time will be excluded. Users can
also manually execute the avocado assets command to manually
fetch assets from tests.
I'm anxious about testing this new feature :)
Regards,
Phil.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-12-06 16:59 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-26 22:38 [PATCH-for-4.2? v2 0/2] tests/acceptance: Fix the m68k/q800 Linux test Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-4.2? v2 1/2] tests/boot_linux_console: Fetch assets from Debian snapshot archives Philippe Mathieu-Daudé
2019-11-27 14:51 ` Willian Rampazzo
2019-12-06 14:46 ` Cleber Rosa
2019-12-06 15:07 ` Philippe Mathieu-Daudé
2019-11-26 22:38 ` [PATCH-for-5.0? v2 2/2] Revert "Acceptance test: cancel test if m68k kernel packages goes missing" Philippe Mathieu-Daudé
2019-11-27 14:53 ` Willian Rampazzo
2019-11-27 15:06 ` 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).