master.cfg changes to support warningstep.py
authorBenjamin Smedberg <benjamin@smedbergs.us>
Wed, 10 Dec 2008 12:32:17 -0500
changeset 7 c77013199a86
parent 6 03664a1472ce
child 8 c33d0e330649
push id3
push userbsmedberg@mozilla.com
push dateWed, 10 Dec 2008 20:06:43 +0000
master.cfg changes to support warningstep.py
master.cfg
--- a/master.cfg
+++ b/master.cfg
@@ -33,17 +33,17 @@ c['change_source'] = PBChangeSource()
 ## configure the Schedulers
 
 from buildbot.scheduler import Periodic, Scheduler
 c['schedulers'] = []
 c['schedulers'].append(Periodic(name="all", branch=None,
                                 periodicBuildTimer=60 * 60 * 3,
                                 builderNames=['static-analysis-bsmedberg']))
 c['schedulers'].append(Scheduler(name="onchange", branch=None,
-                                 treeStableTimer=30,
+                                 treeStableTimer=0,
                                  builderNames=['static-analysis-bsmedberg']))
 
 ####### BUILDERS
 
 # the 'builders' list defines the Builders. Each one is configured with a
 # dictionary, using the following keys:
 #  name (required): the name used to describe this bilder
 #  slavename (required): which slave to use, must appear in c['bots']
@@ -60,33 +60,32 @@ c['schedulers'].append(Scheduler(name="o
 # the first BuildStep is typically responsible for obtaining a copy of the
 # sources. There are source-obtaining Steps in buildbot/process/step.py for
 # CVS, SVN, and others.
 
 from buildbot.process import factory
 from buildbot.steps.source import Mercurial
 from buildbot.steps.transfer import FileDownload, FileUpload
 from buildbot.steps.shell import Compile, ShellCommand, WithProperties
+from warningstep import WarningParserStep
 
 f1 = factory.BuildFactory()
 
 f1.addStep(Mercurial(repourl='http://hg.mozilla.org/mozilla-central/', mode="copy"))
 
 changesetLink = '<a href=http://hg.mozilla.org/mozilla-central/rev/%(got_revision)s title="Built from revision %(got_revision)s">rev:%(got_revision)s</a>'
 f1.addStep(ShellCommand(command=['printf', 'TinderboxPrint:%s\n',
                                  WithProperties(changesetLink)]))
 
 f1.addStep(FileDownload(mastersrc="mozconfig", slavedest=".mozconfig"))
 
-f1.addStep(Compile(command="make -f client.mk -w 2>&1 | tee build.log", env={'LANG': 'C'}))
-
+f1.addStep(Compile(command='make -f client.mk -w >build.log 2>&1', env={'LANG': 'C'}, logfiles={'build': 'build.log'}))
 f1.addStep(FileDownload(mastersrc="warning-parser.py", slavedest="warning-parser.py"))
 f1.addStep(FileDownload(mastersrc="cvsblame.db", slavedest="cvsblame.db"))
-f1.addStep(ShellCommand(command=['python', 'warning-parser.py', '.', 'cvsblame.db', 'warning.db', 'build.log']))
-f1.addStep(FileUpload(slavesrc='warning.db', masterdest=WithProperties('public_html/warning-db/%(buildnumber)-s-%(got_revision)s.db')))
+f1.addStep(WarningParserStep(command=['python', 'warning-parser.py', '.', 'cvsblame.db', 'build.log'], dbfile='warnings.db'))
 
 b1 = {'name': 'static-analysis-bsmedberg',
       'slavename': "staticanalysis-slave-linux",
       'builddir': "full",
       'factory': f1,
       }
 c['builders'] = [b1]