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

Dan Kegel dank at kegel.com
Wed Jan 23 00:54:24 UTC 2013


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.




More information about the devel mailing list