OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Top-level presubmit script for Chromium. | 5 """Top-level presubmit script for Chromium. |
6 | 6 |
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
8 for more details about the presubmit API built into gcl. | 8 for more details about the presubmit API built into gcl. |
9 """ | 9 """ |
10 | 10 |
(...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1589 | 1589 |
1590 | 1590 |
1591 def GetTryServerMasterForBot(bot): | 1591 def GetTryServerMasterForBot(bot): |
1592 """Returns the Try Server master for the given bot. | 1592 """Returns the Try Server master for the given bot. |
1593 | 1593 |
1594 It tries to guess the master from the bot name, but may still fail | 1594 It tries to guess the master from the bot name, but may still fail |
1595 and return None. There is no longer a default master. | 1595 and return None. There is no longer a default master. |
1596 """ | 1596 """ |
1597 # Potentially ambiguous bot names are listed explicitly. | 1597 # Potentially ambiguous bot names are listed explicitly. |
1598 master_map = { | 1598 master_map = { |
1599 'linux_gpu': 'tryserver.chromium.gpu', | |
1600 'win_gpu': 'tryserver.chromium.gpu', | 1599 'win_gpu': 'tryserver.chromium.gpu', |
1601 'chromium_presubmit': 'tryserver.chromium.linux', | 1600 'chromium_presubmit': 'tryserver.chromium.linux', |
1602 'blink_presubmit': 'tryserver.chromium.linux', | 1601 'blink_presubmit': 'tryserver.chromium.linux', |
1603 'tools_build_presubmit': 'tryserver.chromium.linux', | 1602 'tools_build_presubmit': 'tryserver.chromium.linux', |
1604 } | 1603 } |
1605 master = master_map.get(bot) | 1604 master = master_map.get(bot) |
1606 if not master: | 1605 if not master: |
1607 if 'gpu' in bot: | 1606 if 'gpu' in bot: |
1608 master = 'tryserver.chromium.gpu' | 1607 master = 'tryserver.chromium.gpu' |
1609 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: | 1608 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1694 if 'presubmit' in builder: | 1693 if 'presubmit' in builder: |
1695 builders[master].pop(builder) | 1694 builders[master].pop(builder) |
1696 | 1695 |
1697 # Match things like path/aura/file.cc and path/file_aura.cc. | 1696 # Match things like path/aura/file.cc and path/file_aura.cc. |
1698 # Same for chromeos. | 1697 # Same for chromeos. |
1699 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1698 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
1700 tryserver_linux = builders.setdefault('tryserver.chromium.linux', {}) | 1699 tryserver_linux = builders.setdefault('tryserver.chromium.linux', {}) |
1701 tryserver_linux['linux_chromium_chromeos_asan_rel_ng'] = ['defaulttests'] | 1700 tryserver_linux['linux_chromium_chromeos_asan_rel_ng'] = ['defaulttests'] |
1702 | 1701 |
1703 return builders | 1702 return builders |
OLD | NEW |