my current testing/next queue (meson/gitlab/fedora bump)
cover my current testing/next queue (meson/gitlab/fedora bump)
Hi,
Currently the my queue is fairly short and mainly contains little quality of life improvements to the testing and CI bits. I'm mainly posting to roll-up the random patches into a series.
The only patch in need of review is:
- tests/acceptance: allow a "graceful" failing for virtio-gpu test
but feel free to pass comment on the others if you want to ;-)
Alex Bennée (2):
meson.build: expose TCG cross compiler information in summary tests/acceptance: allow a "graceful" failing for virtio-gpu test
Philippe Mathieu-Daudé (2):
gitlab-ci: Display Avocado log content when tests timeout
docker: Bump Fedora images to release 33
Thomas Huth (2):
gitlab-ci.yml: Run check-tcg with TCI
travis.yml: Limit simultaneous jobs to 3
meson.build | 18 ++++++++++++++++++ .gitlab-ci.yml | 6 +++--- .travis.yml | 4 +++- tests/acceptance/virtio-gpu.py | 7 ++++++- .../dockerfiles/fedora-cris-cross.docker | 2 +- .../dockerfiles/fedora-i386-cross.docker | 2 +- .../dockerfiles/fedora-win32-cross.docker | 2 +- .../dockerfiles/fedora-win64-cross.docker | 2 +- tests/docker/dockerfiles/fedora.docker | 2 +- tests/tcg/configure.sh | 8 -------- 10 files changed, 35 insertions(+), 18 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/6 meson.build: expose TCG cross compiler information in summary
Blink and you miss the cross TCG compiler stuff so lets display it with the rest of the compiler information.
Message-Id: <[email protected]>
--- meson.build | 18 ++++++++++++++++++ tests/tcg/configure.sh | 8 -------- 2 files changed, 18 insertions(+), 8 deletions(-)
meson.build +18 -0
@@ -2508,6 +2508,24 @@ endif summary_info += {'strip binaries': get_option('strip')} summary_info += {'sparse': sparse.found() ? sparse.full_path() : false} summary_info += {'mingw32 support': targetos == 'windows'} + +# snarf the cross-compilation information for tests +foreach target: target_dirs + tcg_mak = meson.current_build_dir() / 'tests/tcg' / 'config-' + target + '.mak' + if fs.exists(tcg_mak) + config_cross_tcg = keyval.load(tcg_mak) + target = config_cross_tcg['TARGET_NAME'] + compiler = '' + if 'DOCKER_CROSS_CC_GUEST' in config_cross_tcg + summary_info += {target + ' tests': config_cross_tcg['DOCKER_CROSS_CC_GUEST'] + + ' via ' + config_cross_tcg['DOCKER_IMAGE']} + elif 'CROSS_CC_GUEST' in config_cross_tcg + summary_info += {target + ' tests' + : config_cross_tcg['CROSS_CC_GUEST'] } + endif + endif +endforeach + summary(summary_info, bool_yn: true, section: 'Compilation') # Targets and accelerators
tests/tcg/configure.sh +0 -8
@@ -257,11 +257,3 @@ for target in $target_list; do echo "DOCKER_CROSS_CC_GUEST=$container_cross_cc" >> $config_target_mak fi done - -# report container support state -echo "cross containers $container" - -if test -n "$enabled_cross_compilers"; then - echo - echo "NOTE: guest cross-compilers enabled:$enabled_cross_compilers" -fi
Signature · 1 line
2.20.1
PATCH 2/6 gitlab-ci: Display Avocado log content when tests timeout
In reply to Alex BennéeFrom: Philippe Mathieu-Daudé <[email protected]>
Since commit ba2232bae6d ("gitlab-ci: Refactor code that show logs of failed acceptances") we display the log content of failing tests (Avocado "FAIL" event).
Since we are also interested in tests timeouting, update our global Avocado config to display log content for the "INTERRUPT" event, "possible when the timeout is reached" (See [*]).
[*] https://avocado-framework.readthedocs.io/en/latest/guides/writer/chapters/writing.html#test-statuses
Message-Id: <[email protected]>
--- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.yml +1 -1
@@ -64,7 +64,7 @@ include: - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']" >> ~/.config/avocado/avocado.conf - - echo -e '[job.output.testlogs]\nstatuses = ["FAIL"]' + - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]' >> ~/.config/avocado/avocado.conf - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then du -chs ${CI_PROJECT_DIR}/avocado-cache ;
Signature · 1 line
2.20.1
Re: [PATCH v1 2/6] gitlab-ci: Display Avocado log content when tests timeout
Quoted 26 lines · Alex Bennée
From: Philippe Mathieu-Daudé <[email protected]>
Since commit
ba2232bae6d("gitlab-ci: Refactor code that show logs of failed acceptances") we display the log content of failing tests (Avocado "FAIL" event).Since we are also interested in tests timeouting, update our global Avocado config to display log content for the "INTERRUPT" event, "possible when the timeout is reached" (See [*]).
[*] https://avocado-framework.readthedocs.io/en/latest/guides/writer/chapters/writing.html#test-statuses
Suggested-by Willian Rampazzo <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>Signed-off-by Alex Bennée <[email protected]>Message-Id: <[email protected]>
--- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).gitlab-ci.yml +0
-0
.gitlab-ci.yml include: · line 70
Quoted 8 lines
.gitlab-ci.yml +1
-1@@ -64,7 +64,7 @@ include: - echo "[datadir.paths]" > ~/.config/avocado/avocado.conf - echo "cache_dirs = ['${CI_PROJECT_DIR}/avocado-cache']" >> ~/.config/avocado/avocado.conf - - echo -e '[job.output.testlogs]\nstatuses = ["FAIL"]' + - echo -e '[job.output.testlogs]\nstatuses = ["FAIL", "INTERRUPT"]' >> ~/.config/avocado/avocado.conf - if [ -d ${CI_PROJECT_DIR}/avocado-cache ]; then du -chs ${CI_PROJECT_DIR}/avocado-cache ;
PATCH 3/6 gitlab-ci.yml: Run check-tcg with TCI
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
It's now possible to also run the non-x86 TCG tests with TCI.
Message-Id: <[email protected]>
--- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
.gitlab-ci.yml +2 -2
@@ -520,7 +520,7 @@ build-oss-fuzz: build-tci: <<: *native_build_job_definition variables: - IMAGE: fedora + IMAGE: debian-all-test-cross script: - TARGETS="aarch64 alpha arm hppa m68k microblaze moxie ppc64 s390x x86_64" - mkdir build
@@ -528,7 +528,6 @@ build-tci: - ../configure --enable-tcg-interpreter --target-list="$(for tg in $TARGETS; do echo -n ${tg}'-softmmu '; done)" || { cat config.log meson-logs/meson-log.txt && exit 1; } - make -j"$JOBS" - - make run-tcg-tests-x86_64-softmmu - make tests/qtest/boot-serial-test tests/qtest/cdrom-test tests/qtest/pxe-test - for tg in $TARGETS ; do export QTEST_QEMU_BINARY="./qemu-system-${tg}" ;
@@ -537,6 +536,7 @@ build-tci: done - QTEST_QEMU_BINARY="./qemu-system-x86_64" ./tests/qtest/pxe-test - QTEST_QEMU_BINARY="./qemu-system-s390x" ./tests/qtest/pxe-test -m slow + - make check-tcg # Alternate coroutines implementations are only really of interest to KVM users # However we can't test against KVM on Gitlab-CI so we can only run unit tests
Signature · 1 line
2.20.1
Re: [PATCH v1 3/6] gitlab-ci.yml: Run check-tcg with TCI
Quoted 10 lines · Alex Bennée
From: Thomas Huth <[email protected]>
It's now possible to also run the non-x86 TCG tests with TCI.
Signed-off-by Thomas Huth <[email protected]>Signed-off-by Alex Bennée <[email protected]>Message-Id: <[email protected]>
--- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Re: [PATCH v1 3/6] gitlab-ci.yml: Run check-tcg with TCI
In reply to Alex BennéeQuoted 10 lines · Alex Bennée
From: Thomas Huth <[email protected]>
It's now possible to also run the non-x86 TCG tests with TCI.
Signed-off-by Thomas Huth <[email protected]>Signed-off-by Alex Bennée <[email protected]>Message-Id: <[email protected]>
--- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
r~
PATCH 4/6 docker: Bump Fedora images to release 33
In reply to Alex BennéeFrom: Philippe Mathieu-Daudé <[email protected]>
Fedora 33 was released on October 27, 2020.
Update all the Fedora 32 images to this new release.
Message-Id: <[email protected]>
--- tests/docker/dockerfiles/fedora-cris-cross.docker | 2 +- tests/docker/dockerfiles/fedora-i386-cross.docker | 2 +- tests/docker/dockerfiles/fedora-win32-cross.docker | 2 +- tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +- tests/docker/dockerfiles/fedora.docker | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
tests/docker/dockerfiles/fedora-cris-cross.docker +1 -1
@@ -2,7 +2,7 @@ # Cross compiler for cris system tests # -FROM fedora:30 +FROM fedora:33 ENV PACKAGES gcc-cris-linux-gnu RUN dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txt
tests/docker/dockerfiles/fedora-i386-cross.docker +1 -1
@@ -1,4 +1,4 @@ -FROM fedora:31 +FROM fedora:33 ENV PACKAGES \ bzip2 \ diffutils \
tests/docker/dockerfiles/fedora-win32-cross.docker +1 -1
@@ -1,4 +1,4 @@ -FROM fedora:32 +FROM fedora:33 # Please keep this list sorted alphabetically ENV PACKAGES \
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -1
@@ -1,4 +1,4 @@ -FROM fedora:32 +FROM fedora:33 # Please keep this list sorted alphabetically ENV PACKAGES \
tests/docker/dockerfiles/fedora.docker +1 -1
@@ -1,4 +1,4 @@ -FROM fedora:32 +FROM fedora:33 # Please keep this list sorted alphabetically ENV PACKAGES \
Signature · 1 line
2.20.1
PATCH 5/6 travis.yml: Limit simultaneous jobs to 3
In reply to Alex BennéeFrom: Thomas Huth <[email protected]>
Even though the host machines that run the Travis CI jobs have quite a lot of CPUs (e.g. nproc in an aarch64 job reports 32), the containers on Travis are still limited to 2 vCPUs according to:
https://docs.travis-ci.com/user/reference/overview/#approx-boot-time
So we do not gain much when compiling with a job number based on the output of "getconf _NPROCESSORS_ONLN" - quite the contrary, the aarch64 containers are currently aborting quite often since they are running out of memory. Thus let's rather use a fixed number like 3 in the jobs here, so that e.g. two threads can actively run while a third one might be waiting for I/O operations to complete. This should hopefully fix the out-of-memory failures in the aarch64 CI jobs.
Message-Id: <[email protected]>
--- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
.travis.yml +3 -1
@@ -86,9 +86,11 @@ git: submodules: false # Common first phase for all steps +# We no longer use nproc to calculate jobs: +# https://travis-ci.community/t/nproc-reports-32-cores-on-arm64/5851 before_install: - if command -v ccache ; then ccache --zero-stats ; fi - - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1)) + - export JOBS=3 - echo "=== Using ${JOBS} simultaneous jobs ===" # Configure step - may be overridden
Signature · 1 line
2.20.1
PATCH 6/6 tests/acceptance: allow a "graceful" failing for virtio-gpu test
In reply to Alex BennéeThis is a band-aid with a TODO for cases when QEMU doesn't start due to missing VirGL. Longer term we could do with some proper feature probing.
--- tests/acceptance/virtio-gpu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
tests/acceptance/virtio-gpu.py +6 -1
@@ -85,7 +85,12 @@ def test_virtio_vga_virgl(self): "-append", kernel_command_line, ) - self.vm.launch() + try: + self.vm.launch() + except: + # TODO: probably fails because we are missing the VirGL features + self.cancel("VirGL not enabled?") + self.wait_for_console_pattern("as init process") exec_command_and_wait_for_pattern( self, "/usr/sbin/modprobe virtio_gpu", ""
Signature · 1 line
2.20.1
Re: [PATCH v1 6/6] tests/acceptance: allow a "graceful" failing for virtio-gpu test
Quoted 7 lines · Alex Bennée
This is a band-aid with a TODO for cases when QEMU doesn't start due to missing VirGL. Longer term we could do with some proper feature probing.
Signed-off-by Alex Bennée <[email protected]>Cc Marc-André Lureau <[email protected]>
---
Quoted 27 lines
tests/acceptance/virtio-gpu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)tests/acceptance/virtio-gpu.py +4
-1@@ -85,7 +85,12 @@ def test_virtio_vga_virgl(self): "-append", kernel_command_line, ) - self.vm.launch() + try: + self.vm.launch() + except: + # TODO: probably fails because we are missing the VirGLfeatures
tests/acceptance/virtio-gpu.py +2
-1+ self.cancel("VirGL not enabled?") + self.wait_for_console_pattern("as init process") exec_command_and_wait_for_pattern( self, "/usr/sbin/modprobe virtio_gpu", "" --2.20.1
Re: [PATCH v1 6/6] tests/acceptance: allow a "graceful" failing for virtio-gpu test
In reply to Alex BennéeQuoted 11 lines · Alex Bennée
This is a band-aid with a TODO for cases when QEMU doesn't start due to missing VirGL. Longer term we could do with some proper feature probing.
Signed-off-by Alex Bennée <[email protected]>Cc Marc-André Lureau <[email protected]>--- tests/acceptance/virtio-gpu.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)