Skip to contentSkip to conversation

travis-ci: Improve OSX coverage

PATCH RESEND In review Philippe Mathieu-Daudé 3 participants 9 messages Feb 18, 2020 – Apr 9, 2020

lore
Share & tools
lore
#2 lore raw

PATCH RESEND 2/3 .travis.yml: Build with ncurses on OSX

In reply to Philippe Mathieu-Daudé

Install the ncurses to extend coverage:

    $ ./configure
    [...]
    iconv support     yes
    curses support    yes
    curl support      yes
---
 .travis.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
.travis.yml +2 -1
index 08ef2c011c..a2a7fd0dd1 100644
@@ -271,7 +271,7 @@ matrix:
 
     - name: "OSX Xcode 10.3"
       env:
-        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu"
+        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
       os: osx
       osx_image: xcode10.3
       compiler: clang
@@ -288,6 +288,7 @@ matrix:
             - gettext
             - glib
             - gnu-sed
+            - ncurses
             - pixman
             - python
             - snappy
Signature · 1 line
2.21.1
#0 lore raw

cover travis-ci: Improve OSX coverage

Add more packages on the Mojave OSX job (Xcode 10), and duplicate the job to build on Catalina (Xcode 11).

Each job takes ~34min:
https://travis-ci.org/philmd/qemu/builds/651473221

Philippe Mathieu-Daudé (3):
.travis.yml: Expand OSX code coverage
.travis.yml: Build with ncurses on OSX
.travis.yml: Test building with Xcode 11.3

 .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 46 insertions(+), 2 deletions(-)
Signature · 1 line
2.21.1
#1 lore raw

PATCH RESEND 1/3 .travis.yml: Expand OSX code coverage

Install more packages to cover more components:

./configure
[...]
host CPU x86_64
strip binaries yes
Cocoa support yes
TLS priority NORMAL
GNUTLS support yes
nettle yes (3.4.1)
libtasn1 yes
PAM yes
iconv support yes
curses support no
curl support yes
Audio drivers coreaudio
vde support yes
HAX support yes
HVF support yes
TCG support yes
vhost-net support yes
vhost-crypto support yes
vhost-user support yes
vhost-user-fs support yes
libusb yes
libiscsi support yes
libssh support yes
lzo support yes
snappy support yes
bzip2 support yes
lzfse support yes
[...]

---
 .travis.yml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
.travis.yml +10 -1
index 5887055951..08ef2c011c 100644
@@ -279,10 +279,19 @@ matrix:
         homebrew:
           packages:
             - ccache
+            - libgcrypt
+            - libiscsi
+            - libssh2
+            - libusb
+            - lzfse
+            - lzo
+            - gettext
             - glib
-            - pixman
             - gnu-sed
+            - pixman
             - python
+            - snappy
+            - vde
           update: true
       before_script:
         - brew link --overwrite python
Signature · 1 line
2.21.1
#3 lore raw

PATCH RESEND 3/3 .travis.yml: Test building with Xcode 11.3

In reply to Philippe Mathieu-Daudé

We currently run a CI job on macOS Mojave with Xcode 10.

QEMU policy is to support the two last major OS releases. Add a job building on macOS Catalina, which comes with Xcode 11.

Split the target list in two, as we don't need to cover twice the same targets.

---
 .travis.yml | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)
.travis.yml +35 -1
index a2a7fd0dd1..d02a477623 100644
@@ -269,9 +269,10 @@ matrix:
 
     # MacOSX builds - cirrus.yml also tests some MacOS builds including latest Xcode
 
+    # On macOS Mojave, the SDK comes bundled with Xcode 10.
     - name: "OSX Xcode 10.3"
       env:
-        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
       os: osx
       osx_image: xcode10.3
       compiler: clang
@@ -301,6 +302,39 @@ matrix:
         - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
 
 
