diff talosnames/api.py @ 42:cc0edf61ab21

require all the things!
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 12 Aug 2012 23:10:16 -0700
parents 4dfa9c298e3d
children 601ebbbdf63e
line wrap: on
line diff
--- a/talosnames/api.py	Sun Aug 12 22:38:12 2012 -0700
+++ b/talosnames/api.py	Sun Aug 12 23:10:16 2012 -0700
@@ -20,10 +20,15 @@
 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
 
 class TalosNames(object):
+
+    # files for graphserver
     graphserver_sql = 'http://hg.mozilla.org/graphs/raw-file/tip/sql/data.sql'
     schema = 'http://hg.mozilla.org/graphs/raw-file/tip/sql/schema.sql'
+
+    # files for buildbot
     project_branches = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla/project_branches.py'
     buildbot_config = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla-tests/config.py'
+    localconfig = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla-tests/production_config.py'
 
     # mapping file from builbot-configs name to tbpl codes:
     # http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/file/tip/js/Config.js
@@ -88,8 +93,10 @@
             self.tbpl_regexs[name] = _regex
 
     def setup_buildbot(self):
-#        project_branches = require.require(self.project_branches)
-        module = require.require(self.buildbot_config)
+        localconfig, project_branches, module = require.require(self.localconfig,
+                                                                self.project_branches,
+                                                                self.buildbot_config,
+                                                                **{self.localconfig: "localconfig.py"})
         self.suites = module.SUITES
         self.buildbot_commands = {}
         self.buildbot_enabled = {}