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

Philipp Kern pkern at debian.org
Sat Nov 13 15:16:54 UTC 2010


Hi there,

On Sat, Nov 13, 2010 at 03:01:24PM +0000, Roger Leigh wrote:
> 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.

what would be on stdout (and not on stderr instead) that's not stats,
given that we use `--batch'?  I.e. why do you need those markers
in the first place, instead of just printing stanza after stanza?

Why don't we still exit with the exit code?

The RFC822-style interface is a nice idea that could just be placed
on top of the current mechanism.  And I fully agree that the build
meta information should be passed through a RFC822 interface.
(Although we currently take that information from the mailed
build logs anyway, the stuff you changed is only summarized and
mailed to the buildd admin periodically.  The syntax within the mailed
build logs *must* stay the same, though.)

Kind regards
Philipp Kern
-------------- 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/f45d1957/attachment-0001.pgp>


More information about the Buildd-tools-devel mailing list