OLD | NEW |
1 [ | 1 [ |
2 { | 2 { |
3 "cmd": [ | 3 "cmd": [ |
4 "python", | 4 "python", |
5 "-u", | 5 "-u", |
6 "[BUILD]/scripts/slave/bot_update.py", | 6 "[BUILD]/scripts/slave/bot_update.py", |
7 "--master", | 7 "--master", |
8 "chromium.fyi", | 8 "chromium.fyi", |
9 "--builder", | 9 "--builder", |
10 "Android Builder (dbg)", | 10 "Android Tests (amp split)", |
11 "--slave", | 11 "--slave", |
12 "TestSlavename", | 12 "build1-a1", |
13 "--spec", | 13 "--spec", |
14 "cache_dir = None\nsolutions = [{'custom_vars': {'googlecode_url': 'svn://
svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo.chromium.
org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chromium.org
/%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/trunk'}, '
deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-mirror.gol
o.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']", | 14 "cache_dir = None\nsolutions = [{'custom_vars': {'googlecode_url': 'svn://
svn-mirror.golo.chromium.org/%s', 'nacl_trunk': 'svn://svn-mirror.golo.chromium.
org/native_client/trunk', 'sourceforge_url': 'svn://svn-mirror.golo.chromium.org
/%(repo)s', 'webkit_trunk': 'svn://svn-mirror.golo.chromium.org/blink/trunk'}, '
deps_file': 'DEPS', 'managed': True, 'name': 'src', 'url': 'svn://svn-mirror.gol
o.chromium.org/chrome/trunk/src'}]\ntarget_os = ['android']", |
15 "--root", | 15 "--root", |
16 "src", | 16 "src", |
17 "--revision_mapping_file", | 17 "--revision_mapping_file", |
18 "{\"src\": \"got_revision\", \"src/native_client\": \"got_nacl_revision\",
\"src/third_party/WebKit\": \"got_webkit_revision\", \"src/third_party/webrtc\"
: \"got_webrtc_revision\", \"src/tools/swarming_client\": \"got_swarming_client_
revision\", \"src/v8\": \"got_v8_revision\"}", | 18 "{\"src\": \"got_revision\", \"src/native_client\": \"got_nacl_revision\",
\"src/third_party/WebKit\": \"got_webkit_revision\", \"src/third_party/webrtc\"
: \"got_webrtc_revision\", \"src/tools/swarming_client\": \"got_swarming_client_
revision\", \"src/v8\": \"got_v8_revision\"}", |
19 "--output_json", | 19 "--output_json", |
20 "/path/to/tmp/json", | 20 "/path/to/tmp/json", |
21 "--revision", | 21 "--revision", |
22 "src@HEAD" | 22 "src@HEAD" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 }, | 94 }, |
95 { | 95 { |
96 "cmd": [ | 96 "cmd": [ |
97 "python", | 97 "python", |
98 "-u", | 98 "-u", |
99 "[SLAVE_BUILD]/src/testing/scripts/get_compile_targets.py", | 99 "[SLAVE_BUILD]/src/testing/scripts/get_compile_targets.py", |
100 "--output", | 100 "--output", |
101 "/path/to/tmp/json", | 101 "/path/to/tmp/json", |
102 "--", | 102 "--", |
103 "--build-config-fs", | 103 "--build-config-fs", |
104 "Debug", | 104 "Release", |
105 "--paths", | 105 "--paths", |
106 "{\"build\": \"[BUILD]\", \"checkout\": \"[SLAVE_BUILD]/src\"}", | 106 "{\"build\": \"[BUILD]\", \"checkout\": \"[SLAVE_BUILD]/src\"}", |
107 "--properties", | 107 "--properties", |
108 "{\"buildername\": \"Android Builder (dbg)\", \"buildnumber\": 571, \"mast
ername\": \"chromium.fyi\", \"slavename\": \"TestSlavename\", \"target_platform\
": \"android\"}" | 108 "{\"buildername\": \"Android Tests (amp split)\", \"buildnumber\": \"77457
\", \"mastername\": \"chromium.fyi\", \"slavename\": \"build1-a1\", \"target_pla
tform\": \"android\"}" |
109 ], | 109 ], |
110 "cwd": "[SLAVE_BUILD]", | 110 "cwd": "[SLAVE_BUILD]", |
111 "name": "get compile targets for scripts", | 111 "name": "get compile targets for scripts", |
112 "~followup_annotations": [ | 112 "~followup_annotations": [ |
113 "@@@STEP_LOG_LINE@json.output@{}@@@", | 113 "@@@STEP_LOG_LINE@json.output@{}@@@", |
114 "@@@STEP_LOG_END@json.output@@@" | 114 "@@@STEP_LOG_END@json.output@@@" |
115 ] | 115 ] |
116 }, | 116 }, |
117 { | 117 { |
118 "cmd": [ | 118 "cmd": [ |
119 "python", | 119 "python", |
120 "-u", | 120 "-u", |
121 "[BUILD]/scripts/slave/cleanup_temp.py" | |
122 ], | |
123 "cwd": "[SLAVE_BUILD]", | |
124 "name": "cleanup_temp" | |
125 }, | |
126 { | |
127 "cmd": [ | |
128 "python", | |
129 "-u", | |
130 "\nimport shutil, sys, os\nshutil.rmtree(sys.argv[1], True)\nshutil.rmtree
(sys.argv[2], True)\ntry:\n os.remove(sys.argv[3])\nexcept OSError:\n pass\nfo
r base, _dirs, files in os.walk(sys.argv[4]):\n for f in files:\n if f.endsw
ith('.pyc'):\n os.remove(os.path.join(base, f))\n", | |
131 "[SLAVE_BUILD]/src/out/Debug/debug_info_dumps", | |
132 "[SLAVE_BUILD]/src/out/Debug/test_logs", | |
133 "[SLAVE_BUILD]/src/out/build_product.zip", | |
134 "[SLAVE_BUILD]/src" | |
135 ], | |
136 "cwd": "[SLAVE_BUILD]", | |
137 "name": "clean local files", | |
138 "~followup_annotations": [ | |
139 "@@@STEP_LOG_LINE@python.inline@@@@", | |
140 "@@@STEP_LOG_LINE@python.inline@import shutil, sys, os@@@", | |
141 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[1], True)@@@", | |
142 "@@@STEP_LOG_LINE@python.inline@shutil.rmtree(sys.argv[2], True)@@@", | |
143 "@@@STEP_LOG_LINE@python.inline@try:@@@", | |
144 "@@@STEP_LOG_LINE@python.inline@ os.remove(sys.argv[3])@@@", | |
145 "@@@STEP_LOG_LINE@python.inline@except OSError:@@@", | |
146 "@@@STEP_LOG_LINE@python.inline@ pass@@@", | |
147 "@@@STEP_LOG_LINE@python.inline@for base, _dirs, files in os.walk(sys.argv
[4]):@@@", | |
148 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@", | |
149 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.pyc'):@@@", | |
150 "@@@STEP_LOG_LINE@python.inline@ os.remove(os.path.join(base, f))@@@"
, | |
151 "@@@STEP_LOG_END@python.inline@@@" | |
152 ] | |
153 }, | |
154 { | |
155 "allow_subannotations": false, | |
156 "cmd": [ | |
157 "[SLAVE_BUILD]/src/build/tree_truth.sh", | |
158 "[SLAVE_BUILD]/src", | |
159 "src" | |
160 ], | |
161 "cwd": "[SLAVE_BUILD]", | |
162 "name": "tree truth steps" | |
163 }, | |
164 { | |
165 "cmd": [ | |
166 "python", | |
167 "-u", | |
168 "[BUILD]/scripts/slave/compile.py", | 121 "[BUILD]/scripts/slave/compile.py", |
169 "--target", | 122 "--target", |
170 "Debug", | 123 "Release", |
171 "--src-dir", | 124 "--src-dir", |
172 "[SLAVE_BUILD]/src", | 125 "[SLAVE_BUILD]/src", |
173 "--build-tool", | 126 "--build-tool", |
174 "ninja", | 127 "ninja", |
175 "--compiler", | 128 "--compiler", |
176 "goma", | 129 "goma", |
| 130 "--out-dir", |
| 131 "/tmp", |
177 "--goma-dir", | 132 "--goma-dir", |
178 "[BUILD]/goma", | 133 "[BUILD]/goma", |
179 "--", | 134 "--", |
180 "base_junit_tests", | 135 "All" |
181 "components_browsertests_apk", | |
182 "gfx_unittests_apk" | |
183 ], | 136 ], |
184 "cwd": "[SLAVE_BUILD]", | 137 "cwd": "[SLAVE_BUILD]", |
185 "env": { | 138 "env": { |
186 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" | 139 "PATH": "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools:[S
LAVE_BUILD]/src/build/android:%(PATH)s" |
187 }, | 140 }, |
188 "name": "compile" | 141 "name": "compile" |
189 }, | 142 }, |
190 { | 143 { |
191 "allow_subannotations": true, | |
192 "cmd": [ | 144 "cmd": [ |
193 "python", | 145 "python", |
194 "-u", | 146 "-u", |
195 "[BUILD]/scripts/slave/zip_build.py", | 147 "\nimport os, sys\nfrom common import chromium_utils\n\nif os.path.exists(
sys.argv[1]):\n chromium_utils.RemoveDirectory(sys.argv[1])\n", |
196 "--target", | 148 "[SLAVE_BUILD]/src/out/Release" |
197 "Debug", | |
198 "--build-url", | |
199 "gs://chromium-fyi-archive/chromium.fyi/Android Builder (dbg)", | |
200 "--build_revision", | |
201 "f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9", | |
202 "--factory-properties", | |
203 "{\"blamelist\": [\"cool_dev1337@chromium.org\", \"hax@chromium.org\"], \"
buildername\": \"Android Builder (dbg)\", \"buildnumber\": 571, \"mastername\":
\"chromium.fyi\", \"parent_buildername\": null, \"recipe\": \"chromium\", \"slav
ename\": \"TestSlavename\", \"workdir\": \"/path/to/workdir/TestSlavename\"}", | |
204 "--build-properties", | |
205 "{\"blamelist\": [\"cool_dev1337@chromium.org\", \"hax@chromium.org\"], \"
buildername\": \"Android Builder (dbg)\", \"buildnumber\": 571, \"mastername\":
\"chromium.fyi\", \"parent_buildername\": null, \"recipe\": \"chromium\", \"slav
ename\": \"TestSlavename\", \"workdir\": \"/path/to/workdir/TestSlavename\"}" | |
206 ], | 149 ], |
207 "cwd": "[SLAVE_BUILD]", | 150 "cwd": "[SLAVE_BUILD]", |
208 "name": "package build" | 151 "name": "rmtree build directory", |
| 152 "~followup_annotations": [ |
| 153 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 154 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
| 155 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils@@@", |
| 156 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 157 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
| 158 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
| 159 "@@@STEP_LOG_END@python.inline@@@" |
| 160 ] |
| 161 }, |
| 162 { |
| 163 "cmd": [ |
| 164 "python", |
| 165 "-u", |
| 166 "[BUILD]/scripts/slave/extract_build.py", |
| 167 "--target", |
| 168 "Release", |
| 169 "--build-archive-url", |
| 170 "gs://test-domain/test-archive.zip", |
| 171 "--factory-properties", |
| 172 "{\"buildername\": \"Android Tests (amp split)\", \"buildnumber\": \"77457
\", \"mastername\": \"chromium.fyi\", \"parent_build_archive_url\": \"gs://test-
domain/test-archive.zip\", \"recipe\": \"chromium:example\", \"slavename\": \"bu
ild1-a1\"}", |
| 173 "--build-properties", |
| 174 "{\"buildername\": \"Android Tests (amp split)\", \"buildnumber\": \"77457
\", \"mastername\": \"chromium.fyi\", \"parent_build_archive_url\": \"gs://test-
domain/test-archive.zip\", \"recipe\": \"chromium:example\", \"slavename\": \"bu
ild1-a1\"}" |
| 175 ], |
| 176 "cwd": "[SLAVE_BUILD]", |
| 177 "name": "extract build" |
| 178 }, |
| 179 { |
| 180 "cmd": [ |
| 181 "python", |
| 182 "-u", |
| 183 "RECIPE_MODULE[adb]/resources/list_devices.py", |
| 184 "['[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb', 'd
evices']", |
| 185 "/path/to/tmp/json" |
| 186 ], |
| 187 "cwd": "[SLAVE_BUILD]", |
| 188 "name": "List adb devices", |
| 189 "~followup_annotations": [ |
| 190 "@@@STEP_LOG_LINE@json.output@[@@@", |
| 191 "@@@STEP_LOG_LINE@json.output@ \"014E1F310401C009\"@@@", |
| 192 "@@@STEP_LOG_LINE@json.output@]@@@", |
| 193 "@@@STEP_LOG_END@json.output@@@" |
| 194 ] |
| 195 }, |
| 196 { |
| 197 "cmd": [ |
| 198 "python", |
| 199 "-u", |
| 200 "\nimport subprocess\nimport sys\nadb_path = sys.argv[1]\nfor device in sy
s.argv[2:]:\n subprocess.check_call([adb_path, '-s', device, 'root'])\n subpro
cess.check_call([adb_path, '-s', device, 'wait-for-device'])\n", |
| 201 "[SLAVE_BUILD]/src/third_party/android_tools/sdk/platform-tools/adb", |
| 202 "014E1F310401C009" |
| 203 ], |
| 204 "cwd": "[SLAVE_BUILD]", |
| 205 "name": "Root devices", |
| 206 "~followup_annotations": [ |
| 207 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 208 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", |
| 209 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 210 "@@@STEP_LOG_LINE@python.inline@adb_path = sys.argv[1]@@@", |
| 211 "@@@STEP_LOG_LINE@python.inline@for device in sys.argv[2:]:@@@", |
| 212 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'root'])@@@", |
| 213 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call([adb_path, '-s', d
evice, 'wait-for-device'])@@@", |
| 214 "@@@STEP_LOG_END@python.inline@@@" |
| 215 ] |
| 216 }, |
| 217 { |
| 218 "name": "$final_result", |
| 219 "reason": "cannot specify both device_minimum_os and device_os", |
| 220 "status_code": 1 |
209 } | 221 } |
210 ] | 222 ] |
OLD | NEW |