Bug 1045194 - Hazard builds need to reboot
authorSteve Fink <sfink@mozilla.com>
Mon, 29 Dec 2014 10:54:33 -0800 (2014-12-29)
changeset 11614 95205c5c19561ceb6426eb17470e8c13aed7f35f
parent 11613 e674ed26831abe4498664cba364b508c5e9170fa
child 11616 4c0921f03e9b186fdd931f8e21c193069fe84a6f
child 11617 f5e4917aae84dcc63bf66eee44df99b20652b9ec
push id8458
push usersfink@mozilla.com
push dateTue, 30 Dec 2014 17:29:12 +0000 (2014-12-30)
bugs1045194
Bug 1045194 - Hazard builds need to reboot
mozilla/b2g_config.py
mozilla/config.py
--- a/mozilla/b2g_config.py
+++ b/mozilla/b2g_config.py
@@ -1333,16 +1333,21 @@ PLATFORM_VARS = {
         'stage_product': 'b2g',
         'product_name': 'b2g',
         'base_name': builder_prefix + '_%(branch)s_%(platform)s',
         'slaves': SLAVES['mock'],
         'maxTime': 6 * 3600,
         'try_by_default': True,
         'consider_for_nightly': False,
         'mock_target': 'mozilla-centos6-x86_64',
+        'reboot_command': [
+            '/tools/checkouts/mozharness/external_tools/count_and_reboot.py',
+            '-f', '../reboot_count.txt', '-n', '1', '-z'
+        ],
+        'builds_before_reboot': b2g_localconfig.BUILDS_BEFORE_REBOOT,
     },
     'emulator-kk': {
         'mozharness_config': {
             'script_name': 'scripts/b2g_build.py',
             # b2g_build.py will checkout gecko from hg and look up a tooltool manifest given by the
             # --target name below
             'extra_args': ['--target', 'emulator-kk', '--config', 'b2g/releng-emulator.py',
                            '--gaia-languages-file', 'locales/languages_dev.json',
--- a/mozilla/config.py
+++ b/mozilla/config.py
@@ -674,16 +674,21 @@ PLATFORM_VARS = {
             },
             'stage_product': 'firefox',
             'product_name': 'firefox',
             'base_name': '%(platform)s_%(branch)s',
             'slaves': SLAVES['mock'],
             'try_by_default': False,
             'consider_for_nightly': False,
             'mock_target': 'mozilla-centos6-x86_64',
+            'reboot_command': [
+                '/tools/checkouts/mozharness/external_tools/count_and_reboot.py',
+                '-f', '../reboot_count.txt', '-n', '1', '-z'
+            ],
+            'builds_before_reboot': localconfig.BUILDS_BEFORE_REBOOT,
         },
         'linux64-br-haz': {
             'mozharness_config': {
                 'script_name': 'scripts/spidermonkey_build.py',
                 'extra_args': [
                     '--config-file', 'hazards/build_browser.py',
                     '--config-file', 'hazards/common.py',
                 ],
@@ -696,16 +701,21 @@ PLATFORM_VARS = {
             },
             'stage_product': 'firefox',
             'product_name': 'firefox',
             'base_name': '%(platform)s_%(branch)s',
             'slaves': SLAVES['mock'],
             'try_by_default': True,
             'consider_for_nightly': False,
             'mock_target': 'mozilla-centos6-x86_64',
+            'reboot_command': [
+                '/tools/checkouts/mozharness/external_tools/count_and_reboot.py',
+                '-f', '../reboot_count.txt', '-n', '1', '-z'
+            ],
+            'builds_before_reboot': localconfig.BUILDS_BEFORE_REBOOT,
         },
         'linux64-cc': {
             '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': [