[libvirt] [PATCH] build: use autobuild module to make build logs nicer

A recent build failure made me realize that we could usefully add a bit more information to configure output, for aid in analysis of failed builds. Pulling in the autobuild module merely adds these four lines to configure output: configure: autobuild project... libvirt configure: autobuild revision... 1.0.1 configure: autobuild hostname... myhost configure: autobuild timestamp... 20130102T181342Z which can be useful even if not using the Autobuild project to parse build logs. * bootstrap.conf (gnulib_modules): Add autobuild. --- I'll wait for a review on this one. Hmm, I also realized that there are other things that might be useful for autobuild to log, such as uname output; I'll ask upstream if it is worth enhancing the autobuild output, and if upstream agrees, then we would pick up that enhanced information next time we sync from gnulib. bootstrap.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap.conf b/bootstrap.conf index 37a0ae1..4b45a4f 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -1,6 +1,6 @@ # Bootstrap configuration. -# Copyright (C) 2010-2012 Red Hat, Inc. +# Copyright (C) 2010-2013 Red Hat, Inc. # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,7 @@ gnulib_modules=' accept areadlink +autobuild base64 bind bitrotate -- 1.8.0.2

On Wed, Jan 02, 2013 at 11:26:18AM -0700, Eric Blake wrote:
A recent build failure made me realize that we could usefully add a bit more information to configure output, for aid in analysis of failed builds. Pulling in the autobuild module merely adds these four lines to configure output:
configure: autobuild project... libvirt configure: autobuild revision... 1.0.1 configure: autobuild hostname... myhost configure: autobuild timestamp... 20130102T181342Z
which can be useful even if not using the Autobuild project to parse build logs.
* bootstrap.conf (gnulib_modules): Add autobuild. ---
I'll wait for a review on this one. Hmm, I also realized that there are other things that might be useful for autobuild to log, such as uname output; I'll ask upstream if it is worth enhancing the autobuild output, and if upstream agrees, then we would pick up that enhanced information next time we sync from gnulib.
I'd suggest the GIT head hash be added too.
bootstrap.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ACK Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

On 01/02/2013 11:39 AM, Daniel P. Berrange wrote:
On Wed, Jan 02, 2013 at 11:26:18AM -0700, Eric Blake wrote:
A recent build failure made me realize that we could usefully add a bit more information to configure output, for aid in analysis of failed builds. Pulling in the autobuild module merely adds these four lines to configure output:
configure: autobuild project... libvirt configure: autobuild revision... 1.0.1
I'd suggest the GIT head hash be added too.
Hmm, that would indeed be useful. It looks like it is as simple as modifying the shell variable AB_VERSION to contain more details, prior to invoking any gnulib macros; I'll play with a configure.ac patch appropriately, and post a v2 if I get it working.
I'll wait for a review on this one. Hmm, I also realized that there are other things that might be useful for autobuild to log, such as uname output; I'll ask upstream if it is worth enhancing the autobuild output, and if upstream agrees, then we would pick up that enhanced information next time we sync from gnulib.
Asked: http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32280
bootstrap.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
ACK
If I get to the end of the day without a v2, then I'll push this. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

A recent build failure made me realize that we could usefully add a bit more information to configure output, for aid in analysis of failed builds. Pulling in the autobuild module merely adds these four lines to configure output: configure: autobuild project... libvirt configure: autobuild revision... v1.0.1-113-g7a74eea configure: autobuild hostname... myhost configure: autobuild timestamp... 20130102T233543Z which can be useful even if not using the Autobuild project to parse build logs. * bootstrap.conf (gnulib_modules): Add autobuild. * configure.ac: Favor git version over release version, when available. --- The diff to v1 is the configure.ac changes to make the revision more useful; it seems harmless enough that I've gone ahead and pushed this based on Dan's ACK of v1. bootstrap.conf | 3 ++- configure.ac | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bootstrap.conf b/bootstrap.conf index 37a0ae1..4b45a4f 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -1,6 +1,6 @@ # Bootstrap configuration. -# Copyright (C) 2010-2012 Red Hat, Inc. +# Copyright (C) 2010-2013 Red Hat, Inc. # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,7 @@ gnulib_modules=' accept areadlink +autobuild base64 bind bitrotate diff --git a/configure.ac b/configure.ac index 3c97e4f..d80cf8b 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -dnl Copyright (C) 2005-2012 Red Hat, Inc. +dnl Copyright (C) 2005-2013 Red Hat, Inc. dnl See COPYING.LIB for the License of this software AC_INIT([libvirt], [1.0.1], [libvir-list@redhat.com], [], [http://libvirt.org]) @@ -122,6 +122,12 @@ AC_PROG_CC AC_PROG_INSTALL AC_PROG_CPP +dnl Setting AB_VERSION makes the 'autobuild' lines of configure output +dnl slightly more useful +if test -d $srcdir/.git && git --version >/dev/null 2>&1 ; then + AB_VERSION=`cd $srcdir && git describe --match 'v[[0-9]]*' 2>/dev/null` +fi + gl_EARLY gl_INIT -- 1.8.0.2
participants (2)
-
Daniel P. Berrange
-
Eric Blake