Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: PRESUBMIT.py

Issue 461313002: Update presubmit files to send windows tryjobs to swarming bots, now that the CQ has switched over. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | base/PRESUBMIT.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1517 'linux_chromium_rel_swarming': ['defaulttests'], 1517 'linux_chromium_rel_swarming': ['defaulttests'],
1518 'linux_chromium_clang_dbg': ['defaulttests'], 1518 'linux_chromium_clang_dbg': ['defaulttests'],
1519 'linux_gpu': ['defaulttests'], 1519 'linux_gpu': ['defaulttests'],
1520 'linux_nacl_sdk_build': ['compile'], 1520 'linux_nacl_sdk_build': ['compile'],
1521 'mac_chromium_compile_dbg': ['defaulttests'], 1521 'mac_chromium_compile_dbg': ['defaulttests'],
1522 'mac_chromium_rel_swarming': ['defaulttests'], 1522 'mac_chromium_rel_swarming': ['defaulttests'],
1523 'mac_gpu': ['defaulttests'], 1523 'mac_gpu': ['defaulttests'],
1524 'mac_nacl_sdk_build': ['compile'], 1524 'mac_nacl_sdk_build': ['compile'],
1525 'win_chromium_compile_dbg': ['defaulttests'], 1525 'win_chromium_compile_dbg': ['defaulttests'],
1526 'win_chromium_dbg': ['defaulttests'], 1526 'win_chromium_dbg': ['defaulttests'],
1527 'win_chromium_rel': ['defaulttests'], 1527 'win_chromium_rel_swarming': ['defaulttests'],
1528 'win_chromium_x64_rel': ['defaulttests'], 1528 'win_chromium_x64_rel': ['defaulttests'],
1529 'win_gpu': ['defaulttests'], 1529 'win_gpu': ['defaulttests'],
1530 'win_nacl_sdk_build': ['compile'], 1530 'win_nacl_sdk_build': ['compile'],
1531 } 1531 }
1532 1532
1533 if bots: 1533 if bots:
1534 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) 1534 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot]))
1535 for bot in bots) 1535 for bot in bots)
1536 else: 1536 else:
1537 filtered_builders_and_tests = dict( 1537 filtered_builders_and_tests = dict(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 1570
1571 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files): 1571 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files):
1572 return {} 1572 return {}
1573 1573
1574 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files): 1574 if all(re.search('\.(m|mm)$|(^|[/_])mac[/_.]', f) for f in files):
1575 return GetDefaultTryConfigs([ 1575 return GetDefaultTryConfigs([
1576 'mac_chromium_compile_dbg', 1576 'mac_chromium_compile_dbg',
1577 'mac_chromium_rel_swarming', 1577 'mac_chromium_rel_swarming',
1578 ]) 1578 ])
1579 if all(re.search('(^|[/_])win[/_.]', f) for f in files): 1579 if all(re.search('(^|[/_])win[/_.]', f) for f in files):
1580 return GetDefaultTryConfigs(['win_chromium_dbg', 'win_chromium_rel']) 1580 return GetDefaultTryConfigs([
1581 'win_chromium_dbg',
1582 'win_chromium_rel_swarming',
1583 ])
1581 if all(re.search('(^|[/_])android[/_.]', f) for f in files): 1584 if all(re.search('(^|[/_])android[/_.]', f) for f in files):
1582 return GetDefaultTryConfigs([ 1585 return GetDefaultTryConfigs([
1583 'android_aosp', 1586 'android_aosp',
1584 'android_clang_dbg', 1587 'android_clang_dbg',
1585 'android_dbg', 1588 'android_dbg',
1586 ]) 1589 ])
1587 if all(re.search('[/_]ios[/_.]', f) for f in files): 1590 if all(re.search('[/_]ios[/_.]', f) for f in files):
1588 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator']) 1591 return GetDefaultTryConfigs(['ios_rel_device', 'ios_dbg_simulator'])
1589 1592
1590 builders = [ 1593 builders = [
1591 'android_chromium_gn_compile_rel', 1594 'android_chromium_gn_compile_rel',
1592 'android_clang_dbg', 1595 'android_clang_dbg',
1593 'android_dbg', 1596 'android_dbg',
1594 'ios_dbg_simulator', 1597 'ios_dbg_simulator',
1595 'ios_rel_device', 1598 'ios_rel_device',
1596 'linux_chromium_chromeos_rel_swarming', 1599 'linux_chromium_chromeos_rel_swarming',
1597 'linux_chromium_clang_dbg', 1600 'linux_chromium_clang_dbg',
1598 'linux_chromium_gn_rel', 1601 'linux_chromium_gn_rel',
1599 'linux_chromium_rel_swarming', 1602 'linux_chromium_rel_swarming',
1600 'linux_gpu', 1603 'linux_gpu',
1601 'mac_chromium_compile_dbg', 1604 'mac_chromium_compile_dbg',
1602 'mac_chromium_rel_swarming', 1605 'mac_chromium_rel_swarming',
1603 'mac_gpu', 1606 'mac_gpu',
1604 'win_chromium_compile_dbg', 1607 'win_chromium_compile_dbg',
1605 'win_chromium_rel', 1608 'win_chromium_rel_swarming',
1606 'win_chromium_x64_rel', 1609 'win_chromium_x64_rel',
1607 'win_gpu', 1610 'win_gpu',
1608 ] 1611 ]
1609 1612
1610 # Match things like path/aura/file.cc and path/file_aura.cc. 1613 # Match things like path/aura/file.cc and path/file_aura.cc.
1611 # Same for chromeos. 1614 # Same for chromeos.
1612 if any(re.search('[/_](aura|chromeos)', f) for f in files): 1615 if any(re.search('[/_](aura|chromeos)', f) for f in files):
1613 builders.extend([ 1616 builders.extend([
1614 'linux_chromeos_asan', 1617 'linux_chromeos_asan',
1615 'linux_chromium_chromeos_clang_dbg' 1618 'linux_chromium_chromeos_clang_dbg'
1616 ]) 1619 ])
1617 1620
1618 # If there are gyp changes to base, build, or chromeos, run a full cros build 1621 # If there are gyp changes to base, build, or chromeos, run a full cros build
1619 # in addition to the shorter linux_chromeos build. Changes to high level gyp 1622 # in addition to the shorter linux_chromeos build. Changes to high level gyp
1620 # files have a much higher chance of breaking the cros build, which is 1623 # files have a much higher chance of breaking the cros build, which is
1621 # differnt from the linux_chromeos build that most chrome developers test 1624 # differnt from the linux_chromeos build that most chrome developers test
1622 # with. 1625 # with.
1623 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files): 1626 if any(re.search('^(base|build|chromeos).*\.gypi?$', f) for f in files):
1624 builders.extend(['cros_x86']) 1627 builders.extend(['cros_x86'])
1625 1628
1626 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it 1629 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it
1627 # unless they're .gyp(i) files as changes to those files can break the gyp 1630 # unless they're .gyp(i) files as changes to those files can break the gyp
1628 # step on that bot. 1631 # step on that bot.
1629 if (not all(re.search('^chrome', f) for f in files) or 1632 if (not all(re.search('^chrome', f) for f in files) or
1630 any(re.search('\.gypi?$', f) for f in files)): 1633 any(re.search('\.gypi?$', f) for f in files)):
1631 builders.extend(['android_aosp']) 1634 builders.extend(['android_aosp'])
1632 1635
1633 return GetDefaultTryConfigs(builders) 1636 return GetDefaultTryConfigs(builders)
OLDNEW
« no previous file with comments | « no previous file | base/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698