Skip to contentSkip to conversation

Travis stability and a few docker patches

PATCH In review Alex Bennée 2 participants 16 messages May 30, 2018 – May 31, 2018

lore
Share & tools
lore
#0 lore raw

cover Travis stability and a few docker patches

Hi,

Again the final patch won't make it into a pull-request but I'm just keeping it around to keep track of failures. So far my numerous re-builds have been mainly plain timeouts.

The alternate co-routine builds are sailing the closest to timeout purgatory which makes me think we should limit the scope of the testing - I'm not sure how much of the unit tests or qapi tests are likely to exercise the co-routine code. Is it likely only the (currently not run) block tests really exercise this area of code?

I've also updated the Travis image to be more recent. I noticed while doing so that the Travis clang was newer than our hand crafted tools so I took the opportunity to drop them and just concentrate on exercising the python stuff. It might be worth just limiting the target list for those tests to x86_64 only though?

There are also a couple of Philippe's patches which I should have queued ages ago. If we get some quick reviews I can turn around a pull request by the end of the week.

Alex Bennée (6):
.travis.yml: disable linux-user build for gcov
docker: update Travis docker image .travis.yml: rationalise clang testing .travis.yml: make current setup explicit .travis.yml: update GCC sanitizer build to GCC 7 tests/Makefile: mark flakey tests (!UPSTREAM)

Philippe Mathieu-Daudé (2):
docker: sort images list displayed by 'make docker'
docker: do not display deprecated images in 'make docker' help

 .travis.yml                            | 82 +++++---------------------
 tests/Makefile.include                 |  4 ++
 tests/docker/Makefile.include          |  5 +-
 tests/docker/dockerfiles/travis.docker |  7 ++-
 4 files changed, 28 insertions(+), 70 deletions(-)
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/8 .travis.yml: disable linux-user build for gcov

Currently the default testing doesn't exercise the linux-user builds so there is no point spending time building them. We may want to enable a separate gcov build once linux-user testing is re-enabled although it's likely to report very low coverage.

---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index c1e99237b2..aa83e9aed7 100644
@@ -74,7 +74,7 @@ matrix:
     - env: CONFIG=""
       compiler: clang
     # gprof/gcov are GCC features
-    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
+    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --disable-linux-user"
       compiler: gcc
     # We manually include builds which we disable "make check" for
     - env: CONFIG="--enable-debug --enable-tcg-interpreter"
Signature · 1 line
2.17.0
Reviewed-by Tested-by on v1 1/8
#2 lore raw

Re: [Qemu-devel] [PATCH v1 1/8] .travis.yml: disable linux-user build for gcov

Quoted 6 lines · Alex Bennée

Currently the default testing doesn't exercise the linux-user builds so there is no point spending time building them. We may want to enable a separate gcov build once linux-user testing is re-enabled although it's likely to report very low coverage.

Finally.

Quoted 18 lines
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
index c1e99237b2..aa83e9aed7 100644
@@ -74,7 +74,7 @@ matrix:
     - env: CONFIG=""
       compiler: clang
     # gprof/gcov are GCC features
-    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie"
+    - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --disable-linux-user"
       compiler: gcc
     # We manually include builds which we disable "make check" for
     - env: CONFIG="--enable-debug --enable-tcg-interpreter"
#3 lore raw

PATCH 2/8 docker: sort images list displayed by 'make docker'

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

we can now directly see different version sort consecutively.

---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +1 -1
index ef1a3e62eb..50cd51a54e 100644
@@ -4,7 +4,7 @@
 
 DOCKER_SUFFIX := .docker
 DOCKER_FILES_DIR := $(SRC_PATH)/tests/docker/dockerfiles
-DOCKER_IMAGES := $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker)))
+DOCKER_IMAGES := $(sort $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker))))
 DOCKER_TARGETS := $(patsubst %,docker-image-%,$(DOCKER_IMAGES))
 # Use a global constant ccache directory to speed up repetitive builds
 DOCKER_CCACHE_DIR := $$HOME/.cache/qemu-docker-ccache
Signature · 1 line
2.17.0
#4 lore raw

PATCH 3/8 docker: do not display deprecated images in 'make docker' help

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

the 'debian' base image is deprecated since 3e11974988d8

---
 tests/docker/Makefile.include | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
