Chromium Code Reviews| 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 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1595 | 1595 |
| 1596 | 1596 |
| 1597 def GetTryServerMasterForBot(bot): | 1597 def GetTryServerMasterForBot(bot): |
| 1598 """Returns the Try Server master for the given bot. | 1598 """Returns the Try Server master for the given bot. |
| 1599 | 1599 |
| 1600 It tries to guess the master from the bot name, but may still fail | 1600 It tries to guess the master from the bot name, but may still fail |
| 1601 and return None. There is no longer a default master. | 1601 and return None. There is no longer a default master. |
| 1602 """ | 1602 """ |
| 1603 # Potentially ambiguous bot names are listed explicitly. | 1603 # Potentially ambiguous bot names are listed explicitly. |
| 1604 master_map = { | 1604 master_map = { |
| 1605 'linux_gpu': 'tryserver.chromium.gpu', | |
| 1606 'win_gpu': 'tryserver.chromium.gpu', | 1605 'win_gpu': 'tryserver.chromium.gpu', |
| 1607 'chromium_presubmit': 'tryserver.chromium.linux', | 1606 'chromium_presubmit': 'tryserver.chromium.linux', |
| 1608 'blink_presubmit': 'tryserver.chromium.linux', | 1607 'blink_presubmit': 'tryserver.chromium.linux', |
| 1609 'tools_build_presubmit': 'tryserver.chromium.linux', | 1608 'tools_build_presubmit': 'tryserver.chromium.linux', |
| 1610 } | 1609 } |
| 1611 master = master_map.get(bot) | 1610 master = master_map.get(bot) |
| 1612 if not master: | 1611 if not master: |
| 1613 if 'gpu' in bot: | 1612 if 'gpu' in bot: |
| 1614 master = 'tryserver.chromium.gpu' | 1613 master = 'tryserver.chromium.gpu' |
| 1615 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: | 1614 elif 'linux' in bot or 'android' in bot or 'presubmit' in bot: |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1689 'linux_chromium_asan_rel': ['defaulttests'], | 1688 'linux_chromium_asan_rel': ['defaulttests'], |
| 1690 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], | 1689 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], |
| 1691 'linux_chromium_chromeos_compile_dbg_ng': ['defaulttests'], | 1690 'linux_chromium_chromeos_compile_dbg_ng': ['defaulttests'], |
| 1692 'linux_chromium_chromeos_rel': ['defaulttests'], | 1691 'linux_chromium_chromeos_rel': ['defaulttests'], |
| 1693 'linux_chromium_chromeos_rel_ng': ['defaulttests'], | 1692 'linux_chromium_chromeos_rel_ng': ['defaulttests'], |
| 1694 'linux_chromium_compile_dbg': ['defaulttests'], | 1693 'linux_chromium_compile_dbg': ['defaulttests'], |
| 1695 'linux_chromium_compile_dbg_32_ng': ['compile'], | 1694 'linux_chromium_compile_dbg_32_ng': ['compile'], |
| 1696 'linux_chromium_gn_dbg': ['compile'], | 1695 'linux_chromium_gn_dbg': ['compile'], |
| 1697 'linux_chromium_gn_rel': ['defaulttests'], | 1696 'linux_chromium_gn_rel': ['defaulttests'], |
| 1698 'linux_chromium_rel': ['defaulttests'], | 1697 'linux_chromium_rel': ['defaulttests'], |
| 1699 'linux_chromium_rel_ng': ['defaulttests'], | 1698 'linux_chromium_rel_ng': ['defaulttests'], |
|
Ken Russell (switch to Gerrit)
2014/12/12 18:45:40
Question: will the default try jobs against linux_
Sergiy Byelozyorov
2014/12/22 14:55:05
defaulttests is just a "dummy" value. Recipes do n
| |
| 1700 'linux_chromium_clang_dbg': ['defaulttests'], | 1699 'linux_chromium_clang_dbg': ['defaulttests'], |
| 1701 'linux_gpu': ['defaulttests'], | |
| 1702 'linux_nacl_sdk_build': ['compile'], | 1700 'linux_nacl_sdk_build': ['compile'], |
| 1703 'mac_chromium_compile_dbg': ['defaulttests'], | 1701 'mac_chromium_compile_dbg': ['defaulttests'], |
| 1704 'mac_chromium_compile_dbg_ng': ['defaulttests'], | 1702 'mac_chromium_compile_dbg_ng': ['defaulttests'], |
| 1705 'mac_chromium_rel': ['defaulttests'], | 1703 'mac_chromium_rel': ['defaulttests'], |
| 1706 'mac_chromium_rel_ng': ['defaulttests'], | 1704 'mac_chromium_rel_ng': ['defaulttests'], |
| 1707 'mac_nacl_sdk_build': ['compile'], | 1705 'mac_nacl_sdk_build': ['compile'], |
| 1708 'win_chromium_compile_dbg': ['defaulttests'], | 1706 'win_chromium_compile_dbg': ['defaulttests'], |
| 1709 'win_chromium_dbg': ['defaulttests'], | 1707 'win_chromium_dbg': ['defaulttests'], |
| 1710 'win_chromium_rel': ['defaulttests'], | 1708 'win_chromium_rel': ['defaulttests'], |
| 1711 'win_chromium_rel_ng': ['defaulttests'], | 1709 'win_chromium_rel_ng': ['defaulttests'], |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1787 'ios_dbg_simulator', | 1785 'ios_dbg_simulator', |
| 1788 'ios_rel_device', | 1786 'ios_rel_device', |
| 1789 'ios_rel_device_ninja', | 1787 'ios_rel_device_ninja', |
| 1790 'linux_chromium_asan_rel', | 1788 'linux_chromium_asan_rel', |
| 1791 'linux_chromium_chromeos_compile_dbg_ng', | 1789 'linux_chromium_chromeos_compile_dbg_ng', |
| 1792 'linux_chromium_chromeos_rel_ng', | 1790 'linux_chromium_chromeos_rel_ng', |
| 1793 'linux_chromium_compile_dbg_32_ng', | 1791 'linux_chromium_compile_dbg_32_ng', |
| 1794 'linux_chromium_gn_dbg', | 1792 'linux_chromium_gn_dbg', |
| 1795 'linux_chromium_gn_rel', | 1793 'linux_chromium_gn_rel', |
| 1796 'linux_chromium_rel_ng', | 1794 'linux_chromium_rel_ng', |
| 1797 'linux_gpu', | |
| 1798 'mac_chromium_compile_dbg_ng', | 1795 'mac_chromium_compile_dbg_ng', |
| 1799 'mac_chromium_rel_ng', | 1796 'mac_chromium_rel_ng', |
| 1800 'win_chromium_compile_dbg', | 1797 'win_chromium_compile_dbg', |
| 1801 'win_chromium_rel', | 1798 'win_chromium_rel', |
| 1802 'win_chromium_x64_rel', | 1799 'win_chromium_x64_rel', |
| 1803 'win_gpu', | 1800 'win_gpu', |
| 1804 'win8_chromium_rel', | 1801 'win8_chromium_rel', |
| 1805 ] | 1802 ] |
| 1806 | 1803 |
| 1807 # Match things like path/aura/file.cc and path/file_aura.cc. | 1804 # Match things like path/aura/file.cc and path/file_aura.cc. |
| 1808 # Same for chromeos. | 1805 # Same for chromeos. |
| 1809 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1806 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
| 1810 builders.extend([ | 1807 builders.extend([ |
| 1811 'linux_chromeos_asan', | 1808 'linux_chromeos_asan', |
| 1812 ]) | 1809 ]) |
| 1813 | 1810 |
| 1814 return GetDefaultTryConfigs(builders) | 1811 return GetDefaultTryConfigs(builders) |
| OLD | NEW |