[Buildbot-devel] Cleaning, but not every build

Axel Hecht l10n.moz at googlemail.com
Thu Jul 17 11:59:56 UTC 2008


2008/7/17 Henry <dimensiondude.oss at gmail.com>:
> Is there any way to make a builder that builds incrementally every
> time it detects changes, only rebuilding things that have changed,
> but also cleans everything and rebuilds regularly (say, daily). I know
> how to make a builder that does one and another that does the the
> other, but that leaves the incremental builder never cleaning.
> buildbot doesn't seem to like having two builders use the same
> directory.
>
> Also, is there any way to make it so instead of detecting a change,
> building, and then detecting and building all of the changes since the
> first build, it downloads and builds all the changes one by one, so
> you can tell exactly which one broke it?
>

With 0.7.8, you'll get scheduler properties, that is, you can create
two schedulers that are going to set different build properties when
kicking off the build.

You can then add a clobber step which would SKIP for depend builds,
based on those set properties.

To build each change, you need to subclass the scheduler, and send out
subclasses subclassed SourceStamps in the build requests, and I don't
see us fixing that for 0.7.8, sadly.
http://hg.mozilla.org/users/axel_mozilla.com/tooling/index.cgi/file/8c1b43d8dfce/mozilla/tools/buildbotcustom/buildbotcustom/l10n.py#l311
has sample code. http://buildbot.net/trac/ticket/288 is the ticket for
making this better.

Axel




More information about the devel mailing list