tests/docker/Makefile.include +3 -2
index 50cd51a54e..31f21a43f5 100644
@@ -4,7 +4,8 @@
 
 DOCKER_SUFFIX := .docker
 DOCKER_FILES_DIR := $(SRC_PATH)/tests/docker/dockerfiles
-DOCKER_IMAGES := $(sort $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker))))
+DOCKER_DEPRECATED_IMAGES := debian
+DOCKER_IMAGES := $(filter-out $(DOCKER_DEPRECATED_IMAGES),$(sort $(notdir $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker)))))
 DOCKER_TARGETS := $(patsubst %,docker-image-%,$(DOCKER_IMAGES))
 # Use a global constant ccache directory to speed up repetitive builds
 DOCKER_CCACHE_DIR := $$HOME/.cache/qemu-docker-ccache
@@ -63,7 +64,7 @@ docker-image-debian-win64-cross: docker-image-debian8-mxe
 docker-image-travis: NOUSER=1
 
 # Expand all the pre-requistes for each docker image and test combination
-$(foreach i,$(DOCKER_IMAGES), \
+$(foreach i,$(DOCKER_IMAGES) $(DOCKER_DEPRECATED_IMAGES), \
 	$(foreach t,$(DOCKER_TESTS) $(DOCKER_TOOLS), \
 		$(eval .PHONY: docker-$t@$i) \
 		$(eval docker-$t@$i: docker-image-$i docker-run-$t@$i) \
Signature · 1 line
2.17.0
#5 lore raw

PATCH 4/8 docker: update Travis docker image

In reply to Alex Bennée

This is still poorly documented by Travis but according to:

https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally

their reference images are now hosted on Docker Hub. So we update the FROM line to refer to the new default image. We also need a few additional tweaks:

- re-enable deb-src lines for our build-dep install
- add explicit PATH definition for tools
- force the build USER to be Travis
- add clang to FEATURES for our test-clang machinery

---
 tests/docker/dockerfiles/travis.docker | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/travis.docker +5 -2
index 605b6e429b..6e90f033d5 100644
@@ -1,8 +1,11 @@
-FROM quay.io/travisci/travis-ruby
+FROM travisci/ci-garnet:packer-1512502276-986baf0
 ENV DEBIAN_FRONTEND noninteractive
 ENV LANG en_US.UTF-8
 ENV LC_ALL en_US.UTF-8
+RUN cat /etc/apt/sources.list | sed "s/# deb-src/deb-src/" >> /etc/apt/sources.list
 RUN apt-get update
 RUN apt-get -y build-dep qemu
 RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools
-ENV FEATURES pyyaml
+ENV PATH /usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV FEATURES clang pyyaml
+USER travis
Signature · 1 line
2.17.0
#6 lore raw

Re: [Qemu-devel] [PATCH v1 4/8] docker: update Travis docker image

Hi Alex,

Quoted 10 lines · Alex Bennée

This is still poorly documented by Travis but according to:

https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally

their reference images are now hosted on Docker Hub. So we update the FROM line to refer to the new default image. We also need a few additional tweaks:

- re-enable deb-src lines for our build-dep install
- add explicit PATH definition for tools

I don't understand how this is related to QEMU testing, isn't it rather some Travis-ci bug? We don't need to use PhantomJS / Neo4j / Maven.

Quoted 27 lines

- force the build USER to be Travis
- add clang to FEATURES for our test-clang machinery

---
 tests/docker/dockerfiles/travis.docker | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/travis.docker +5 -2
index 605b6e429b..6e90f033d5 100644
@@ -1,8 +1,11 @@
-FROM quay.io/travisci/travis-ruby
+FROM travisci/ci-garnet:packer-1512502276-986baf0
 ENV DEBIAN_FRONTEND noninteractive
 ENV LANG en_US.UTF-8
 ENV LC_ALL en_US.UTF-8
+RUN cat /etc/apt/sources.list | sed "s/# deb-src/deb-src/" >> /etc/apt/sources.list
 RUN apt-get update
 RUN apt-get -y build-dep qemu
 RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools
-ENV FEATURES pyyaml
+ENV PATH /usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV FEATURES clang pyyaml
+USER travis
#7 lore raw

Re: [Qemu-devel] [PATCH v1 4/8] docker: update Travis docker image

Quoted 11 lines · Philippe Mathieu-Daudé

Hi Alex,

Quoted 8 lines · Alex Bennée

This is still poorly documented by Travis but according to:

https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally

their reference images are now hosted on Docker Hub. So we update the FROM line to refer to the new default image. We also need a few additional tweaks:

Quoted 5 lines
Quoted 2 lines

- re-enable deb-src lines for our build-dep install
- add explicit PATH definition for tools

I don't understand how this is related to QEMU testing, isn't it rather some Travis-ci bug? We don't need to use PhantomJS / Neo4j / Maven.

It's oddly constructed I'll grant you but I just set the path to what a running image has. The normal image is started up with a full systemd init whereas we drop directly into the shell.

Quoted 20 lines
Quoted 20 lines

- force the build USER to be Travis
- add clang to FEATURES for our test-clang machinery

---
 tests/docker/dockerfiles/travis.docker | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/travis.docker +2 -1
index 605b6e429b..6e90f033d5 100644
@@ -1,8 +1,11 @@
-FROM quay.io/travisci/travis-ruby
+FROM travisci/ci-garnet:packer-1512502276-986baf0
 ENV DEBIAN_FRONTEND noninteractive
 ENV LANG en_US.UTF-8
 ENV LC_ALL en_US.UTF-8
+RUN cat /etc/apt/sources.list | sed "s/# deb-src/deb-src/" >> /etc/apt/sources.list
Quoted 8 lines

tests/docker/dockerfiles/travis.docker line 11

Quoted 8 lines
tests/docker/dockerfiles/travis.docker +3 -1
 RUN apt-get update
 RUN apt-get -y build-dep qemu
 RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools
-ENV FEATURES pyyaml
+ENV PATH /usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV FEATURES clang pyyaml
+USER travis

--
Alex Bennée

#8 lore raw

Re: [Qemu-devel] [PATCH v1 4/8] docker: update Travis docker image

Quoted 17 lines · Alex Bennée
Quoted 14 lines · Philippe Mathieu-Daudé

Hi Alex,

Quoted 10 lines · Alex Bennée

This is still poorly documented by Travis but according to:

https://docs.travis-ci.com/user/common-build-problems/#Running-a-Container-Based-Docker-Image-Locally

their reference images are now hosted on Docker Hub. So we update the FROM line to refer to the new default image. We also need a few additional tweaks:

- re-enable deb-src lines for our build-dep install
- add explicit PATH definition for tools

Quoted 6 lines
Quoted 2 lines

I don't understand how this is related to QEMU testing, isn't it rather some Travis-ci bug? We don't need to use PhantomJS / Neo4j / Maven.

It's oddly constructed I'll grant you but I just set the path to what a running image has. The normal image is started up with a full systemd init whereas we drop directly into the shell.

OK, can you add a comment about it? (so we don't remove what seems unrelated).

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

- force the build USER to be Travis
- add clang to FEATURES for our test-clang machinery

---
 tests/docker/dockerfiles/travis.docker | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Quoted 15 lines
Quoted 7 lines
Quoted 7 lines
tests/docker/dockerfiles/travis.docker +1 -1
index 605b6e429b..6e90f033d5 100644
@@ -1,8 +1,11 @@
-FROM quay.io/travisci/travis-ruby
+FROM travisci/ci-garnet:packer-1512502276-986baf0
Quoted 8 lines

tests/docker/dockerfiles/travis.docker line 8

Quoted 8 lines
tests/docker/dockerfiles/travis.docker +1 -1
 ENV DEBIAN_FRONTEND noninteractive
 ENV LANG en_US.UTF-8
 ENV LC_ALL en_US.UTF-8
+RUN cat /etc/apt/sources.list | sed "s/# deb-src/deb-src/" >> /etc/apt/sources.list
 RUN apt-get update
 RUN apt-get -y build-dep qemu
 RUN apt-get -y install device-tree-compiler python2.7 python-yaml dh-autoreconf gdb strace lsof net-tools
-ENV FEATURES pyyaml

# Travis tools require PhantomJS / Neo4j / Maven accessible

# in their PATH (QEMU build won't access them).
Quoted 9 lines
Quoted 4 lines

tests/docker/dockerfiles/travis.docker line 11

Quoted 4 lines
tests/docker/dockerfiles/travis.docker +3 -0
+ENV PATH /usr/local/phantomjs/bin:/usr/local/phantomjs:/usr/local/neo4j-3.2.7/bin:/usr/local/maven-3.5.2/bin:/usr/local/cmake-3.9.2/bin:/usr/local/clang-5.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ENV FEATURES clang pyyaml
+USER travis

--
Alex Bennée

#9 lore raw

PATCH 5/8 .travis.yml: rationalise clang testing

In reply to Alex Bennée

As Travis includes Clang 5.0 in its own build environment there is no point manually building with older Clangs. We still need to test with the two pythons though so we leave them as system only builds. We also split the clang build into two as it often exceeds the 40 minute build time limit.

---
 .travis.yml | 67 +++++------------------------------------------------
 1 file changed, 6 insertions(+), 61 deletions(-)
.travis.yml +6 -61
index aa83e9aed7..85ee2a1edb 100644
@@ -70,8 +70,10 @@ script:
   - make ${MAKEFLAGS} && ${TEST_CMD}
 matrix:
   include:
-    # Test with CLang for compile portability
-    - env: CONFIG=""
+    # Test with Clang for compile portability (Travis uses clang-5.0)
+    - env: CONFIG="--disable-system"
+      compiler: clang
+    - env: CONFIG="--disable-user"
       compiler: clang
     # gprof/gcov are GCC features
     - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --disable-linux-user"
@@ -95,70 +97,13 @@ matrix:
     - env: CONFIG=""
       os: osx
       compiler: clang
-    # Plain Trusty System Build
+    # Python builds
     - env: CONFIG="--disable-linux-user"
-      sudo: required
-      addons:
-      dist: trusty
-      compiler: gcc
-      before_install:
-        - sudo apt-get update -qq
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-    # Plain Trusty Linux User Build
-    - env: CONFIG="--disable-system"
-      sudo: required
-      addons:
-      dist: trusty
-      compiler: gcc
-      before_install:
-        - sudo apt-get update -qq
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-    # Trusty System build with latest stable clang & python 3.0
-    - sudo: required
-      addons:
-      dist: trusty
-      language: generic
-      compiler: none
       python:
         - "3.0"
-      env:
-        - COMPILER_NAME=clang CXX=clang++-3.9 CC=clang-3.9
-        - CONFIG="--disable-linux-user --cc=clang-3.9 --cxx=clang++-3.9 --python=/usr/bin/python3"
-      before_install:
-        - wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
-        - sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main'
-        - sudo apt-get update -qq
-        - sudo apt-get install -qq -y clang-3.9
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-      before_script:
-        - ./configure ${CONFIG} || cat config.log
-    # Trusty Linux User build with latest stable clang & python 3.6
-    - sudo: required
-      addons:
-      dist: trusty
-      language: generic
-      compiler: none
+    - env: CONFIG="--disable-linux-user"
       python:
         - "3.6"
-      env:
-        - COMPILER_NAME=clang CXX=clang++-3.9 CC=clang-3.9
-        - CONFIG="--disable-system --cc=clang-3.9 --cxx=clang++-3.9 --python=/usr/bin/python3"
-      before_install:
-        - wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
-        - sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main'
-        - sudo apt-get update -qq
-        - sudo apt-get install -qq -y clang-3.9
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-      before_script:
-        - ./configure ${CONFIG} || cat config.log
     # Using newer GCC with sanitizers
     - addons:
         apt:
Signature · 1 line
2.17.0
Reviewed-by Tested-by on v1 5/8
#10 lore raw

Re: [Qemu-devel] [PATCH v1 5/8] .travis.yml: rationalise clang testing

Quoted 7 lines · Alex Bennée

As Travis includes Clang 5.0 in its own build environment there is no point manually building with older Clangs. We still need to test with the two pythons though so we leave them as system only builds. We also split the clang build into two as it often exceeds the 40 minute build time limit.

Nice cut.

Quoted 95 lines
---
 .travis.yml | 67 +++++------------------------------------------------
 1 file changed, 6 insertions(+), 61 deletions(-)
.travis.yml +6 -61
index aa83e9aed7..85ee2a1edb 100644
@@ -70,8 +70,10 @@ script:
   - make ${MAKEFLAGS} && ${TEST_CMD}
 matrix:
   include:
-    # Test with CLang for compile portability
-    - env: CONFIG=""
+    # Test with Clang for compile portability (Travis uses clang-5.0)
+    - env: CONFIG="--disable-system"
+      compiler: clang
+    - env: CONFIG="--disable-user"
       compiler: clang
     # gprof/gcov are GCC features
     - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --disable-linux-user"
@@ -95,70 +97,13 @@ matrix:
     - env: CONFIG=""
       os: osx
       compiler: clang
-    # Plain Trusty System Build
+    # Python builds
     - env: CONFIG="--disable-linux-user"
-      sudo: required
-      addons:
-      dist: trusty
-      compiler: gcc
-      before_install:
-        - sudo apt-get update -qq
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-    # Plain Trusty Linux User Build
-    - env: CONFIG="--disable-system"
-      sudo: required
-      addons:
-      dist: trusty
-      compiler: gcc
-      before_install:
-        - sudo apt-get update -qq
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-    # Trusty System build with latest stable clang & python 3.0
-    - sudo: required
-      addons:
-      dist: trusty
-      language: generic
-      compiler: none
       python:
         - "3.0"
-      env:
-        - COMPILER_NAME=clang CXX=clang++-3.9 CC=clang-3.9
-        - CONFIG="--disable-linux-user --cc=clang-3.9 --cxx=clang++-3.9 --python=/usr/bin/python3"
-      before_install:
-        - wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
-        - sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main'
-        - sudo apt-get update -qq
-        - sudo apt-get install -qq -y clang-3.9
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-      before_script:
-        - ./configure ${CONFIG} || cat config.log
-    # Trusty Linux User build with latest stable clang & python 3.6
-    - sudo: required
-      addons:
-      dist: trusty
-      language: generic
-      compiler: none
+    - env: CONFIG="--disable-linux-user"
       python:
         - "3.6"
-      env:
-        - COMPILER_NAME=clang CXX=clang++-3.9 CC=clang-3.9
-        - CONFIG="--disable-system --cc=clang-3.9 --cxx=clang++-3.9 --python=/usr/bin/python3"
-      before_install:
-        - wget -nv -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
-        - sudo apt-add-repository -y 'deb http://llvm.org/apt/trusty llvm-toolchain-trusty-3.9 main'
-        - sudo apt-get update -qq
-        - sudo apt-get install -qq -y clang-3.9
-        - sudo apt-get build-dep -qq qemu
-        - wget -O - http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar -xvJ
-        - git submodule update --init --recursive
-      before_script:
-        - ./configure ${CONFIG} || cat config.log
     # Using newer GCC with sanitizers
     - addons:
         apt:
#11 lore raw

PATCH 6/8 .travis.yml: make current setup explicit

In reply to Alex Bennée

Add some commentary and make the selection of Container based Trusty build explicit. We will need to add VM builds later when using docker.

---
 .travis.yml | 4 ++++
 1 file changed, 4 insertions(+)
.travis.yml +4 -0
index 85ee2a1edb..e99af6f357 100644
@@ -1,4 +1,8 @@
+# The current Travis default is a container based 14.04 Trust on EC2
+# Additional builds with specific requirements for a full VM need to
+# be added as additional matrix: entries later on
 sudo: false
+dist: trusty
 language: c
 python:
   - "2.6"
Signature · 1 line
2.17.0
Reviewed-by Tested-by on v1 6/8
#12 lore raw

Re: [Qemu-devel] [PATCH v1 6/8] .travis.yml: make current setup explicit

Quoted 4 lines · Alex Bennée

Add some commentary and make the selection of Container based Trusty build explicit. We will need to add VM builds later when using docker.

Quoted 18 lines
---
 .travis.yml | 4 ++++
 1 file changed, 4 insertions(+)
.travis.yml +4 -0
index 85ee2a1edb..e99af6f357 100644
@@ -1,4 +1,8 @@
+# The current Travis default is a container based 14.04 Trust on EC2
+# Additional builds with specific requirements for a full VM need to
+# be added as additional matrix: entries later on
 sudo: false
+dist: trusty
 language: c
 python:
   - "2.6"
#13 lore raw

PATCH 7/8 .travis.yml: update GCC sanitizer build to GCC 7

In reply to Alex Bennée

GCC has moved on and so should we. We also enable apt update to ensure we get the latest build from the toolchain PPA.

---
 .travis.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
.travis.yml +5 -4
index e99af6f357..ecc4367036 100644
@@ -111,13 +111,14 @@ matrix:
     # Using newer GCC with sanitizers
     - addons:
         apt:
+          update: true
           sources:
             # PPAs for newer toolchains
             - ubuntu-toolchain-r-test
           packages:
             # Extra toolchains
-            - gcc-5
-            - g++-5
+            - gcc-7
+            - g++-7
             # Build dependencies
             - libaio-dev
             - libattr1-dev
@@ -146,8 +147,8 @@ matrix:
       language: generic
       compiler: none
       env:
-        - COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
-        - CONFIG="--cc=gcc-5 --cxx=g++-5 --disable-pie --disable-linux-user"
+        - COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7
+        - CONFIG="--cc=gcc-7 --cxx=g++-7 --disable-pie --disable-linux-user"
         - TEST_CMD=""
       before_script:
         - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || cat config.log
Signature · 1 line
2.17.0
Reviewed-by Tested-by on v1 7/8
#14 lore raw

Re: [Qemu-devel] [PATCH v1 7/8] .travis.yml: update GCC sanitizer build to GCC 7

Quoted 4 lines · Alex Bennée

GCC has moved on and so should we. We also enable apt update to ensure we get the latest build from the toolchain PPA.

Quoted 37 lines
---
 .travis.yml | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
.travis.yml +5 -4
index e99af6f357..ecc4367036 100644
@@ -111,13 +111,14 @@ matrix:
     # Using newer GCC with sanitizers
     - addons:
         apt:
+          update: true
           sources:
             # PPAs for newer toolchains
             - ubuntu-toolchain-r-test
           packages:
             # Extra toolchains
-            - gcc-5
-            - g++-5
+            - gcc-7
+            - g++-7
             # Build dependencies
             - libaio-dev
             - libattr1-dev
@@ -146,8 +147,8 @@ matrix:
       language: generic
       compiler: none
       env:
-        - COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
-        - CONFIG="--cc=gcc-5 --cxx=g++-5 --disable-pie --disable-linux-user"
+        - COMPILER_NAME=gcc CXX=g++-7 CC=gcc-7
+        - CONFIG="--cc=gcc-7 --cxx=g++-7 --disable-pie --disable-linux-user"
         - TEST_CMD=""
       before_script:
         - ./configure ${CONFIG} --extra-cflags="-g3 -O0 -fsanitize=thread -fuse-ld=gold" || cat config.log
#15 lore raw

PATCH 8/8 tests/Makefile: mark flakey tests (!UPSTREAM)

In reply to Alex Bennée

This is a bookmarking commit to keep track of the failures I'm currently seeing in Travis. They are currently:

1. test-aio

GTESTER tests/test-thread-pool
**
ERROR:tests/test-aio.c:501:test_timer_schedule: assertion failed: (aio_poll(ctx, true))
GTester: last random seed: R02S66126aca97f9606b33e5d7be7fc9b625
make: *** [check-tests/test-aio] Error 1
make: *** Waiting for unfinished jobs....

Last discussion @ [email protected]

- rcutorture

[AWAITING EXAMPLE]

I suspect it is load that causes the problems but they really need to be fixed properly.

---
 tests/Makefile.include | 4 ++++
 1 file changed, 4 insertions(+)
tests/Makefile.include +4 -0
index b499ba1813..8ff4ab9e27 100644
@@ -76,7 +76,9 @@ gcov-files-test-coroutine-y = coroutine-$(CONFIG_COROUTINE_BACKEND).c
 check-unit-y += tests/test-visitor-serialization$(EXESUF)
 check-unit-y += tests/test-iov$(EXESUF)
 gcov-files-test-iov-y = util/iov.c
+# start: flakey
 check-unit-y += tests/test-aio$(EXESUF)
+# end: flakey
 gcov-files-test-aio-y = util/async.c util/qemu-timer.o
 gcov-files-test-aio-$(CONFIG_WIN32) += util/aio-win32.c
 gcov-files-test-aio-$(CONFIG_POSIX) += util/aio-posix.c
@@ -110,7 +112,9 @@ gcov-files-test-mul64-y = util/host-utils.c
 check-unit-y += tests/test-int128$(EXESUF)
 # all code tested by test-int128 is inside int128.h
 gcov-files-test-int128-y =
+# start: flakey
 check-unit-y += tests/rcutorture$(EXESUF)
+# end: flakey
 gcov-files-rcutorture-y = util/rcu.c
 check-unit-y += tests/test-rcu-list$(EXESUF)
 gcov-files-test-rcu-list-y = util/rcu.c
Signature · 1 line
2.17.0