Move remaining x86 Travis jobs to the gitlab-CI
v2 cover Move remaining x86 Travis jobs to the gitlab-CI
Since Travis changed their policies, travis-ci.org will soon become completely useless for the QEMU project. We should now really make sure that we move the remaining tests as good as possible to the gitlab-CI instead.
v2:
- Run "make check" in the gprof/gcov test
- Make sure that we run at least one test with --enable-debug
- Reworked the thread sanitizer patch to use --enable-tsan + clang now
Philippe Mathieu-Daudé (1):
travis.yml: Move gprof/gcov test across to gitlab
Thomas Huth (4):
travis.yml: Move the -fsanitize=undefined test to the gitlab-CI travis.yml: Move the --enable-modules test to the gitlab-CI travis.yml: (Re-)move the --enable-debug jobs travis.yml: Move the -fsanitize=thread testing to the gitlab-CI
.gitlab-ci.yml | 38 ++++++-
.travis.yml | 111 ---------------------
MAINTAINERS | 2 +-
scripts/{travis => ci}/coverage-summary.sh | 2 +-
tests/docker/dockerfiles/ubuntu2004.docker | 2 +
5 files changed, 39 insertions(+), 116 deletions(-)
rename scripts/{travis => ci}/coverage-summary.sh (92%)Signature · 1 line
2.27.0
PATCH v2 1/5 travis.yml: Move gprof/gcov test across to gitlab
From: Philippe Mathieu-Daudé <[email protected]>
Similarly to commit 8cdb2cef3f1, move the gprof/gcov test to GitLab.
The coverage-summary.sh script is not Travis-CI specific, make it generic.
Message-Id: <[email protected]> [thuth: Add gcovr and bsdmainutils which are required for the
coverage-summary.sh script to the ubuntu docker file, and use 'check' as test target]
---
.gitlab-ci.yml | 12 ++++++++++++
.travis.yml | 15 ---------------
MAINTAINERS | 2 +-
scripts/{travis => ci}/coverage-summary.sh | 2 +-
tests/docker/dockerfiles/ubuntu2004.docker | 2 ++
5 files changed, 16 insertions(+), 17 deletions(-)
rename scripts/{travis => ci}/coverage-summary.sh (92%).gitlab-ci.yml +12 -0
@@ -468,6 +468,18 @@ check-deprecated: MAKE_CHECK_ARGS: check-tcg allow_failure: true +# gprof/gcov are GCC features +gprof-gcov: + <<: *native_build_job_definition + variables: + IMAGE: ubuntu2004 + CONFIGURE_ARGS: --enable-gprof --enable-gcov + MAKE_CHECK_ARGS: check + TARGETS: aarch64-softmmu mips64-softmmu ppc64-softmmu + riscv64-softmmu s390x-softmmu x86_64-softmmu + after_script: + - ${CI_PROJECT_DIR}/scripts/ci/coverage-summary.sh + build-oss-fuzz: <<: *native_build_job_definition variables:
.travis.yml +0 -15
@@ -52,7 +52,6 @@ addons: - ninja-build - sparse - uuid-dev - - gcovr # Tests dependencies - genisoimage
@@ -166,20 +165,6 @@ jobs: compiler: clang - # gprof/gcov are GCC features - - name: "GCC gprof/gcov" - dist: bionic - addons: - apt: - packages: - - ninja-build - env: - - CONFIG="--enable-gprof --enable-gcov --disable-libssh - --target-list=${MAIN_SOFTMMU_TARGETS}" - after_success: - - ${SRC_DIR}/scripts/travis/coverage-summary.sh - - # Using newer GCC with sanitizers - name: "GCC9 with sanitizers (softmmu)" dist: bionic
MAINTAINERS +1 -1
@@ -3203,7 +3203,7 @@ R: Philippe Mathieu-Daudé <[email protected]> S: Maintained F: .github/lockdown.yml F: .travis.yml -F: scripts/travis/ +F: scripts/ci/ F: .shippable.yml F: tests/docker/ F: tests/vm/
scripts/ci/coverage-summary.sh renamed from scripts/travis/coverage-summary.sh +1 -1
@@ -3,7 +3,7 @@ # Author: Alex Bennée <[email protected]> # # Summerise the state of code coverage with gcovr and tweak the output -# to be more sane on Travis hosts. As we expect to be executed on a +# to be more sane on CI runner. As we expect to be executed on a # throw away CI instance we do spam temp files all over the shop. You # most likely don't want to execute this script but just call gcovr # directly. See also "make coverage-report"
tests/docker/dockerfiles/ubuntu2004.docker +2 -0
@@ -1,8 +1,10 @@ FROM ubuntu:20.04 ENV PACKAGES flex bison \ + bsdmainutils \ ccache \ clang-10\ gcc \ + gcovr \ genisoimage \ gettext \ git \
Signature · 1 line
2.27.0
Re: [PATCH v2 1/5] travis.yml: Move gprof/gcov test across to gitlab
Quoted 13 lines · Thomas Huth
From: Philippe Mathieu-Daudé <[email protected]>
Similarly to commit
8cdb2cef3f1, move the gprof/gcov test to GitLab.The
coverage-summary.shscript is not Travis-CI specific, make it generic.Signed-off-by Philippe Mathieu-Daudé <[email protected]>Message-Id: <[email protected]> [thuth: Add gcovr and bsdmainutils which are required for the
coverage-summary.shscript to the ubuntu docker file, and use 'check' as test target]Signed-off-by Thomas Huth <[email protected]>
Quoted 8 lines
--- .gitlab-ci.yml | 12 ++++++++++++ .travis.yml | 15 --------------- MAINTAINERS | 2 +- scripts/{travis => ci}/coverage-summary.sh | 2 +- tests/docker/dockerfiles/ubuntu2004.docker | 2 ++ 5 files changed, 16 insertions(+), 17 deletions(-)rename
scripts/{travis=>ci}/coverage-summary.sh(92%)
Quoted 101 lines
.gitlab-ci.yml +12
-0@@ -468,6 +468,18 @@ check-deprecated: MAKE_CHECK_ARGS: check-tcg allow_failure: true +# gprof/gcov are GCC features +gprof-gcov: + <<: *native_build_job_definition + variables: + IMAGE: ubuntu2004 + CONFIGURE_ARGS: --enable-gprof --enable-gcov + MAKE_CHECK_ARGS: check + TARGETS: aarch64-softmmu mips64-softmmu ppc64-softmmu + riscv64-softmmu s390x-softmmu x86_64-softmmu + after_script: + - ${CI_PROJECT_DIR}/scripts/ci/coverage-summary.sh + build-oss-fuzz: <<: *native_build_job_definition variables:.travis.yml +0
-15@@ -52,7 +52,6 @@ addons: - ninja-build - sparse - uuid-dev - - gcovr # Tests dependencies - genisoimage@@ -166,20 +165,6 @@ jobs: compiler: clang - # gprof/gcov are GCC features - - name: "GCC gprof/gcov" - dist: bionic - addons: - apt: - packages: - - ninja-build - env: - - CONFIG="--enable-gprof --enable-gcov --disable-libssh - --target-list=${MAIN_SOFTMMU_TARGETS}" - after_success: - - ${SRC_DIR}/scripts/travis/coverage-summary.sh - - # Using newer GCC with sanitizers - name: "GCC9 with sanitizers (softmmu)" dist: bionicMAINTAINERS +1
-1@@ -3203,7 +3203,7 @@ R: Philippe Mathieu-Daudé <[email protected]> S: Maintained F: .github/lockdown.yml F: .travis.yml -F: scripts/travis/ +F: scripts/ci/ F: .shippable.yml F: tests/docker/ F: tests/vm/scripts/ci/coverage-summary.sh renamed from scripts/travis/coverage-summary.sh +1
-1@@ -3,7 +3,7 @@ # Author: Alex Bennée <[email protected]> # # Summerise the state of code coverage with gcovr and tweak the output -# to be more sane on Travis hosts. As we expect to be executed on a +# to be more sane on CI runner. As we expect to be executed on a # throw away CI instance we do spam temp files all over the shop. You # most likely don't want to execute this script but just call gcovr # directly. See also "make coverage-report"tests/docker/dockerfiles/ubuntu2004.docker +2
-0@@ -1,8 +1,10 @@ FROM ubuntu:20.04 ENV PACKAGES flex bison \ + bsdmainutils \ ccache \ clang-10\ gcc \ + gcovr \ genisoimage \ gettext \ git \
Re: [PATCH v2 1/5] travis.yml: Move gprof/gcov test across to gitlab
In reply to Thomas HuthQuoted 7 lines · Thomas Huth
From: Philippe Mathieu-Daudé <[email protected]>
Similarly to commit
8cdb2cef3f1, move the gprof/gcov test to GitLab.The
coverage-summary.shscript is not Travis-CI specific, make it generic.
Quoted 6 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Message-Id: <[email protected]> [thuth: Add gcovr and bsdmainutils which are required for the
coverage-summary.shscript to the ubuntu docker file, and use 'check' as test target]Signed-off-by Thomas Huth <[email protected]>
It looks like coverage-html needs fixing but lets not hold things up for that:
Signature · 1 line
Alex Bennée
PATCH v2 2/5 travis.yml: Move the -fsanitize=undefined test to the gitlab-CI
In reply to Thomas HuthAdd it to the existing Clang job and also add a job that covers the linux-user code with this compiler flag. To make sure that the detected problems are not simply ignored, let's also use "-fno-sanitize-recover=..." now instead.
--- .gitlab-ci.yml | 14 ++++++++++++-- .travis.yml | 27 --------------------------- 2 files changed, 12 insertions(+), 29 deletions(-)
.gitlab-ci.yml +12 -2
@@ -433,13 +433,23 @@ build-some-softmmu-plugins: TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu MAKE_CHECK_ARGS: check-tcg -build-clang: +clang-system: <<: *native_build_job_definition variables: IMAGE: fedora CONFIGURE_ARGS: --cc=clang --cxx=clang++ + --extra-cflags=-fno-sanitize-recover=undefined TARGETS: alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu - ppc-softmmu s390x-softmmu arm-linux-user + ppc-softmmu s390x-softmmu + MAKE_CHECK_ARGS: check-qtest check-block check-tcg + +clang-user: + <<: *native_build_job_definition + variables: + IMAGE: fedora + CONFIGURE_ARGS: --cc=clang --cxx=clang++ --disable-system + --target-list-exclude=microblazeel-linux-user,aarch64-linux-user,armeb-linux-user,x86_64-linux-user,mipsn32el-linux-user,xtensa-linux-user + --extra-cflags=-fno-sanitize-recover=undefined MAKE_CHECK_ARGS: check # These targets are on the way out
.travis.yml +0 -27
@@ -138,33 +138,6 @@ jobs: - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" - # Test with Clang for compile portability (Travis uses clang-5.0) - - name: "Clang (user)" - env: - - CONFIG="--disable-system --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - - - name: "Clang (main-softmmu)" - env: - - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} - --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" - compiler: clang - before_script: - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log meson-logs/meson-log.txt && exit 1; } - - - - name: "Clang (other-softmmu)" - env: - - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} - --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - # Using newer GCC with sanitizers - name: "GCC9 with sanitizers (softmmu)" dist: bionic
Signature · 1 line
2.27.0
Re: [PATCH v2 2/5] travis.yml: Move the -fsanitize=undefined test to the gitlab-CI
Quoted 29 lines · Thomas Huth
Add it to the existing Clang job and also add a job that covers the linux-user code with this compiler flag. To make sure that the detected problems are not simply ignored, let's also use "-fno-sanitize-recover=..." now instead.
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.yml | 14 ++++++++++++-- .travis.yml | 27 --------------------------- 2 files changed, 12 insertions(+), 29 deletions(-).gitlab-ci.yml +3
-2@@ -433,13 +433,23 @@ build-some-softmmu-plugins: TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu MAKE_CHECK_ARGS: check-tcg -build-clang: +clang-system: <<: *native_build_job_definition variables: IMAGE: fedora CONFIGURE_ARGS: --cc=clang --cxx=clang++ + --extra-cflags=-fno-sanitize-recover=undefined TARGETS: alpha-softmmu arm-softmmu m68k-softmmu mips64-softmmu - ppc-softmmu s390x-softmmu arm-linux-user + ppc-softmmu s390x-softmmu
.gitlab-ci.yml build-some-softmmu-plugins: · line 453
Quoted 10 lines
.gitlab-ci.yml +9
-0+ MAKE_CHECK_ARGS: check-qtest check-block check-tcg + +clang-user: + <<: *native_build_job_definition + variables: + IMAGE: fedora + CONFIGURE_ARGS: --cc=clang --cxx=clang++ --disable-system + --target-list-exclude=microblazeel-linux-user,aarch64-linux-user,armeb-linux-user,x86_64-linux-user,mipsn32el-linux-user,xtensa-linux-user + --extra-cflags=-fno-sanitize-recover=undefined MAKE_CHECK_ARGS: check
Interesting choice of things to skip. I don't think we'll get much coverage though as check-tcg is about the only thing that exercises linux-user to any degree and you'll want to include arches the build system can build binaries for (arguably we should also update check-tcg to build for ^endian variants of the main targets).
Quoted 40 lines
.gitlab-ci.yml +0
-0# These targets are on the way out.travis.yml +0
-27@@ -138,33 +138,6 @@ jobs: - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" - # Test with Clang for compile portability (Travis uses clang-5.0) - - name: "Clang (user)" - env: - - CONFIG="--disable-system --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - - - name: "Clang (main-softmmu)" - env: - - CONFIG="--target-list=${MAIN_SOFTMMU_TARGETS} - --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-sanitize" - compiler: clang - before_script: - - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${CONFIG} --extra-cflags="-fsanitize=undefined -Werror" || { cat config.log meson-logs/meson-log.txt && exit 1; } - - - - name: "Clang (other-softmmu)" - env: - - CONFIG="--disable-user --target-list-exclude=${MAIN_SOFTMMU_TARGETS} - --host-cc=clang --cxx=clang++" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-clang-default" - compiler: clang - - # Using newer GCC with sanitizers - name: "GCC9 with sanitizers (softmmu)" dist: bionic
Signature · 1 line
Alex Bennée
PATCH v2 3/5 travis.yml: Move the --enable-modules test to the gitlab-CI
In reply to Thomas HuthSimply add the flag to an existing job, no need for yet another job here.
--- .gitlab-ci.yml | 1 + .travis.yml | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-)
.gitlab-ci.yml +1 -0
@@ -223,6 +223,7 @@ build-system-centos: variables: IMAGE: centos8 CONFIGURE_ARGS: --disable-nettle --enable-gcrypt --enable-fdt=system + --enable-modules TARGETS: ppc64-softmmu or1k-softmmu s390x-softmmu x86_64-softmmu rx-softmmu sh4-softmmu nios2-softmmu MAKE_CHECK_ARGS: check-build
.travis.yml +0 -6
@@ -131,12 +131,6 @@ jobs: - CONFIG="--enable-debug-tcg --disable-system" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" - # Module builds are mostly of interest to major distros - - name: "GCC modules (main-softmmu)" - env: - - CONFIG="--enable-modules --target-list=${MAIN_SOFTMMU_TARGETS}" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-default" - # Using newer GCC with sanitizers - name: "GCC9 with sanitizers (softmmu)"
Signature · 1 line
2.27.0
Re: [PATCH v2 3/5] travis.yml: Move the --enable-modules test to the gitlab-CI
Quoted 5 lines · Thomas Huth
Simply add the flag to an existing job, no need for yet another job here.
Reviewed-by Wainer dos Santos Moschetta <[email protected]>Signed-off-by Thomas Huth <[email protected]>
Signature · 1 line
Alex Bennée
PATCH v2 4/5 travis.yml: (Re-)move the --enable-debug jobs
In reply to Thomas HuthWe already have similar jobs in the gitlab-CI ("build-some-softmmu" and "build-user-plugins"), so let's switch one of them to use --enable-debug instead of --enable-debug-tcg, then we can simply drop these jobs from the Travis-CI.
--- .gitlab-ci.yml | 2 +- .travis.yml | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-)
.gitlab-ci.yml +1 -1
@@ -404,7 +404,7 @@ build-some-softmmu: <<: *native_build_job_definition variables: IMAGE: debian-all-test-cross - CONFIGURE_ARGS: --disable-tools --enable-debug-tcg + CONFIGURE_ARGS: --disable-tools --enable-debug TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu MAKE_CHECK_ARGS: check-tcg
.travis.yml +0 -12
@@ -118,18 +118,6 @@ after_script: jobs: include: - # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower - - name: "GCC debug (main-softmmu)" - env: - - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" - - - # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions - - name: "GCC debug (user)" - env: - - CONFIG="--enable-debug-tcg --disable-system" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" # Using newer GCC with sanitizers
Signature · 1 line
2.27.0
Re: [PATCH v2 4/5] travis.yml: (Re-)move the --enable-debug jobs
Quoted 10 lines · Thomas Huth
We already have similar jobs in the gitlab-CI ("build-some-softmmu" and "build-user-plugins"), so let's switch one of them to use --enable-debug instead of --enable-debug-tcg, then we can simply drop these jobs from the Travis-CI.
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.yml | 2 +- .travis.yml | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-)
Quoted 37 lines
.gitlab-ci.yml +1
-1@@ -404,7 +404,7 @@ build-some-softmmu: <<: *native_build_job_definition variables: IMAGE: debian-all-test-cross - CONFIGURE_ARGS: --disable-tools --enable-debug-tcg + CONFIGURE_ARGS: --disable-tools --enable-debug TARGETS: xtensa-softmmu arm-softmmu aarch64-softmmu alpha-softmmu MAKE_CHECK_ARGS: check-tcg.travis.yml +0
-12@@ -118,18 +118,6 @@ after_script: jobs: include: - # --enable-debug implies --enable-debug-tcg, also runs quite a bit slower - - name: "GCC debug (main-softmmu)" - env: - - CONFIG="--enable-debug --target-list=${MAIN_SOFTMMU_TARGETS}" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug" - - - # TCG debug can be run just on its own and is mostly agnostic to user/softmmu distinctions - - name: "GCC debug (user)" - env: - - CONFIG="--enable-debug-tcg --disable-system" - - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg" # Using newer GCC with sanitizers
Re: [PATCH v2 4/5] travis.yml: (Re-)move the --enable-debug jobs
In reply to Thomas HuthQuoted 6 lines · Thomas Huth
We already have similar jobs in the gitlab-CI ("build-some-softmmu" and "build-user-plugins"), so let's switch one of them to use --enable-debug instead of --enable-debug-tcg, then we can simply drop these jobs from the Travis-CI.
Signed-off-by Thomas Huth <[email protected]>
Signature · 1 line
Alex Bennée
PATCH v2 5/5 travis.yml: Move the -fsanitize=thread testing to the gitlab-CI
In reply to Thomas HuthUse clang-10, so we can also use the --enable-tsan configure option instead of only passing the flag via --extra-cflags.
--- .gitlab-ci.yml | 9 +++++++++ .travis.yml | 51 -------------------------------------------------- 2 files changed, 9 insertions(+), 51 deletions(-)
.gitlab-ci.yml +9 -0
@@ -453,6 +453,15 @@ clang-user: --extra-cflags=-fno-sanitize-recover=undefined MAKE_CHECK_ARGS: check +tsan-build: + <<: *native_build_job_definition + variables: + IMAGE: ubuntu2004 + CONFIGURE_ARGS: --enable-tsan --cc=clang-10 --cxx=clang++-10 --disable-docs + --enable-fdt=system --enable-slirp=system + TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user + MAKE_CHECK_ARGS: bench V=1 + # These targets are on the way out build-deprecated: <<: *native_build_job_definition
.travis.yml +0 -51
57 lines not on this page · raw message
Signature · 1 line
2.27.0
Re: [PATCH v2 5/5] travis.yml: Move the -fsanitize=thread testing to the gitlab-CI
Quoted 4 lines · Thomas Huth
Use clang-10, so we can also use the --enable-tsan configure option instead of only passing the flag via --extra-cflags.
Signed-off-by Thomas Huth <[email protected]>
Signature · 1 line
Alex Bennée
Quoted 4 lines · Thomas Huth
Since Travis changed their policies, travis-ci.org will soon become completely useless for the QEMU project. We should now really make sure that we move the remaining tests as good as possible to the gitlab-CI instead.
Queued to testing/next, thanks.
Signature · 1 line
Alex Bennée
Quoted 9 lines · Alex Bennée
Quoted 4 lines · Thomas Huth
Since Travis changed their policies, travis-ci.org will soon become completely useless for the QEMU project. We should now really make sure that we move the remaining tests as good as possible to the gitlab-CI instead.
Queued to testing/next, thanks.
Thanks, but please unqueue them again, I still want to send a v3 to address your comment on the -fsanitize=undefined patch... and I also noticed that the gprof/gcov job runs very long and sometimes hits the 1h time limit, so I need to revisit the set of target architectures there...
Thomas
Will do.
Quoted 21 lines · On Wed, 10 Feb 2021, 05:44 Thomas Huth, <[email protected]> wrote:
Quoted 9 lines · Alex Bennée
Quoted 4 lines · Thomas Huth
Since Travis changed their policies, travis-ci.org will soon become completely useless for the QEMU project. We should now really make sure that we move the remaining tests as good as possible to the gitlab-CI instead.
Queued to testing/next, thanks.
Thanks, but please unqueue them again, I still want to send a v3 to address
your comment on the -fsanitize=undefined patch... and I also noticed that the gprof/gcov job runs very long and sometimes hits the 1h time limit, so I
need to revisit the set of target architectures there...Thomas