bug 685242 - split try and non-try tegra pools. r=coop
authorAki Sasaki <asasaki@mozilla.com>
Thu, 08 Sep 2011 14:04:08 -0700
changeset 4724 b1174cccecbf33e330e8f8844bfe3abb5649e8a2
parent 4723 f017fae779fecb6c514f36d2586a800bfd7cd8a4
child 4725 e8a4b0abd6a8b29390b5127c09707d9b8261b608
push id1
push userroot
push dateWed, 17 Dec 2014 00:18:48 +0000
reviewerscoop
bugs685242
bug 685242 - split try and non-try tegra pools. r=coop
mozilla-tests/config.py
mozilla-tests/preproduction_config.py
mozilla-tests/production_addon_config.py
mozilla-tests/production_config.py
mozilla-tests/staging_addon_config.py
mozilla-tests/staging_ateam_config.py
mozilla-tests/staging_config.py
mozilla-tests/tests_master.cfg
mozilla-tests/universal_master_sqlite.cfg
--- a/mozilla-tests/config.py
+++ b/mozilla-tests/config.py
@@ -3,17 +3,17 @@ from copy import deepcopy
 from buildbot.steps.shell import WithProperties
 
 import project_branches
 reload(project_branches)
 from project_branches import PROJECT_BRANCHES, ACTIVE_PROJECT_BRANCHES
 
 import localconfig
 reload(localconfig)
-from localconfig import SLAVES, GLOBAL_VARS, GRAPH_CONFIG
+from localconfig import SLAVES, TRY_SLAVES, GLOBAL_VARS, GRAPH_CONFIG
 
 REMOTE_PROCESS_NAMES = { 'default':         'org.mozilla.fennec',
                          'mozilla-beta':    'org.mozilla.firefox_beta',
                          'mozilla-aurora':  'org.mozilla.fennec_aurora',
                          'mozilla-release': 'org.mozilla.firefox',
                        }
 
 TALOS_CMD = ['python', 'run_tests.py', '--noisy', WithProperties('%(configFile)s')]
@@ -111,16 +111,20 @@ PLATFORMS['linux-android']['stage_produc
 PLATFORMS['linux-android']['stage_platform'] = 'android'
 
 
 # Copy the slave names into PLATFORMS[platform][slave_platform], trimming off
 # the -o suffix if necessary
 for platform, platform_config in PLATFORMS.items():
     for slave_platform in platform_config['slave_platforms']:
         platform_config[slave_platform]['slaves'] = sorted(SLAVES[slave_platform.split('-')[0]])
+        if slave_platform in TRY_SLAVES:
+            platform_config[slave_platform]['try_slaves'] = sorted(TRY_SLAVES[slave_platform.split('-')[0]])
+        else:
+            platform_config[slave_platform]['try_slaves'] = platform_config[slave_platform]['slaves']
 
 MOBILE_PLATFORMS = PLATFORMS['linux-android']['slave_platforms']
 
 ALL_PLATFORMS = PLATFORMS['linux']['slave_platforms'] + \
                 PLATFORMS['linux64']['slave_platforms'] + \
                 PLATFORMS['win32']['slave_platforms'] + \
                 PLATFORMS['win64']['slave_platforms'] + \
                 PLATFORMS['macosx64']['slave_platforms']
--- a/mozilla-tests/preproduction_config.py
+++ b/mozilla-tests/preproduction_config.py
@@ -4,16 +4,18 @@ SLAVES = {
     'xp': dict([("talos-r3-xp-%03i" % x, {}) for x in range(1,54)]),
     'win7': dict([("talos-r3-w7-%03i" % x, {}) for x in range(1,40) + range(41,54)]),
     'w764': dict([("t-r3-w764-%03i" % x, {}) for x in range(1,51)]),
     'leopard': dict([("talos-r3-leopard-%03i" % x, {}) for x in range(1,54)]),
     'snowleopard': dict([("talos-r3-snow-%03i" % x, {}) for x in range(1,56)]),
     'tegra_android': dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,95)]),
 }
 
