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

Side by Side Diff: scripts/slave/recipes/blimp/integration.py

Issue 2390753005: Double Builds for Blimp Integration Test Infrastructure on FYI bot (Closed)
Patch Set: Dirk comment Created 4 years, 2 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
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 from recipe_engine import recipe_api
6 from recipe_engine.recipe_api import Property
7 from recipe_engine.types import freeze
8
9 DEPS = [
10 'depot_tools/bot_update',
11 'chromium',
12 'chromium_android',
13 'chromium_swarming',
14 'chromium_tests',
15 'recipe_engine/json',
16 'recipe_engine/path',
17 'recipe_engine/platform',
18 'recipe_engine/properties',
19 'recipe_engine/python',
20 'recipe_engine/step',
21 'swarming',
22 'test_results',
23 'test_utils',
24 ]
25
26 BUILDERS = freeze({
27 'chromium.fyi': {
28 'builders':{
29 'Blimp Client Engine Integration': {
30 'client_config': {
31 'android_config': 'main_builder_rel_mb',
32 'chromium_config': 'android',
33 'chromium_config_kwargs': {
34 'BUILD_CONFIG': 'Debug',
35 'TARGET_BITS': 64,
36 'TARGET_PLATFORM': 'android',
37 },
38 'gclient_apply_config': ['android'],
39 'gclient_config': 'chromium',
40 },
41 'engine_config': {
mikecase (-- gone --) 2016/10/10 18:15:53 It doesnt look like these configs are being used.
Dirk Pranke 2016/10/11 00:18:23 Right, I don't think you can nest configs like thi
42 'chromium_apply_config': [ 'mb' ],
43 'chromium_config': 'chromium',
44 'chromium_config_kwargs': {
45 'BUILD_CONFIG': 'Debug',
46 'TARGET_BITS': 64,
47 'TARGET_PLATFORM': 'linux',
48 },
49 'gclient_config': 'chromium',
50 },
51 },
52 },
53 },
54 })
55
56
57 def RunSteps(api):
58 android_build = api.path['slave_build'].join('src', 'out-android', 'Debug')
59 linux_build = api.path['slave_build'].join('src', 'out-linux', 'Debug')
60 mastername = api.properties.get('mastername')
61 buildername, bot_config = api.chromium.configure_bot(BUILDERS)
mikecase (-- gone --) 2016/10/10 18:15:53 woah, cool. Didn't know this API existed.
62 api.chromium.ensure_goma()
63 api.chromium.runhooks()
64 api.chromium.run_mb(mastername=mastername,
65 buildername=buildername,
66 build_dir=linux_build,
67 phase='engine')
68 api.chromium.compile(targets=['blimp'],
69 out_dir=linux_build)
70 api.chromium.run_mb(mastername=mastername,
71 buildername=buildername,
72 build_dir=android_build,
73 phase='client')
74 api.chromium.compile(targets=['blimp', 'chrome_public_apk'],
75 out_dir=android_build)
76
77
78 def GenTests(api):
79 sanitize = lambda s: ''.join(c if c.isalnum() else '_' for c in s)
80
81 yield (
82 api.test('%s_test_pass' % sanitize('Blimp Android Tester')) +
83 api.properties.generic(
84 buildername='Blimp Client Engine Integration',
85 mastername='chromium.fyi')
86 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698