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 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1691 and return None. There is no longer a default master. | 1691 and return None. There is no longer a default master. |
1692 """ | 1692 """ |
1693 # Potentially ambiguous bot names are listed explicitly. | 1693 # Potentially ambiguous bot names are listed explicitly. |
1694 master_map = { | 1694 master_map = { |
1695 'chromium_presubmit': 'tryserver.chromium.linux', | 1695 'chromium_presubmit': 'tryserver.chromium.linux', |
1696 'blink_presubmit': 'tryserver.chromium.linux', | 1696 'blink_presubmit': 'tryserver.chromium.linux', |
1697 'tools_build_presubmit': 'tryserver.chromium.linux', | 1697 'tools_build_presubmit': 'tryserver.chromium.linux', |
1698 } | 1698 } |
1699 master = master_map.get(bot) | 1699 master = master_map.get(bot) |
1700 if not master: | 1700 if not master: |
1701 if 'gpu' in bot: | 1701 if 'linux' in bot or 'android' in bot or 'presubmit' in bot: |
1702 master = 'tryserver.chromium.gpu' | |
1703 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: | |
1704 master = 'tryserver.chromium.linux' | 1702 master = 'tryserver.chromium.linux' |
1705 elif 'win' in bot: | 1703 elif 'win' in bot: |
1706 master = 'tryserver.chromium.win' | 1704 master = 'tryserver.chromium.win' |
1707 elif 'mac' in bot or 'ios' in bot: | 1705 elif 'mac' in bot or 'ios' in bot: |
1708 master = 'tryserver.chromium.mac' | 1706 master = 'tryserver.chromium.mac' |
1709 return master | 1707 return master |
1710 | 1708 |
1711 | 1709 |
1712 def GetDefaultTryConfigs(bots): | 1710 def GetDefaultTryConfigs(bots): |
1713 """Returns a list of ('bot', set(['tests']), filtered by [bots]. | 1711 """Returns a list of ('bot', set(['tests']), filtered by [bots]. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1759 # Explicitly iterate over copies of dicts since we mutate them. | 1757 # Explicitly iterate over copies of dicts since we mutate them. |
1760 for master in builders.keys(): | 1758 for master in builders.keys(): |
1761 for builder in builders[master].keys(): | 1759 for builder in builders[master].keys(): |
1762 # Do not trigger presubmit builders, since they're likely to fail | 1760 # Do not trigger presubmit builders, since they're likely to fail |
1763 # (e.g. OWNERS checks before finished code review), and we're | 1761 # (e.g. OWNERS checks before finished code review), and we're |
1764 # running local presubmit anyway. | 1762 # running local presubmit anyway. |
1765 if 'presubmit' in builder: | 1763 if 'presubmit' in builder: |
1766 builders[master].pop(builder) | 1764 builders[master].pop(builder) |
1767 | 1765 |
1768 return builders | 1766 return builders |
OLD | NEW |