[Buildbot-devel] SQL question

Charles Lepple clepple at gmail.com
Thu Jun 19 21:16:34 UTC 2008


On Thu, Jun 19, 2008 at 4:13 PM, Mark MacVicar <mark.macvicar at gmail.com> wrote:
> I saw this item in the Buildbot Trac system
> http://buildbot.net/trac/ticket/24. Has anyone played around with
> storing build results into a database?

As I alluded to in the metrics thread, I have some homegrown
subclasses of standard build rules that store information gleaned from
a given build.

Since I was only concerned with storing the results from complete
builds, this saves me an extra SELECT on the database because Buildbot
will only get to the database step if the other build steps complete.

I used Django, so I created a model for representing successful
builds, and stored things like the branch, revision, builder, download
URL, etc. into the build object before saving it.

-- 
- Charles Lepple




More information about the devel mailing list