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

Side by Side Diff: content/test/gpu/generate_buildbot_json.py

Issue 2652223002: Disable swarming for tests where it's disabled on builder level (FYI masters) (Closed)
Patch Set: review Created 3 years, 10 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
« no previous file with comments | « no previous file | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 The Chromium Authors. All rights reserved. 2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in 6 """Script to generate chromium.gpu.json and chromium.gpu.fyi.json in
7 the src/testing/buildbot directory. Maintaining these files by hand is 7 the src/testing/buildbot directory. Maintaining these files by hand is
8 too unwieldy. 8 too unwieldy.
9 """ 9 """
10 10
(...skipping 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after
1633 if 'test' in result: 1633 if 'test' in result:
1634 result['name'] = test 1634 result['name'] = test
1635 else: 1635 else:
1636 result['test'] = test 1636 result['test'] = test
1637 if (not tester_config['swarming']) and test in NON_SWARMED_GTESTS: 1637 if (not tester_config['swarming']) and test in NON_SWARMED_GTESTS:
1638 # Need to override this result. 1638 # Need to override this result.
1639 result = copy.deepcopy(NON_SWARMED_GTESTS[test]) 1639 result = copy.deepcopy(NON_SWARMED_GTESTS[test])
1640 result['name'] = test 1640 result['name'] = test
1641 else: 1641 else:
1642 # Put the swarming dimensions in anyway. If the tester is later 1642 # Put the swarming dimensions in anyway. If the tester is later
1643 # swarmed, they will come in handy. 1643 # swarmed, they will come in handy.
Dirk Pranke 2017/01/25 20:22:07 this comment and the comment down on lines 1754-17
1644 if not 'swarming' in result: 1644 if not 'swarming' in result:
1645 result['swarming'] = {} 1645 result['swarming'] = {}
1646 result['swarming'].update({ 1646 result['swarming'].update({
1647 'can_use_on_swarming_builders': True, 1647 'can_use_on_swarming_builders': tester_config['swarming'],
1648 'dimension_sets': tester_config['swarming_dimensions'] 1648 'dimension_sets': tester_config['swarming_dimensions']
1649 }) 1649 })
1650 if is_android(tester_config): 1650 if is_android(tester_config):
1651 # Override the isolate target to get rid of any "_apk" suffix 1651 # Override the isolate target to get rid of any "_apk" suffix
1652 # that would be added by the recipes. 1652 # that would be added by the recipes.
1653 if 'test' in result: 1653 if 'test' in result:
1654 result['override_isolate_target'] = result['test'] 1654 result['override_isolate_target'] = result['test']
1655 else: 1655 else:
1656 result['override_isolate_target'] = result['name'] 1656 result['override_isolate_target'] = result['name']
1657 # Integrate with the unified logcat system. 1657 # Integrate with the unified logcat system.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 # The step name must end in 'test' or 'tests' in order for the 1745 # The step name must end in 'test' or 'tests' in order for the
1746 # results to automatically show up on the flakiness dashboard. 1746 # results to automatically show up on the flakiness dashboard.
1747 # (At least, this was true some time ago.) Continue to use this 1747 # (At least, this was true some time ago.) Continue to use this
1748 # naming convention for the time being to minimize changes. 1748 # naming convention for the time being to minimize changes.
1749 step_name = test 1749 step_name = test
1750 if not (step_name.endswith('test') or step_name.endswith('tests')): 1750 if not (step_name.endswith('test') or step_name.endswith('tests')):
1751 step_name = '%s_tests' % step_name 1751 step_name = '%s_tests' % step_name
1752 # Prepend GPU-specific flags. 1752 # Prepend GPU-specific flags.
1753 swarming = { 1753 swarming = {
1754 # Always say this is true regardless of whether the tester 1754 # Always say this is true regardless of whether the tester
1755 # supports swarming. It doesn't hurt. 1755 # supports swarming. It doesn't hurt.
Ken Russell (switch to Gerrit) 2017/01/25 22:28:09 Agree with Dirk's comment above. Please update thi
1756 'can_use_on_swarming_builders': True, 1756 'can_use_on_swarming_builders': tester_config['swarming'],
1757 'dimension_sets': tester_config['swarming_dimensions'] 1757 'dimension_sets': tester_config['swarming_dimensions']
1758 } 1758 }
1759 if 'swarming' in test_config: 1759 if 'swarming' in test_config:
1760 swarming.update(test_config['swarming']) 1760 swarming.update(test_config['swarming'])
1761 result = { 1761 result = {
1762 'args': prefix_args + test_args, 1762 'args': prefix_args + test_args,
1763 'isolate_name': isolate_name, 1763 'isolate_name': isolate_name,
1764 'name': step_name, 1764 'name': step_name,
1765 'swarming': swarming, 1765 'swarming': swarming,
1766 } 1766 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1837 fp.write('\n') 1837 fp.write('\n')
1838 1838
1839 def main(): 1839 def main():
1840 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json', True, False) 1840 generate_all_tests(FYI_WATERFALL, 'chromium.gpu.fyi.json', True, False)
1841 generate_all_tests(WATERFALL, 'chromium.gpu.json', False, False) 1841 generate_all_tests(WATERFALL, 'chromium.gpu.json', False, False)
1842 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json', True, True) 1842 generate_all_tests(V8_FYI_WATERFALL, 'client.v8.fyi.json', True, True)
1843 return 0 1843 return 0
1844 1844
1845 if __name__ == "__main__": 1845 if __name__ == "__main__":
1846 sys.exit(main()) 1846 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/chromium.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698