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 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1610 'net_unittests', | 1610 'net_unittests', |
1611 'sql_unittests', | 1611 'sql_unittests', |
1612 'ui_base_unittests', | 1612 'ui_base_unittests', |
1613 ], | 1613 ], |
1614 'ios_rel_device': ['compile'], | 1614 'ios_rel_device': ['compile'], |
1615 'ios_rel_device_ninja': ['compile'], | 1615 'ios_rel_device_ninja': ['compile'], |
1616 'mac_asan': ['compile'], | 1616 'mac_asan': ['compile'], |
1617 #TODO(stip): Change the name of this builder to reflect that it's release. | 1617 #TODO(stip): Change the name of this builder to reflect that it's release. |
1618 'linux_gtk': standard_tests, | 1618 'linux_gtk': standard_tests, |
1619 'linux_chromeos_asan': ['compile'], | 1619 'linux_chromeos_asan': ['compile'], |
1620 'linux_chromium_asan_rel': ['defaulttests'], | |
1620 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], | 1621 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], |
1622 'linux_chromium_chromeos_compile_dbg_ng': ['defaulttests'], | |
1621 'linux_chromium_chromeos_rel': ['defaulttests'], | 1623 'linux_chromium_chromeos_rel': ['defaulttests'], |
1624 'linux_chromium_chromeos_rel_ng': ['defaulttests'], | |
1622 'linux_chromium_compile_dbg': ['defaulttests'], | 1625 'linux_chromium_compile_dbg': ['defaulttests'], |
1626 'linux_chromium_compile_dbg_32_ng': ['compile'], | |
1623 'linux_chromium_gn_dbg': ['compile'], | 1627 'linux_chromium_gn_dbg': ['compile'], |
1624 'linux_chromium_gn_rel': ['defaulttests'], | 1628 'linux_chromium_gn_rel': ['defaulttests'], |
1625 'linux_chromium_rel': ['defaulttests'], | 1629 'linux_chromium_rel': ['defaulttests'], |
1626 'linux_chromium_rel_ng': ['defaulttests'], | 1630 'linux_chromium_rel_ng': ['defaulttests'], |
1627 'linux_chromium_clang_dbg': ['defaulttests'], | 1631 'linux_chromium_clang_dbg': ['defaulttests'], |
1628 'linux_gpu': ['defaulttests'], | 1632 'linux_gpu': ['defaulttests'], |
1629 'linux_nacl_sdk_build': ['compile'], | 1633 'linux_nacl_sdk_build': ['compile'], |
1630 'mac_chromium_compile_dbg': ['defaulttests'], | 1634 'mac_chromium_compile_dbg': ['defaulttests'], |
1635 'mac_chromium_compile_dbg_ng': ['defaulttests'], | |
1631 'mac_chromium_rel': ['defaulttests'], | 1636 'mac_chromium_rel': ['defaulttests'], |
1632 'mac_chromium_rel_ng': ['defaulttests'], | 1637 'mac_chromium_rel_ng': ['defaulttests'], |
1633 'mac_gpu': ['defaulttests'], | 1638 'mac_gpu': ['defaulttests'], |
1634 'mac_nacl_sdk_build': ['compile'], | 1639 'mac_nacl_sdk_build': ['compile'], |
1635 'win_chromium_compile_dbg': ['defaulttests'], | 1640 'win_chromium_compile_dbg': ['defaulttests'], |
1636 'win_chromium_dbg': ['defaulttests'], | 1641 'win_chromium_dbg': ['defaulttests'], |
1637 'win_chromium_rel': ['defaulttests'], | 1642 'win_chromium_rel': ['defaulttests'], |
1638 'win_chromium_rel_ng': ['defaulttests'], | 1643 'win_chromium_rel_ng': ['defaulttests'], |
1639 'win_chromium_x64_rel': ['defaulttests'], | 1644 'win_chromium_x64_rel': ['defaulttests'], |
1640 'win_chromium_x64_rel_ng': ['defaulttests'], | 1645 'win_chromium_x64_rel_ng': ['defaulttests'], |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1679 | 1684 |
1680 def GetPreferredTryMasters(project, change): | 1685 def GetPreferredTryMasters(project, change): |
1681 import re | 1686 import re |
1682 files = change.LocalPaths() | 1687 files = change.LocalPaths() |
1683 | 1688 |
1684 if not files or all(re.search(r'[\\\/]OWNERS$', f) for f in files): | 1689 if not files or all(re.search(r'[\\\/]OWNERS$', f) for f in files): |
1685 return {} | 1690 return {} |
1686 | 1691 |
1687 if all(re.search(r'\.(m|mm)$|(^|[\\\/_])mac[\\\/_.]', f) for f in files): | 1692 if all(re.search(r'\.(m|mm)$|(^|[\\\/_])mac[\\\/_.]', f) for f in files): |
1688 return GetDefaultTryConfigs([ | 1693 return GetDefaultTryConfigs([ |
1689 'mac_chromium_compile_dbg', | 1694 'mac_chromium_compile_dbg_ng', |
1690 'mac_chromium_rel_ng', | 1695 'mac_chromium_rel_ng', |
1691 ]) | 1696 ]) |
1692 if all(re.search('(^|[/_])win[/_.]', f) for f in files): | 1697 if all(re.search('(^|[/_])win[/_.]', f) for f in files): |
1693 return GetDefaultTryConfigs([ | 1698 return GetDefaultTryConfigs([ |
1694 'win_chromium_dbg', | 1699 'win_chromium_dbg', |
1695 'win_chromium_rel_ng', | 1700 'win_chromium_rel', |
1696 'win8_chromium_rel', | 1701 'win8_chromium_rel', |
1697 ]) | 1702 ]) |
1698 if all(re.search(r'(^|[\\\/_])android[\\\/_.]', f) for f in files): | 1703 if all(re.search(r'(^|[\\\/_])android[\\\/_.]', f) for f in files): |
1699 return GetDefaultTryConfigs([ | 1704 return GetDefaultTryConfigs([ |
1700 'android_aosp', | 1705 'android_aosp', |
1701 'android_dbg_tests_recipe', | 1706 'android_dbg_tests_recipe', |
1702 ]) | 1707 ]) |
1703 if all(re.search(r'[\\\/_]ios[\\\/_.]', f) for f in files): | 1708 if all(re.search(r'[\\\/_]ios[\\\/_.]', f) for f in files): |
1704 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) | 1709 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) |
1705 | 1710 |
1706 builders = [ | 1711 builders = [ |
1712 'android_aosp', | |
1707 'android_arm64_dbg_recipe', | 1713 'android_arm64_dbg_recipe', |
1708 'android_chromium_gn_compile_rel', | 1714 'android_chromium_gn_compile_rel', |
1709 'android_chromium_gn_compile_dbg', | 1715 'android_chromium_gn_compile_dbg', |
1710 'android_clang_dbg_recipe', | 1716 'android_clang_dbg_recipe', |
1711 'android_dbg_tests_recipe', | 1717 'android_dbg_tests_recipe', |
1712 'ios_dbg_simulator', | 1718 'ios_dbg_simulator', |
1713 'ios_rel_device', | 1719 'ios_rel_device', |
1714 'ios_rel_device_ninja', | 1720 'ios_rel_device_ninja', |
1715 'linux_chromium_chromeos_rel', | 1721 'linux_chromium_asan_rel', |
1722 'linux_chromium_chromeos_compile_dbg_ng', | |
1723 'linux_chromium_chromeos_rel_ng', | |
1724 'linux_chromium_compile_dbg_32_ng', | |
1716 'linux_chromium_gn_dbg', | 1725 'linux_chromium_gn_dbg', |
1717 'linux_chromium_gn_rel', | 1726 'linux_chromium_gn_rel', |
1718 'linux_chromium_rel_ng', | 1727 'linux_chromium_rel_ng', |
1719 'linux_gpu', | 1728 'linux_gpu', |
1720 'mac_chromium_compile_dbg', | 1729 'mac_chromium_compile_dbg_ng', |
1721 'mac_chromium_rel_ng', | 1730 'mac_chromium_rel_ng', |
1722 'mac_gpu', | 1731 'mac_gpu', |
1723 'win_chromium_compile_dbg', | 1732 'win_chromium_compile_dbg', |
1724 'win_chromium_rel_ng', | 1733 'win_chromium_rel', |
1725 'win_chromium_x64_rel_ng', | 1734 'win_chromium_x64_rel', |
1726 'win_gpu', | 1735 'win_gpu', |
1727 'win8_chromium_rel', | 1736 'win8_chromium_rel', |
1728 ] | 1737 ] |
1729 | 1738 |
1730 # Match things like path/aura/file.cc and path/file_aura.cc. | 1739 # Match things like path/aura/file.cc and path/file_aura.cc. |
1731 # Same for chromeos. | 1740 # Same for chromeos. |
1732 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1741 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
1733 builders.extend([ | 1742 builders.extend([ |
1734 'linux_chromeos_asan', | 1743 'linux_chromeos_asan', |
1735 ]) | 1744 ]) |
1736 | 1745 |
1737 # If there are gyp changes to base, build, or chromeos, run a full cros build | 1746 # If there are gyp changes to base, build, or chromeos, run a full cros build |
1738 # in addition to the shorter linux_chromeos build. Changes to high level gyp | 1747 # in addition to the shorter linux_chromeos build. Changes to high level gyp |
1739 # files have a much higher chance of breaking the cros build, which is | 1748 # files have a much higher chance of breaking the cros build, which is |
1740 # differnt from the linux_chromeos build that most chrome developers test | 1749 # differnt from the linux_chromeos build that most chrome developers test |
1741 # with. | 1750 # with. |
1742 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): | 1751 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): |
1743 builders.extend(['cros_x86']) | 1752 builders.extend(['cros_x86']) |
Paweł Hajdan Jr.
2014/11/25 13:02:05
I think this builder no longer exists, consider al
Sergey Berezin
2014/11/25 20:25:15
Indeed, I can't find it in the builders list. Inci
| |
1744 | 1753 |
1745 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | |
1746 # unless they're .gyp(i) files as changes to those files can break the gyp | |
1747 # step on that bot. | |
1748 if (not all(re.search('^chrome', f) for f in files) or | |
1749 any(re.search('\.gypi?$', f) for f in files)): | |
1750 builders.extend(['android_aosp']) | |
1751 | |
1752 return GetDefaultTryConfigs(builders) | 1754 return GetDefaultTryConfigs(builders) |
OLD | NEW |