All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL 0/5] Acceptance tests fixes for 5.0-rc2
@ 2020-04-07 10:39 Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 1/5] Acceptance test: Fix to EXEC migration Philippe Mathieu-Daudé
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-07 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Philippe Mathieu-Daudé,
	Kamil Rytarowski, Fabien Chouteau, KONRAD Frederic,
	Hervé Poussineau, qemu-ppc, Alex Bennée

Another pull request on behalf of Eduardo and Cleber.

The following changes since commit 53ef8a92eb04ee19640f5aad3bff36cd4a36c250:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-2020040=
6' into staging (2020-04-06 12:36:45 +0100)

are available in the Git repository at:

  https://gitlab.com/philmd/qemu.git tags/acceptance-fixes-20200407

for you to fetch changes up to a41f167547ec4e4752795572193d1cbb889c4885:

  .travis.yml: Cache acceptance-test assets (2020-04-06 20:03:14 +0200)

----------------------------------------------------------------
Acceptance tests patches

- Fixed EXEC migration
- Reduce PReP/40p artifacts download failures,
- Disable Leon3 HelenOS
- Speed up Travis-CI job by using a specific cache bucket

CI jobs results:
  https://gitlab.com/philmd/qemu/pipelines/133379305
  https://travis-ci.org/github/philmd/qemu/builds/671762970
----------------------------------------------------------------

Oksana Vohchana (1):
  Acceptance test: Fix to EXEC migration

Philippe Mathieu-Daud=C3=A9 (4):
  tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname
  tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com
  tests/acceptance/machine_sparc_leon3: Disable HelenOS test
  .travis.yml: Cache acceptance-test assets

 .travis.yml                             | 2 ++
 tests/acceptance/machine_sparc_leon3.py | 4 ++++
 tests/acceptance/migration.py           | 6 +++---
 tests/acceptance/ppc_prep_40p.py        | 7 ++++---
 4 files changed, 13 insertions(+), 6 deletions(-)

--=20
2.21.1



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

* [PULL 1/5] Acceptance test: Fix to EXEC migration
  2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
@ 2020-04-07 10:39 ` Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 2/5] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname Philippe Mathieu-Daudé
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-07 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Philippe Mathieu-Daudé,
	Kamil Rytarowski, Fabien Chouteau, KONRAD Frederic,
	Hervé Poussineau, Wainer dos Santos Moschetta,
	Oksana Vohchana, qemu-ppc, Alex Bennée

From: Oksana Vohchana <ovoshcha@redhat.com>

The exec migration test isn't run a whole test scenario.
This patch fixes it

Fixes: 2e768cb682bf
Signed-off-by: Oksana Vohchana <ovoshcha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20200325113138.20337-1-ovoshcha@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/acceptance/migration.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/acceptance/migration.py b/tests/acceptance/migration.py
index a8367ca023..0365289cda 100644
--- a/tests/acceptance/migration.py
+++ b/tests/acceptance/migration.py
@@ -70,8 +70,8 @@ def test_migration_with_unix(self):
 
     @skipUnless(find_command('nc', default=False), "'nc' command not found")
     def test_migration_with_exec(self):
-        """
-        The test works for both netcat-traditional and netcat-openbsd packages
-        """
+        """The test works for both netcat-traditional and netcat-openbsd packages."""
         free_port = self._get_free_port()
         dest_uri = 'exec:nc -l localhost %u' % free_port
+        src_uri = 'exec:nc localhost %u' % free_port
+        self.do_migrate(dest_uri, src_uri)
-- 
2.21.1



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

* [PULL 2/5] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname
  2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 1/5] Acceptance test: Fix to EXEC migration Philippe Mathieu-Daudé
@ 2020-04-07 10:39 ` Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 3/5] tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com Philippe Mathieu-Daudé
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-07 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Philippe Mathieu-Daudé,
	Kamil Rytarowski, Fabien Chouteau, KONRAD Frederic,
	Hervé Poussineau, Wainer dos Santos Moschetta, qemu-ppc,
	Alex Bennée

Use NetBSD content delivery network to get faster downloads.

Suggested-by: Kamil Rytarowski <kamil@netbsd.org>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20200211134504.9156-1-philmd@redhat.com>
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 b27572f212..138064285a 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)
@@ -66,7 +66,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,
-- 
2.21.1



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

* [PULL 3/5] tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com
  2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 1/5] Acceptance test: Fix to EXEC migration Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 2/5] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname Philippe Mathieu-Daudé
