CI adjustments
cover CI adjustments
Adjustements to CI infrastructure for changes in build dependencies.
Andrew Cooper (2):
tools: Drop gettext as a build dependency
CI: Add zstd/etc libraries to build environments
.cirrus.yml | 2 +- .travis.yml | 1 - README | 1 - automation/build/alpine/3.12-arm64v8.dockerfile | 1 - automation/build/alpine/3.12.dockerfile | 3 +- automation/build/centos/7.2.dockerfile | 1 + automation/build/centos/7.dockerfile | 1 + automation/build/debian/jessie-i386.dockerfile | 1 + automation/build/debian/jessie.dockerfile | 1 + automation/build/debian/stretch-i386.dockerfile | 1 + automation/build/debian/stretch.dockerfile | 1 + .../build/debian/unstable-arm64v8.dockerfile | 1 + automation/build/debian/unstable-i386.dockerfile | 1 + automation/build/debian/unstable.dockerfile | 1 + automation/build/fedora/29.dockerfile | 1 + automation/build/suse/opensuse-leap.dockerfile | 1 + .../build/suse/opensuse-tumbleweed.dockerfile | 1 + automation/build/ubuntu/bionic.dockerfile | 1 + automation/build/ubuntu/focal.dockerfile | 3 +- automation/build/ubuntu/trusty.dockerfile | 1 + automation/build/ubuntu/xenial.dockerfile | 1 + .../tests-artifacts/alpine/3.12-arm64v8.dockerfile | 1 + tools/configure | 49 ---------------------- tools/configure.ac | 2 - 24 files changed, 21 insertions(+), 57 deletions(-)
Signature · 1 line
2.11.0
PATCH 1/2 tools: Drop gettext as a build dependency
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles which are used for 4.14 or older. Drop the dependency from Alpine and Ubuntu Focal which are new containers in 4.15, as well as dropping from CirrusCI and TravisCI.
---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Doug Goldstein <[email protected]>
CI Proofs of correctness.
https://cirrus-ci.com/build/5554642114314240
https://www.travis-ci.org/github/andyhhp/xen/builds/764514317 (x86 builds only. ARM are permenantly broken now.)
https://gitlab.com/xen-project/people/andyhhp/xen/-/pipelines/277055305 (using test Alpine and Focal containers rebuild without gettext).
For 4.15. This is long overdue, and simplifies everyones life building 4.15. If this doesn't go into 4.15, then we can't shrink the alpine/focal containers.
--- .cirrus.yml | 2 +- .travis.yml | 1 - README | 1 - automation/build/alpine/3.12-arm64v8.dockerfile | 1 - automation/build/alpine/3.12.dockerfile | 1 - automation/build/centos/7.2.dockerfile | 1 + automation/build/centos/7.dockerfile | 1 + automation/build/debian/jessie-i386.dockerfile | 1 + automation/build/debian/jessie.dockerfile | 1 + automation/build/debian/stretch-i386.dockerfile | 1 + automation/build/debian/stretch.dockerfile | 1 + .../build/debian/unstable-arm64v8.dockerfile | 1 + automation/build/debian/unstable-i386.dockerfile | 1 + automation/build/debian/unstable.dockerfile | 1 + automation/build/fedora/29.dockerfile | 1 + automation/build/suse/opensuse-leap.dockerfile | 1 + .../build/suse/opensuse-tumbleweed.dockerfile | 1 + automation/build/ubuntu/bionic.dockerfile | 1 + automation/build/ubuntu/focal.dockerfile | 1 - automation/build/ubuntu/trusty.dockerfile | 1 + automation/build/ubuntu/xenial.dockerfile | 1 + .../tests-artifacts/alpine/3.12-arm64v8.dockerfile | 1 + tools/configure | 49 ---------------------- tools/configure.ac | 2 - 24 files changed, 17 insertions(+), 57 deletions(-)
.cirrus.yml +1 -1
@@ -4,7 +4,7 @@ freebsd_template: &FREEBSD_TEMPLATE APPEND_LIB: /usr/local/lib APPEND_INCLUDES: /usr/local/include - install_script: pkg install -y seabios gettext-tools gmake + install_script: pkg install -y seabios gmake pkgconf python libiconv bison perl5 yajl lzo2 pixman argp-standalone libxml2 glib git
.travis.yml +0 -1
@@ -54,7 +54,6 @@ addons: - pkg-config - flex - bison - - gettext - acpica-tools - bin86 - bcc
README +0 -1
@@ -63,7 +63,6 @@ provided by your OS distributor: * bridge-utils package (/sbin/brctl) * iproute package (/sbin/ip) * GNU bison and GNU flex - * GNU gettext * ACPI ASL compiler (iasl) In addition to the above there are a number of optional build
automation/build/alpine/3.12-arm64v8.dockerfile +0 -1
@@ -22,7 +22,6 @@ RUN \ apk add dev86 && \ apk add dtc-dev && \ apk add gcc && \ - apk add gettext && \ apk add git && \ apk add iasl && \ apk add libaio-dev && \
automation/build/alpine/3.12.dockerfile +0 -1
@@ -23,7 +23,6 @@ RUN \ apk add gcc && \ apk add g++ && \ apk add clang && \ - apk add gettext && \ apk add git && \ apk add iasl && \ apk add libaio-dev && \
automation/build/centos/7.2.dockerfile +1 -0
@@ -26,6 +26,7 @@ RUN rpm --rebuilddb && \ python-devel \ libuuid-devel \ pkgconfig \ + # gettext for Xen < 4.13 gettext \ flex \ bison \
automation/build/centos/7.dockerfile +1 -0
@@ -24,6 +24,7 @@ RUN yum -y install \ python-devel \ libuuid-devel \ pkgconfig \ + # gettext for Xen < 4.13 gettext \ flex \ bison \
automation/build/debian/jessie-i386.dockerfile +1 -0
@@ -28,6 +28,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/jessie.dockerfile +1 -0
@@ -26,6 +26,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/stretch-i386.dockerfile +1 -0
@@ -29,6 +29,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/stretch.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/unstable-arm64v8.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ libfdt-dev \
automation/build/debian/unstable-i386.dockerfile +1 -0
@@ -29,6 +29,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/debian/unstable.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/fedora/29.dockerfile +1 -0
@@ -17,6 +17,7 @@ RUN dnf -y install \ python3-devel \ libuuid-devel \ pkgconfig \ + # gettext for Xen < 4.13 gettext \ flex \ bison \
automation/build/suse/opensuse-leap.dockerfile +1 -0
@@ -22,6 +22,7 @@ RUN zypper install -y --no-recommends \ flex \ gcc \ gcc-c++ \ + # gettext-tools for Xen < 4.13 gettext-tools \ git \ glib2-devel \
automation/build/suse/opensuse-tumbleweed.dockerfile +1 -0
@@ -22,6 +22,7 @@ RUN zypper install -y --no-recommends \ flex \ gcc \ gcc-c++ \ + # gettext-tools for Xen < 4.13 gettext-tools \ git \ glib2-devel \
automation/build/ubuntu/bionic.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/ubuntu/focal.dockerfile +0 -1
@@ -26,7 +26,6 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ - gettext \ acpica-tools \ bin86 \ bcc \
automation/build/ubuntu/trusty.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/build/ubuntu/xenial.dockerfile +1 -0
@@ -27,6 +27,7 @@ RUN apt-get update && \ pkg-config \ flex \ bison \ + # gettext for Xen < 4.13 gettext \ acpica-tools \ bin86 \
automation/tests-artifacts/alpine/3.12-arm64v8.dockerfile +1 -0
@@ -19,6 +19,7 @@ RUN \ apk add dbus && \ apk add bash && \ apk add python2 && \ + # gettext for Xen < 4.13 apk add gettext && \ apk add zlib && \ apk add ncurses && \
tools/configure +0 -49
79 lines not on this page · raw message
tools/configure.ac +0 -2
@@ -298,7 +298,6 @@ AC_ARG_VAR([PYTHON], [Path to the Python parser]) AC_ARG_VAR([PERL], [Path to Perl parser]) AC_ARG_VAR([BISON], [Path to Bison parser generator]) AC_ARG_VAR([FLEX], [Path to Flex lexical analyser generator]) -AC_ARG_VAR([XGETTEXT], [Path to xgetttext tool]) AC_ARG_VAR([AS86], [Path to as86 tool]) AC_ARG_VAR([LD86], [Path to ld86 tool]) AC_ARG_VAR([BCC], [Path to bcc tool])
@@ -381,7 +380,6 @@ AS_IF([test "$cross_compiling" != yes], [ if ! $rump; then -AX_PATH_PROG_OR_FAIL([XGETTEXT], [xgettext]) dnl as86, ld86, bcc and iasl are only required when the host system is x86*. dnl "host" here means the platform on which the hypervisor and tools is dnl going to run, not the platform on which we are building (known as
Signature · 1 line
2.11.0
Re: [PATCH 1/2] tools: Drop gettext as a build dependency
Andrew Cooper writes ("[PATCH 1/2] tools: Drop gettext as a build dependency"):
Quoted 6 lines
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles which are used for 4.14 or older. Drop the dependency from Alpine and Ubuntu Focal which are new containers in 4.15, as well as dropping from CirrusCI and TravisCI.
Thank you but I'm afraid I think that this is not an important bugfix for 4.15. So I am withholding my release ack for this patch.
Feel free to explain to me why this is the wrong decision.
Thanks,
Ian.
Re: [PATCH 1/2] tools: Drop gettext as a build dependency
Quoted 11 lines · Ian Jackson
Andrew Cooper writes ("[PATCH 1/2] tools: Drop gettext as a build dependency"):
Quoted 6 lines
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles which are used for 4.14 or older. Drop the dependency from Alpine and Ubuntu Focal which are new containers in 4.15, as well as dropping from CirrusCI and TravisCI.
Thank you but I'm afraid I think that this is not an important bugfix for 4.15. So I am withholding my release ack for this patch.
Feel free to explain to me why this is the wrong decision.
The bug is configure rejecting a correct build environment.
The reason why this is important for 4.15 was discussed. Shrinking the Alpine and Focal containers (several MB in both cases) makes a material impact on Gitlab CI efficiency, and therefore the turnaround time for answers, but cannot be done if 4.15 gets out of the door with the erroneous check still in place.
~Andrew
Re: [PATCH 1/2] tools: Drop gettext as a build dependency
In reply to Andrew CooperQuoted 8 lines · Andrew Cooper
It has not been a dependency since at least 4.13. Remove its mandatory check from ./configure.
Annotate the dependency in the CI dockerfiles which are used for 4.14 or older. Drop the dependency from Alpine and Ubuntu Focal which are new containers in 4.15, as well as dropping from CirrusCI and TravisCI.
Signed-off-by Andrew Cooper <[email protected]>
I think it's worth mentioning in the commit message the component that required xgettext in the past.
Thanks, Roger.
PATCH 2/2 CI: Add zstd/etc libraries to build environments
In reply to Andrew Cooperzstd compression support is new in 4.15, but isn't currently tested anywhere in CI.
bzip2/zlib was missing in some cases, so add those as well.
---
CC: Ian Jackson <[email protected]>
CC: Wei Liu <[email protected]>
CC: Doug Goldstein <[email protected]>
For 4.15. Add build time testing for a currently untested feature. This should have been part of the series which included 8169f82049efb but I don't think it really qualifies for a Fixes: tag.
RFC for two reasons. First, this needs extending to other containers when I've finished chasing package names, and the CI runs haven't completed yet.
--- .cirrus.yml | 2 +- automation/build/alpine/3.12.dockerfile | 2 ++ automation/build/ubuntu/focal.dockerfile | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-)
.cirrus.yml +1 -1
@@ -4,7 +4,7 @@ freebsd_template: &FREEBSD_TEMPLATE APPEND_LIB: /usr/local/lib APPEND_INCLUDES: /usr/local/include - install_script: pkg install -y seabios gmake + install_script: pkg install -y seabios gmake zlib bzip2 zstd pkgconf python libiconv bison perl5 yajl lzo2 pixman argp-standalone libxml2 glib git
automation/build/alpine/3.12.dockerfile +2 -0
@@ -38,6 +38,8 @@ RUN \ apk add xz-dev && \ apk add yajl-dev && \ apk add zlib-dev && \ + apk add bzip2-dev && \ + apk add zstd-dev && \ \ # qemu build deps apk add bison && \
automation/build/ubuntu/focal.dockerfile +2 -0
@@ -30,6 +30,8 @@ RUN apt-get update && \ bin86 \ bcc \ liblzma-dev \ + libzstd-dev \ + libbz2-dev \ # libc6-dev-i386 for Xen < 4.15 libc6-dev-i386 \ libnl-3-dev \
Signature · 1 line
2.11.0
Re: [PATCH 2/2] CI: Add zstd/etc libraries to build environments
Andrew Cooper writes ("[PATCH 2/2] CI: Add zstd/etc libraries to build environments"):
Quoted 4 lines
zstd compression support is new in 4.15, but isn't currently tested anywhere in CI.
bzip2/zlib was missing in some cases, so add those as well.