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

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: 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.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 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 # Need to override this result. 1081 # Need to override this result.
1082 result = copy.deepcopy(NON_SWARMED_GTESTS[test]) 1082 result = copy.deepcopy(NON_SWARMED_GTESTS[test])
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 'cipd_packages': [
ynovikov1 2016/08/12 19:45:18 As I understood, we need this only for Android tar
sunnyps 2016/08/12 19:49:19 Yes, I realized this shortly after uploading. New
1092 {
1093 'cipd_package': 'infra/tools/luci/logdog/butler/${platform}',
1094 'location': 'bin',
1095 'revision': 'git_revision:3ff24775a900b675866fbcacf2a8f98a18b2a16a'
1096 }
1097 ],
1091 'dimension_sets': [ 1098 'dimension_sets': [
1092 tester_config['swarming_dimensions'] 1099 tester_config['swarming_dimensions']
1093 ], 1100 ],
1101 'output_links': [
1102 {
1103 'link': [
1104 'https://luci-logdog.appspot.com/v/?s',
1105 '=android%2Fswarming%2Flogcats%2F',
1106 '${TASK_ID}%2F%2B%2Funified_logcats'
1107 ],
1108 'name': 'shard #${SHARD_INDEX} logcats'
1109 }
1110 ]
1094 }) 1111 })
1095 if is_android(tester_config): 1112 if is_android(tester_config):
1096 # Override the isolate target to get rid of any "_apk" suffix 1113 # Override the isolate target to get rid of any "_apk" suffix
1097 # that would be added by the recipes. 1114 # that would be added by the recipes.
1098 result['override_isolate_target'] = test 1115 result['override_isolate_target'] = test
1099 if 'desktop_args' in result: 1116 if 'desktop_args' in result:
1100 if not is_android(tester_config): 1117 if not is_android(tester_config):
1101 if not 'args' in result: 1118 if not 'args' in result:
1102 result['args'] = [] 1119 result['args'] = []
1103 result['args'] += result['desktop_args'] 1120 result['args'] += result['desktop_args']
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True) 1237 json.dump(tests, fp, indent=2, separators=(',', ': '), sort_keys=True)
1221 fp.write('\n') 1238 fp.write('\n')
1222 1239
1223 def main(): 1240 def main():
1224 generate_all_tests(FYI_WATERFALL, True) 1241 generate_all_tests(FYI_WATERFALL, True)
1225 generate_all_tests(WATERFALL, False) 1242 generate_all_tests(WATERFALL, False)
1226 return 0 1243 return 0
1227 1244
1228 if __name__ == "__main__": 1245 if __name__ == "__main__":
1229 sys.exit(main()) 1246 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | testing/buildbot/chromium.gpu.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698