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

Side by Side Diff: scripts/slave/recipe_modules/auto_bisect/example.expected/bad_config.json

Issue 2247373002: Refactor stages 1, 2 and test_api overhaul. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Addressing all early feedback. Created 4 years, 3 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
1 [ 1 [
2 { 2 {
3 "cmd": [ 3 "cmd": [
4 "python", 4 "python",
5 "-u", 5 "-u",
6 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
7 "[BUILDER_CACHE]/linux_perf_bisect",
8 "511"
9 ],
10 "name": "makedirs checkout path",
11 "~followup_annotations": [
12 "@@@STEP_LOG_LINE@python.inline@@@@",
13 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
14 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
15 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
16 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
17 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
18 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
19 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
20 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
21 "@@@STEP_LOG_END@python.inline@@@"
22 ]
23 },
24 {
25 "cmd": [
26 "python",
27 "-u",
28 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 6 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
29 "--spec", 7 "--spec",
30 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': False, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/sr c.git'}, {'custom_deps': {'src/chrome/test/data/firefox2_profile/searchplugins': None, 'src/chrome/test/data/firefox2_searchplugins': None, 'src/chrome/test/dat a/firefox3_profile/searchplugins': None, 'src/chrome/test/data/firefox3_searchpl ugins': None, 'src/chrome/test/data/osdd': None, 'src/chrome/test/data/perf/fram e_rate/private': None, 'src/chrome/test/data/plugin': None, 'src/chrome/test/dat a/ssl/certs': None, 'src/data/autodiscovery': None, 'src/data/esctf': None, 'src /data/mach_ports': None, 'src/data/memory_test': None, 'src/data/mozilla_js_test s': None, 'src/data/selenium_core': None, 'src/data/tab_switching': None, 'src/t ools/grit/grit/test/data': None, 'src/webkit/data/bmp_decoder': None, 'src/webki t/data/ico_decoder': None, 'src/webkit/data/test_shell/plugins': None, 'src/webk it/data/xbm_decoder': None}, 'deps_file': '.DEPS.git', 'managed': False, 'name': 'src-internal', 'url': 'https://chrome-internal.googlesource.com/chrome/src-int ernal.git'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'catapult', 'ur l': 'https://chromium.googlesource.com/external/github.com/catapult-project/cata pult.git'}]", 8 "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'manag ed': False, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/sr c.git'}, {'custom_deps': {'src/chrome/test/data/firefox2_profile/searchplugins': None, 'src/chrome/test/data/firefox2_searchplugins': None, 'src/chrome/test/dat a/firefox3_profile/searchplugins': None, 'src/chrome/test/data/firefox3_searchpl ugins': None, 'src/chrome/test/data/osdd': None, 'src/chrome/test/data/perf/fram e_rate/private': None, 'src/chrome/test/data/plugin': None, 'src/chrome/test/dat a/ssl/certs': None, 'src/data/autodiscovery': None, 'src/data/esctf': None, 'src /data/mach_ports': None, 'src/data/memory_test': None, 'src/data/mozilla_js_test s': None, 'src/data/selenium_core': None, 'src/data/tab_switching': None, 'src/t ools/grit/grit/test/data': None, 'src/webkit/data/bmp_decoder': None, 'src/webki t/data/ico_decoder': None, 'src/webkit/data/test_shell/plugins': None, 'src/webk it/data/xbm_decoder': None}, 'deps_file': '.DEPS.git', 'managed': False, 'name': 'src-internal', 'url': 'https://chrome-internal.googlesource.com/chrome/src-int ernal.git'}, {'deps_file': '.DEPS.git', 'managed': True, 'name': 'catapult', 'ur l': 'https://chromium.googlesource.com/external/github.com/catapult-project/cata pult.git'}]",
31 "--root", 9 "--root",
32 "src", 10 "src",
33 "--revision_mapping_file", 11 "--revision_mapping_file",
34 "{\"src\": \"got_revision\", \"src/buildtools\": \"got_buildtools_revision \", \"src/native_client\": \"got_nacl_revision\", \"src/third_party/angle\": \"g ot_angle_revision\", \"src/third_party/webrtc\": \"got_webrtc_revision\", \"src/ tools/swarming_client\": \"got_swarming_client_revision\", \"src/v8\": \"got_v8_ revision\"}", 12 "{\"src\": \"got_revision\", \"src/buildtools\": \"got_buildtools_revision \", \"src/native_client\": \"got_nacl_revision\", \"src/third_party/angle\": \"g ot_angle_revision\", \"src/third_party/webrtc\": \"got_webrtc_revision\", \"src/ tools/swarming_client\": \"got_swarming_client_revision\", \"src/v8\": \"got_v8_ revision\"}",
35 "--git-cache-dir", 13 "--git-cache-dir",
36 "[GIT_CACHE]", 14 "[GIT_CACHE]",
37 "--issue",
38 "12345",
39 "--patchset",
40 "20001",
41 "--rietveld_server",
42 "https://codereview.chromium.org",
43 "--output_json", 15 "--output_json",
44 "/path/to/tmp/json", 16 "/path/to/tmp/json",
45 "--revision", 17 "--revision",
46 "src@HEAD", 18 "src@HEAD",
47 "--output_manifest" 19 "--output_manifest"
48 ], 20 ],
49 "cwd": "[BUILDER_CACHE]/linux_perf_bisect",
50 "env": { 21 "env": {
51 "GCLIENT_KILL_GIT_FETCH_AFTER": "1200", 22 "GCLIENT_KILL_GIT_FETCH_AFTER": "1200",
52 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 23 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
53 }, 24 },
54 "name": "bot_update", 25 "name": "bot_update",
55 "~followup_annotations": [ 26 "~followup_annotations": [
56 "@@@STEP_TEXT@Some step text@@@", 27 "@@@STEP_TEXT@Some step text@@@",
57 "@@@STEP_LOG_LINE@json.output@{@@@", 28 "@@@STEP_LOG_LINE@json.output@{@@@",
58 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 29 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
59 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 30 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 "@@@STEP_LOG_END@json.output@@@" 156 "@@@STEP_LOG_END@json.output@@@"
186 ] 157 ]
187 }, 158 },
188 { 159 {
189 "cmd": [ 160 "cmd": [
190 "python", 161 "python",
191 "-u", 162 "-u",
192 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 163 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
193 "runhooks" 164 "runhooks"
194 ], 165 ],
195 "cwd": "[BUILDER_CACHE]/linux_perf_bisect/src", 166 "cwd": "[SLAVE_BUILD]/src",
196 "env": { 167 "env": {
197 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 168 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
198 "GYP_CHROMIUM_NO_ACTION": "1", 169 "GYP_CHROMIUM_NO_ACTION": "1",
199 "GYP_DEFINES": "branding=Chrome buildtype=Official component=static_librar y gomadir='[CACHE]/cipd/goma' target_arch=x64 use_goma=1", 170 "GYP_DEFINES": "branding=Chrome buildtype=Official component=static_librar y gomadir='[CACHE]/cipd/goma' target_arch=x64 use_goma=1",
200 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 171 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
201 }, 172 },
202 "name": "gclient runhooks (with patch)" 173 "name": "gclient runhooks"
203 }, 174 },
204 { 175 {
205 "cmd": [ 176 "cmd": [
206 "python", 177 "python",
207 "-u", 178 "-u",
208 "[BUILDER_CACHE]/linux_perf_bisect/src/testing/scripts/get_compile_targets .py", 179 "[SLAVE_BUILD]/src/testing/scripts/get_compile_targets.py",
209 "--output", 180 "--output",
210 "/path/to/tmp/json", 181 "/path/to/tmp/json",
211 "--", 182 "--",
212 "--build-config-fs", 183 "--build-config-fs",
213 "Release", 184 "Release",
214 "--paths", 185 "--paths",
215 "{\"checkout\": \"[BUILDER_CACHE]/linux_perf_bisect/src\", \"runit.py\": \ "RECIPE_PACKAGE_REPO[build]/scripts/tools/runit.py\", \"runtest.py\": \"RECIPE_P ACKAGE_REPO[build]/scripts/slave/runtest.py\"}", 186 "{\"checkout\": \"[SLAVE_BUILD]/src\", \"runit.py\": \"RECIPE_PACKAGE_REPO [build]/scripts/tools/runit.py\", \"runtest.py\": \"RECIPE_PACKAGE_REPO[build]/s cripts/slave/runtest.py\"}",
216 "--properties", 187 "--properties",
217 "{\"buildername\": \"linux_perf_bisect\", \"buildnumber\": 571, \"masterna me\": \"tryserver.chromium.perf\", \"results-url\": \"https://chromeperf.appspot .com\", \"slavename\": \"TestSlavename\", \"target_platform\": \"linux\"}" 188 "{\"buildername\": \"linux_perf_bisect\", \"buildnumber\": 571, \"masterna me\": \"tryserver.chromium.perf\", \"results-url\": \"https://chromeperf.appspot .com\", \"slavename\": \"dummyslave\", \"target_platform\": \"linux\"}"
218 ], 189 ],
219 "name": "get compile targets for scripts", 190 "name": "get compile targets for scripts",
220 "~followup_annotations": [ 191 "~followup_annotations": [
221 "@@@STEP_LOG_LINE@json.output@{}@@@", 192 "@@@STEP_LOG_LINE@json.output@{}@@@",
222 "@@@STEP_LOG_END@json.output@@@" 193 "@@@STEP_LOG_END@json.output@@@"
223 ] 194 ]
224 }, 195 },
225 { 196 {
226 "cmd": [ 197 "cmd": [
227 "python", 198 "python",
228 "-u", 199 "-u",
229 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 200 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
230 "[BUILDER_CACHE]/linux_perf_bisect/src/testing/buildbot/tryserver.chromium .perf.json", 201 "[SLAVE_BUILD]/src/testing/buildbot/tryserver.chromium.perf.json",
231 "/path/to/tmp/json" 202 "/path/to/tmp/json"
232 ], 203 ],
233 "name": "read test spec (tryserver.chromium.perf.json)", 204 "name": "read test spec (tryserver.chromium.perf.json)",
234 "~followup_annotations": [ 205 "~followup_annotations": [
235 "@@@STEP_TEXT@path: [BUILDER_CACHE]/linux_perf_bisect/src/testing/buildbot /tryserver.chromium.perf.json@@@", 206 "@@@STEP_TEXT@path: [SLAVE_BUILD]/src/testing/buildbot/tryserver.chromium. perf.json@@@",
236 "@@@STEP_LOG_LINE@json.output@{}@@@", 207 "@@@STEP_LOG_LINE@json.output@{}@@@",
237 "@@@STEP_LOG_END@json.output@@@" 208 "@@@STEP_LOG_END@json.output@@@"
238 ] 209 ]
239 }, 210 },
240 { 211 {
241 "cmd": [ 212 "cmd": [
242 "python",
243 "-u",
244 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os. path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n",
245 "[BUILDER_CACHE]/linux_perf_bisect",
246 "511"
247 ],
248 "name": "makedirs checkout path (2)",
249 "~followup_annotations": [
250 "@@@STEP_LOG_LINE@python.inline@@@@",
251 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
252 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
253 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
254 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
255 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
256 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
257 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
258 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
259 "@@@STEP_LOG_END@python.inline@@@"
260 ]
261 },
262 {
263 "cmd": [
264 "git", 213 "git",
265 "diff", 214 "diff",
266 "--cached", 215 "--cached",
267 "--name-only" 216 "--name-only"
268 ], 217 ],
269 "cwd": "[BUILDER_CACHE]/linux_perf_bisect/src", 218 "cwd": "[SLAVE_BUILD]/src",
270 "name": "git diff to analyze patch", 219 "name": "git diff to analyze patch",
271 "stdout": "/path/to/tmp/", 220 "stdout": "/path/to/tmp/",
272 "~followup_annotations": [ 221 "~followup_annotations": [
273 "@@@STEP_LOG_LINE@files@tools/no_benchmark_file@@@", 222 "@@@STEP_LOG_LINE@files@foo.cc@@@",
274 "@@@STEP_LOG_END@files@@@" 223 "@@@STEP_LOG_END@files@@@"
275 ] 224 ]
276 }, 225 },
277 { 226 {
278 "cmd": [], 227 "cmd": [],
279 "cwd": "[BUILDER_CACHE]/linux_perf_bisect", 228 "cwd": "[SLAVE_BUILD]",
280 "name": "***PERF TRYJOB***" 229 "name": "***BISECT***"
230 },
231 {
232 "cmd": [
233 "git",
234 "update-ref",
235 "refs/heads/master",
236 "refs/remotes/origin/master"
237 ],
238 "cwd": "[SLAVE_BUILD]/src",
239 "name": "git update-ref"
240 },
241 {
242 "cmd": [
243 "git",
244 "checkout",
245 "master"
246 ],
247 "cwd": "[SLAVE_BUILD]/src",
248 "name": "git checkout"
281 }, 249 },
282 { 250 {
283 "cmd": [], 251 "cmd": [],
284 "cwd": "[BUILDER_CACHE]/linux_perf_bisect", 252 "cwd": "[SLAVE_BUILD]",
285 "name": "Results", 253 "name": "config",
286 "~followup_annotations": [ 254 "~followup_annotations": [
287 "@@@STEP_TEXT@There are no modifications to Telemetry benchmarks, aborting the try job.@@@" 255 "@@@STEP_LOG_LINE@Bisect job configuration@{@@@",
256 "@@@STEP_LOG_LINE@Bisect job configuration@ \"bad_revision\": \"314016\", @@@",
257 "@@@STEP_LOG_LINE@Bisect job configuration@ \"bug_id\": \"crbug.com/12312 3\", @@@",
258 "@@@STEP_LOG_LINE@Bisect job configuration@ \"bypass_stats_check\": \"Tru e\", @@@",
259 "@@@STEP_LOG_LINE@Bisect job configuration@ \"command\": \"src/tools/perf /run_benchmark -v --browser=release --output-format=valueset smoothness.tough_sc rolling_cases\", @@@",
260 "@@@STEP_LOG_LINE@Bisect job configuration@ \"dummy_builds\": \"True\", @ @@",
261 "@@@STEP_LOG_LINE@Bisect job configuration@ \"dummy_job_names\": \"True\" , @@@",
262 "@@@STEP_LOG_LINE@Bisect job configuration@ \"dummy_tests\": \"True\", @@ @",
263 "@@@STEP_LOG_LINE@Bisect job configuration@ \"good_revision\": \"314015\" , @@@",
264 "@@@STEP_LOG_LINE@Bisect job configuration@ \"gs_bucket\": \"chrome-perf\ ", @@@",
265 "@@@STEP_LOG_LINE@Bisect job configuration@ \"metric\": \"mean_input_even t_latency/mean_input_event_latency\", @@@",
266 "@@@STEP_LOG_LINE@Bisect job configuration@ \"recipe_tester_name\": \"lin ux_perf_tester\", @@@",
267 "@@@STEP_LOG_LINE@Bisect job configuration@ \"skip_gclient_ops\": \"True\ ", @@@",
268 "@@@STEP_LOG_LINE@Bisect job configuration@ \"test_type\": \"perf\"@@@",
269 "@@@STEP_LOG_LINE@Bisect job configuration@}@@@",
270 "@@@STEP_LOG_END@Bisect job configuration@@@",
271 "@@@SET_BUILD_PROPERTY@extra_result_code@[\"B4T_BAD_CONFIG\"]@@@"
272 ]
273 },
274 {
275 "cmd": [
276 "python",
277 "-u",
278 "import sys; sys.exit(1)"
279 ],
280 "cwd": "[SLAVE_BUILD]",
281 "name": "Recipe failed. Reason: Invalid value 'crbug.com/123123' for \"bug_i d\".",
282 "~followup_annotations": [
283 "@@@STEP_LOG_LINE@python.inline@import sys; sys.exit(1)@@@",
284 "@@@STEP_LOG_END@python.inline@@@"
288 ] 285 ]
289 }, 286 },
290 { 287 {
291 "name": "$result", 288 "name": "$result",
289 "reason": "Invalid value 'crbug.com/123123' for \"bug_id\".",
292 "recipe_result": null, 290 "recipe_result": null,
293 "status_code": 0 291 "status_code": 1
294 } 292 }
295 ] 293 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698