+    # On macOS Catalina, the SDK comes bundled with Xcode 11.
+    - name: "OSX Xcode 11.3"
+      env:
+        - CONFIG="--target-list=arm-softmmu,ppc64-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+      os: osx
+      osx_image: xcode11.3
+      compiler: clang
+      addons:
+        homebrew:
+          packages:
+            - ccache
+            - libgcrypt
+            - libiscsi
+            - libssh2
+            - libusb
+            - lzfse
+            - lzo
+            - gettext
+            - glib
+            - gnu-sed
+            - ncurses
+            - pixman
+            - python
+            - snappy
+            - vde
+          update: true
+      before_script:
+        - brew link --overwrite python
+        - export PATH="/usr/local/opt/ccache/libexec:$PATH"
+        - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
+        - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
+
+
     # Python builds
     - name: "GCC Python 3.5 (x86_64-softmmu)"
       env:
Signature · 1 line
2.21.1
#7 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 2 lines · Philippe Mathieu-Daudé

Add more packages on the Mojave OSX job (Xcode 10), and duplicate the job to build on Catalina (Xcode 11).

ping?

Quoted 12 lines

Each job takes ~34min:
https://travis-ci.org/philmd/qemu/builds/651473221

Philippe Mathieu-Daudé (3):
.travis.yml: Expand OSX code coverage
.travis.yml: Build with ncurses on OSX
.travis.yml: Test building with Xcode 11.3

  .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
  1 file changed, 46 insertions(+), 2 deletions(-)
#4 lore raw

Re: [PATCH RESEND 3/3] .travis.yml: Test building with Xcode 11.3

In reply to Philippe Mathieu-Daudé
Quoted 30 lines · Philippe Mathieu-Daudé

We currently run a CI job on macOS Mojave with Xcode 10.

QEMU policy is to support the two last major OS releases. Add a job building on macOS Catalina, which comes with Xcode 11.

Split the target list in two, as we don't need to cover twice the same targets.

---
 .travis.yml | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)
.travis.yml +2 -1
index a2a7fd0dd1..d02a477623 100644
@@ -269,9 +269,10 @@ matrix:
 
     # MacOSX builds - cirrus.yml also tests some MacOS builds including latest Xcode
 
+    # On macOS Mojave, the SDK comes bundled with Xcode 10.
     - name: "OSX Xcode 10.3"
       env:
-        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
       os: osx
       osx_image: xcode10.3
       compiler: clang

.travis.yml matrix: · line 310

Quoted 9 lines
.travis.yml +6 -0
@@ -301,6 +302,39 @@ matrix:
         - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
 
 
+    # On macOS Catalina, the SDK comes bundled with Xcode 11.
+    - name: "OSX Xcode 11.3"
+      env:
+        - CONFIG="--target-list=arm-softmmu,ppc64-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+      os: osx
+      osx_image: xcode11.3

Are we duplicating what the latest Xcode on Cirrus is here?

Signature · 1 line
Alex Bennée
#5 lore raw

Re: [PATCH RESEND 3/3] .travis.yml: Test building with Xcode 11.3

Quoted 36 lines · Alex Bennée
Quoted 33 lines · Philippe Mathieu-Daudé

We currently run a CI job on macOS Mojave with Xcode 10.

QEMU policy is to support the two last major OS releases. Add a job building on macOS Catalina, which comes with Xcode 11.

Split the target list in two, as we don't need to cover twice the same targets.

---
  .travis.yml | 36 +++++++++++++++++++++++++++++++++++-
  1 file changed, 35 insertions(+), 1 deletion(-)
.travis.yml +2 -1
index a2a7fd0dd1..d02a477623 100644
@@ -269,9 +269,10 @@ matrix:
 
      # MacOSX builds - cirrus.yml also tests some MacOS builds including latest Xcode
 
+    # On macOS Mojave, the SDK comes bundled with Xcode 10.
      - name: "OSX Xcode 10.3"
        env:
-        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
        os: osx
        osx_image: xcode10.3
        compiler: clang
@@ -301,6 +302,39 @@ matrix:
          - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
 
 
Quoted 8 lines

.travis.yml matrix: · line 310

