[Buildbot-devel] Killing running build automatically

Pierre Tardy tardyp at gmail.com
Wed Jan 7 15:54:31 UTC 2015


This is a good question about a frequent problem.

Buildbot has the "TreeStableTimer" parameter that you can add to a
BranchScheduler that will delay a little bit the builds until no change is
seen on the branch for a certain amount of time.

The drawback is that it takes a little bit of time before a build start
after the change has been uploaded.
I think you idea of cancelling the current builds and buildrequests for
parent changes is a good idea, but this is something that has to be
implemented. Note that this will also have the drawback of cancelling
actual work done, and reducing the traceability of which change is
responsible for a build failure.

Pierre


Le Wed Jan 07 2015 at 4:13:48 PM, Martijn van Oosterhout <kleptog at gmail.com>
a écrit :

> Hoi,
>
> We have a buildbot which runs all the tests based on changes generated
> from Gerrit. These tests can take a while. Sometimes, someone makes a
> modification and updates their change. What I'd like to do is stop any
> buildbot that is processing the old change.
>
> I was expecting some kind of change-hook that would be called when and new
> changes are made. Then I can look at the builders for a matching change.
> But I haven't found a hook.
>
> The other alternative is to modify the ChangeSources directly, perhaps
> wrapping them.
>
> What would be the best way to go about this?
>
> Thanks in advance,
> --
> Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/
>  ------------------------------------------------------------
> ------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20150107/a145afee/attachment.html>


More information about the devel mailing list