[Buildbot-devel] 0.8.8 code executed in master instead of slave?

Dustin J. Mitchell dustin at v.igoro.us
Tue Jul 23 19:04:29 UTC 2013


On Tue, Jul 23, 2013 at 9:06 AM, Julia S.S. <hithwen at gmail.com> wrote:
> I think I have not explained myself properly
> I have different builds with same config, linked to their slaves.
> Eg. i have builds named package-win, package-lin32, package-lin64,
> package-macos builds, linked to slave-win, slave-lin32 etc respectively.
> They all execute same build steps and they are all triggered at the same
> time when a push to release/* is performed
>
> S3 step has a start method such as:
>
>  def start(self):
>         path = self._get_binary_path()
>         upload_name = self._get_upload_name()
>         folder = self.getProperty('branch')
>         conn = boto.connect_s3(AWS_ACCESS_KEY_ID, AWS_KEY)
>         bucket = conn.get_bucket('binaries')
>         k = bucket.new_key('%s/%s' % (folder, upload_name))
>         k.set_contents_from_filename(path)
>         self.finished(SUCCESS)
>
> upload name is correctly generated, as I get different binaries with
> different names, problem is they are all the same which, can only mean that
> it's being uploaded from the master-host

Buildbot doesn't magically execute Python code on different hosts.  If
that code is present on the master, then it executes on the master.

Dustin




More information about the devel mailing list