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

Dylan Arnold dylan.arnold at gmail.com
Wed Nov 10 01:54:35 UTC 2010


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/20101110/c72fb746/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sourcedata_per_working_directory.diff
Type: application/octet-stream
Size: 1369 bytes
Desc: not available
URL: <http://buildbot.net/pipermail/devel/attachments/20101110/c72fb746/attachment.obj>


More information about the devel mailing list