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

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

Issue 2143503002: Switch chromedriver to new recipe, remove bb_run_bot references from build/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 DEPS = [
6 'chromium',
7 'depot_tools/bot_update',
8 'depot_tools/gclient',
9 'file',
10 'recipe_engine/json',
11 'recipe_engine/path',
12 'recipe_engine/properties',
13 'recipe_engine/python',
14 'recipe_engine/step',
15 ]
16
17
18 def Android_ChromeDriver_Tests__dbg__steps(api):
19 build_properties = api.properties.legacy()
20 # update scripts step; implicitly run by recipe engine.
21 # bot_update step
22 src_cfg = api.gclient.make_config(GIT_MODE=True)
23 soln = src_cfg.solutions.add()
24 soln.name = "src"
25 soln.url = "https://chromium.googlesource.com/chromium/src.git"
26 soln.custom_deps = {
27 'src/chrome/test/chromedriver/third_party/java_tests':
28 'https://chromium.googlesource.com/chromium/deps/webdriver.git',
29 'src/third_party/WebKit/LayoutTests': None
30 }
31 soln.custom_vars = {'webkit_trunk': 'http://src.chromium.org/blink/trunk',
32 'googlecode_url': 'http://%s.googlecode.com/svn',
33 'nacl_trunk':
34 'http://src.chromium.org/native_client/trunk',
35 'sourceforge_url':
36 'https://svn.code.sf.net/p/%(repo)s/code',
37 'llvm_url': 'http://llvm.org/svn/llvm-project'}
38 src_cfg.target_os = set(['android'])
39 src_cfg.got_revision_mapping.update(
40 {'src': 'got_revision',
41 'src/third_party/WebKit': 'got_webkit_revision',
42 'src/tools/swarming_client': 'got_swarming_client_revision',
43 'src/v8': 'got_v8_revision'})
44 api.gclient.c = src_cfg
45 result = api.bot_update.ensure_checkout(force=True)
46 build_properties.update(result.json.output.get("properties", {}))
47 # gclient revert step; made unnecessary by bot_update
48 # gclient update step; made unnecessary by bot_update
49 # cleanup_temp step
50 api.chromium.cleanup_temp()
51 # slave_steps step
52 api.python(
53 "slave_steps",
54 "src/build/android/buildbot/bb_run_bot.py",
55 args=
56 ['--build-properties=%s' % api.json.dumps(build_properties,
57 separators=(',', ':')),
58 ('--factory-properties={"GYP_DEFINES":" component=shared_library",'
59 '"android_bot_id":"chromedriver-fyi-tests-dbg","build_url":'
60 '"gs://chromium-fyi-archive/chromium.fyi/Android Builder (dbg)",'
61 '"clobber":false,"gclient_env":{},"target":"Debug",'
62 '"target_os":"android"}')],
63 allow_subannotations=True)
64
65
66 dispatch_directory = {
67 'Android ChromeDriver Tests (dbg)': Android_ChromeDriver_Tests__dbg__steps,
68 }
69
70
71 def RunSteps(api):
72 if api.properties["buildername"] not in dispatch_directory:
73 raise api.step.StepFailure("Builder unsupported by recipe.")
74 else:
75 dispatch_directory[api.properties["buildername"]](api)
76
77
78 def GenTests(api):
79 yield (api.test('Android_ChromeDriver_Tests__dbg_') +
80 api.properties(mastername='chromium.fyi') +
81 api.properties(buildername='Android ChromeDriver Tests (dbg)') +
82 api.properties(revision='123456789abcdef') +
83 api.properties(got_revision='123456789abcdef') +
84 api.properties(buildnumber='42') +
85 api.properties(slavename='TestSlave')
86 )
87 yield (api.test('builder_not_in_dispatch_directory') +
88 api.properties(mastername='chromium.fyi') +
89 api.properties(buildername='nonexistent_builder') +
90 api.properties(slavename='TestSlave')
91 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698