Mercurial > mozilla > hg > talosnames
comparison 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 |
comparison
equal
deleted
inserted
replaced
41:4dfa9c298e3d | 42:cc0edf61ab21 |
---|---|
18 talos_dir = os.path.dirname(os.path.abspath(talos.__file__)) | 18 talos_dir = os.path.dirname(os.path.abspath(talos.__file__)) |
19 | 19 |
20 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) | 20 sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) |
21 | 21 |
22 class TalosNames(object): | 22 class TalosNames(object): |
23 | |
24 # files for graphserver | |
23 graphserver_sql = 'http://hg.mozilla.org/graphs/raw-file/tip/sql/data.sql' | 25 graphserver_sql = 'http://hg.mozilla.org/graphs/raw-file/tip/sql/data.sql' |
24 schema = 'http://hg.mozilla.org/graphs/raw-file/tip/sql/schema.sql' | 26 schema = 'http://hg.mozilla.org/graphs/raw-file/tip/sql/schema.sql' |
27 | |
28 # files for buildbot | |
25 project_branches = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla/project_branches.py' | 29 project_branches = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla/project_branches.py' |
26 buildbot_config = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla-tests/config.py' | 30 buildbot_config = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla-tests/config.py' |
31 localconfig = 'http://hg.mozilla.org/build/buildbot-configs/raw-file/tip/mozilla-tests/production_config.py' | |
27 | 32 |
28 # mapping file from builbot-configs name to tbpl codes: | 33 # mapping file from builbot-configs name to tbpl codes: |
29 # http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/file/tip/js/Config.js | 34 # http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/file/tip/js/Config.js |
30 tbpl_map = 'http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/raw-file/tip/js/Data.js' | 35 tbpl_map = 'http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/raw-file/tip/js/Data.js' |
31 | 36 |
86 assert match | 91 assert match |
87 _regex, name = match.groups() | 92 _regex, name = match.groups() |
88 self.tbpl_regexs[name] = _regex | 93 self.tbpl_regexs[name] = _regex |
89 | 94 |
90 def setup_buildbot(self): | 95 def setup_buildbot(self): |
91 # project_branches = require.require(self.project_branches) | 96 localconfig, project_branches, module = require.require(self.localconfig, |
92 module = require.require(self.buildbot_config) | 97 self.project_branches, |
98 self.buildbot_config, | |
99 **{self.localconfig: "localconfig.py"}) | |
93 self.suites = module.SUITES | 100 self.suites = module.SUITES |
94 self.buildbot_commands = {} | 101 self.buildbot_commands = {} |
95 self.buildbot_enabled = {} | 102 self.buildbot_enabled = {} |
96 for key, value in self.suites.items(): | 103 for key, value in self.suites.items(): |
97 self.buildbot_commands[key] = value['suites'] | 104 self.buildbot_commands[key] = value['suites'] |