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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1490 'linux_gtk': standard_tests, | 1490 'linux_gtk': standard_tests, |
1491 'linux_chromeos_asan': ['compile'], | 1491 'linux_chromeos_asan': ['compile'], |
1492 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], | 1492 'linux_chromium_chromeos_clang_dbg': ['defaulttests'], |
1493 'linux_chromium_chromeos_rel': ['defaulttests'], | 1493 'linux_chromium_chromeos_rel': ['defaulttests'], |
1494 'linux_chromium_compile_dbg': ['defaulttests'], | 1494 'linux_chromium_compile_dbg': ['defaulttests'], |
1495 'linux_chromium_gn_rel': ['defaulttests'], | 1495 'linux_chromium_gn_rel': ['defaulttests'], |
1496 'linux_chromium_rel': ['defaulttests'], | 1496 'linux_chromium_rel': ['defaulttests'], |
1497 'linux_chromium_clang_dbg': ['defaulttests'], | 1497 'linux_chromium_clang_dbg': ['defaulttests'], |
1498 'linux_gpu': ['defaulttests'], | 1498 'linux_gpu': ['defaulttests'], |
1499 'linux_nacl_sdk_build': ['compile'], | 1499 'linux_nacl_sdk_build': ['compile'], |
1500 'linux_rel': [ | |
1501 'telemetry_perf_unittests', | |
1502 'telemetry_unittests', | |
1503 ], | |
1504 'mac_chromium_compile_dbg': ['defaulttests'], | 1500 'mac_chromium_compile_dbg': ['defaulttests'], |
1505 'mac_chromium_rel': ['defaulttests'], | 1501 'mac_chromium_rel': ['defaulttests'], |
1506 'mac_gpu': ['defaulttests'], | 1502 'mac_gpu': ['defaulttests'], |
1507 'mac_nacl_sdk_build': ['compile'], | 1503 'mac_nacl_sdk_build': ['compile'], |
1508 'mac_rel': [ | |
1509 'telemetry_perf_unittests', | |
1510 'telemetry_unittests', | |
1511 ], | |
1512 'win': ['compile'], | |
1513 'win_chromium_compile_dbg': ['defaulttests'], | 1504 'win_chromium_compile_dbg': ['defaulttests'], |
1514 'win_chromium_dbg': ['defaulttests'], | 1505 'win_chromium_dbg': ['defaulttests'], |
1515 'win_chromium_rel': ['defaulttests'], | 1506 'win_chromium_rel': ['defaulttests'], |
1516 'win_chromium_x64_rel': ['defaulttests'], | 1507 'win_chromium_x64_rel': ['defaulttests'], |
1517 'win_gpu': ['defaulttests'], | 1508 'win_gpu': ['defaulttests'], |
1518 'win_nacl_sdk_build': ['compile'], | 1509 'win_nacl_sdk_build': ['compile'], |
1519 'win_rel': standard_tests + [ | |
1520 'app_list_unittests', | |
1521 'ash_unittests', | |
1522 'aura_unittests', | |
1523 'cc_unittests', | |
1524 'chrome_elf_unittests', | |
1525 'chromedriver_unittests', | |
1526 'components_unittests', | |
1527 'compositor_unittests', | |
1528 'events_unittests', | |
1529 'gfx_unittests', | |
1530 'google_apis_unittests', | |
1531 'installer_util_unittests', | |
1532 'test_mini_installer', | |
1533 'nacl_integration', | |
1534 'remoting_unittests', | |
1535 'sync_integration_tests', | |
1536 'telemetry_perf_unittests', | |
1537 'telemetry_unittests', | |
1538 'views_unittests', | |
1539 ], | |
1540 'win_x64_rel': [ | |
1541 'base_unittests', | |
1542 ], | |
1543 } | 1510 } |
1544 | 1511 |
1545 swarm_enabled_builders = ( | |
kjellander_chromium
2014/06/09 12:12:31
Is it right to remove this as well in this CL? It
Paweł Hajdan Jr.
2014/06/09 12:26:39
Yes, I think the new swarming-enabled bots would w
| |
1546 # http://crbug.com/354263 | |
1547 # 'linux_rel', | |
1548 # 'mac_rel', | |
1549 # 'win_rel', | |
1550 ) | |
1551 | |
1552 swarm_enabled_tests = ( | |
1553 'base_unittests', | |
1554 'browser_tests', | |
1555 'interactive_ui_tests', | |
1556 'net_unittests', | |
1557 'unit_tests', | |
1558 ) | |
1559 | |
1560 for bot in builders_and_tests: | |
1561 if bot in swarm_enabled_builders: | |
1562 builders_and_tests[bot] = [x + '_swarm' if x in swarm_enabled_tests else x | |
1563 for x in builders_and_tests[bot]] | |
1564 | |
1565 if bots: | 1512 if bots: |
1566 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) | 1513 filtered_builders_and_tests = dict((bot, set(builders_and_tests[bot])) |
1567 for bot in bots) | 1514 for bot in bots) |
1568 else: | 1515 else: |
1569 filtered_builders_and_tests = dict( | 1516 filtered_builders_and_tests = dict( |
1570 (bot, set(tests)) | 1517 (bot, set(tests)) |
1571 for bot, tests in builders_and_tests.iteritems()) | 1518 for bot, tests in builders_and_tests.iteritems()) |
1572 | 1519 |
1573 # Build up the mapping from tryserver master to bot/test. | 1520 # Build up the mapping from tryserver master to bot/test. |
1574 out = dict() | 1521 out = dict() |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1656 builders.extend(['cros_x86']) | 1603 builders.extend(['cros_x86']) |
1657 | 1604 |
1658 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it | 1605 # The AOSP bot doesn't build the chrome/ layer, so ignore any changes to it |
1659 # unless they're .gyp(i) files as changes to those files can break the gyp | 1606 # unless they're .gyp(i) files as changes to those files can break the gyp |
1660 # step on that bot. | 1607 # step on that bot. |
1661 if (not all(re.search('^chrome', f) for f in files) or | 1608 if (not all(re.search('^chrome', f) for f in files) or |
1662 any(re.search('\.gypi?$', f) for f in files)): | 1609 any(re.search('\.gypi?$', f) for f in files)): |
1663 builders.extend(['android_aosp']) | 1610 builders.extend(['android_aosp']) |
1664 | 1611 |
1665 return GetDefaultTryConfigs(builders) | 1612 return GetDefaultTryConfigs(builders) |
OLD | NEW |