Quoted 6 lines
.travis.yml +6 -0
+    # On macOS Catalina, the SDK comes bundled with Xcode 11.
+    - name: "OSX Xcode 11.3"
+      env:
+        - CONFIG="--target-list=arm-softmmu,ppc64-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+      os: osx
+      osx_image: xcode11.3

Are we duplicating what the latest Xcode on Cirrus is here?

Maybe, I'm not sure. It seems only few people care about Cirrus/Shippable but they are not taken seriously by the community, as they are often broken and nobody is notified. Currently Travis has a broader audience.

Also I sent a series to fix various things that break on Cirrus from time to time but I felt there is not many interest so I stopped spending energy on it:
https://www.mail-archive.com/[email protected]/msg675074.html

We could change that by refusing to merge pullreq that break such CI.

#8 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 5 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Philippe Mathieu-Daudé

Add more packages on the Mojave OSX job (Xcode 10), and duplicate the job to build on Catalina (Xcode 11).

ping?

Ping for patches 1 + 2 (extend OSX coverage)?

Quoted 13 lines
Quoted 13 lines

Each job takes ~34min:
https://travis-ci.org/philmd/qemu/builds/651473221

Philippe Mathieu-Daudé (3):
   .travis.yml: Expand OSX code coverage
   .travis.yml: Build with ncurses on OSX
   .travis.yml: Test building with Xcode 11.3

  .travis.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++++--

  1 file changed, 46 insertions(+), 2 deletions(-)
#6 lore raw

Re: [PATCH RESEND 3/3] .travis.yml: Test building with Xcode 11.3

In reply to Philippe Mathieu-Daudé
Quoted 46 lines · Philippe Mathieu-Daudé
Quoted 32 lines · Alex Bennée
Quoted 29 lines · Philippe Mathieu-Daudé

We currently run a CI job on macOS Mojave with Xcode 10.

QEMU policy is to support the two last major OS releases. Add a job building on macOS Catalina, which comes with Xcode 11.

Split the target list in two, as we don't need to cover twice the same targets.

---
  .travis.yml | 36 +++++++++++++++++++++++++++++++++++-
  1 file changed, 35 insertions(+), 1 deletion(-)
.travis.yml +2 -1
index a2a7fd0dd1..d02a477623 100644
@@ -269,9 +269,10 @@ matrix:
      # MacOSX builds - cirrus.yml also tests some MacOS builds including latest Xcode
+    # On macOS Mojave, the SDK comes bundled with Xcode 10.
      - name: "OSX Xcode 10.3"
        env:
-        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+        - CONFIG="--target-list=i386-softmmu,ppc-softmmu,ppc64-softmmu,m68k-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
        os: osx
        osx_image: xcode10.3
        compiler: clang
@@ -301,6 +302,39 @@ matrix:
          - ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log && exit 1; }
Quoted 8 lines

.travis.yml matrix: · line 310

Quoted 6 lines
.travis.yml +6 -0
+    # On macOS Catalina, the SDK comes bundled with Xcode 11.
+    - name: "OSX Xcode 11.3"
+      env:
+        - CONFIG="--target-list=arm-softmmu,ppc64-softmmu,x86_64-softmmu --extra-cflags=-I/usr/local/opt/ncurses/include --extra-ldflags=-L/usr/local/opt/ncurses/lib"
+      os: osx
+      osx_image: xcode11.3

Are we duplicating what the latest Xcode on Cirrus is here?

Maybe, I'm not sure. It seems only few people care about Cirrus/Shippable but they are not taken seriously by the community, as they are often broken and nobody is notified. Currently Travis has a broader audience.

Quoted 6 lines

Also I sent a series to fix various things that break on Cirrus from time to time but I felt there is not many interest so I stopped spending energy on it:
https://www.mail-archive.com/[email protected]/msg675074.html

We could change that by refusing to merge pullreq that break such CI.

IMHO less is more. IOW, we should use/support the fewest possible CI systems required to get the coverage we want. If we can get all macOS coverage on Travis, I'd remove it from Cirrus, or vica-verca. The fewer places we have to look at the more likely we'll pay attention to it when it breaks.

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|