Commit 4ddc5df9 authored by thakis@chromium.org's avatar thakis@chromium.org

Switch the default `git try` / `gcl try` bots to _rel.

That matches the CQ bots, and they're significantly faster.

The global trybots are added to all subdirectory PRESUBMITs automatically, so remove win, linux, mac from subdirectory PRESUBMITs (instead of changing them too).

BUG=99521
TEST=`git try` creates faster tryjobs.
TBR=willchan (net), akalin (sync)

Review URL: http://codereview.chromium.org/8162009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113979 0039d316-1c4b-4281-b951-d872f2087c98
parent 822b5680
...@@ -317,8 +317,8 @@ def CheckChangeOnCommit(input_api, output_api): ...@@ -317,8 +317,8 @@ def CheckChangeOnCommit(input_api, output_api):
output_api, output_api,
json_url='http://chromium-status.appspot.com/current?format=json')) json_url='http://chromium-status.appspot.com/current?format=json'))
results.extend(input_api.canned_checks.CheckRietveldTryJobExecution(input_api, results.extend(input_api.canned_checks.CheckRietveldTryJobExecution(input_api,
output_api, 'http://codereview.chromium.org', ('win', 'linux', 'mac'), output_api, 'http://codereview.chromium.org',
'tryserver@chromium.org')) ('win_rel', 'linux_rel', 'mac_rel'), 'tryserver@chromium.org'))
results.extend(input_api.canned_checks.CheckChangeHasBugField( results.extend(input_api.canned_checks.CheckChangeHasBugField(
input_api, output_api)) input_api, output_api))
...@@ -334,5 +334,5 @@ def GetPreferredTrySlaves(project, change): ...@@ -334,5 +334,5 @@ def GetPreferredTrySlaves(project, change):
only_objc_files = all( only_objc_files = all(
f.LocalPath().endswith(('.mm', '.m')) for f in change.AffectedFiles()) f.LocalPath().endswith(('.mm', '.m')) for f in change.AffectedFiles())
if only_objc_files: if only_objc_files:
return ['mac'] return ['mac_rel']
return ['win', 'linux', 'mac'] return ['win_rel', 'linux_rel', 'mac_rel']
...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl. ...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl.
""" """
def GetPreferredTrySlaves(): def GetPreferredTrySlaves():
return ['win', 'linux', 'mac', 'win_sync', 'linux_sync', 'mac_sync'] return ['win_sync', 'linux_sync', 'mac_sync']
...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl. ...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl.
""" """
def GetPreferredTrySlaves(): def GetPreferredTrySlaves():
return ['win', 'linux', 'mac', 'win_sync', 'linux_sync', 'mac_sync'] return ['win_sync', 'linux_sync', 'mac_sync']
...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl. ...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl.
""" """
def GetPreferredTrySlaves(): def GetPreferredTrySlaves():
return ['win', 'linux', 'mac', 'win_sync', 'linux_sync', 'mac_sync'] return ['win_sync', 'linux_sync', 'mac_sync']
...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl. ...@@ -9,4 +9,4 @@ for more details on the presubmit API built into gcl.
""" """
def GetPreferredTrySlaves(): def GetPreferredTrySlaves():
return ['win', 'linux', 'mac', 'win_sync', 'linux_sync', 'mac_sync'] return ['win_sync', 'linux_sync', 'mac_sync']
...@@ -9,7 +9,7 @@ for more details on the presubmit API built into gcl. ...@@ -9,7 +9,7 @@ for more details on the presubmit API built into gcl.
""" """
def GetPreferredTrySlaves(project, change): def GetPreferredTrySlaves(project, change):
slaves = ['win', 'linux', 'mac', 'win_sync', 'linux_sync', 'mac_sync'] slaves = ['win_sync', 'linux_sync', 'mac_sync']
# Changes that touch NSS files will likely need a corresponding OpenSSL edit. # Changes that touch NSS files will likely need a corresponding OpenSSL edit.
# Conveniently, this one glob also matches _openssl.* changes too. # Conveniently, this one glob also matches _openssl.* changes too.
if any('nss' in f.LocalPath() for f in change.AffectedFiles()): if any('nss' in f.LocalPath() for f in change.AffectedFiles()):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment