GTTF: Send 1% of Chromium try jobs to recipe-based builders.

BUG=317931
[email protected], [email protected]

Review URL: https://codereview.chromium.org/108243005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243288 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 5e64d57..bc16ad8 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -9,6 +9,7 @@
 """
 
 
+import random
 import re
 import subprocess
 import sys
@@ -1270,6 +1271,8 @@
           'google_apis_unittests',
           'sandbox_linux_unittests',
       ],
+      'linux_chromium_dbg': ['defaulttests'],
+      'linux_chromium_rel': ['defaulttests'],
       'linux_clang': ['compile'],
       'linux_rel': standard_tests + [
           'cc_unittests',
@@ -1282,6 +1285,8 @@
           'sync_integration_tests',
       ],
       'mac': ['compile'],
+      'mac_chromium_dbg': ['defaulttests'],
+      'mac_chromium_rel': ['defaulttests'],
       'mac_rel': standard_tests + [
           'app_list_unittests',
           'cc_unittests',
@@ -1431,4 +1436,14 @@
       any(re.search('\.gypi?$', f) for f in files)):
     trybots.extend(GetDefaultTryConfigs(['android_aosp']))
 
+  # Experimental recipe-based Chromium trybots. To avoid possible capacity
+  # problems, only enable for a small percentage of try runs.
+  if random.random() < 0.01:
+    trybots.extend(GetDefaultTryConfigs([
+        'linux_chromium_dbg',
+        'linux_chromium_rel',
+        'mac_chromium_dbg',
+        'mac_chromium_rel',
+    ]))
+
   return trybots