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

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


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 15 Sep 2022 17:47:41 +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=FH9VcU4cbLlRks4FhhET0OEZS/olN/hDHR6lQEb4pQQ=; b=TqGOyDtWu8l2IfxrYiQT9yTsMpqb2DrwoYhUl4L+sMW1VSJ8t+aUnNPEmDK8J5nqvBvdYqgDv8UiJmk6sevFgGAHC3pRKI6SZNeBx4ADVSQLWC/UFam2dtCGXz0JTlNMi9Dx0tcLYzvI4jOb2/UuIhhm7Q6o4f73qcvncBL+8z+2YRwB5EKxdeVpNPNgbpn9nbftMfQMSDEukqbnsQJUqcbx5CIJCBDJ8qQBMpNtSuPu+32pIqSH8zWQLZGGyUyssEfnDEUGmmPhtqsTyHhVZPVrWPyLy1OCnLCHsxBk9scrqe6Nqedd0hyI+Dl7EcsFD8fR+1UsAW/OSSdE7gz72g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XPO/zGa94WSlqPMw32Alc1Ga5bd85pxzDJ0fB065L+vPGqQqIhaz7fi2r0SfVgVxJtNOxigKhlH98SLk8fVRqgON7k0p+mgH8iDiBOasEHaIGLnzoskPuKjzU/sVNx8fl1eWInw2i5yP5GBR/1AQvy4gLZ4nxMw5wSIEUgctdpub1DuscoPdaEnubanKlQiO5H8HdGKaVU5BASy1jqhsTssj0zbKg39rrACUyMlgrbux/qKM7WfMB5PkAz5sgoRsDSNcscQqLw1UnUWZ71+qhOszZsAHk7fvam6mvx4Mm6w2ZpzFKPogb5WPKs0pfkgAPXzqY2Xt2BlFdpWj3No9Pg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Thu, 15 Sep 2022 15:47:58 +0000
  • Ironport-data: A9a23:0nfM+6i8YJdeaEpnh2QWwUn5X17brhtdQwwMu6ucuGbil+go9fh2pWK5dtnrn2Wzm5RB0dnFy2UPe8JSwMZk4PhseMG38tLF6db8exdWDO4iNIRjo6Ip8j288T9qj+jSb7iFUX8xBe6QbDmqnkbE5zeiAaCdESCjgQooSZ/4RdWtAdYzcnPWCx0xAKi4JjIBDGU+daWVdmdCcmZclXHwehAvdLOoSbUcpXqY6aVcTnruhrYNXqvEOor7CAOyjLwbbhnMxED0CH1XBGHBfT3EOWRPVXL9ebeTf79uxZpBLRb4zU0v7a5QtxFZ4olJuajeKyQ3d75YABFBt4hnggzUl/ksBLv7//9Qs8h4ntToSDw6stBWQ7NNOgWbOabCQ3v5XHSeFS6QdyNMtp3nNVNshaRd6OpUedA9BQwrTTYcLWkWEwJGS8Uv4PDPRGQ+yN4qgWjS/ynQsSrIv+j7+3GDJyUy5mRkYvLm0POsKODCCZjIoU1Tpb9884eWOntUrzA9vuK9PAUBItqE/dk3hsuitEQQQAaVtshhp7J+72yF9mtm0WFchJkMR8/jAsDhtM3jXcGSrLYJxlNs6CQRcLBIRmLV092JCeLMXg0pJjm46B5Jr1oN8XPCu3z3BE0r0z9j8e9ZtUef4swRcIgSXPIIKNsuZg5I5DDsrbj9IYY6+S/BjOj1GBYcXFjmHCBNEwsTlYN8uCmMwPO++tTtUx8bUs61aoEhel0eHrj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TDAkiJ3Eg4FT4rwGOgZmm9VflU9iaNrNgSxqqniWT2PFjc2mcQNrQIDyY0DXHrkHdcioYJYQlDeuvt0bjbcLXw3HKw8Z6J1vJevInH9dfPJ3a9Ri9X5/pSNWLi7mKFJEW+26oWVjhoBvShk6wW0tQW0xwuvsUIPCJLMrUayT7EylpFbafhF5T/PIAvsphCvQZ1Wv3HvZbFWj6EXKiKqmTKF8L6OZp6KeXYID5vBY96E7vF88LRQtp5vmQJ8f/7JBaKZh4s6MRVJFiAHe4KSxk4Qs0oP03SEbsomMH/pM1/pmt2niwmVNIcWUpf7ZQiZJDKWrGiM/C9QLtfes0IPMA4FyrNmcY9Sh0bnZ0fCvgfKagRWCJzClNkw/U92YFtr+k0wLci05bpCAYhh/LvpYP1Jn0SW6chMlqyFrA5LlMRACv0pSBjBJF467yO3y1c9jUAYigpOjR2SIs5fw5lRF8JKrZPqR2D18sknvyRpEra1SqYMVw/lV508YUP3OEaSjEIqdSWxlegWcphBghS3yYMRXk51d2UMm4oi0s64upqsin7qPYmzP75cACYdpO0gk/VvF+d9dOAsvoI4a/hG/+umANntJBTALSfg/Hh0l8SKmb5zZZ1SC1O6Mn4AJN1wWANm8=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Thu, Sep 15, 2022 at 03:10:59PM +0100, Anthony PERARD wrote:
> On Tue, Sep 13, 2022 at 12:03:28PM +0200, Roger Pau Monne wrote:
> > 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
> 
> For "osstest" flight or "xen-unstable-smoke" flight, we would have the
> same difference, right?
> 
> The only branch with no change would be libvirt, right?

Indeed, that's the intention.

> > 
> > 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";;
> 
> For meson, I think '-Dwerror=false' would be enough, instead of the
> unusual 'git_werror' configuration.
> 
> But, we might not need to disable all errors, for meson we can have:
>     -Dc_args='-Wno-error=switch -Wno-error=switch-enum'
> 
> But disabling werror is fine too, as less likely to be an issue later.
> 
> Both 'werror' and 'c_args' seems to be meson built-in options rather
> than options implemented for only libvirt.
>     https://mesonbuild.com/Builtin-options.html
> While 'git_werror' is libvirt only.

I don't have a strong opinion really, I've used git_werror because
that's the first thing that I found in:

https://libvirt.org/git/?p=libvirt.git;a=blob;f=meson_options.txt

I don't mind using -Dwerror=false if that's considered better. Ian, do
you have an opinion?

Thanks, Roger.



 


Rackspace

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