+TRY_SLAVES = {}
+
 GRAPH_CONFIG = ['--resultsServer', 'graphs-stage.mozilla.org',
     '--resultsLink', '/server/collect.cgi']
 
 GLOBAL_VARS = {
     'disable_tinderbox_mail': True,
     'tinderbox_tree': 'MozillaTest',
     'mobile_tinderbox_tree': 'MobileTest',
     'build_tools_repo_path': 'users/prepr-ffxbld/tools',
--- a/mozilla-tests/production_addon_config.py
+++ b/mozilla-tests/production_addon_config.py
@@ -4,16 +4,18 @@ SLAVES = {
     'xp': dict([("addon-r3-xp-%03i" % x, {}) for x in range(1,4)]),
     'win7': dict([("addon-r3-w7-%03i" % x, {}) for x in range(1,4)]),
     'w764': dict([("addon-r3-w764-%03i" % x, {}) for x in range(1,4)]),
     'leopard': dict([("addon-r3-leopard-%03i" % x, {}) for x in range(1,4)]),
     'snowleopard': dict([("addon-r3-snow-%03i" % x, {}) for x in range(1,4)]),
     'tegra_android': dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,4)]),
 }
 
+TRY_SLAVES = {}
+
 GRAPH_CONFIG = ['--resultsServer', 'graphs.mozilla.org',
     '--resultsLink', '/server/collect.cgi']
 
 GLOBAL_VARS = {
     'build_tools_repo_path': 'build/tools',
     'stage_server': 'stage.mozilla.org',
     'stage_username': 'ffxbld',
     'stage_ssh_key': 'ffxbld_dsa',
--- a/mozilla-tests/production_config.py
+++ b/mozilla-tests/production_config.py
@@ -1,19 +1,24 @@
+TEGRAS     = dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,65)])
+TRY_TEGRAS = dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(65,95)])
+
 SLAVES = {
     'fedora': dict([("talos-r3-fed-%03i" % x, {}) for x in range(3,10) + range(11,64)]),
     'fedora64' : dict([("talos-r3-fed64-%03i" % x, {}) for x in range (3,10) + range(11,60)]),
     'xp': dict([("talos-r3-xp-%03i" % x, {}) for x in range(4,10) + range(11,63)]),
     'win7': dict([("talos-r3-w7-%03i" % x, {}) for x in range(4,10) + range(11,65)]),
     'w764': dict([("t-r3-w764-%03i" % x, {}) for x in range(1,6)]),
     'leopard': dict([("talos-r3-leopard-%03i" % x, {}) for x in range(3,10) + range(11,60)]),
     'snowleopard': dict([("talos-r3-snow-%03i" % x, {}) for x in range(3,10) + range(11,60)]),
-    'tegra_android': dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,95)]),
+    'tegra_android': TEGRAS,
 }
 
+TRY_SLAVES = {'tegra_android': TRY_TEGRAS}
+
 GRAPH_CONFIG = ['--resultsServer', 'graphs.mozilla.org',
     '--resultsLink', '/server/collect.cgi']
 
 GLOBAL_VARS = {
     'build_tools_repo_path': 'build/tools',
     'stage_server': 'stage.mozilla.org',
     'stage_username': 'ffxbld',
     'stage_ssh_key': 'ffxbld_dsa',
@@ -65,16 +70,17 @@ BRANCHES = {
     },
     'try': {
         'disable_tinderbox_mail': True,
         'tinderbox_tree': 'Try',
         'mobile_tinderbox_tree': 'Try',
         'enable_mail_notifier': True,
         'notify_real_author': True,
         'enable_merging': False,
+        'slave_key': 'try_slaves',
         'package_url': 'http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds',
         'package_dir': '%(who)s-%(got_revision)s',
         'stage_username': 'trybld',
         'stage_ssh_key': 'trybld_dsa',
     },
     'jaegermonkey': {
         'tinderbox_tree': 'Jaegermonkey',
         'mobile_tinderbox_tree': 'Jaegermonkey',
--- a/mozilla-tests/staging_addon_config.py
+++ b/mozilla-tests/staging_addon_config.py
@@ -4,16 +4,18 @@ SLAVES = {
     'xp': dict([("addon-r3-xp-%03i" % x, {}) for x in range(1,4)]),
     'win7': dict([("addon-r3-w7-%03i" % x, {}) for x in range(1,4)]),
     'w764': dict([("addon-r3-w764-%03i" % x, {}) for x in range(1,4)]),
     'leopard': dict([("addon-r3-leopard-%03i" % x, {}) for x in range(1,4)]),
     'snowleopard': dict([("addon-r3-snow-%03i" % x, {}) for x in range(1,4)]),
     'tegra_android': dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,4)]),
 }
 
