[buildd-tools-devel] [PATCH] buildd: Get detailed build status and stats from sbuild

Roger Leigh rleigh at codelibre.net
Sat Nov 13 15:01:24 UTC 2010


Hi Phil,

I've attached a proof of concept patch to pass back detailed
information about a build to buildd from sbuild.  At the end of a
build, sbuild prints RFC-822-style text to stdout detailing
build state, failure cause (if any), and information about the
package, statistics about the build etc.

Currently, buildd knows little about what goes on; it just gets the
sbuild exit status, which is either 0, 1, 2 or 3 depending upon the
build status and failure stage.  It's not particularly extensible or
flexible.  With this patch, all this information is passed back
directly, so buildd can make more informed decisions based upon this
information.  With this patch, the behaviour is exactly the same as
with the 0-3 return codes, but this could be extended to be more
intelligent.

This also moves the build-time/build-space stats writing out of
sbuild, moving buildd-specific functionality out of sbuild, further
separating concerns and reducing unnecessary code duplication.

This patch applies on top of current git master, and buildd-merge2
branches.

Note: I've not actually tested the patch, not having a working
buildd setup to test it on.  It may require some small tweaking.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Buildd-Daemon-Get-sbuild-build-status-and-statistics.patch
Type: text/x-diff
Size: 9066 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101113/e286b064/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20101113/e286b064/attachment.pgp>


More information about the Buildd-tools-devel mailing list