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

Side by Side Diff: scripts/slave/recipes/android/android_builder.expected/component_builder.json

Issue 297143002: Reland "Simplified android_builder and moved internal-only methods to internal module" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Review comment Created 6 years, 6 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 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "\nimport os, sys\n\nbuild_path = sys.argv[1]\nif os.path.exists(build_pat h):\n for (path, dir, files) in os.walk(build_path):\n for cur_file in files :\n if cur_file.endswith('index.lock'):\n path_to_file = os.path.joi n(path, cur_file)\n print 'deleting %s' % path_to_file\n os.remove (path_to_file)\n",
7 "[SLAVE_BUILD]"
8 ],
9 "name": "cleanup index.lock",
10 "~followup_annotations": [
11 "@@@STEP_LOG_LINE@python.inline@@@@",
12 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
13 "@@@STEP_LOG_LINE@python.inline@@@@",
14 "@@@STEP_LOG_LINE@python.inline@build_path = sys.argv[1]@@@",
15 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(build_path):@@@",
16 "@@@STEP_LOG_LINE@python.inline@ for (path, dir, files) in os.walk(build_ path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ for cur_file in files:@@@",
18 "@@@STEP_LOG_LINE@python.inline@ if cur_file.endswith('index.lock'):@ @@",
19 "@@@STEP_LOG_LINE@python.inline@ path_to_file = os.path.join(path, cur_file)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ print 'deleting %s' % path_to_file @@@",
21 "@@@STEP_LOG_LINE@python.inline@ os.remove(path_to_file)@@@",
22 "@@@STEP_LOG_END@python.inline@@@"
23 ]
24 },
25 {
26 "abort_on_failure": true,
27 "cmd": [
28 "python",
29 "-u",
30 "[BUILD]/scripts/slave/bot_update.py",
31 "--master",
32 "chromium.testing.master",
33 "--builder",
34 "component_builder",
35 "--slave",
36 "TestSlavename",
37 "--spec",
38 "cache_dir = None\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True , 'name': 'src/repo', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]\ntarget _os = ['android']",
39 "--revision_mapping_file",
40 "{}",
41 "--output_json",
42 "/path/to/tmp/json",
43 "--revision",
44 "4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00"
45 ],
46 "name": "bot_update",
47 "~followup_annotations": [
48 "@@@STEP_LOG_LINE@json.output@{@@@",
49 "@@@STEP_LOG_LINE@json.output@ \"did_run\": false@@@",
50 "@@@STEP_LOG_LINE@json.output@}@@@",
51 "@@@STEP_LOG_END@json.output@@@"
52 ]
53 },
54 {
55 "cmd": [
56 "python",
57 "-u",
58 "[DEPOT_TOOLS]/gclient.py",
59 "config",
60 "--spec",
61 "cache_dir = None\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True , 'name': 'src/repo', 'url': 'svn://svn.chromium.org/chrome/trunk/src'}]\ntarget _os = ['android']"
62 ],
63 "name": "gclient setup"
64 },
65 {
66 "abort_on_failure": true,
67 "cmd": [
68 "python",
69 "-u",
70 "[DEPOT_TOOLS]/gclient.py",
71 "sync",
72 "--nohooks",
73 "--delete_unversioned_trees",
74 "--force",
75 "--verbose",
76 "--revision",
77 "src/repo@4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00",
78 "--output-json",
79 "/path/to/tmp/json"
80 ],
81 "name": "gclient sync",
82 "~followup_annotations": [
83 "@@@STEP_LOG_LINE@json.output@{@@@",
84 "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
85 "@@@STEP_LOG_LINE@json.output@ \"src/\": {@@@",
86 "@@@STEP_LOG_LINE@json.output@ \"revision\": 170242@@@",
87 "@@@STEP_LOG_LINE@json.output@ }, @@@",
88 "@@@STEP_LOG_LINE@json.output@ \"src/native_client/\": {@@@",
89 "@@@STEP_LOG_LINE@json.output@ \"revision\": 274981@@@",
90 "@@@STEP_LOG_LINE@json.output@ }, @@@",
91 "@@@STEP_LOG_LINE@json.output@ \"src/repo/\": {@@@",
92 "@@@STEP_LOG_LINE@json.output@ \"revision\": 126336@@@",
93 "@@@STEP_LOG_LINE@json.output@ }, @@@",
94 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/WebKit/\": {@@@",
95 "@@@STEP_LOG_LINE@json.output@ \"revision\": 124383@@@",
96 "@@@STEP_LOG_LINE@json.output@ }, @@@",
97 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/webrtc/\": {@@@",
98 "@@@STEP_LOG_LINE@json.output@ \"revision\": 120644@@@",
99 "@@@STEP_LOG_LINE@json.output@ }, @@@",
100 "@@@STEP_LOG_LINE@json.output@ \"src/tools/swarm_client/\": {@@@",
101 "@@@STEP_LOG_LINE@json.output@ \"revision\": 200767@@@",
102 "@@@STEP_LOG_LINE@json.output@ }, @@@",
103 "@@@STEP_LOG_LINE@json.output@ \"src/tools/swarming_client/\": {@@@",
104 "@@@STEP_LOG_LINE@json.output@ \"revision\": 276089@@@",
105 "@@@STEP_LOG_LINE@json.output@ }, @@@",
106 "@@@STEP_LOG_LINE@json.output@ \"src/v8/\": {@@@",
107 "@@@STEP_LOG_LINE@json.output@ \"revision\": 43426@@@",
108 "@@@STEP_LOG_LINE@json.output@ }@@@",
109 "@@@STEP_LOG_LINE@json.output@ }@@@",
110 "@@@STEP_LOG_LINE@json.output@}@@@",
111 "@@@STEP_LOG_END@json.output@@@",
112 "@@@SET_BUILD_PROPERTY@got_nacl_revision@274981@@@",
113 "@@@SET_BUILD_PROPERTY@got_webkit_revision@124383@@@",
114 "@@@SET_BUILD_PROPERTY@got_src_revision@170242@@@",
115 "@@@SET_BUILD_PROPERTY@got_webrtc_revision@120644@@@",
116 "@@@SET_BUILD_PROPERTY@got_swarming_client_revision@276089@@@",
117 "@@@SET_BUILD_PROPERTY@got_v8_revision@43426@@@",
118 "@@@SET_BUILD_PROPERTY@got_swarm_client_revision@200767@@@"
119 ]
120 },
121 {
122 "cmd": [
123 "[SLAVE_BUILD]/src/clank/build/dump_app_manifest_vars.py",
124 "-b",
125 "component_builder",
126 "-v",
127 "[SLAVE_BUILD]/src/chrome/VERSION",
128 "--output-json",
129 "/path/to/tmp/json"
130 ],
131 "name": "get app_manifest_vars",
132 "~followup_annotations": [
133 "@@@STEP_LOG_LINE@json.output@{@@@",
134 "@@@STEP_LOG_LINE@json.output@ \"build_id\": 3333, @@@",
135 "@@@STEP_LOG_LINE@json.output@ \"date_string\": 6001, @@@",
136 "@@@STEP_LOG_LINE@json.output@ \"version_code\": 10, @@@",
137 "@@@STEP_LOG_LINE@json.output@ \"version_name\": \"some_builder_1234\"@@@ ",
138 "@@@STEP_LOG_LINE@json.output@}@@@",
139 "@@@STEP_LOG_END@json.output@@@"
140 ]
141 },
142 {
143 "cmd": [
144 "[SLAVE_BUILD]/src/clank/build/dump_internal_names.py",
145 "--output-json",
146 "/path/to/tmp/json"
147 ],
148 "name": "get_internal_names",
149 "~followup_annotations": [
150 "@@@STEP_LOG_LINE@json.output@{@@@",
151 "@@@STEP_LOG_LINE@json.output@ \"BUILD_BUCKET\": \"build-bucket\", @@@",
152 "@@@STEP_LOG_LINE@json.output@ \"FLAKINESS_DASHBOARD_SERVER\": \"test-res ults.appspot.com\", @@@",
153 "@@@STEP_LOG_LINE@json.output@ \"INSTRUMENTATION_TEST_DATA\": \"a:b/test/ data/android/device_files\", @@@",
154 "@@@STEP_LOG_LINE@json.output@ \"SCREENSHOT_BUCKET\": \"screenshot-archiv e\"@@@",
155 "@@@STEP_LOG_LINE@json.output@}@@@",
156 "@@@STEP_LOG_END@json.output@@@"
157 ]
158 },
159 {
160 "cmd": [
161 "python",
162 "-u",
163 "\nimport shutil, sys, os\nshutil.rmtree(sys.argv[1], True)\nshutil.rmtree (sys.argv[2], True)\nfor base, _dirs, files in os.walk(sys.argv[3]):\n for f in files:\n if f.endswith('.pyc'):\n os.remove(os.path.join(base, f))\n",
164 "[SLAVE_BUILD]/src/out/Debug/debug_info_dumps",
165 "[SLAVE_BUILD]/src/out/Debug/test_logs",
166 "[SLAVE_BUILD]/src"
167 ],
168 "name": "clean local files",
169 "~followup_annotations": [
170 "@@@STEP_LOG_LINE@python.inline@@@@",
171 "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@",
172 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@",
173 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@",
174 "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv [3]):@@@",
175 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@",
176 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@",
177 "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@" ,
178 "@@@STEP_LOG_END@python.inline@@@"
179 ]
180 },
181 {
182 "allow_subannotations": false,
183 "cmd": [
184 "[SLAVE_BUILD]/src/build/tree_truth.sh",
185 "[SLAVE_BUILD]/src",
186 "src",
187 "src-internal",
188 "src/repo"
189 ],
190 "name": "tree truth steps"
191 },
192 {
193 "cmd": [
194 "python",
195 "-u",
196 "[DEPOT_TOOLS]/gclient.py",
197 "runhooks"
198 ],
199 "env": {
200 "EXTRA_LANDMINES_SCRIPT": "[SLAVE_BUILD]/src/clank/build/get_internal_land mines.py",
201 "GYP_DEFINES": "OS=android app_manifest_version_code=10 app_manifest_versi on_name=some_builder_1234 chrome_build_id=3333 component=shared_library fastbuil d=1 gomadir='[BUILD]/goma' target_arch=arm use_goma=1",
202 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
203 },
204 "name": "gclient runhooks"
205 },
206 {
207 "abort_on_failure": true,
208 "cmd": [
209 "python",
210 "-u",
211 "[BUILD]/scripts/slave/compile.py",
212 "--target",
213 "Debug",
214 "--src-dir",
215 "[SLAVE_BUILD]/src",
216 "--build-tool",
217 "ninja",
218 "--compiler",
219 "goma",
220 "--goma-dir",
221 "[BUILD]/goma",
222 "--"
223 ],
224 "env": {
225 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S LAVE_BUILD]/src/build/android:%(PATH)s"
226 },
227 "name": "compile"
228 },
229 {
230 "always_run": true,
231 "cmd": [
232 "python",
233 "-u",
234 "[BUILD]/scripts/slave/android/archive_build.py",
235 "--target",
236 "Debug",
237 "--name",
238 "build_product.zip"
239 ],
240 "cwd": "[SLAVE_BUILD]/src",
241 "name": "zip_build_product"
242 },
243 {
244 "cmd": [
245 "python",
246 "-u",
247 "[BUILD]/scripts/slave/recipe_modules/gsutil/resources/gsutil_wrapper.py",
248 "--",
249 "[DEPOT_TOOLS]/third_party/gsutil/gsutil",
250 "cp",
251 "[SLAVE_BUILD]/src/out/build_product.zip",
252 "gs://build-bucket/component_builder/build_product_4f4b02f6b7fa20a3a25682c 457bbc8ad589c8a00.zip"
253 ],
254 "name": "gsutil upload_build_product",
255 "~followup_annotations": [
256 "@@@STEP_LINK@gsutil.upload@https://storage.cloud.google.com/build-bucket/ component_builder/build_product_4f4b02f6b7fa20a3a25682c457bbc8ad589c8a00.zip@@@"
257 ]
258 },
259 {
260 "always_run": true,
261 "cmd": [
262 "rm",
263 "-rf",
264 "[SLAVE_BUILD]/src/out/build_product.zip"
265 ],
266 "name": "cleanup_build"
267 }
268 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698