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

Side by Side Diff: scripts/slave/recipes/chromium.chromedriver.recipe_autogen.py

Issue 2171093002: Switch ChromeDriver builders from GYP to GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: delete some 's Created 4 years, 5 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 | scripts/slave/recipes/chromium.chromedriver.recipe_autogen.expected/Linux32.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 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 DEPS = [ 5 DEPS = [
6 'depot_tools/bot_update', 6 'depot_tools/bot_update',
7 'chromium', 7 'chromium',
8 'depot_tools/gclient', 8 'depot_tools/gclient',
9 'recipe_engine/json', 9 'recipe_engine/json',
10 'recipe_engine/path', 10 'recipe_engine/path',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 src_cfg.got_revision_mapping.update({'src': 'got_revision', 46 src_cfg.got_revision_mapping.update({'src': 'got_revision',
47 'src/third_party/WebKit': 'got_webkit_revision', 47 'src/third_party/WebKit': 'got_webkit_revision',
48 'src/tools/swarming_client': 'got_swarming_client_revision', 48 'src/tools/swarming_client': 'got_swarming_client_revision',
49 'src/v8': 'got_v8_revision'}) 49 'src/v8': 'got_v8_revision'})
50 api.gclient.c = src_cfg 50 api.gclient.c = src_cfg
51 result = api.bot_update.ensure_checkout(force=True) 51 result = api.bot_update.ensure_checkout(force=True)
52 build_properties = api.properties.legacy() 52 build_properties = api.properties.legacy()
53 build_properties.update(result.json.output.get('properties', {})) 53 build_properties.update(result.json.output.get('properties', {}))
54 # gclient update step; made unnecessary by bot_update 54 # gclient update step; made unnecessary by bot_update
55 # gclient runhooks wrapper step 55 # gclient runhooks wrapper step
56 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', 56 env = {'LANDMINES_VERBOSE': '1', 'DEPOT_TOOLS_UPDATE': '0'}
57 'DEPOT_TOOLS_UPDATE': '0',
58 'GYP_DEFINES':
59 'branding=Chrome buildtype=Official component=static_library'}
60 api.python("gclient runhooks wrapper", api.path["build"].join("scripts", 57 api.python("gclient runhooks wrapper", api.path["build"].join("scripts",
61 "slave", "runhooks_wrapper.py"), env=env) 58 "slave", "runhooks_wrapper.py"), env=env)
62 # cleanup_temp step 59 # cleanup_temp step
63 api.chromium.cleanup_temp() 60 api.chromium.cleanup_temp()
61 # meta build step
62 api.python("meta build", api.path["checkout"].join("tools", "mb", "mb.py",
jbudorick 2016/07/22 00:45:01 This should be: api.python('meta build', api.pa
samuong 2016/07/22 02:49:12 Done.
63 "gen", "-m", "chromium.chromedriver", "-b", "Linux32", "//out/Default"))
64 # chromedriver compile.py step 64 # chromedriver compile.py step
65 api.python("compile", api.path["build"].join("scripts", "slave", 65 api.python("compile", api.path["build"].join("scripts", "slave",
66 "compile.py"), args=['--target', 'Release', 66 "compile.py"), args=['--target', 'Default',
67 'chromium_builder_chromedriver']) 67 'chromedriver', 'chromedriver_tests', 'chromedriver_unittests'])
68 # strip binary
69 api.m.step('strip', cmd=['strip', str(api.path['checkout'].join(
jbudorick 2016/07/22 00:45:01 What's with the strip step?
samuong 2016/07/22 02:49:12 I'm seeing very large (144M) binaries when I build
jbudorick 2016/07/22 02:58:31 That's what I get for not reading that bug closely
70 'out', 'Default', 'chromedriver'))])
68 # annotated_steps step 71 # annotated_steps step
69 api.python("annotated_steps", api.path["build"].join("scripts", "slave", 72 api.python("annotated_steps", api.path["build"].join("scripts", "slave",
70 "chromium", "chromedriver_buildbot_run.py"), 73 "chromium", "chromedriver_buildbot_run.py"),
71 args=['--build-properties=%s' % api.json.dumps(build_properties, 74 args=['--build-properties=%s' % api.json.dumps(build_properties,
72 separators=(',', ':')), '--factory-properties={"annotated_script":'+\ 75 separators=(',', ':')), '--factory-properties={"annotated_script":'+\
73 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\ 76 '"chromedriver_buildbot_run.py","blink_config":"chromium",'+\
74 '"gclient_env":{"CHROMIUM_GYP_SYNTAX_CHECK":"1",'+\ 77 '"gclient_env":{"DEPOT_TOOLS_UPDATE":"0","LANDMINES_VERBOSE":'+\
75 '"DEPOT_TOOLS_UPDATE"'':"0","GYP_DEFINES":"branding=Chrome '+\
76 'buildtype=Official component=static_library","LANDMINES_VERBOSE":'+\
77 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'], 78 '"1"},"needs_webdriver_java_tests":true,"use_xvfb_on_linux":true}'],
78 allow_subannotations=True) 79 allow_subannotations=True)
79 80
80 81
81 def Mac_10_6_steps(api): 82 def Mac_10_6_steps(api):
82 # update scripts step; implicitly run by recipe engine. 83 # update scripts step; implicitly run by recipe engine.
83 # bot_update step 84 # bot_update step
84 src_cfg = api.gclient.make_config(GIT_MODE=True) 85 src_cfg = api.gclient.make_config(GIT_MODE=True)
85 soln = src_cfg.solutions.add() 86 soln = src_cfg.solutions.add()
86 soln.name = "src" 87 soln.name = "src"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 yield (api.test('Linux') + 300 yield (api.test('Linux') +
300 api.properties(mastername='chromium.chromedriver') + 301 api.properties(mastername='chromium.chromedriver') +
301 api.properties(buildername='Linux') + 302 api.properties(buildername='Linux') +
302 api.properties(slavename='TestSlave') 303 api.properties(slavename='TestSlave')
303 ) 304 )
304 yield (api.test('builder_not_in_dispatch_directory') + 305 yield (api.test('builder_not_in_dispatch_directory') +
305 api.properties(mastername='chromium.chromedriver') + 306 api.properties(mastername='chromium.chromedriver') +
306 api.properties(buildername='nonexistent_builder') + 307 api.properties(buildername='nonexistent_builder') +
307 api.properties(slavename='TestSlave') 308 api.properties(slavename='TestSlave')
308 ) 309 )
OLDNEW
« no previous file with comments | « no previous file | scripts/slave/recipes/chromium.chromedriver.recipe_autogen.expected/Linux32.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698