Bug 1160717 - Add horizon builds and nightlies - r=jlund
authorChris Cooper <ccooper@deadsquid.com>
Tue, 16 Jun 2015 09:46:22 -0400 (2015-06-16)
changeset 12518 c71f4b72e5db7611c119d93240b34ff16a4bb095
parent 12517 964e9e789fdb64098743af35a5f68e520943e24a
child 12519 b3d400e392a0354868ac397c1db506fbd29eb5fe
child 12520 2de50c1598b402261441553bdcaecbc64ece957b
push id8991
push usercoop@mozilla.com
push dateTue, 16 Jun 2015 13:46:30 +0000 (2015-06-16)
reviewersjlund
bugs1160717
Bug 1160717 - Add horizon builds and nightlies - r=jlund
mozilla/b2g_config.py
mozilla/b2g_project_branches.py
--- a/mozilla/b2g_config.py
+++ b/mozilla/b2g_config.py
@@ -45,28 +45,31 @@ GLOBAL_VARS.update({
         'linux64-b2g-haz': {},
         'flame-kk': {},
         'flame-kk_eng': {},
         'flame-kk_eng-debug': {},
         'dolphin': {},
         'dolphin_eng': {},
         'dolphin-512': {},
         'dolphin-512_eng': {},
-
         # Graphene builds. These are a different app (ie, not B2G) and would
         # have their own config files in an ideal world, but it's not worth
         # the effort at this point.
         'linux64_graphene': {},
         'macosx64_graphene': {},
         'win64_graphene': {},
+        # Horizon is a browser variant based on Graphene.
+        'linux64_horizon': {},
+        'macosx64_horizon': {},
+        'win64_horizon': {},
     },
     'enable_nightly': True,
     'enable_l10n': False,
     'enable_xulrunner': False,
-    'enabled_products': ['b2g', 'graphene'],
+    'enabled_products': ['b2g', 'graphene', 'horizon'],
     'product_prefix': 'b2g',
     'unittest_suites': [],
     # XXX: this seems like it should be at the platform level
     'enable_multi_locale': True,
 })
 
 # shorthand, because these are used often
 OBJDIR = GLOBAL_VARS['objdir']
@@ -1045,18 +1048,16 @@ PLATFORM_VARS = {
         },
         'stage_product': 'b2g',
         'product_name': 'b2g',
         'base_name': builder_prefix + '_%(branch)s_%(platform)s',
         'slaves': SLAVES['mock'],
         'enable_periodic': True,
         'enable_dep': False,
     },
-
-
     "linux64_graphene": {
         "mozharness_python": "/tools/buildbot/bin/python",
         "reboot_command": [
             "/tools/checkouts/mozharness/external_tools/count_and_reboot.py",
             "-f", "../reboot_count.txt", "-n", "1", "-z"
         ],
         "mozharness_repo_cache": "/tools/checkouts/mozharness",
         "tools_repo_cache": "/tools/checkouts/build-tools",
@@ -1114,16 +1115,83 @@ PLATFORM_VARS = {
             "script_maxtime": int(5.5 * 3600),
         },
         "stage_product": "b2g",
         "base_name": "graphene_%(branch)s_win64",
         "platform_objdir": OBJDIR,
         "slaves": SLAVES["win64-rev2"],
         "try_by_default": False,
     },