+TRY_SLAVES = {}
+
 GRAPH_CONFIG = ['--resultsServer', 'graphs-stage.mozilla.org',
     '--resultsLink', '/server/collect.cgi']
 
 GLOBAL_VARS = {
     'tinderbox_tree': 'MozillaTest',
     'mobile_tinderbox_tree': 'MobileTest',
     'build_tools_repo_path': 'build/tools',
     'stage_server': 'staging-stage.build.mozilla.org',
--- a/mozilla-tests/staging_ateam_config.py
+++ b/mozilla-tests/staging_ateam_config.py
@@ -4,16 +4,18 @@ SLAVES = {
     'xp': dict([("tools-r3-xp-%03i" % x, {}) for x in range(1,4)]),
     'win7': dict([("tools-r3-w7-%03i" % x, {}) for x in range(1,4)]),
     'w764': dict([("tools-r3-w764-%03i" % x, {}) for x in range(1,4)]),
     'leopard': dict([("tools-r3-leopard-%03i" % x, {}) for x in range(1,4)]),
     'snowleopard': dict([("tools-r3-snow-%03i" % x, {}) for x in range(1,4)]),
     'tegra_android': dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,4)]),
 }
 
+TRY_SLAVES = {}
+
 GRAPH_CONFIG = ['--resultsServer', 'graphs-stage.mozilla.org',
     '--resultsLink', '/server/collect.cgi']
 
 GLOBAL_VARS = {
     'tinderbox_tree': 'MozillaTest',
     'mobile_tinderbox_tree': 'MobileTest',
     'build_tools_repo_path': 'build/tools',
     'stage_server': 'staging-stage.build.mozilla.org',
--- a/mozilla-tests/staging_config.py
+++ b/mozilla-tests/staging_config.py
@@ -4,16 +4,18 @@ SLAVES = {
     'xp': dict([("talos-r3-xp-%03i" % x, {}) for x in range(1,4)]),
     'win7': dict([("talos-r3-w7-%03i" % x, {}) for x in range(1,4)]),
     'w764': dict([("t-r3-w764-%03i" % x, {}) for x in range(1,4)]),
     'leopard': dict([("talos-r3-leopard-%03i" % x, {}) for x in range(1,4)]),
     'snowleopard': dict([("talos-r3-snow-%03i" % x, {}) for x in range(1,4)]),
     'tegra_android': dict([('tegra-%03i' % x, {'http_port': '30%03i' % x, 'ssl_port': '31%03i' % x}) for x in range(1,4)]),
 }
 
+TRY_SLAVES = {}
+
 GRAPH_CONFIG = ['--resultsServer', 'graphs-stage.mozilla.org',
     '--resultsLink', '/server/collect.cgi']
 
 GLOBAL_VARS = {
     'disable_tinderbox_mail': True,
     'tinderbox_tree': 'MozillaTest',
     'mobile_tinderbox_tree': 'MobileTest',
     'build_tools_repo_path': 'build/tools',
--- a/mozilla-tests/tests_master.cfg
+++ b/mozilla-tests/tests_master.cfg
@@ -19,17 +19,17 @@ for key, value in master_localconfig.Bui
     else:
         c[key] = value
 
 # Create our QueueDir objects
 # This is reloaded in buildbotcustom.misc
 from buildtools.queuedir import QueueDir
 commandsQueue = QueueDir('commands', '%s/commands' % master_localconfig.QUEUEDIR)
 
-from config import BRANCHES, PLATFORMS, SUITES, BRANCH_UNITTEST_VARS, SLAVES, PROJECTS
+from config import BRANCHES, PLATFORMS, SUITES, BRANCH_UNITTEST_VARS, SLAVES, TRY_SLAVES, PROJECTS
 from master_localconfig import ACTIVE_BRANCHES, ACTIVE_PLATFORMS, ACTIVE_PROJECTS
 
 import BuildSlaves
 reload(BuildSlaves)
 from BuildSlaves import SlavePasswords
 from buildbot.buildslave import BuildSlave
 
 # Handle active platforms
@@ -48,16 +48,25 @@ for p in PROJECTS:
 for slave_platform, slaves in SLAVES.items():
     # If this platform isn't active, skip it!
     if slave_platform not in all_slave_platforms:
         continue
     for name in sorted(slaves.keys()):
         c['slaves'].append(BuildSlave(name, SlavePasswords[slave_platform], max_builds=1,
                                       properties=slaves[name]))
 
+if 'try' in ACTIVE_BRANCHES:
+    for slave_platform, slaves in TRY_SLAVES.items():
+        # If this platform isn't active, skip it!
+        if slave_platform not in all_slave_platforms:
+            continue
+        for name in sorted(slaves.keys()):
+            c['slaves'].append(BuildSlave(name, SlavePasswords[slave_platform], max_builds=1,
+                                          properties=slaves[name]))
+
 from buildbotcustom.misc import generateTalosBranchObjects, generateProjectObjects, \
          mergeBuildObjects
 
 from buildbot.schedulers.triggerable import Triggerable
 
 buildObjects = {}
 
 for branch in ACTIVE_BRANCHES:
--- a/mozilla-tests/universal_master_sqlite.cfg
+++ b/mozilla-tests/universal_master_sqlite.cfg
@@ -19,17 +19,17 @@ for key, value in master_localconfig.Bui
     else:
         c[key] = value
 
 # Create our QueueDir objects
 # This is reloaded in buildbotcustom.misc
 from buildtools.queuedir import QueueDir
 commandsQueue = QueueDir('commands', '%s/commands' % master_localconfig.QUEUEDIR)
 
-from config import BRANCHES, PLATFORMS, SUITES, BRANCH_UNITTEST_VARS, SLAVES, PROJECTS
+from config import BRANCHES, PLATFORMS, SUITES, BRANCH_UNITTEST_VARS, SLAVES, TRY_SLAVES, PROJECTS
 from master_localconfig import ACTIVE_BRANCHES, ACTIVE_PLATFORMS, ACTIVE_PROJECTS
 
 import BuildSlaves
 reload(BuildSlaves)
 from BuildSlaves import SlavePasswords
 from buildbot.buildslave import BuildSlave
 
 # Handle active platforms
@@ -48,16 +48,25 @@ for p in PROJECTS:
 for slave_platform, slaves in SLAVES.items():
     # If this platform isn't active, skip it!
     if slave_platform not in all_slave_platforms:
         continue
     for name in sorted(slaves.keys()):
         c['slaves'].append(BuildSlave(name, SlavePasswords[slave_platform], max_builds=1,
                                       properties=slaves[name]))
 
+if 'try' in ACTIVE_BRANCHES:
+    for slave_platform, slaves in TRY_SLAVES.items():
+        # If this platform isn't active, skip it!
+        if slave_platform not in all_slave_platforms:
+            continue
+        for name in sorted(slaves.keys()):
+            c['slaves'].append(BuildSlave(name, SlavePasswords[slave_platform], max_builds=1,
+                                          properties=slaves[name]))
+
 from buildbotcustom.misc import generateTalosBranchObjects, generateProjectObjects, \
          mergeBuildObjects
 
 from buildbot.schedulers.triggerable import Triggerable
 
 buildObjects = {}
 
 for branch in ACTIVE_BRANCHES: