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 depot_tools. | 8 for more details about the presubmit API built into depot_tools. |
9 """ | 9 """ |
10 | 10 |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 | 1653 |
1654 | 1654 |
1655 def GetTryServerMasterForBot(bot): | 1655 def GetTryServerMasterForBot(bot): |
1656 """Returns the Try Server master for the given bot. | 1656 """Returns the Try Server master for the given bot. |
1657 | 1657 |
1658 It tries to guess the master from the bot name, but may still fail | 1658 It tries to guess the master from the bot name, but may still fail |
1659 and return None. There is no longer a default master. | 1659 and return None. There is no longer a default master. |
1660 """ | 1660 """ |
1661 # Potentially ambiguous bot names are listed explicitly. | 1661 # Potentially ambiguous bot names are listed explicitly. |
1662 master_map = { | 1662 master_map = { |
1663 'win_gpu': 'tryserver.chromium.gpu', | |
1664 'chromium_presubmit': 'tryserver.chromium.linux', | 1663 'chromium_presubmit': 'tryserver.chromium.linux', |
1665 'blink_presubmit': 'tryserver.chromium.linux', | 1664 'blink_presubmit': 'tryserver.chromium.linux', |
1666 'tools_build_presubmit': 'tryserver.chromium.linux', | 1665 'tools_build_presubmit': 'tryserver.chromium.linux', |
1667 } | 1666 } |
1668 master = master_map.get(bot) | 1667 master = master_map.get(bot) |
1669 if not master: | 1668 if not master: |
1670 if 'gpu' in bot: | 1669 if 'gpu' in bot: |
1671 master = 'tryserver.chromium.gpu' | 1670 master = 'tryserver.chromium.gpu' |
1672 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: | 1671 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: |
1673 master = 'tryserver.chromium.linux' | 1672 master = 'tryserver.chromium.linux' |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1757 if 'presubmit' in builder: | 1756 if 'presubmit' in builder: |
1758 builders[master].pop(builder) | 1757 builders[master].pop(builder) |
1759 | 1758 |
1760 # Match things like path/aura/file.cc and path/file_aura.cc. | 1759 # Match things like path/aura/file.cc and path/file_aura.cc. |
1761 # Same for chromeos. | 1760 # Same for chromeos. |
1762 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1761 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
1763 tryserver_linux = builders.setdefault('tryserver.chromium.linux', {}) | 1762 tryserver_linux = builders.setdefault('tryserver.chromium.linux', {}) |
1764 tryserver_linux['linux_chromium_chromeos_asan_rel_ng'] = ['defaulttests'] | 1763 tryserver_linux['linux_chromium_chromeos_asan_rel_ng'] = ['defaulttests'] |
1765 | 1764 |
1766 return builders | 1765 return builders |
OLD | NEW |