+    "linux64_horizon": {
+        "mozharness_python": "/tools/buildbot/bin/python",
+        "reboot_command": [
+            "/tools/checkouts/mozharness/external_tools/count_and_reboot.py",
+            "-f", "../reboot_count.txt", "-n", "1", "-z"
+        ],
+        "mozharness_repo_cache": "/tools/checkouts/mozharness",
+        "tools_repo_cache": "/tools/checkouts/build-tools",
+        "mozharness_desktop_build": {
+            "script_name": "scripts/fx_desktop_build.py",
+            "extra_args": [
+                "--config", "builds/releng_base_linux_64_builds.py",
+                "--custom-build-variant-cfg", "horizon",
+                '--config', GLOBAL_VARS['mozharness_configs']['balrog'],
+            ],
+            "script_timeout": 3 * 3600,
+            "script_maxtime": int(5.5 * 3600),
+        },
+        "stage_product": "b2g",
+        "base_name": "horizon_%(branch)s_linux64",
+        "platform_objdir": OBJDIR,
+        "slaves": SLAVES["mock"],
+        "try_by_default": False,
+    },
+    "macosx64_horizon": {
+        "mozharness_python": "/tools/buildbot/bin/python",
+        "reboot_command": ["scripts/external_tools/count_and_reboot.py",
+                           "-f", "../reboot_count.txt", "-n", "1", "-z"],
+        "mozharness_desktop_build": {
+            "script_name": "scripts/fx_desktop_build.py",
+            "extra_args": [
+                "--config", "builds/releng_base_mac_64_builds.py",
+                "--custom-build-variant-cfg", "horizon",
+                '--config', GLOBAL_VARS['mozharness_configs']['balrog'],
+            ],
+            "script_timeout": 3 * 3600,
+            "script_maxtime": int(5.5 * 3600),
+        },
+        "stage_product": "b2g",
+        "base_name": "horizon_%(branch)s_macosx64",
+        "platform_objdir": OBJDIR,
+        "slaves": SLAVES["macosx64-lion"],
+        "try_by_default": False,
+    },
+    "win64_horizon": {
+        "mozharness_python": ["c:/mozilla-build/python27/python", "-u"],
+        "reboot_command": [
+            "c:/mozilla-build/python27/python", "-u",
+            "scripts/external_tools/count_and_reboot.py",
+            "-f", "../reboot_count.txt","-n", "1", "-z"
+        ],
+        "mozharness_desktop_build": {
+            "script_name": "scripts/fx_desktop_build.py",
+            "extra_args": [
+                "--config", "builds/releng_base_windows_64_builds.py",
+                "--custom-build-variant-cfg", "horizon",
+                '--config', GLOBAL_VARS['mozharness_configs']['balrog'],
+            ],
+            "script_timeout": 3 * 3600,
+            "script_maxtime": int(5.5 * 3600),
+        },
+        "stage_product": "b2g",
+        "base_name": "horizon_%(branch)s_win64",
+        "platform_objdir": OBJDIR,
+        "slaves": SLAVES["win64-rev2"],
+        "try_by_default": False,
+    },
 }
 
 for platform in PLATFORM_VARS.values():
     if 'env' not in platform:
         platform['env'] = deepcopy(GLOBAL_ENV)
     else:
         platform['env'].update((k, v) for k, v in GLOBAL_ENV.items() if k not in platform['env'])
 
