[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] libvirt: disable Werror for non-libvirt flights


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 15 Sep 2022 18:20:52 +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=lto9s/xyWOi+R7V7nyNqLtesy9kZQNWDDHhlUjMdX4k=; b=AVHJj1YZFfJgJwjZOk/cfnZdWwJyqlE2CTU5ymYnYKCxDeHHf7dnOjiEwzDodaXWFR31RHOogNrH+auWt1H+6bp/9Lt8Rg+LcE9/DFPSgZkATyHmvh2Tjjeirff/PzXHppnDIoHD4qMl/BPICTp3GNi1R7LafG7lpPSRulxb5XlwFlhpBNGaC4Xz7lEHwTOZ0UHHqGQsNtkf8yDSzyivYu/q5hAUXYojrubTcn1OFYUuO9uLrve81em+0Ydezw/83lso/v3MFY/iydV639Twks+b+ku9kHymv6ZiT7c7P878VxgsOZ4XTseI5rCaifFwcIJlKdyEeAOdnUT6c7yxJg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gmke1tjp9Lmbnu6Nzo7Zoygm+1vkAD1IR7yv/VLI3BKuOzBNo8J+Mn+YBlDbRZuCZWhDxlh8O8DkyURtSjL4XQK9/RGYfULjX3w+ZuoMpXi56pTglBsoaKe+vI0m87TvQ8QsBoQe5ayhSVOU0OKJQ8tLEhHdX6JVD0rlB2ou1n1zhJ/DT1zbGwe/QxkGUnKWoCkc639GHHBRKtlyXexVFQR/SHS2D4j8NVAjP/Uvh/pFYF4l93DSam3LE/x7ld1JLltxDZZtTuIGFlnOSRH6M+nSprdFuEu0KT8hcMpo7P3Kjt3xaSMDAB7MbqmZF5/3LDxbk2P+EKlH1MuiHHTNyQ==
  • 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: Thu, 15 Sep 2022 16:21:16 +0000
  • Ironport-data: A9a23:ZZ+mAqwNpQ1/g0g82zF6t4n5zX0xdTA+ZkaqjsTw1w6bGk6iVkaXd+b9/w+7gXlGCIjjn4Zkn4tCpUHvdacnWVnKKJyOAFfyhbJBTsUzFCKAgP0XvQGyBId1knYb0RTAM9uyzXox01n67day8LmuVjlEbsAVwTwiEr03nDoD1zQeJm3phUGQniEQ0neeNZZvYZZ5Kyo0szbGKeOA6qFFebK3mbe6WgOUb/yshc8sixhpas4W2egfVBKIpuN+5TuQw2hPklOSQMuEhnRNC7Bx/jvJctqpncBSgkARyMnsTZHvYtqSMZpy9bQmb+HHgu9LLMjMFcahpMN7eDBYIh6G5RfE/lXCGbKJbJYqF8o8dmFGKB9TjAX03uzaQhwrVedko5Lz2IiyeI/NxXlPXNnaGpkqfL6/tQBIKAd0+RK8iimF1Y7pJqnwVHo/CQTH3wu1enBD9BnxSCzI8jLDYyALvd0xI5xssOzIV7aJPMcI6fir0So9Vt5u0sqcJlf8eMwFqpBwqomy9AhujUK+a1v4HMv8Fv1Eca4xOeRg0Q2UOOyElmbNa+QzQUxpysNaIDBFrQI7vUkI7f0HSjEF4fQHrSO4AdWEd1QjawyK4EdR299udGljXW8X8NqL+BmST3cFzJnYqh5A2D20SocCdCUqcOluoYJ/+HwYWjMfPrt+dUOuTqY2NxF2XDN5uFvpYd3ClQOY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HkQGXdLE0z2FwrWtjqrda/IfzbGj0FIvfHZ7c8LM+Tr3CPBkd4eW0HPwwhhNRNXx04lM3FUXQZQZhKk9njDmdoI6EciMr3IiD/+JpH6MgsyaV0G50FjDhxInr58TFD3P5uq2VSpFMzssaesArX5IR99LJa+Civjsk/atjLehVEGz5xelm48JtngtwmsmjHD3Ky+ndphbmbhvQf/nMsKr0mhBSHJAHxi91TminG97QBNRvP32An8krNE/Tw5gxzfEuVn0sg7MC3Aq82fB/gq0mkC3euaLdh4LSZ9MGL665Kud0nvgpZ559NmjScmqbuIskPF0wdMcOONefBmmtcQtZvDS+HreSLAMxLCmtTOKhMxuqo68E15USDVunv0OWh5FI7hq2+fhbdBdFUlymsXcYfSm78bSVbZQyKpmEBpFf4WaBQ7mjtzarmPa7BaZN3UtcU/4CFWfnxb1s6CcnNnMBWcgcVsmJf+AU2enrDad4GY8Lx1HIYeRwjJ2YfA4mEffrm4ZJIK3/gL317oDlLg+myO5d8T+D4cMzjoaXaz8uCms93P/x7E7K1XQWCgpk21CXf3LaGm6dHHw=
  • 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-15 15:57:44.340581730 +0000
+++ /dev/fd/62  2022-09-15 15:57:44.340581730 +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            
       -Dwerror=false
+build-arm64-libvirt                                   meson_options            
       -Dwerror=false
+build-armhf-libvirt                                   meson_options            
       -Dwerror=false
+build-i386-libvirt                                    meson_options            
       -Dwerror=false
 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>
---
Changes since v1:
 - Use -Dwerror=false instead of -Dgit_werror=disabled
---
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..51eb4a9c 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=-Dwerror=false 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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.