[Buildbot-devel] collecting status messages

Christian Himpel chressie at gmail.com
Mon Feb 13 14:25:51 UTC 2012


Hi,

I'm currently developing a Gerrit/Buildbot setup. The idea in the
setup is that every code review patch will be built and tested and
compared to its parent test results. I'm using the GerritChangeSource
and for reporting back the GerritStatusPush.

Now it might happen that 1 out of 10 builds fails to meet the passing
criteria and reports FAILS to gerrit, that's fine. But now if the
failing build is faster than a passing build (which is the case most
of the times), the FAILS status might be overwritten by a subsequent
VERIFIED from another slave.

I'm thinking about collecting the status information and presenting
them to Gerrit in only one status message. Has anybody done (something
like) this before?

As far as I can see, in the status handler, I need to check, if there
are other builds still running.. I could probably do this with some
database queries, but I'm wondering, if there's a more convenient way
to get information about all buildrequests triggered by the same
sourcestamp (or something like that :))

Thanks and best regards,
chressie




More information about the devel mailing list