@@ -1157,16 +1225,19 @@ BRANCHES = {
             'macosx64_gecko-debug': {},
             'macosx64-mulet': {},
             'win32_gecko': {},
             'win32_gecko-debug': {},
             'win32-mulet': {},
             'linux64_graphene': {},
             'macosx64_graphene': {},
             'win64_graphene': {},
+            'linux64_horizon': {},
+            'macosx64_horizon': {},
+            'win64_horizon': {},
             'emulator': {},
             'emulator-debug': {},
             'emulator-jb': {},
             'emulator-jb-debug': {},
             'emulator-kk': {},
             'emulator-kk-debug': {},
             'emulator-l': {},
             'emulator-l-debug': {},
@@ -1422,16 +1493,19 @@ BRANCHES['try']['platforms']['win32_geck
 BRANCHES['try']['platforms']['win32_gecko']['enable_periodic'] = False
 BRANCHES['try']['platforms']['win32_gecko-debug']['enable_dep'] = True
 BRANCHES['try']['platforms']['win32_gecko-debug']['enable_periodic'] = False
 BRANCHES['try']['platforms']['win32-mulet']['enable_dep'] = True
 BRANCHES['try']['platforms']['win32-mulet']['enable_periodic'] = False
 BRANCHES['try']['platforms']['linux64_graphene']['slaves'] = TRY_SLAVES['mock']
 BRANCHES['try']['platforms']['macosx64_graphene']['slaves'] = TRY_SLAVES['macosx64-lion']
 BRANCHES['try']['platforms']['win64_graphene']['slaves'] = TRY_SLAVES['win64-rev2']
+BRANCHES['try']['platforms']['linux64_horizon']['slaves'] = TRY_SLAVES['mock']
+BRANCHES['try']['platforms']['macosx64_horizon']['slaves'] = TRY_SLAVES['macosx64-lion']
+BRANCHES['try']['platforms']['win64_horizon']['slaves'] = TRY_SLAVES['win64-rev2']
 
 BRANCHES['try']['platforms']['emulator']['slaves'] = TRY_SLAVES['mock']
 BRANCHES['try']['platforms']['emulator']['mozharness_config']['extra_args'] = ['--target', 'emulator', '--config', 'b2g/releng-try.py', '--gaia-languages-file', 'locales/languages_dev.json', '--gecko-languages-file', 'gecko/b2g/locales/all-locales']
 BRANCHES['try']['platforms']['emulator-debug']['slaves'] = TRY_SLAVES['mock']
 BRANCHES['try']['platforms']['emulator-debug']['mozharness_config']['extra_args'] = ['--target', 'emulator', '--config', 'b2g/releng-try.py', '--debug', '--gaia-languages-file', 'locales/languages_dev.json', '--gecko-languages-file', 'gecko/b2g/locales/all-locales']
 BRANCHES['try']['platforms']['emulator-jb']['slaves'] = TRY_SLAVES['mock']
 BRANCHES['try']['platforms']['emulator-jb']['mozharness_config']['extra_args'] = ['--target', 'emulator-jb', '--config', 'b2g/releng-try.py', '--gaia-languages-file', 'locales/languages_dev.json', '--gecko-languages-file', 'gecko/b2g/locales/all-locales']
 BRANCHES['try']['platforms']['emulator-jb-debug']['slaves'] = TRY_SLAVES['mock']
@@ -1448,25 +1522,31 @@ BRANCHES['try']['platforms']['emulator-k
 BRANCHES['try']['platforms']['emulator-kk-debug']['enable_periodic'] = False
 BRANCHES['try']['platforms']['emulator-l']['slaves'] = TRY_SLAVES['mock']
 BRANCHES['try']['platforms']['emulator-l']['mozharness_config']['extra_args'] = ['--target', 'emulator-l', '--config', 'b2g/releng-try.py', '--gaia-languages-file', 'locales/languages_dev.json', '--gecko-languages-file', 'gecko/b2g/locales/all-locales']
 BRANCHES['try']['platforms']['emulator-l-debug']['slaves'] = TRY_SLAVES['mock']
 BRANCHES['try']['platforms']['emulator-l-debug']['mozharness_config']['extra_args'] = ['--target', 'emulator-l', '--config', 'b2g/releng-try.py', '--debug', '--gaia-languages-file', 'locales/languages_dev.json', '--gecko-languages-file', 'gecko/b2g/locales/all-locales']
 BRANCHES['try']['platforms']['emulator-l-debug']['enable_dep'] = True
 BRANCHES['try']['platforms']['emulator-l-debug']['enable_periodic'] = False
 
-# Graphene is only enabled on Larch and Try for now.
+# Graphene and Horizon are only enabled on Larch and Try for now.
 for name, branch in BRANCHES.iteritems():
     if name not in ("larch", "try"):
         if "linux64_graphene" in branch["platforms"]:
             del branch["platforms"]["linux64_graphene"]
         if "macosx64_graphene" in branch["platforms"]:
             del branch["platforms"]["macosx64_graphene"]
         if "win64_graphene" in branch["platforms"]:
             del branch["platforms"]["win64_graphene"]
+        if "linux64_horizon" in branch["platforms"]:
+            del branch["platforms"]["linux64_horizon"]
+        if "macosx64_horizon" in branch["platforms"]:
+            del branch["platforms"]["macosx64_horizon"]
+        if "win64_horizon" in branch["platforms"]:
+            del branch["platforms"]["win64_horizon"]
 
 # Enable win32/macosx64 mulet in gecko 36+
 for name, branch in items_before(BRANCHES, 'gecko_version', 36):
     if 'win32-mulet' in branch['platforms']:
         del branch['platforms']['win32-mulet']
     if 'macosx64-mulet' in branch['platforms']:
         del branch['platforms']['macosx64-mulet']
 
--- a/mozilla/b2g_project_branches.py
+++ b/mozilla/b2g_project_branches.py
@@ -167,16 +167,19 @@ PROJECT_BRANCHES = {
     'larch': {
         "desktop_mozharness_builds_enabled": True,
         'enable_nightly': True,
         "lock_platforms": True,
         "platforms": {
             "linux64_graphene": {},
             "macosx64_graphene": {},
             "win64_graphene": {},
+            "linux64_horizon": {},
+            "macosx64_horizon": {},
+            "win64_horizon": {},
         }
     },
     'maple': {
         'enable_nightly': True,
         'platforms': {
             'macosx64_gecko': {
                 'mozharness_desktop_build': {
                     'script_name': 'scripts/b2g_desktop_build.py',