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

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

Issue 2238333002: gpu: Fix gtest recipes to be compatible with unified swarming logcat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: only android Created 4 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
« no previous file with comments | « no previous file | testing/buildbot/chromium.gpu.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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 result['name'] = test 1083 result['name'] = test
1084 else: 1084 else:
1085 # Put the swarming dimensions in anyway. If the tester is later 1085 # Put the swarming dimensions in anyway. If the tester is later
1086 # swarmed, they will come in handy. 1086 # swarmed, they will come in handy.
1087 if not 'swarming' in result: 1087 if not 'swarming' in result:
1088 result['swarming'] = {} 1088 result['swarming'] = {}
1089 result['swarming'].update({ 1089 result['swarming'].update({
1090 'can_use_on_swarming_builders': True, 1090 'can_use_on_swarming_builders': True,
1091 'dimension_sets': [ 1091 'dimension_sets': [
1092 tester_config['swarming_dimensions'] 1092 tester_config['swarming_dimensions']
1093 ], 1093 ]
1094 }) 1094 })
1095 if is_android(tester_config): 1095 if is_android(tester_config):
1096 # Override the isolate target to get rid of any "_apk" suffix 1096 # Override the isolate target to get rid of any "_apk" suffix
1097 # that would be added by the recipes. 1097 # that would be added by the recipes.
1098 result['override_isolate_target'] = test 1098 result['override_isolate_target'] = test
1099 # Integrate with the unified logcat system.
1100 result['swarming'].update({
1101 'cipd_packages': [
1102 {
1103 'cipd_package': 'infra/tools/luci/logdog/butler/${platform}',
1104 'location': 'bin',
1105 'revision': 'git_revision:3ff24775a900b675866fbcacf2a8f98a18b2a16a'
1106 }
1107 ],
1108 'output_links': [
1109 {
1110 'link': [
1111 'https://luci-logdog.appspot.com/v/?s',
1112 '=android%2Fswarming%2Flogcats%2F',
1113 '${TASK_ID}%2F%2B%2Funified_logcats'
1114 ],
1115 'name': 'shard #${SHARD_INDEX} logcats'
1116 }
1117 ]
1118 })
1099 if 'desktop_args' in result: 1119 if 'desktop_args' in result:
1100 if not is_android(tester_config): 1120 if not is_android(tester_config):
1101 if not 'args' in result: 1121 if not 'args' in result:
1102 result['args'] = [] 1122 result['args'] = []
1103 result['args'] += result['desktop_args'] 1123 result['args'] += result['desktop_args']
1104 # Don't put the desktop args in the JSON. 1124 # Don't put the desktop args in the JSON.
1105 result.pop('desktop_args') 1125 result.pop('desktop_args')
1106 1126
1107 # This flag only has an effect on the Linux bots that run tests 1127 # This flag only has an effect on the Linux bots that run tests
1108 # locally (as opposed to via Swarming), which are only those couple 1128 # locally (as opposed to via Swarming), which are only those couple
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) 1240 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True)
1221 fp.write('\n') 1241 fp.write('\n')
1222 1242
1223 def main(): 1243 def main():
1224 generate_all_tests(FYI_WATERFALL, True) 1244 generate_all_tests(FYI_WATERFALL, True)
1225 generate_all_tests(WATERFALL, False) 1245 generate_all_tests(WATERFALL, False)
1226 return 0 1246 return 0
1227 1247
1228 if __name__ == "__main__": 1248 if __name__ == "__main__":
1229 sys.exit(main()) 1249 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/chromium.gpu.fyi.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698