@ 2020-04-07 10:39 ` Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 4/5] tests/acceptance/machine_sparc_leon3: Disable HelenOS test Philippe Mathieu-Daudé
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-07 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Willian Rampazzo, Philippe Mathieu-Daudé,
	Kamil Rytarowski, Fabien Chouteau, KONRAD Frederic,
	Hervé Poussineau, Wainer dos Santos Moschetta, qemu-ppc,
	Alex Bennée

To avoid regular failures on Travis-CI with ftp.software.ibm.com,
use a mirror.

Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Tested-by: Willian Rampazzo <willianr@gmail.com>
Reviewed-by: Willian Rampazzo <willianr@gmail.com>
Message-Id: <20200403172919.24621-4-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/acceptance/ppc_prep_40p.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/acceptance/ppc_prep_40p.py b/tests/acceptance/ppc_prep_40p.py
index 138064285a..1515561249 100644
--- a/tests/acceptance/ppc_prep_40p.py
+++ b/tests/acceptance/ppc_prep_40p.py
@@ -30,7 +30,8 @@ def test_factory_firmware_and_netbsd(self):
         :avocado: tags=machine:40p
         :avocado: tags=slowness:high
         """
-        bios_url = ('ftp://ftp.boulder.ibm.com/rs6000/firmware/'
+        bios_url = ('http://ftpmirror.your.org/pub/misc/'
+                    'ftp.software.ibm.com/rs6000/firmware/'
                     '7020-40p/P12H0456.IMG')
         bios_hash = '1775face4e6dc27f3a6ed955ef6eb331bf817f03'
         bios_path = self.fetch_asset(bios_url, asset_hash=bios_hash)
-- 
2.21.1



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

* [PULL 4/5] tests/acceptance/machine_sparc_leon3: Disable HelenOS test
  2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2020-04-07 10:39 ` [PULL 3/5] tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com Philippe Mathieu-Daudé
@ 2020-04-07 10:39 ` Philippe Mathieu-Daudé
  2020-04-07 10:39 ` [PULL 5/5] .travis.yml: Cache acceptance-test assets Philippe Mathieu-Daudé
  2020-04-07 15:04 ` [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Peter Maydell
  5 siblings, 0 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-07 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Philippe Mathieu-Daudé,
	Richard Henderson, Kamil Rytarowski, Fabien Chouteau,
	Philippe Mathieu-Daudé,
	KONRAD Frederic, Hervé Poussineau, qemu-ppc,
	Alex Bennée

From: Philippe Mathieu-Daudé <f4bug@amsat.org>

This test was written/tested around beginning of 2019, but was
extracted from a bigger series and posted end of June 2019 [*].
Unfortunately I did not notice commit 162abf1a8 was merged by
then, which implements the AHB and APB plug and play devices.

HelenOS 0.6 is expecting the PnP registers to be not implemented
by QEMU, then forces the discovered AMBA devices (see [2]).

Before 162abf1a8, the console was displaying:

  HelenOS bootloader, release 0.6.0 (Elastic Horse)
  Built on 2014-12-21 20:17:42 for sparc32
  Copyright (c) 2001-2014 HelenOS project
   0x4000bf20|0x4000bf20: kernel image (496640/128466 bytes)
   0x4002b4f2|0x4002b4f2: ns image (154195/66444 bytes)
   0x4003b87e|0x4003b87e: loader image (153182/66437 bytes)
   0x4004bc03|0x4004bc03: init image (155339/66834 bytes)
   0x4005c115|0x4005c115: locsrv image (162063/70267 bytes)
   0x4006d390|0x4006d390: rd image (152678/65889 bytes)
   0x4007d4f1|0x4007d4f1: vfs image (168480/73394 bytes)
   0x4008f3a3|0x4008f3a3: logger image (158034/68368 bytes)
   0x4009feb3|0x4009feb3: ext4fs image (234510/100301 bytes)
   0x400b8680|0x400b8680: initrd image (8388608/1668901 bytes)
  ABMA devices:
  <1:00c> at 0x80000100 irq 3
  <1:00d> at 0x80000200
  <1:011> at 0x80000300 irq 8
  Memory size: 64 MB

As of this commit, it is now confused:

  ABMA devices:
  <1:3000> at 0x00000000 irq 0
  <1:3000> at 0x00000000 irq 0
  <1:3000> at 0x00000000 irq 0
  <1:3000> at 0x00000000 irq 0
  <1:3000> at 0x00000000 irq 0
  <1:3000> at 0x00000000 irq 0
  <1:3000> at 0x00000000 irq 0
  ...

As this test is not working as expected, simply disable it (by
skipping it) for now.

[1] https://www.mail-archive.com/qemu-devel@nongnu.org/msg627094.html
[2] https://github.com/HelenOS/helenos/blob/0.6.0/boot/arch/sparc32/src/ambapp.c#L75

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20200331105048.27989-2-f4bug@amsat.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 tests/acceptance/machine_sparc_leon3.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/acceptance/machine_sparc_leon3.py b/tests/acceptance/machine_sparc_leon3.py
index f77e210ccb..2405cd7a0d 100644
--- a/tests/acceptance/machine_sparc_leon3.py
+++ b/tests/acceptance/machine_sparc_leon3.py
@@ -7,12 +7,16 @@
 
 from avocado_qemu import Test
 from avocado_qemu import wait_for_console_pattern
+from avocado import skip
 
 
 class Leon3Machine(Test):
 
     timeout = 60
 
+    @skip("Test currently broken")
+    # A Window Underflow exception occurs before booting the kernel,
+    # and QEMU exit calling cpu_abort(), which makes this test to fail.
     def test_leon3_helenos_uimage(self):
         """
         :avocado: tags=arch:sparc
-- 
2.21.1



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

* [PULL 5/5] .travis.yml: Cache acceptance-test assets
  2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
                   ` (3 preceding siblings ...)
  2020-04-07 10:39 ` [PULL 4/5] tests/acceptance/machine_sparc_leon3: Disable HelenOS test Philippe Mathieu-Daudé
@ 2020-04-07 10:39 ` Philippe Mathieu-Daudé
  2020-04-07 15:04 ` [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Peter Maydell
  5 siblings, 0 replies; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-07 10:39 UTC (permalink / raw)
  To: qemu-devel
  Cc: Fam Zheng, Philippe Mathieu-Daudé,
	Kamil Rytarowski, Fabien Chouteau, KONRAD Frederic,
	Hervé Poussineau, Wainer dos Santos Moschetta, qemu-ppc,
	Alex Bennée

Keep all acceptance-test assets in the same cache bucket.

As of v5.0.0-rc1, the cache is 2610.11MB:
https://travis-ci.org/github/philmd/qemu/jobs/670558103

Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Acked-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20200403172919.24621-6-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 .travis.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index e0c72210b7..2fd63eceaa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -318,8 +318,10 @@ jobs:
       env:
         - CONFIG="--enable-tools --target-list=aarch64-softmmu,alpha-softmmu,arm-softmmu,m68k-softmmu,microblaze-softmmu,mips-softmmu,mips64el-softmmu,nios2-softmmu,or1k-softmmu,ppc-softmmu,ppc64-softmmu,s390x-softmmu,sparc-softmmu,x86_64-softmmu,xtensa-softmmu"
         - TEST_CMD="make check-acceptance"
+        - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-acceptance"
       after_script:
         - python3 -c 'import json; r = json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for t in r["tests"] if t["status"] not in ("PASS", "SKIP")]' | xargs cat
+        - du -chs $HOME/avocado/data/cache
       addons:
         apt:
           packages:
-- 
2.21.1



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

* Re: [PULL 0/5] Acceptance tests fixes for 5.0-rc2
  2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
                   ` (4 preceding siblings ...)
  2020-04-07 10:39 ` [PULL 5/5] .travis.yml: Cache acceptance-test assets Philippe Mathieu-Daudé
@ 2020-04-07 15:04 ` Peter Maydell
  5 siblings, 0 replies; 7+ messages in thread
