[Buildbot-devel] Multiple work directories based on branch causes SVN clobber

Amber Yust ayust at yelp.com
Wed Nov 10 03:43:30 UTC 2010


I've committed a fairly similar patch upstream:

https://github.com/buildbot/buildbot/commit/f48acab953ff83be6417bea9ac9a0601b57fb821

<https://github.com/buildbot/buildbot/commit/f48acab953ff83be6417bea9ac9a0601b57fb821>It
uses a base64 encoded version of the source directory instead of doing
replace stuff, but other than that it's basically the same idea.

~Amber

On Tue, Nov 9, 2010 at 5:54 PM, Dylan Arnold <dylan.arnold at gmail.com> wrote:

> Thanks for the prompt reply.
>
> Attached is a patch that fixed the problem for me. Rather than using one
> source data file for the builder, it prepends the working directory to the
> filename, replacing slashes with dots.
>
> Cheers
>
>
> On Wed, Nov 10, 2010 at 1:14 PM, Amber Yust <ayust at yelp.com> wrote:
>
>> This is most likely due to the following changeset:
>>
>>
>> https://github.com/buildbot/buildbot/commit/708852c170b483721fc79194ec351f6711af71e8
>>
>> Since the .buildbot-sourcedata file is now in the builder base dir,
>> instead of in each src dir, it's no longer keeping two separate files, and
>> thus each build is overwriting the same file.
>>
>> ~Amber
>>
>> On Tue, Nov 9, 2010 at 4:10 PM, Dylan Arnold <dylan.arnold at gmail.com>wrote:
>>
>>> Hi all,
>>>
>>> I have some builders for which I set the work dir based on the current
>>> build branch and some build property called config.
>>>
>>> This results in directories like this.
>>>
>>> # branch = trunk, config = testing
>>> buildslave/builder_dir/trunk/testing
>>>
>>> # branch = trunk, config = staging
>>> buildslave/builder_dir/trunk/staging
>>>
>>> # branch = tags/0.6.10, config = staging
>>> buildslave/builder_dir/tags/0.6.10/staging
>>>
>>> This builder has a SVN step and the idea is that the correct source gets
>>> checked out into the correct working directory, and the correct
>>> configuration is compiled. Then subsequent builds of the same branch and
>>> configuration are incremental.
>>>
>>> I had this working but I upgraded to 0.8.2 and this no longer works. If
>>> branch A gets built, then branch B gets built, then branch A gets built
>>> again. The working directory for the original A checkout gets clobbered.
>>>
>>> This doesn't appear to be a problem when changing just the config
>>> property.
>>>
>>> So it appears that buildbot does a clobber if the branch changes and
>>> ignores the checkout directory.
>>>
>>> Does anyone have any ideas? Thanks.
>>>
>>> Regards
>>>
>>> Dylan
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
>>> David G. Thomson, author of the best-selling book "Blueprint to a
>>> Billion" shares his insights and actions to help propel your
>>> business during the next growth cycle. Listen Now!
>>> http://p.sf.net/sfu/SAP-dev2dev
>>> _______________________________________________
>>> 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/20101109/ae2a9a58/attachment.html>


More information about the devel mailing list