当前位置: 动力学知识库 > 问答 > 编程问答 >

Buildbot 'try' command starts a build but does not actually apply patch

问题描述:

When I attempt a buildbot try command, the patch is sent and the build starts, but the patch is never actually applied.

My setup uses SVN, with 2 source control steps:

c['change_source'].append(SVNPoller("%s/trunk/a" % base_url , pollinterval=10))

c['change_source'].append(SVNPoller("%s/trunk/b" % base_url , pollinterval=10))

and...

self.addStep(SVN(repourl="%s/trunk/a" % base_url, workdir="build/a"))

self.addStep(SVN(repourl="%s/trunk/b" % base_url, workdir="build/b"))

These get put into the build directory on the slave like:

build/a/...

build/b/...

Then I attempt to run the 'try' command from my local computer:

svn co '.../trunk/a'

cd a

update some files

buildbot try --vc svn --connect pb -m192.168.0.100:5555 \

-uuser --passwd=pass -w user -C "comment" --topdir="a"

I can see on the server that the patch is generated:

svn update ( 11 secs )

patch

stdio

svn_1 update ( 3 secs )

patch

stdio

and the patch looks correct-ish

Index: mmfx/project/se_lib_tests/mmif_unit_tests.c

===================================================================

--- mmfx/project/se_lib_tests/mmif_unit_tests.c (revision 5952)

+++ mmfx/project/se_lib_tests/mmif_unit_tests.c (working copy)

...

However, the patch is never actually applied to the source files. My suspicion is that buildbot doesn't know how to apply the patch to just the 'build/a' tree -- it attempts to do it to the 'build' tree, and silently fails.

Any ideas how to make this work right?

Thanks,

- Caleb

分享给朋友:
您可能感兴趣的文章:
随机阅读: