Opened 5 years ago

Closed 5 years ago

#2835 closed support-request (fixed)

v0.8.6p1: class buildbot.steps.source.git.Git: keywords mode and method.

Reported by: afoxworth Owned by:
Priority: major Milestone: 0.8.6
Version: 0.8.6p1 Keywords:
Cc: afoxworth@…

Description

Buildbot v0.8.6p1:

When mode set to full, and, method set to fresh, the following error occurs. I want to only remove built-objects from an existing build tree. when mode is set to "clobber" and method keyword not set, no error condition. But this removes the entire build tree. What settings in "*-master.cfg" will allow me to only remove built-objects from existing build tree?

gitChipTc1 = Git(name="chip-tc1", description="Git chip-tc1", repourl='git@git:chip_tc1.git', branch='master', mode='full', method='fresh', workdir='chip_tc1', progress=True, shallow=True);

Error message:

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

(buildbot)buildbot@ci-buildbot-vm1:~/multi-chip-master/config/multi-chip-master$ buildbot --verbose checkconfig multi-chip-master.cfg 2014-07-11 11:47:26-0700 [-] Log opened. 2014-07-11 11:47:26-0700 [-] using set_wakeup_fd 2014-07-11 11:47:26-0700 [-] Loading configuration from '/home/buildbot/multi-chip-master/config/multi-chip-master/multi-chip-master.cfg' 2014-07-11 11:47:26-0700 [-] Unhandled Error

Traceback (most recent call last):

File "/home/buildbot/buildbot/bin/buildbot", line 4, in <module>

runner.run()

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/scripts/runner.py", line 1350, in run

if not doCheckConfig(so):

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/scripts/runner.py", line 1071, in doCheckConfig

return cl.load(quiet=quiet)

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/scripts/checkconfig.py", line 29, in load

self.basedir, self.configFileName)

--- <exception caught here> ---

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/config.py", line 144, in loadConfig

exec f in localDict

File "/home/buildbot/multi-chip-master/config/multi-chip-master/multi-chip-master.cfg", line 208, in <module>

gitChipTc1 = Git(name="chip-tc1", description="Git chip-tc1", repourl='git@git:chip_tc1.git', branch='master', mode='full', method='fresh', workdir='chip_tc1', progress=True, shallow=True);

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/steps/source/oldsource.py", line 871, in init

Source.init(self, kwargs)

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/steps/source/oldsource.py", line 172, in init

LoggingBuildStep?.init(self, kwargs)

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/process/buildstep.py", line 749, in init

BuildStep?.init(self, *args, kwargs)

File "/home/buildbot/buildbot/local/lib/python2.7/site-packages/buildbot/process/buildstep.py", line 435, in init

raise TypeError?(why)

exceptions.TypeError?: <buildbot.steps.source.oldsource.Git instance at 0x28c8368>.init got unexpected keyword argument(s) method?

Thanks,

-Anthony Foxworth

Change History (1)

comment:1 Changed 5 years ago by dustin

  • Milestone changed from undecided to 0.8.6
  • Resolution set to fixed
  • Status changed from new to closed
  • Type changed from undecided to support-request
 exceptions.TypeError?: <buildbot.steps.source.oldsource.Git instance at 0x28c8368>.init got unexpected keyword argument(s) method? 

looks like you're not actually using the new-style step. The import path in the ticket summary is correct -- I'm guessing there's a bug in the imports in your master.cfg?

Note: See TracTickets for help on using tickets.