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 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1614 'mac_asan': ['compile'], | 1614 'mac_asan': ['compile'], |
1615 #TODO(stip): Change the name of this builder to reflect that it's release. | 1615 #TODO(stip): Change the name of this builder to reflect that it's release. |
1616 'linux_gtk': standard_tests, | 1616 'linux_gtk': standard_tests, |
1617 'linux_chromeos_asan': ['compile'], | 1617 'linux_chromeos_asan': ['compile'], |
1618 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], | 1618 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], |
1619 'linux_chromium_chromeos_rel': ['defaulttests'], | 1619 'linux_chromium_chromeos_rel': ['defaulttests'], |
1620 'linux_chromium_compile_dbg': ['defaulttests'], | 1620 'linux_chromium_compile_dbg': ['defaulttests'], |
1621 'linux_chromium_gn_dbg': ['compile'], | 1621 'linux_chromium_gn_dbg': ['compile'], |
1622 'linux_chromium_gn_rel': ['defaulttests'], | 1622 'linux_chromium_gn_rel': ['defaulttests'], |
1623 'linux_chromium_rel': ['defaulttests'], | 1623 'linux_chromium_rel': ['defaulttests'], |
1624 'linux_chromium_rel_ng': ['defaulttests'], | |
1624 'linux_chromium_clang_dbg': ['defaulttests'], | 1625 'linux_chromium_clang_dbg': ['defaulttests'], |
1625 'linux_gpu': ['defaulttests'], | 1626 'linux_gpu': ['defaulttests'], |
1626 'linux_nacl_sdk_build': ['compile'], | 1627 'linux_nacl_sdk_build': ['compile'], |
1627 'mac_chromium_compile_dbg': ['defaulttests'], | 1628 'mac_chromium_compile_dbg': ['defaulttests'], |
1628 'mac_chromium_rel': ['defaulttests'], | 1629 'mac_chromium_rel': ['defaulttests'], |
Sergiy Byelozyorov
2014/10/30 10:16:40
Why keep the old ones?
Paweł Hajdan Jr.
2014/10/30 10:19:10
This helps avoid a possible presubmit crash with a
Sergiy Byelozyorov
2014/10/30 10:39:24
Can you elaborate please? Why would presubmit use
Paweł Hajdan Jr.
2014/10/30 10:48:59
Please see "dereference" on line 1645 and trace ba
Sergiy Byelozyorov
2014/10/30 10:52:57
The downside is keeping dead code. But I see now h
| |
1630 'mac_chromium_rel_ng': ['defaulttests'], | |
1629 'mac_gpu': ['defaulttests'], | 1631 'mac_gpu': ['defaulttests'], |
1630 'mac_nacl_sdk_build': ['compile'], | 1632 'mac_nacl_sdk_build': ['compile'], |
1631 'win_chromium_compile_dbg': ['defaulttests'], | 1633 'win_chromium_compile_dbg': ['defaulttests'], |
1632 'win_chromium_dbg': ['defaulttests'], | 1634 'win_chromium_dbg': ['defaulttests'], |
1633 'win_chromium_rel': ['defaulttests'], | 1635 'win_chromium_rel': ['defaulttests'], |
1636 'win_chromium_rel_ng': ['defaulttests'], | |
1634 'win_chromium_x64_rel': ['defaulttests'], | 1637 'win_chromium_x64_rel': ['defaulttests'], |
1638 'win_chromium_x64_rel_ng': ['defaulttests'], | |
1635 'win_gpu': ['defaulttests'], | 1639 'win_gpu': ['defaulttests'], |
1636 'win_nacl_sdk_build': ['compile'], | 1640 'win_nacl_sdk_build': ['compile'], |
1637 'win8_chromium_rel': ['defaulttests'], | 1641 'win8_chromium_rel': ['defaulttests'], |
1638 } | 1642 } |
1639 | 1643 |
1640 if bots: | 1644 if bots: |
1641 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) | 1645 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) |
1642 for bot in bots) | 1646 for bot in bots) |
1643 else: | 1647 else: |
1644 filtered_builders_and_tests = dict( | 1648 filtered_builders_and_tests = dict( |
(...skipping 29 matching lines...) Expand all Loading... | |
1674 def GetPreferredTryMasters(project, change): | 1678 def GetPreferredTryMasters(project, change): |
1675 import re | 1679 import re |
1676 files = change.LocalPaths() | 1680 files = change.LocalPaths() |
1677 | 1681 |
1678 if not files or all(re.search(r'[\\\/]OWNERS$', f) for f in files): | 1682 if not files or all(re.search(r'[\\\/]OWNERS$', f) for f in files): |
1679 return {} | 1683 return {} |
1680 | 1684 |
1681 if all(re.search(r'\.(m|mm)$|(^|[\\\/_])mac[\\\/_.]', f) for f in files): | 1685 if all(re.search(r'\.(m|mm)$|(^|[\\\/_])mac[\\\/_.]', f) for f in files): |
1682 return GetDefaultTryConfigs([ | 1686 return GetDefaultTryConfigs([ |
1683 'mac_chromium_compile_dbg', | 1687 'mac_chromium_compile_dbg', |
1684 'mac_chromium_rel', | 1688 'mac_chromium_rel_ng', |
1685 ]) | 1689 ]) |
1686 if all(re.search('(^|[/_])win[/_.]', f) for f in files): | 1690 if all(re.search('(^|[/_])win[/_.]', f) for f in files): |
1687 return GetDefaultTryConfigs([ | 1691 return GetDefaultTryConfigs([ |
1688 'win_chromium_dbg', | 1692 'win_chromium_dbg', |
1689 'win_chromium_rel', | 1693 'win_chromium_rel_ng', |
1690 'win8_chromium_rel', | 1694 'win8_chromium_rel', |
1691 ]) | 1695 ]) |
1692 if all(re.search(r'(^|[\\\/_])android[\\\/_.]', f) for f in files): | 1696 if all(re.search(r'(^|[\\\/_])android[\\\/_.]', f) for f in files): |
1693 return GetDefaultTryConfigs([ | 1697 return GetDefaultTryConfigs([ |
1694 'android_aosp', | 1698 'android_aosp', |
1695 'android_clang_dbg', | 1699 'android_clang_dbg', |
1696 'android_dbg_tests_recipe', | 1700 'android_dbg_tests_recipe', |
1697 ]) | 1701 ]) |
1698 if all(re.search(r'[\\\/_]ios[\\\/_.]', f) for f in files): | 1702 if all(re.search(r'[\\\/_]ios[\\\/_.]', f) for f in files): |
1699 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) | 1703 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) |
1700 | 1704 |
1701 builders = [ | 1705 builders = [ |
1702 'android_arm64_dbg_recipe', | 1706 'android_arm64_dbg_recipe', |
1703 'android_chromium_gn_compile_rel', | 1707 'android_chromium_gn_compile_rel', |
1704 'android_chromium_gn_compile_dbg', | 1708 'android_chromium_gn_compile_dbg', |
1705 'android_clang_dbg', | 1709 'android_clang_dbg', |
1706 'android_clang_dbg_recipe', | 1710 'android_clang_dbg_recipe', |
1707 'android_dbg_tests_recipe', | 1711 'android_dbg_tests_recipe', |
1708 'ios_dbg_simulator', | 1712 'ios_dbg_simulator', |
1709 'ios_rel_device', | 1713 'ios_rel_device', |
1710 'ios_rel_device_ninja', | 1714 'ios_rel_device_ninja', |
1711 'linux_chromium_chromeos_rel', | 1715 'linux_chromium_chromeos_rel', |
1712 'linux_chromium_clang_dbg', | 1716 'linux_chromium_clang_dbg', |
1713 'linux_chromium_gn_dbg', | 1717 'linux_chromium_gn_dbg', |
1714 'linux_chromium_gn_rel', | 1718 'linux_chromium_gn_rel', |
1715 'linux_chromium_rel', | 1719 'linux_chromium_rel_ng', |
1716 'linux_gpu', | 1720 'linux_gpu', |
1717 'mac_chromium_compile_dbg', | 1721 'mac_chromium_compile_dbg', |
1718 'mac_chromium_rel', | 1722 'mac_chromium_rel_ng', |
1719 'mac_gpu', | 1723 'mac_gpu', |
1720 'win_chromium_compile_dbg', | 1724 'win_chromium_compile_dbg', |
1721 'win_chromium_rel', | 1725 'win_chromium_rel_ng', |
1722 'win_chromium_x64_rel', | 1726 'win_chromium_x64_rel_ng', |
1723 'win_gpu', | 1727 'win_gpu', |
1724 'win8_chromium_rel', | 1728 'win8_chromium_rel', |
1725 ] | 1729 ] |
1726 | 1730 |
1727 # Match things like path/aura/file.cc and path/file_aura.cc. | 1731 # Match things like path/aura/file.cc and path/file_aura.cc. |
1728 # Same for chromeos. | 1732 # Same for chromeos. |
1729 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): | 1733 if any(re.search(r'[\\\/_](aura|chromeos)', f) for f in files): |
1730 builders.extend([ | 1734 builders.extend([ |
1731 'linux_chromeos_asan', | 1735 'linux_chromeos_asan', |
1732 'linux_chromium_chromeos_clang_dbg' | 1736 'linux_chromium_chromeos_clang_dbg' |
1733 ]) | 1737 ]) |
1734 | 1738 |
1735 # If there are gyp changes to base, build, or chromeos, run a full cros build | 1739 # If there are gyp changes to base, build, or chromeos, run a full cros build |
1736 # in addition to the shorter linux_chromeos build. Changes to high level gyp | 1740 # in addition to the shorter linux_chromeos build. Changes to high level gyp |
1737 # files have a much higher chance of breaking the cros build, which is | 1741 # files have a much higher chance of breaking the cros build, which is |
1738 # differnt from the linux_chromeos build that most chrome developers test | 1742 # differnt from the linux_chromeos build that most chrome developers test |
1739 # with. | 1743 # with. |
1740 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): | 1744 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): |
1741 builders.extend(['cros_x86']) | 1745 builders.extend(['cros_x86']) |
1742 | 1746 |
1743 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | 1747 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it |
1744 # unless they're .gyp(i) files as changes to those files can break the gyp | 1748 # unless they're .gyp(i) files as changes to those files can break the gyp |
1745 # step on that bot. | 1749 # step on that bot. |
1746 if (not all(re.search('^chrome', f) for f in files) or | 1750 if (not all(re.search('^chrome', f) for f in files) or |
1747 any(re.search('\.gypi?$', f) for f in files)): | 1751 any(re.search('\.gypi?$', f) for f in files)): |
1748 builders.extend(['android_aosp']) | 1752 builders.extend(['android_aosp']) |
1749 | 1753 |
1750 return GetDefaultTryConfigs(builders) | 1754 return GetDefaultTryConfigs(builders) |
OLD | NEW |