[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] libvirt: disable Werror for non-libvirt flights
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Tue, 13 Sep 2022 12:03:28 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9t7MxQ7mEc0WCJ817FW3QRBgGmcgGnWH2jZL/6FOtyU=; b=UdEY/fRlNMBlM0nycJBismy8xdF+u1Vgh2uqN+/gyBRIo7cvtjNEu+IRe13d9QBhQSlRTG5s3WNSNoHDlRvdAgOSG/UcTN/37m1X2BMMf+oumm9qHZGVKxAuzCUBeO0B8hguxyLjqHb51G8TUGX7JFRCWlHdNGLUvqBE8wtVSZdoZLQsCoaETgtgn4SyOtpTw9Y0dgNDylC/LxUXCQB+JWV/oqdjuEpJTitRLKc3SllPHmO/rhFP+9KWrvTiAdHCet0l9hQfv1pAFLwnSgT7gz7wsGdQA4aGO3VjgKWdcVPLqvHzNBChOZywwdKQTHUEajS+iq3LtaREdWMUXRDrTg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oLucxz4KE9olW9YbfDTh9f7zc8PQKmPokdxkdISvyxsijN/lZ1Ax3Bly8AystR5tLFsxktDw+E1doFYvk/26pSYA/WWgkq1g2bjStlAbeiL8+pzp9Rc8nDUnceKsl0QNwcSJcGJWFpy2RxOSosdng8HYVDCsuGI91T7Y5RtVbj/GbZmqm4rhUsDhbK5L+VYvZC2nFdge0toX7DP2DIB3M3QAqqMYq8m8U63QtNVTiw7RBltT3mqnSwKBXl46gTTyWXHeXR6gMTxYS0QLpgbQW2m4ZZHzZhQX4k69KP3TsKQaarVAYI0floJJY8JpC+bSDXM8IVINM34lB+UqWXQNZA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>
- Delivery-date: Tue, 13 Sep 2022 10:03:52 +0000
- Ironport-data: A9a23:ipPIsKqbCYSs4l2wigXcyH3dIi5eBgzWbkVVjYv8NTMMsmFhBT8lAxcf/9W1sqUQdHbeeAXCVZk3hCVqO4JVvnTeZ44iYPQzRkmXdsxA6uyY7/rlrddsHXekj3hHxe+oNu1MEhH6EP2V2voesn31zbTKF3P5IpAmeetEFMGYNeowgvMo14yC6/eO4VRgyjIgKxGXwkDwJ8JjX0IEWMLX+aT3aVg9QsCzAss/WWxo0/dRSFHuEcXFlUQgl1fNdJm2ezeRf981B2nJeFT9Apeaw9ZMonJRb4FiVk4Epcpx5YXqz70UFrqUadcky1Sp8KkhWR7l+kN8Sqzww3FKtQ676Yr5t4fBp8Wna2TOyNG+ESS+HA9fGNVYzUPWGNMNj5+OqBmmmC10ukFxaYbFAa5cFcxarQ7sFYOmZe/Mzu0zhNXPV7xEZywfk/gxSPFrOUYZOUuBo5g8piRnbfaqnoXJ4/yTler/KMklzYIQ/uBDC/P70GhttVj0FGQq1Hdw9VlP9YS9SFslw7Cste5pq433gXR5gCjTSFzWq9noXbdKMCPYj3R+w2vwMFXEasqPdPf37NEfKMeWIaAfT36JV1P9OkheVvtrdZ0xvQCOgl/7ZRDtmNLmc7Mo/bIzBywS4nOkc05QcTuiaCVt85pDA5k8VzKpPWR7K8nI6S8/ndL9EfyU947bxylvvZOm2r8AUnYrZHE7uDvyyeQhLZ0/ipF+Cux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sBp+HFwYBCRXr1HA77MOtoyJit91dk+gCPZHN6iLkraiKa2nNgYfhFElHinkqDa0HDx88j5cokVH8WQDe8ll4b7r82CodPB5rrbJbVdqRtRj/VfVUm1uN0MQ8eUFsmg6AEOwLfcsLzPYz35x48TCbTFB/juLwBYNlAEXXOiXQswtDlF3cwekgjS4ksDFlrfYbZRlO8116RkIl/KXnrwDJ0dBBQ2vtn3R+Q/9arbDaXI8mTWnAzJzn0a49Zmfz9nElk3OZqkjV3KiAFEkZ/OT5KENvrjsZj7QRgJcrVChrWqXjHQ+CFgsQfgUdmVBmtp4EEOns575exXgLgvzXgWCEX36ydaXy2OyX2w/Kh+HmKcsGuMy9MAcbcVW+BWzv7b+3JVuhiZ7xapUZtbtNwhHswhB5Z/ius0yI25NmMkFB+8NIyDqkq2btDOzCA3VRnjDEO1FGWNcvveMaSDlvcpB70DI/v9Fl2GCpL1jyBs+yMvAjD8BIhzFn1AtnC22f/mH/Zth2wKcEefqgG66gm5BvByQga6JIO9KOueuAKo7w5B8+mDR4XkW8taourIx2w==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Current usage of Werror=switch-enum by default for libvirt builds out
of the git tree causes issues when new items are added to libxl public
API enums if those are used in a switch statement in libvirt code.
This leads to libvirt build failures for seemingly unrelated libxl
changes.
In order to prevent those errors from blocking the push gate, disable
Werror for libvirt builds when not in a libvirt specific flight.
The errors will be reported on the libvirt flight, and block the
pushes there. So the author of the changes in libxl is still expected
to send a fix to libvirt code. This is no ideal, but the other option
is to just disable Werror for all libvirt builds and let libvirt
developers fix the breakage when they notice it.
runvar differences for a xen-unstable flight are:
--- /dev/fd/63 2022-09-13 09:53:58.044441678 +0000
+++ /dev/fd/62 2022-09-13 09:53:58.044441678 +0000
@@ -574,6 +574,10 @@
test-xtf-amd64-amd64-3 arch
amd64
test-xtf-amd64-amd64-4 arch
amd64
test-xtf-amd64-amd64-5 arch
amd64
+build-amd64-libvirt autogen_options
--disable-werror
+build-arm64-libvirt autogen_options
--disable-werror
+build-armhf-libvirt autogen_options
--disable-werror
+build-i386-libvirt autogen_options
--disable-werror
test-amd64-amd64-libvirt-qemuu-debianhvm-amd64-xsm bios
seabios
test-amd64-amd64-qemuu-nested-amd bios
seabios
test-amd64-amd64-qemuu-nested-intel bios
seabios
@@ -1217,6 +1221,10 @@
build-arm64-libvirt make_njobs
1
build-armhf-libvirt make_njobs
1
build-i386-libvirt make_njobs
1
+build-amd64-libvirt meson_options
-Dgit_werror=disabled
+build-arm64-libvirt meson_options
-Dgit_werror=disabled
+build-armhf-libvirt meson_options
-Dgit_werror=disabled
+build-i386-libvirt meson_options
-Dgit_werror=disabled
test-amd64-amd64-xl-qemuu-dmrestrict-amd64-dmrestrict recipe_dmrestrict
true
test-amd64-i386-xl-qemuu-dmrestrict-amd64-dmrestrict recipe_dmrestrict
true
test-amd64-amd64-xl-qemuu-dmrestrict-amd64-dmrestrict recipe_nomigrate
true
Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
I'm unsure whether we want o disable Werror even for libvirt flights,
but this seems more conservative.
This does at least unblock the libvirt builds for both the
xen-unstable and the libvirt flights.
---
Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>
Cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>
Cc: Julien Grall <julien@xxxxxxx>
---
mfi-common | 2 +-
ts-libvirt-build | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/mfi-common b/mfi-common
index 59e712f4..450229e9 100644
--- a/mfi-common
+++ b/mfi-common
@@ -459,7 +459,7 @@ create_build_jobs () {
libvirt_build_runvars=''
case "$branch" in
libvirt*) ;;
- *) libvirt_build_runvars+=" make_njobs=1";;
+ *) libvirt_build_runvars+=" make_njobs=1
meson_options=-Dgit_werror=disabled autogen_options=--disable-werror";;
esac
job_create_build build-$arch-libvirt build-libvirt \
diff --git a/ts-libvirt-build b/ts-libvirt-build
index 16b45cfd..e4faa1d7 100755
--- a/ts-libvirt-build
+++ b/ts-libvirt-build
@@ -73,7 +73,7 @@ sub config() {
--with-libxl --without-xen --without-xenapi
--without-selinux \\
--without-lxc --without-vbox --without-uml \\
--without-qemu --without-openvz --without-vmware
\\
- --sysconfdir=/etc --localstatedir=/var #/
+ --sysconfdir=/etc --localstatedir=/var
$r{autogen_options} #/
END
} else {
target_cmd_build($ho, 3600, $builddir, <<END);
@@ -87,6 +87,7 @@ END
-Ddriver_libvirtd=enabled \\
-Ddriver_remote=enabled \\
--sysconfdir=/etc --localstatedir=/var \\
+ $r{meson_options} \\
build
END
}
--
2.37.3
|