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 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 | 1601 |
1602 def GetTryServerMasterForBot(bot): | 1602 def GetTryServerMasterForBot(bot): |
1603 """Returns the Try Server master for the given bot. | 1603 """Returns the Try Server master for the given bot. |
1604 | 1604 |
1605 It tries to guess the master from the bot name, but may still fail | 1605 It tries to guess the master from the bot name, but may still fail |
1606 and return None. There is no longer a default master. | 1606 and return None. There is no longer a default master. |
1607 """ | 1607 """ |
1608 # Potentially ambiguous bot names are listed explicitly. | 1608 # Potentially ambiguous bot names are listed explicitly. |
1609 master_map = { | 1609 master_map = { |
1610 'linux_gpu': 'tryserver.chromium.gpu', | 1610 'linux_gpu': 'tryserver.chromium.gpu', |
1611 'mac_gpu': 'tryserver.chromium.gpu', | |
1612 'win_gpu': 'tryserver.chromium.gpu', | 1611 'win_gpu': 'tryserver.chromium.gpu', |
1613 'chromium_presubmit': 'tryserver.chromium.linux', | 1612 'chromium_presubmit': 'tryserver.chromium.linux', |
1614 'blink_presubmit': 'tryserver.chromium.linux', | 1613 'blink_presubmit': 'tryserver.chromium.linux', |
1615 'tools_build_presubmit': 'tryserver.chromium.linux', | 1614 'tools_build_presubmit': 'tryserver.chromium.linux', |
1616 } | 1615 } |
1617 master = master_map.get(bot) | 1616 master = master_map.get(bot) |
1618 if not master: | 1617 if not master: |
1619 if 'gpu' in bot: | 1618 if 'gpu' in bot: |
1620 master = 'tryserver.chromium.gpu' | 1619 master = 'tryserver.chromium.gpu' |
1621 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: | 1620 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 'linux_chromium_gn_rel': ['defaulttests'], | 1702 'linux_chromium_gn_rel': ['defaulttests'], |
1704 'linux_chromium_rel': ['defaulttests'], | 1703 'linux_chromium_rel': ['defaulttests'], |
1705 'linux_chromium_rel_ng': ['defaulttests'], | 1704 'linux_chromium_rel_ng': ['defaulttests'], |
1706 'linux_chromium_clang_dbg': ['defaulttests'], | 1705 'linux_chromium_clang_dbg': ['defaulttests'], |
1707 'linux_gpu': ['defaulttests'], | 1706 'linux_gpu': ['defaulttests'], |
1708 'linux_nacl_sdk_build': ['compile'], | 1707 'linux_nacl_sdk_build': ['compile'], |
1709 'mac_chromium_compile_dbg': ['defaulttests'], | 1708 'mac_chromium_compile_dbg': ['defaulttests'], |
1710 'mac_chromium_compile_dbg_ng': ['defaulttests'], | 1709 'mac_chromium_compile_dbg_ng': ['defaulttests'], |
1711 'mac_chromium_rel': ['defaulttests'], | 1710 'mac_chromium_rel': ['defaulttests'], |
1712 'mac_chromium_rel_ng': ['defaulttests'], | 1711 'mac_chromium_rel_ng': ['defaulttests'], |
1713 'mac_gpu': ['defaulttests'], | |
1714 'mac_nacl_sdk_build': ['compile'], | 1712 'mac_nacl_sdk_build': ['compile'], |
1715 'win_chromium_compile_dbg': ['defaulttests'], | 1713 'win_chromium_compile_dbg': ['defaulttests'], |
1716 'win_chromium_dbg': ['defaulttests'], | 1714 'win_chromium_dbg': ['defaulttests'], |
1717 'win_chromium_rel': ['defaulttests'], | 1715 'win_chromium_rel': ['defaulttests'], |
1718 'win_chromium_rel_ng': ['defaulttests'], | 1716 'win_chromium_rel_ng': ['defaulttests'], |
1719 'win_chromium_x64_rel': ['defaulttests'], | 1717 'win_chromium_x64_rel': ['defaulttests'], |
1720 'win_chromium_x64_rel_ng': ['defaulttests'], | 1718 'win_chromium_x64_rel_ng': ['defaulttests'], |
1721 'win_gpu': ['defaulttests'], | 1719 'win_gpu': ['defaulttests'], |
1722 'win_nacl_sdk_build': ['compile'], | 1720 'win_nacl_sdk_build': ['compile'], |
1723 'win8_chromium_rel': ['defaulttests'], | 1721 'win8_chromium_rel': ['defaulttests'], |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1799 'linux_chromium_asan_rel', | 1797 'linux_chromium_asan_rel', |
1800 'linux_chromium_chromeos_compile_dbg_ng', | 1798 'linux_chromium_chromeos_compile_dbg_ng', |
1801 'linux_chromium_chromeos_rel_ng', | 1799 'linux_chromium_chromeos_rel_ng', |
1802 'linux_chromium_compile_dbg_32_ng', | 1800 'linux_chromium_compile_dbg_32_ng', |
1803 'linux_chromium_gn_dbg', | 1801 'linux_chromium_gn_dbg', |
1804 'linux_chromium_gn_rel', | 1802 'linux_chromium_gn_rel', |
1805 'linux_chromium_rel_ng', | 1803 'linux_chromium_rel_ng', |
1806 'linux_gpu', | 1804 'linux_gpu', |
1807 'mac_chromium_compile_dbg_ng', | 1805 'mac_chromium_compile_dbg_ng', |
1808 'mac_chromium_rel_ng', | 1806 'mac_chromium_rel_ng', |
1809 'mac_gpu', | |
1810 'win8_chromium_rel', | 1807 'win8_chromium_rel', |
1811 'win_chromium_compile_dbg', | 1808 'win_chromium_compile_dbg', |
1812 'win_chromium_rel_ng', | 1809 'win_chromium_rel_ng', |
1813 'win_chromium_x64_rel_ng', | 1810 'win_chromium_x64_rel_ng', |
1814 'win_gpu', | 1811 'win_gpu', |
1815 ] | 1812 ] |
1816 | 1813 |
1817 # Match things like path/aura/file.cc and path/file_aura.cc. | 1814 # Match things like path/aura/file.cc and path/file_aura.cc. |
1818 # Same for chromeos. | 1815 # Same for chromeos. |
1819 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1816 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
1820 builders.extend([ | 1817 builders.extend([ |
1821 'linux_chromeos_asan', | 1818 'linux_chromeos_asan', |
1822 ]) | 1819 ]) |
1823 | 1820 |
1824 return GetDefaultTryConfigs(builders) | 1821 return GetDefaultTryConfigs(builders) |
OLD | NEW |