[Buildbot-devel] "cannot have two services with same name" on master -> can't have to GitPollers pointing to same repo

Dustin J. Mitchell dustin at v.igoro.us
Thu Jan 24 02:11:08 UTC 2013


On Tue, Jan 22, 2013 at 7:54 PM, Dan Kegel <dank at kegel.com> wrote:
> I have some python that generates my configurations,
> which has worked out great... but I notice now that
> when I try to have two projects that reference the
> same git repo, the master explodes with
>
> 2013-01-22 16:45:07-0800 [-] while starting BuildMaster
> ...
>           File "/home/buildbot/master-state/sandbox/local/lib/python2.7/site-packages/twisted/application/service.py",
> line 303, in addService
>             " '%s'" % service.name)
>         exceptions.RuntimeError: cannot have two services with same
> name example.com:pub/blah.git'
>
> Commenting out
>         c['change_source'].append(
>             GitPoller(repourl,  branches=branchnames,
> workdir='gitpoller-workdir-'+name, pollinterval=300))
> makes the problem go away
>
> Looks like the line causing the issue in GitPoller is
>         base.PollingChangeSource.__init__(self, name=repourl,
>                 pollInterval=pollInterval)
>
> I guess I'll have to rejigger my wrapper to avoid creating duplicate
> changesources.

That should be a fairly simple fix to allow the changesource's name to
be configured separately from repourl (but still defaulting to
repurl).  Want to open a bug?  Please add the 'simple' and 'sprints'
tags - this will be a good one for PyCon sprints.

Dustin




More information about the devel mailing list