testing/next (docker, win-cross)
cover testing/next (docker, win-cross)
Hi,
This is my current queue for testing/next. I think they are all worth it for 4.1 but it would be nice to get the Windows cross builds up and running again.
The following patches need review
patch 0001/tests docker add test misc for building tools doc.patch patch 0005/tests migration test don t spam the logs when we .patch patch 0006/tests dockerfiles update the win cross builds to .patch patch 0007/shippable re enable the windows cross builds.patch
Alex Bennée (4):
tests/docker: add test-misc for building tools & docs tests/migration-test: don't spam the logs when we fail tests/dockerfiles: update the win cross builds to stretch
shippable: re-enable the windows cross builds
Philippe Mathieu-Daudé (3):
tests/docker: Install Sphinx in the Ubuntu images tests/docker: Install Sphinx in the Fedora image tests/docker: Install Ubuntu images noninteractively
.shippable.yml | 9 ++++----
tests/docker/Makefile.include | 6 ++---
.../dockerfiles/debian-win32-cross.docker | 4 ++--
.../dockerfiles/debian-win64-cross.docker | 4 ++--
...{debian8-mxe.docker => debian9-mxe.docker} | 11 ++++++----
tests/docker/dockerfiles/fedora.docker | 1 +
tests/docker/dockerfiles/ubuntu.docker | 3 ++-
tests/docker/dockerfiles/ubuntu1804.docker | 3 ++-
tests/docker/test-misc | 22 +++++++++++++++++++
tests/migration-test.c | 19 ++++++++++------
10 files changed, 57 insertions(+), 25 deletions(-)
rename tests/docker/dockerfiles/{debian8-mxe.docker => debian9-mxe.docker} (56%)
create mode 100755 tests/docker/test-miscSignature · 1 line
2.20.1
PATCH 1/7 tests/docker: add test-misc for building tools & docs
Add yet another test type so we cna quickly exercise the miscellaneous build products of the build system under various docer configurations.
--- tests/docker/test-misc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tests/docker/test-misc
tests/docker/test-misc new file +22 -0
@@ -0,0 +1,22 @@ +#!/bin/bash -e +# +# Build the miscellaneous components +# +# Copyright (c) 2019 Linaro Ltd. +# +# Authors: +# Alex Bennée <[email protected]> +# +# This work is licensed under the terms of the GNU GPL, version 2 or later. +# See the COPYING file in the top-level directory. +# +# SPDX-License-Identifier: GPL-2.0-or-later + +. common.rc + +cd "$BUILD_DIR" + +# build everything else but QEMU +configure_qemu --disable-user --disable-system --enable-docs --enable-tools +build_qemu +install_qemu
Signature · 1 line
2.20.1
Re: [PATCH v1 1/7] tests/docker: add test-misc for building tools & docs
Quoted 1 line · Alex Bennée
Add yet another test type so we cna quickly exercise the miscellaneous
"cna" -> "can"
Quoted 27 lines
build products of the build system under various docer configurations.
Signed-off-by Alex Bennée <[email protected]>--- tests/docker/test-misc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tests/docker/test-misctests/docker/test-misc new file +12
-0@@ -0,0 +1,22 @@ +#!/bin/bash -e +# +# Build the miscellaneous components +# +# Copyright (c) 2019 Linaro Ltd. +# +# Authors: +# Alex Bennée <[email protected]> +# +# This work is licensed under the terms of the GNU GPL, version 2 or later. +# See the COPYING file in the top-level directory. +#
tests/docker/test-misc line 22
Quoted 10 lines
tests/docker/test-misc new file +10
-0+# SPDX-License-Identifier: GPL-2.0-or-later + +. common.rc + +cd "$BUILD_DIR" + +# build everything else but QEMU +configure_qemu --disable-user --disable-system --enable-docs --enable-tools +build_qemu +install_qemu
I got:
$ make docker-test-misc@debian-win32-cross BUILD debian9 GEN /home/phil/source/qemu/docker-src.2019-07-13-17.03.48.3829/qemu.tar BUILD debian9-mxe usage: git archive [<options>] <tree-ish> [<path>...] or: git archive --list or: git archive --remote <repo> [--exec <cmd>] [<options>] <tree-ish> [<path>...] or: git archive --remote <repo> [--exec <cmd>] --list
--format <fmt> archive format
--prefix <prefix> prepend prefix to each pathname in the archive
-o, --output <file> write the archive to this file --worktree-attributes
read .gitattributes in working directory
-v, --verbose report archived files on stderr
-0 store only
-1 compress faster
-9 compress better
-l, --list list supported archive formats
--remote <repo> retrieve the archive from remote repository <repo>
--exec <command> path to the remote git-upload-archive command
failed to archive qemu
make[1]: *** [tests/docker/Makefile.include:31:
qemu/docker-src.2019-07-13-17.03.48.3829] Error 1
And remembered some script/archive patch on the list:
https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg02073.html
With it amended this works correctly, so:
Re: [PATCH v1 1/7] tests/docker: add test-misc for building tools & docs
Quoted 66 lines · Philippe Mathieu-Daudé
Quoted 1 line · Alex Bennée
Add yet another test type so we cna quickly exercise the miscellaneous
"cna" -> "can"
Quoted 27 lines
build products of the build system under various docer configurations.
Signed-off-by Alex Bennée <[email protected]>--- tests/docker/test-misc | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tests/docker/test-misctests/docker/test-misc new file +12
-0@@ -0,0 +1,22 @@ +#!/bin/bash -e +# +# Build the miscellaneous components +# +# Copyright (c) 2019 Linaro Ltd. +# +# Authors: +# Alex Bennée <[email protected]> +# +# This work is licensed under the terms of the GNU GPL, version 2 or later. +# See the COPYING file in the top-level directory. +#tests/docker/test-misc line 22
Quoted 10 lines
tests/docker/test-misc new file +10
-0+# SPDX-License-Identifier: GPL-2.0-or-later + +. common.rc + +cd "$BUILD_DIR" + +# build everything else but QEMU +configure_qemu --disable-user --disable-system --enable-docs --enable-tools +build_qemu +install_qemuI got:
$ make docker-test-misc@debian-win32-cross BUILD debian9 GEN /home/phil/source/qemu/docker-src.2019-07-13-17.03.48.3829/qemu.tar BUILD debian9-mxe usage: git archive [<options>] <tree-ish> [<path>...] or: git archive --list or: git archive --remote <repo> [--exec <cmd>] [<options>] <tree-ish> [<path>...] or: git archive --remote <repo> [--exec <cmd>] --list--format <fmt> archive format --prefix <prefix> prepend prefix to each pathname in the archive -o, --output <file> write the archive to this file--worktree-attributes
read .gitattributes in working directory
-v, --verbose report archived files on stderr
-0 store only
-1 compress faster
-9 compress better
Quoted 8 lines
-l, --list list supported archive formats
--remote <repo> retrieve the archive from remote repository <repo>
--exec <command> path to the remote git-upload-archive commandfailed to archive qemu
make[1]: *** [tests/docker/Makefile.include:31:
qemu/docker-src.2019-07-13-17.03.48.3829] Error 1
Hmm I haven't been able to get this... does it depend on having uncommited changes in a subproject?
Quoted 3 lines
And remembered some script/archive patch on the list:
https://lists.gnu.org/archive/html/qemu-devel/2019-07/msg02073.html
I'll look at snarfing that.
Quoted 4 lines
With it amended this works correctly, so:
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
--
Alex Bennée
PATCH 2/7 tests/docker: Install Sphinx in the Ubuntu images
In reply to Alex BennéeFrom: Philippe Mathieu-Daudé <[email protected]>
Since commit 5f71eac06e the Sphinx tool is required to build the rST documentation.
This fixes:
$ ./configure --enable-docs
ERROR: User requested feature docs
configure was not able to find it.
Install texinfo, Perl/perl-podlators and python-sphinx
Message-Id: <[email protected]>
--- tests/docker/dockerfiles/ubuntu.docker | 1 + tests/docker/dockerfiles/ubuntu1804.docker | 1 + 2 files changed, 2 insertions(+)
tests/docker/dockerfiles/ubuntu.docker +1 -0
@@ -61,6 +61,7 @@ ENV PACKAGES flex bison \ libxen-dev \ make \ python-yaml \ + python3-sphinx \ sparse \ texinfo \ xfslibs-dev
tests/docker/dockerfiles/ubuntu1804.docker +1 -0
@@ -48,6 +48,7 @@ ENV PACKAGES flex bison \ libxen-dev \ make \ python-yaml \ + python3-sphinx \ sparse \ texinfo \ xfslibs-dev
Signature · 1 line
2.20.1
PATCH 3/7 tests/docker: Install Sphinx in the Fedora image
In reply to Alex BennéeFrom: Philippe Mathieu-Daudé <[email protected]>
Since commit 5f71eac06e the Sphinx tool is required to build the rST documentation.
This fixes:
$ ./configure --enable-docs
ERROR: User requested feature docs
configure was not able to find it.
Install texinfo, Perl/perl-podlators and python-sphinx
Message-Id: <[email protected]>
--- tests/docker/dockerfiles/fedora.docker | 1 + 1 file changed, 1 insertion(+)
tests/docker/dockerfiles/fedora.docker +1 -0
@@ -76,6 +76,7 @@ ENV PACKAGES \ perl-Test-Harness \ pixman-devel \ python3 \ + python3-sphinx \ PyYAML \ rdma-core-devel \ SDL2-devel \
Signature · 1 line
2.20.1
PATCH 4/7 tests/docker: Install Ubuntu images noninteractively
In reply to Alex BennéeFrom: Philippe Mathieu-Daudé <[email protected]>
We correctly use the DEBIAN_FRONTEND environment variable on the Debian images, but forgot the Ubuntu ones are based on it.
Since building docker images is not interactive, we need to inform the APT tools about it using the DEBIAN_FRONTEND environment variable (we already use it on our Debian images).
This fixes:
$ make docker-image-ubuntu V=1 [...] Setting up tzdata (2019b-0ubuntu0.19.04) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Configuring tzdata ------------------
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time zones in which they are located.
1. Africa 4. Australia 7. Atlantic 10. Pacific 13. Etc
2. America 5. Arctic 8. Europe 11. SystemV
3. Antarctica 6. Asia 9. Indian 12. US Geographic area: 12
[HANG]
Message-Id: <[email protected]>
--- tests/docker/dockerfiles/ubuntu.docker | 2 +- tests/docker/dockerfiles/ubuntu1804.docker | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/ubuntu.docker +1 -1
@@ -66,6 +66,6 @@ ENV PACKAGES flex bison \ texinfo \ xfslibs-dev RUN apt-get update && \ - apt-get -y install $PACKAGES + DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES RUN dpkg -l $PACKAGES | sort > /packages.txt ENV FEATURES clang pyyaml sdl2
tests/docker/dockerfiles/ubuntu1804.docker +1 -1
@@ -53,6 +53,6 @@ ENV PACKAGES flex bison \ texinfo \ xfslibs-dev RUN apt-get update && \ - apt-get -y install $PACKAGES + DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES RUN dpkg -l $PACKAGES | sort > /packages.txt ENV FEATURES clang pyyaml sdl2
Signature · 1 line
2.20.1
PATCH 5/7 tests/migration-test: don't spam the logs when we fail
In reply to Alex BennéeQuite often the information about which test failed is hidden by the wall of repeated failures for each page. Stop outputting the error after 10 bad pages and just summarise the total damage at the end.
--- tests/migration-test.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)
tests/migration-test.c +12 -7
@@ -308,7 +308,7 @@ static void check_guests_ram(QTestState *who)uint8_t first_byte;uint8_t last_byte;bool hit_edge = false; -bool bad = false; +int bad =0 ;qtest_memread (who, start_address, &first_byte,1 ); last_byte = first_byte;
@@ -327,15 +327,20 @@ static void check_guests_ram(QTestState *who) hit_edge = true; last_byte = b; }else { -fprintf (stderr,"Memory content inconsistency at %x" -" first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , - address, first_byte, last_byte, b, hit_edge); - bad = true; + bad++; +if (bad <=10 ) { +fprintf (stderr,"Memory content inconsistency at %x" +" first_byte = %x last_byte = %x current = %x" +" hit_edge = %x\n" , + address, first_byte, last_byte, b, hit_edge); + } } } } -g_assert_false (bad); +if (bad >=10 ) { +fprintf (stderr,"and in another %d pages" , bad); + } +g_assert (bad ==0 ); }static void cleanup (const char *filename)
Signature · 1 line
2.20.1
Re: [PATCH v1 5/7] tests/migration-test: don't spam the logs when we fail
Quoted 34 lines · Alex Bennée
Quite often the information about which test failed is hidden by the wall of repeated failures for each page. Stop outputting the error after 10 bad pages and just summarise the total damage at the end.
Signed-off-by Alex Bennée <[email protected]>--- tests/migration-test.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)tests/migration-test.c +4
-6@@ -308,7 +308,7 @@ static void check_guests_ram(QTestState *who)uint8_t first_byte;uint8_t last_byte;bool hit_edge = false; -bool bad = false; +int bad =0 ;qtest_memread (who, start_address, &first_byte,1 ); last_byte = first_byte;@@ -327,15 +327,20 @@ static void check_guests_ram(QTestState *who) hit_edge = true; last_byte = b; }else { -fprintf (stderr,"Memory content inconsistency at %x" -" first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , - address, first_byte, last_byte, b, hit_edge); - bad = true; + bad++; +if (bad <=10 ) { + fprintf(stderr, "Memory content inconsistency at %x"
tests/migration-test.c static void check_guests_ram(QTestState *who) · line 341
Quoted 10 lines
tests/migration-test.c +6
-1+" first_byte = %x last_byte = %x current = %x" +" hit_edge = %x\n" , + address, first_byte, last_byte, b, hit_edge); + } } } } -g_assert_false (bad); +if (bad >=10 ) { +fprintf (stderr,"and in another %d pages" , bad);
"bad - 10" as you have already displayed 10 errors.
Thanks,
Laurent
Re: [PATCH v1 5/7] tests/migration-test: don't spam the logs when we fail
Quoted 39 lines · Laurent Vivier
Quoted 38 lines · Alex Bennée
Quite often the information about which test failed is hidden by the wall of repeated failures for each page. Stop outputting the error after 10 bad pages and just summarise the total damage at the end.
Signed-off-by Alex Bennée <[email protected]>--- tests/migration-test.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)tests/migration-test.c +8
-6@@ -308,7 +308,7 @@ static void check_guests_ram(QTestState *who)uint8_t first_byte;uint8_t last_byte;bool hit_edge = false; -bool bad = false; +int bad =0 ;qtest_memread (who, start_address, &first_byte,1 ); last_byte = first_byte;@@ -327,15 +327,20 @@ static void check_guests_ram(QTestState *who) hit_edge = true; last_byte = b; }else { -fprintf (stderr,"Memory content inconsistency at %x" -" first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , - address, first_byte, last_byte, b, hit_edge); - bad = true; + bad++; +if (bad <=10 ) { +fprintf (stderr,"Memory content inconsistency at %x" +" first_byte = %x last_byte = %x current = %x" +" hit_edge = %x\n" , + address, first_byte, last_byte, b, hit_edge); + }
Quoted 8 lines
tests/migration-test.c static void check_guests_ram(QTestState *who) · line 341
Quoted 6 lines
tests/migration-test.c +2
-1} } } -g_assert_false (bad); +if (bad >=10 ) { +fprintf (stderr,"and in another %d pages" , bad);"bad - 10" as you have already displayed 10 errors.
Will do.
Quoted 3 lines
Thanks,
Laurent
--
Alex Bennée
Laurent Vivier
Reviewed-byRe: [PATCH v1 5/7] tests/migration-test: don't spam the logs when we fail
Quoted 51 lines · Alex Bennée
Quoted 39 lines · Laurent Vivier
Quoted 38 lines · Alex Bennée
Quite often the information about which test failed is hidden by the wall of repeated failures for each page. Stop outputting the error after 10 bad pages and just summarise the total damage at the end.
Signed-off-by Alex Bennée <[email protected]>--- tests/migration-test.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)tests/migration-test.c +8
-6@@ -308,7 +308,7 @@ static void check_guests_ram(QTestState *who)uint8_t first_byte;uint8_t last_byte;bool hit_edge = false; -bool bad = false; +int bad =0 ;qtest_memread (who, start_address, &first_byte,1 ); last_byte = first_byte;@@ -327,15 +327,20 @@ static void check_guests_ram(QTestState *who) hit_edge = true; last_byte = b; }else { -fprintf (stderr,"Memory content inconsistency at %x" -" first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , - address, first_byte, last_byte, b, hit_edge); - bad = true; + bad++; +if (bad <=10 ) { +fprintf (stderr,"Memory content inconsistency at %x" +" first_byte = %x last_byte = %x current = %x" +" hit_edge = %x\n" , + address, first_byte, last_byte, b, hit_edge); + }Quoted 8 lines
tests/migration-test.c static void check_guests_ram(QTestState *who) · line 341
Quoted 6 lines
tests/migration-test.c +2
-1} } } -g_assert_false (bad); +if (bad >=10 ) { +fprintf (stderr,"and in another %d pages" , bad);"bad - 10" as you have already displayed 10 errors.
Quoted 1 line
Will do.
You can add my:
Thanks,
Laurent
Re: [PATCH v1 5/7] tests/migration-test: don't spam the logs when we fail
In reply to Alex BennéeQuoted 39 lines · Alex Bennée
Quite often the information about which test failed is hidden by the wall of repeated failures for each page. Stop outputting the error after 10 bad pages and just summarise the total damage at the end.
Signed-off-by Alex Bennée <[email protected]>--- tests/migration-test.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)tests/migration-test.c +8
-6@@ -308,7 +308,7 @@ static void check_guests_ram(QTestState *who)uint8_t first_byte;uint8_t last_byte;bool hit_edge = false; -bool bad = false; +int bad =0 ;qtest_memread (who, start_address, &first_byte,1 ); last_byte = first_byte;@@ -327,15 +327,20 @@ static void check_guests_ram(QTestState *who) hit_edge = true; last_byte = b; }else { -fprintf (stderr,"Memory content inconsistency at %x" -" first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , - address, first_byte, last_byte, b, hit_edge); - bad = true; + bad++; +if (bad <=10 ) { +fprintf (stderr,"Memory content inconsistency at %x" +" first_byte = %x last_byte = %x current = %x" +" hit_edge = %x\n" , + address, first_byte, last_byte, b, hit_edge); + } }
tests/migration-test.c static void check_guests_ram(QTestState *who) · line 346
Quoted 10 lines
tests/migration-test.c +4
-1} } -g_assert_false (bad); +if (bad >=10 ) { +fprintf (stderr,"and in another %d pages" , bad); + } +g_assert (bad ==0 ); }static void cleanup (const char *filename)
Good idea.
Re: [PATCH v1 5/7] tests/migration-test: don't spam the logs when we fail
In reply to Alex BennéeQuoted 5 lines · * Alex Bennée ([email protected]) wrote:
Quite often the information about which test failed is hidden by the wall of repeated failures for each page. Stop outputting the error after 10 bad pages and just summarise the total damage at the end.
Signed-off-by Alex Bennée <[email protected]>
Yep, occasionally you do find you do want the full set to see what's going on, but this is true most of the time.
With 10 you should be able to see if it's a single page that's wrong or the flip gone wrong.
Quoted 30 lines
--- tests/migration-test.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)tests/migration-test.c +5
-6@@ -308,7 +308,7 @@ static void check_guests_ram(QTestState *who)uint8_t first_byte;uint8_t last_byte;bool hit_edge = false; -bool bad = false; +int bad =0 ;qtest_memread (who, start_address, &first_byte,1 ); last_byte = first_byte;@@ -327,15 +327,20 @@ static void check_guests_ram(QTestState *who) hit_edge = true; last_byte = b; }else { -fprintf (stderr,"Memory content inconsistency at %x" -" first_byte = %x last_byte = %x current = %x" -" hit_edge = %x\n" , - address, first_byte, last_byte, b, hit_edge); - bad = true; + bad++; +if (bad <=10 ) { +fprintf (stderr,"Memory content inconsistency at %x" + " first_byte = %x last_byte = %x current = %x"
tests/migration-test.c static void check_guests_ram(QTestState *who) · line 342
Quoted 10 lines
tests/migration-test.c +6
-1+" hit_edge = %x\n" , + address, first_byte, last_byte, b, hit_edge); + } } } } -g_assert_false (bad); +if (bad >=10 ) { +fprintf (stderr,"and in another %d pages" , bad); + }
as Laurent says, the 'another' would need -10 but other than that:
Quoted 7 lines
tests/migration-test.c +1
-0+g_assert (bad ==0 ); }static void cleanup (const char *filename)Signature · 1 line
2.20.1
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
PATCH 6/7 tests/dockerfiles: update the win cross builds to stretch
In reply to Alex BennéeWhile fixing up pkg.mxe.cc they move the URLs around a bit and dropped Jessie support in favour of Stretch. We also need to update the keys used to verify the packages.
---
tests/docker/Makefile.include | 6 +++---
tests/docker/dockerfiles/debian-win32-cross.docker | 4 ++--
tests/docker/dockerfiles/debian-win64-cross.docker | 4 ++--
.../{debian8-mxe.docker => debian9-mxe.docker} | 11 +++++++----
4 files changed, 14 insertions(+), 11 deletions(-)
rename tests/docker/dockerfiles/{debian8-mxe.docker => debian9-mxe.docker} (56%)tests/docker/Makefile.include +3 -3
@@ -85,7 +85,7 @@ endif # Enforce dependencies for composite images docker-image-debian: docker-image-debian9 -docker-image-debian8-mxe: docker-image-debian8 +docker-image-debian9-mxe: docker-image-debian9 docker-image-debian-amd64: docker-image-debian9 docker-image-debian-armel-cross: docker-image-debian9 docker-image-debian-armhf-cross: docker-image-debian9
@@ -96,8 +96,8 @@ docker-image-debian-mipsel-cross: docker-image-debian9 docker-image-debian-mips64el-cross: docker-image-debian9 docker-image-debian-ppc64el-cross: docker-image-debian9 docker-image-debian-s390x-cross: docker-image-debian9 -docker-image-debian-win32-cross: docker-image-debian8-mxe -docker-image-debian-win64-cross: docker-image-debian8-mxe +docker-image-debian-win32-cross: docker-image-debian9-mxe +docker-image-debian-win64-cross: docker-image-debian9-mxe docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid
tests/docker/dockerfiles/debian-win32-cross.docker +2 -2
@@ -1,9 +1,9 @@ # # Docker mingw32 cross-compiler target # -# This docker target builds on the debian Jessie MXE base image. +# This docker target builds on the debian Stretch MXE base image. # -FROM qemu:debian8-mxe +FROM qemu:debian9-mxe MAINTAINER Philippe Mathieu-Daudé <[email protected]>
tests/docker/dockerfiles/debian-win64-cross.docker +2 -2
@@ -1,9 +1,9 @@ # # Docker mingw64 cross-compiler target # -# This docker target builds on the debian Jessie MXE base image. +# This docker target builds on the debian Stretch MXE base image. # -FROM qemu:debian8-mxe +FROM qemu:debian9-mxe MAINTAINER Philippe Mathieu-Daudé <[email protected]>
tests/docker/dockerfiles/debian9-mxe.docker renamed from tests/docker/dockerfiles/debian8-mxe.docker +7 -4
@@ -1,15 +1,18 @@ # # Docker mingw cross-compiler target # -# This docker target builds on the debian Jessie base image. +# This docker target builds on the debian Stretch base image. # -FROM qemu:debian8 +FROM qemu:debian9 MAINTAINER Philippe Mathieu-Daudé <[email protected]> +RUN DEBIAN_FRONTEND=noninteractive eatmydata \ + apt install -y --no-install-recommends gnupg dirmngr + # Add the foreign architecture we want and install dependencies -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB && \ - echo "deb http://pkg.mxe.cc/repos/apt/debian jessie main" > /etc/apt/sources.list.d/mxeapt.list +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276 && \ + echo "deb http://pkg.mxe.cc/repos/apt stretch main" > /etc/apt/sources.list.d/mxeapt.list RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive eatmydata \ apt-get install -y --no-install-recommends \
Signature · 1 line
2.20.1
Re: [PATCH v1 6/7] tests/dockerfiles: update the win cross builds to stretch
Quoted 90 lines · Alex Bennée
While fixing up pkg.mxe.cc they move the URLs around a bit and dropped Jessie support in favour of Stretch. We also need to update the keys used to verify the packages.
Signed-off-by Alex Bennée <[email protected]>--- tests/docker/Makefile.include | 6 +++--- tests/docker/dockerfiles/debian-win32-cross.docker | 4 ++-- tests/docker/dockerfiles/debian-win64-cross.docker | 4 ++-- .../{debian8-mxe.docker => debian9-mxe.docker} | 11 +++++++---- 4 files changed, 14 insertions(+), 11 deletions(-) rename tests/docker/dockerfiles/{debian8-mxe.docker => debian9-mxe.docker} (56%)tests/docker/Makefile.include +3
-3@@ -85,7 +85,7 @@ endif # Enforce dependencies for composite images docker-image-debian: docker-image-debian9 -docker-image-debian8-mxe: docker-image-debian8 +docker-image-debian9-mxe: docker-image-debian9 docker-image-debian-amd64: docker-image-debian9 docker-image-debian-armel-cross: docker-image-debian9 docker-image-debian-armhf-cross: docker-image-debian9@@ -96,8 +96,8 @@ docker-image-debian-mipsel-cross: docker-image-debian9 docker-image-debian-mips64el-cross: docker-image-debian9 docker-image-debian-ppc64el-cross: docker-image-debian9 docker-image-debian-s390x-cross: docker-image-debian9 -docker-image-debian-win32-cross: docker-image-debian8-mxe -docker-image-debian-win64-cross: docker-image-debian8-mxe +docker-image-debian-win32-cross: docker-image-debian9-mxe +docker-image-debian-win64-cross: docker-image-debian9-mxe docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sidtests/docker/dockerfiles/debian-win32-cross.docker +2
-2@@ -1,9 +1,9 @@ # # Docker mingw32 cross-compiler target # -# This docker target builds on the debian Jessie MXE base image. +# This docker target builds on the debian Stretch MXE base image. # -FROM qemu:debian8-mxe +FROM qemu:debian9-mxe MAINTAINER Philippe Mathieu-Daudé <[email protected]>tests/docker/dockerfiles/debian-win64-cross.docker +2
-2@@ -1,9 +1,9 @@ # # Docker mingw64 cross-compiler target # -# This docker target builds on the debian Jessie MXE base image. +# This docker target builds on the debian Stretch MXE base image. # -FROM qemu:debian8-mxe +FROM qemu:debian9-mxe MAINTAINER Philippe Mathieu-Daudé <[email protected]>tests/docker/dockerfiles/debian9-mxe.docker renamed from tests/docker/dockerfiles/debian8-mxe.docker +3
-2@@ -1,15 +1,18 @@ # # Docker mingw cross-compiler target # -# This docker target builds on the debian Jessie base image. +# This docker target builds on the debian Stretch base image. # -FROM qemu:debian8 +FROM qemu:debian9 MAINTAINER Philippe Mathieu-Daudé <[email protected]> +RUN DEBIAN_FRONTEND=noninteractive eatmydata \
tests/docker/dockerfiles/debian9-mxe.docker line 18
Quoted 10 lines
tests/docker/dockerfiles/debian9-mxe.docker renamed from tests/docker/dockerfiles/debian8-mxe.docker +4
-2+ apt install -y --no-install-recommends gnupg dirmngr + # Add the foreign architecture we want and install dependencies -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB && \ - echo "deb http://pkg.mxe.cc/repos/apt/debian jessie main" > /etc/apt/sources.list.d/mxeapt.list +RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C6BF758A33A3A276 && \ + echo "deb http://pkg.mxe.cc/repos/apt stretch main" > /etc/apt/sources.list.d/mxeapt.list RUN apt-get update RUN DEBIAN_FRONTEND=noninteractive eatmydata \ apt-get install -y --no-install-recommends \
Thank you Alex!
PATCH 7/7 shippable: re-enable the windows cross builds
In reply to Alex BennéeThe pkg.mxe.cc repo has been restored.
--- .shippable.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
.shippable.yml +4 -5
@@ -7,11 +7,10 @@ env: matrix: - IMAGE=debian-amd64 TARGET_LIST=x86_64-softmmu,x86_64-linux-user - # currently disabled as the mxe.cc repos are down - # - IMAGE=debian-win32-cross - # TARGET_LIST=arm-softmmu,i386-softmmu,lm32-softmmu - # - IMAGE=debian-win64-cross - # TARGET_LIST=aarch64-softmmu,sparc64-softmmu,x86_64-softmmu + - IMAGE=debian-win32-cross + TARGET_LIST=arm-softmmu,i386-softmmu,lm32-softmmu + - IMAGE=debian-win64-cross + TARGET_LIST=aarch64-softmmu,sparc64-softmmu,x86_64-softmmu - IMAGE=debian-armel-cross TARGET_LIST=arm-softmmu,arm-linux-user,armeb-linux-user - IMAGE=debian-armhf-cross
Signature · 1 line
2.20.1
Re: [PATCH v1 7/7] shippable: re-enable the windows cross builds
Quoted 18 lines · Alex Bennée
The pkg.mxe.cc repo has been restored.
Signed-off-by Alex Bennée <[email protected]>--- .shippable.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-).shippable.yml +0
-2@@ -7,11 +7,10 @@ env: matrix: - IMAGE=debian-amd64 TARGET_LIST=x86_64-softmmu,x86_64-linux-user - # currently disabled as the mxe.cc repos are down - # - IMAGE=debian-win32-cross
.shippable.yml env: · line 16
Quoted 10 lines
.shippable.yml +4
-3- # TARGET_LIST=arm-softmmu,i386-softmmu,lm32-softmmu - # - IMAGE=debian-win64-cross - # TARGET_LIST=aarch64-softmmu,sparc64-softmmu,x86_64-softmmu + - IMAGE=debian-win32-cross + TARGET_LIST=arm-softmmu,i386-softmmu,lm32-softmmu + - IMAGE=debian-win64-cross + TARGET_LIST=aarch64-softmmu,sparc64-softmmu,x86_64-softmmu - IMAGE=debian-armel-cross TARGET_LIST=arm-softmmu,arm-linux-user,armeb-linux-user - IMAGE=debian-armhf-cross
Builds now take ~25min longer. The win32 build is definitively helpful and should catch most of the errors the win64 could find. I suggest we build the docker image but not cross-compile on win64. Anyway this can be improved later.