[Buildbot-devel] need help using "buildbot sendchange" & bzr

Jean-Michel Beuken jean-michel.beuken at uclouvain.be
Tue Feb 3 05:40:24 UTC 2009


Hello Gary,

thank for your answer...

I'm already test a "old" version of bzrbuildot hook but I prefer to use 
a poller...

then I'm tried to use your poller

my config Twisted 8.2, buildbot 0.7.9 and bzr 1.11

I'm put the "bzr_buildbot.py" in the same directory as the master.cfg

in master.cfg :

--------------------------------------------
...
import bzr_buildbot
bzrpoller = BzrPoller("bzr+ssh://archives.abinit.org/abinit/5.8/")
c['change_source'] = bzrpoller

all_steps = [ source.Bzr( ? ), mode='clobber'),
            ]
bzr_f = factory.BuildFactory(all_steps)

b3 = {'name': "buildbot-chum_gcc43",
      'slavename': "amd_chum",
      'builddir': "chum",
      'factory': bzr_f,
      }
c['builders'] = [ b3]

....
--------------------------------------------


1) problem with import :

[buildmaster at abinit3 Buildbot]$ buildbot checkconfig master.cfg

Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/buildbot-0.7.9-py2.4.egg/buildbot/scripts/runner.py", 
line 855, in doCheckConfig
    ConfigLoader(configFile)
  File 
"/usr/lib/python2.4/site-packages/buildbot-0.7.9-py2.4.egg/buildbot/scripts/checkconfig.py", 
line 31, in __init__
    self.loadConfig(configFile)
  File 
"/usr/lib/python2.4/site-packages/buildbot-0.7.9-py2.4.egg/buildbot/master.py", 
line 487, in loadConfig
    exec f in localDict
  File "master.cfg", line 42, in ?
    import bzr_buildbot
  File "/tmp/tmp1nAd85/bzr_buildbot.py", line 257
     changes = yield twisted.internet.threads.deferToThread(
                   ^
 SyntaxError: invalid syntax


2) must I use source.Bzr() for factory.BuildFactory() definition ? if 
Yes , must I use the same "baseURL" that the url defines in BzrPoller()

3) the organisation of  our central bzr repo  is  not  so "standard"

we have some versions ( 5.8, 5.9, 6.0 ) and in each "version" repo, each 
commiters have some subversion [private-pubic] branches

for example, for the user beuken

bzr+ssh://archives.abinit.org/abinit/5.8/beuken/5.8.0-public
bzr+ssh://archives.abinit.org/abinit/5.8/beuken/5.8.0-private
bzr+ssh://archives.abinit.org/abinit/5.8/beuken/5.8.1-public
bzr+ssh://archives.abinit.org/abinit/5.8/beuken/5.8.1-private
....
bzr+ssh://archives.abinit.org/abinit/5.9/beuken/5.9.2-public
bzr+ssh://archives.abinit.org/abinit/5.9/beuken/5.9.2-private
...
bzr+ssh://archives.abinit.org/abinit/5.9/trunk/5.9.2-public
bzr+ssh://archives.abinit.org/abinit/5.9/trunk/5.9.2-private
...

Then , I want nightly  to test only the last commited "public" branches 
in all versions and only the last subversion

for example :  if the revno has changed, buildbot will test   
'5.8/beuken/5.8.1-public' and/or  '5.9/beuken/5.9.2-public'

is it possible ?

thanks,

regards,

jmb

-- 
----------------------------------------------------
Jean-Michel Beuken
Computer Scientist
Software Engineer for ETSF

Universite catholique de Louvain-La-Neuve
Lab. PCPM/FSA, Bat. BOLTZMANN
1,Place Croix du Sud
1348 Louvain-la-Neuve BELGIUM
----------------------------------------------------
Tel : (3210) 473570 Fax : (3210) 473452
HTTP://www.pcpm.ucl.ac.be/~beuken
----------------------------------------------------




More information about the devel mailing list