Bug 776426 - Setup config.py to use ccache for linux and macosx builders. r=Callek seamonkey-production
authorEdmund Wong <ewong@pw-wspx.org>
Wed, 05 Sep 2012 10:33:14 +0800
branchseamonkey-production
changeset 6812 30f69d9c9ce845c30891c9b3121a56708e8974c2
parent 6807 f016b407336b3561815ec28c4223c67b6ae43a03
child 6813 3c39ff1edf4828672fee53c0929a3f66157d0a06
push id5319
push userewong@pw-wspx.org
push dateWed, 05 Sep 2012 02:41:22 +0000
reviewersCallek
bugs776426
Bug 776426 - Setup config.py to use ccache for linux and macosx builders. r=Callek
seamonkey/config.py
--- a/seamonkey/config.py
+++ b/seamonkey/config.py
@@ -136,26 +136,28 @@ PLATFORM_VARS = {
             'build_space': 8,
             'upload_symbols': True,
             'download_symbols': True,
             'packageTests': True,
             'slaves': SLAVES['linux'],
             'platform_objdir': OBJDIR,
             'stage_platform': 'linux',
             'update_platform': 'Linux_x86-gcc3',
+            'enable_ccache': True,
             'env': {
                 'MOZ_OBJDIR': OBJDIR,
                 'SYMBOL_SERVER_HOST': 'symbolpush.mozilla.org',
                 'SYMBOL_SERVER_USER': 'seabld',
                 'SYMBOL_SERVER_PATH': SYMBOL_SERVER_PATH,
                 'POST_SYMBOL_UPLOAD_CMD': SYMBOL_SERVER_POST_UPLOAD_CMD,
                 'SYMBOL_SERVER_SSH_KEY': "/home/seabld/.ssh/seabld_dsa",
                 'TINDERBOX_OUTPUT': '1',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
                 'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
                 'CCACHE_UMASK': '002',
                 'DISPLAY': ':2',
             },
             'enable_opt_unittests': False,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/linux32/releng.manifest',
             'talos_masters': GLOBAL_VARS['talos_masters'],
             'stage_product': 'seamonkey',
@@ -184,16 +186,17 @@ PLATFORM_VARS = {
                 'SYMBOL_SERVER_USER': 'seabld',
                 'SYMBOL_SERVER_PATH': SYMBOL_SERVER_PATH,
                 'POST_SYMBOL_UPLOAD_CMD': SYMBOL_SERVER_POST_UPLOAD_CMD,
                 'SYMBOL_SERVER_SSH_KEY': "/home/seabld/.ssh/seabld_dsa",
                 'MOZ_SYMBOLS_EXTRA_BUILDID': 'linux64',
                 'TINDERBOX_OUTPUT': '1',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
                 'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
                 'CCACHE_UMASK': '002',
                 'DISPLAY': ':2',
             },
             'enable_opt_unittests': False,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/linux64/releng.manifest',
             'talos_masters': GLOBAL_VARS['talos_masters'],
             'stage_product': 'seamonkey',
@@ -210,25 +213,29 @@ PLATFORM_VARS = {
             'build_space': 8,
             'upload_symbols': True,
             'download_symbols': True,
             'packageTests': True,
             'slaves': SLAVES['macosx'],
             'platform_objdir': "%s/ppc" % OBJDIR,
             'stage_platform': 'macosx',
             'update_platform': 'Darwin_Universal-gcc3',
+            'enable_ccache': True,
             'env': {
                 'MOZ_OBJDIR': OBJDIR,
                 'SYMBOL_SERVER_HOST': 'symbolpush.mozilla.org',
                 'SYMBOL_SERVER_USER': 'seabld',
                 'SYMBOL_SERVER_PATH': SYMBOL_SERVER_PATH,
                 'POST_SYMBOL_UPLOAD_CMD': SYMBOL_SERVER_POST_UPLOAD_CMD,
                 'SYMBOL_SERVER_SSH_KEY': "/Users/seabld/.ssh/seabld_dsa",
                 'TINDERBOX_OUTPUT': '1',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
+                'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
+                'CCACHE_UMASK': '002',
                 'CHOWN_ROOT': '~/bin/chown_root',
                 'CHOWN_REVERT': '~/bin/chown_revert',
                 'MOZ_PKG_PLATFORM': 'mac',
                 'LC_ALL': 'C',
             },
             'enable_opt_unittests': False,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/macosx32/releng.manifest',
@@ -247,25 +254,29 @@ PLATFORM_VARS = {
             'build_space': 8,
             'upload_symbols': True,
             'download_symbols': True,
             'packageTests': True,
             'slaves': SLAVES['macosx64'],
             'platform_objdir': "%s/i386" % OBJDIR,
             'stage_platform': 'macosx64',
             'update_platform': 'Darwin_x86_64-gcc3',
+            'enable_ccache': True,
             'env': {
                 'MOZ_OBJDIR': OBJDIR,
                 'SYMBOL_SERVER_HOST': 'symbolpush.mozilla.org',
                 'SYMBOL_SERVER_USER': 'seabld',
                 'SYMBOL_SERVER_PATH': SYMBOL_SERVER_PATH,
                 'SYMBOL_SERVER_SSH_KEY': "/Users/seabld/.ssh/seabld_dsa",
                 'MOZ_SYMBOLS_EXTRA_BUILDID': 'macosx64',
                 'TINDERBOX_OUTPUT': '1',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
+                'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
+                'CCACHE_UMASK': '002',
                 'CHOWN_ROOT': '~/bin/chown_root',
                 'CHOWN_REVERT': '~/bin/chown_revert',
                 'LC_ALL': 'C',
             },
             'enable_opt_unittests': False,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/macosx64/releng.manifest',
             'talos_masters': GLOBAL_VARS['talos_masters'],
@@ -319,23 +330,25 @@ PLATFORM_VARS = {
             'src_mozconfig': 'suite/config/mozconfigs/linux32/debug',
             'profiled_build': False,
             'builds_before_reboot': BUILDS_BEFORE_REBOOT,
             'download_symbols': True,
             'build_space': 7,
             'slaves': SLAVES['linux'],
             'platform_objdir': OBJDIR,
             'stage_platform': 'linux-debug',
+            'enable_ccache': True,
             'env': {
                 'MOZ_OBJDIR': OBJDIR,
                 'DISPLAY': ':2',
                 'LD_LIBRARY_PATH': '%s/mozilla/dist/bin' % OBJDIR,
                 'XPCOM_DEBUG_BREAK': 'stack-and-abort',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
                 'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
                 'CCACHE_UMASK': '002',
             },
             'enable_unittests': True,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/linux32/releng.manifest',
             'talos_masters': GLOBAL_VARS['talos_masters'],
             'stage_product': 'seamonkey',
         },
@@ -348,20 +361,24 @@ PLATFORM_VARS = {
             'src_mozconfig': 'suite/config/mozconfigs/macosx32/debug',
             'profiled_build': False,
             'builds_before_reboot': BUILDS_BEFORE_REBOOT,
             'download_symbols': True,
             'build_space': 5,
             'slaves': SLAVES['macosx'],
             'platform_objdir': OBJDIR,
             'stage_platform': 'macosx-debug',
+            'enable_ccache': True,
             'env': {
                 'MOZ_OBJDIR': OBJDIR,
                 'XPCOM_DEBUG_BREAK': 'stack-and-abort',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
+                'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
+                'CCACHE_UMASK': '002',
                 'LC_ALL': 'C',
             },
             'enable_unittests': True,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/macosx32/releng.manifest',
             'talos_masters': GLOBAL_VARS['talos_masters'],
             'stage_product': 'seamonkey',
         },
@@ -374,20 +391,24 @@ PLATFORM_VARS = {
             'src_mozconfig': 'suite/config/mozconfigs/macosx64/debug',
             'profiled_build': False,
             'builds_before_reboot': BUILDS_BEFORE_REBOOT,
             'download_symbols': True,
             'build_space': 5,
             'slaves': SLAVES['macosx64'],
             'platform_objdir': OBJDIR,
             'stage_platform': 'macosx64-debug',
+            'enable_ccache': True,
             'env': {
                 'MOZ_OBJDIR': OBJDIR,
                 'XPCOM_DEBUG_BREAK': 'stack-and-abort',
                 'MOZ_CRASHREPORTER_NO_REPORT': '1',
+                'CCACHE_DIR': '/builds/ccache',
+                'CCACHE_COMPRESS': '1',
+                'CCACHE_UMASK': '002',
                 'LC_ALL': 'C',
             },
             'enable_unittests': True,
             'enable_checktests': True,
             'tooltool_manifest_src': 'suite/config/tooltool-manifests/macosx64/releng.manifest',
             'talos_masters': GLOBAL_VARS['talos_masters'],
             'stage_product': 'seamonkey',
         },