From: Peter Maydell @ 2020-04-07 15:04 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Fam Zheng, KONRAD Frederic, QEMU Developers, Fabien Chouteau,
	Kamil Rytarowski, Hervé Poussineau, qemu-ppc,
	Alex Bennée

On Tue, 7 Apr 2020 at 11:40, Philippe Mathieu-Daudé <philmd@redhat.com> wrote:
>
> Another pull request on behalf of Eduardo and Cleber.
>
> The following changes since commit 53ef8a92eb04ee19640f5aad3bff36cd4a36c250:
>
>   Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-2020040=
> 6' into staging (2020-04-06 12:36:45 +0100)
>
> are available in the Git repository at:
>
>   https://gitlab.com/philmd/qemu.git tags/acceptance-fixes-20200407
>
> for you to fetch changes up to a41f167547ec4e4752795572193d1cbb889c4885:
>
>   .travis.yml: Cache acceptance-test assets (2020-04-06 20:03:14 +0200)
>
> ----------------------------------------------------------------
> Acceptance tests patches
>
> - Fixed EXEC migration
> - Reduce PReP/40p artifacts download failures,
> - Disable Leon3 HelenOS
> - Speed up Travis-CI job by using a specific cache bucket
>
> CI jobs results:
>   https://gitlab.com/philmd/qemu/pipelines/133379305
>   https://travis-ci.org/github/philmd/qemu/builds/671762970
> ----------------------------------------------------------------


Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.

-- PMM


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

end of thread, other threads:[~2020-04-07 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 10:39 [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Philippe Mathieu-Daudé
2020-04-07 10:39 ` [PULL 1/5] Acceptance test: Fix to EXEC migration Philippe Mathieu-Daudé
2020-04-07 10:39 ` [PULL 2/5] tests/acceptance/ppc_prep_40p: Use cdn.netbsd.org hostname Philippe Mathieu-Daudé
2020-04-07 10:39 ` [PULL 3/5] tests/acceptance/ppc_prep_40p: Use mirror for ftp.software.ibm.com Philippe Mathieu-Daudé
2020-04-07 10:39 ` [PULL 4/5] tests/acceptance/machine_sparc_leon3: Disable HelenOS test Philippe Mathieu-Daudé
2020-04-07 10:39 ` [PULL 5/5] .travis.yml: Cache acceptance-test assets Philippe Mathieu-Daudé
2020-04-07 15:04 ` [PULL 0/5] Acceptance tests fixes for 5.0-rc2 Peter Maydell

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.