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

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: Rebasing, addressing 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 "--master", 7 "--master",
30 "tryserver.chromium.perf", 8 "tryserver.chromium.perf",
31 "--builder", 9 "--builder",
32 "linux_perf_bisect", 10 "linux_perf_bisect",
33 "--slave", 11 "--slave",
34 "TestSlavename", 12 "dummyslave",
35 "--spec", 13 "--spec",
36 "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'}]", 14 "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'}]",
37 "--root", 15 "--root",
38 "src", 16 "src",
39 "--revision_mapping_file", 17 "--revision_mapping_file",
40 "{\"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\"}", 18 "{\"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\"}",
41 "--git-cache-dir", 19 "--git-cache-dir",
42 "[GIT_CACHE]", 20 "[GIT_CACHE]",
43 "--issue",
44 "12345",
45 "--patchset",
46 "20001",
47 "--rietveld_server",
48 "https://codereview.chromium.org",
49 "--output_json", 21 "--output_json",
50 "/path/to/tmp/json", 22 "/path/to/tmp/json",
51 "--revision", 23 "--revision",
52 "src@HEAD", 24 "src@HEAD",
53 "--output_manifest" 25 "--output_manifest"
54 ], 26 ],
55 "cwd": "[BUILDER_CACHE]/linux_perf_bisect",
56 "env": { 27 "env": {
57 "GCLIENT_KILL_GIT_FETCH_AFTER": "1200", 28 "GCLIENT_KILL_GIT_FETCH_AFTER": "1200",
58 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 29 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
59 }, 30 },
60 "name": "bot_update", 31 "name": "bot_update",
61 "~followup_annotations": [ 32 "~followup_annotations": [
62 "@@@STEP_TEXT@Some step text@@@", 33 "@@@STEP_TEXT@Some step text@@@",
63 "@@@STEP_LOG_LINE@json.output@{@@@", 34 "@@@STEP_LOG_LINE@json.output@{@@@",
64 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 35 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
65 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 36 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 "@@@STEP_LOG_END@json.output@@@" 162 "@@@STEP_LOG_END@json.output@@@"
192 ] 163 ]
193 }, 164 },
194 { 165 {
195 "cmd": [ 166 "cmd": [
196 "python", 167 "python",
197 "-u", 168 "-u",
198 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py", 169 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
199 "runhooks" 170 "runhooks"
200 ], 171 ],
201 "cwd": "[BUILDER_CACHE]/linux_perf_bisect/src", 172 "cwd": "[SLAVE_BUILD]/src",
202 "env": { 173 "env": {
203 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json", 174 "GOMA_SERVICE_ACCOUNT_JSON_FILE": "/creds/service_accounts/service-account -goma-client.json",
204 "GYP_CHROMIUM_NO_ACTION": "1", 175 "GYP_CHROMIUM_NO_ACTION": "1",
205 "GYP_DEFINES": "branding=Chrome buildtype=Official component=static_librar y gomadir='[CACHE]/cipd/goma' target_arch=x64 use_goma=1", 176 "GYP_DEFINES": "branding=Chrome buildtype=Official component=static_librar y gomadir='[CACHE]/cipd/goma' target_arch=x64 use_goma=1",
206 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 177 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
207 }, 178 },
208 "name": "gclient runhooks (with patch)" 179 "name": "gclient runhooks"
209 }, 180 },
210 { 181 {
211 "cmd": [ 182 "cmd": [
212 "python", 183 "python",
213 "-u", 184 "-u",
214 "[BUILDER_CACHE]/linux_perf_bisect/src/testing/scripts/get_compile_targets .py", 185 "[SLAVE_BUILD]/src/testing/scripts/get_compile_targets.py",
215 "--output", 186 "--output",
216 "/path/to/tmp/json", 187 "/path/to/tmp/json",
217 "--", 188 "--",
218 "--build-config-fs", 189 "--build-config-fs",
219 "Release", 190 "Release",
220 "--paths", 191 "--paths",
221 "{\"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\"}", 192 "{\"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\"}",
222 "--properties", 193 "--properties",
223 "{\"buildername\": \"linux_perf_bisect\", \"buildnumber\": 571, \"masterna me\": \"tryserver.chromium.perf\", \"slavename\": \"TestSlavename\", \"target_pl atform\": \"linux\"}" 194 "{\"buildername\": \"linux_perf_bisect\", \"buildnumber\": 571, \"masterna me\": \"tryserver.chromium.perf\", \"slavename\": \"dummyslave\", \"target_platf orm\": \"linux\"}"
224 ], 195 ],
225 "name": "get compile targets for scripts", 196 "name": "get compile targets for scripts",
226 "~followup_annotations": [ 197 "~followup_annotations": [
227 "@@@STEP_LOG_LINE@json.output@{}@@@", 198 "@@@STEP_LOG_LINE@json.output@{}@@@",
228 "@@@STEP_LOG_END@json.output@@@" 199 "@@@STEP_LOG_END@json.output@@@"
229 ] 200 ]
230 }, 201 },
231 { 202 {
232 "cmd": [ 203 "cmd": [
233 "python", 204 "python",
234 "-u", 205 "-u",
235 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", 206 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
236 "[BUILDER_CACHE]/linux_perf_bisect/src/testing/buildbot/tryserver.chromium .perf.json", 207 "[SLAVE_BUILD]/src/testing/buildbot/tryserver.chromium.perf.json",
237 "/path/to/tmp/json" 208 "/path/to/tmp/json"
238 ], 209 ],
239 "name": "read test spec (tryserver.chromium.perf.json)", 210 "name": "read test spec (tryserver.chromium.perf.json)",
240 "~followup_annotations": [ 211 "~followup_annotations": [
241 "@@@STEP_TEXT@path: [BUILDER_CACHE]/linux_perf_bisect/src/testing/buildbot /tryserver.chromium.perf.json@@@", 212 "@@@STEP_TEXT@path: [SLAVE_BUILD]/src/testing/buildbot/tryserver.chromium. perf.json@@@",
242 "@@@STEP_LOG_LINE@json.output@{}@@@", 213 "@@@STEP_LOG_LINE@json.output@{}@@@",
243 "@@@STEP_LOG_END@json.output@@@" 214 "@@@STEP_LOG_END@json.output@@@"
244 ] 215 ]
245 }, 216 },
246 { 217 {
247 "cmd": [ 218 "cmd": [
248 "python",
249 "-u",
250 "\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",
251 "[BUILDER_CACHE]/linux_perf_bisect",
252 "511"
253 ],
254 "name": "makedirs checkout path (2)",
255 "~followup_annotations": [
256 "@@@STEP_LOG_LINE@python.inline@@@@",
257 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
258 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
259 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
260 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
261 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
262 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
263 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
264 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
265 "@@@STEP_LOG_END@python.inline@@@"
266 ]
267 },
268 {
269 "cmd": [
270 "git", 219 "git",
271 "diff", 220 "diff",
272 "--cached", 221 "--cached",
273 "--name-only" 222 "--name-only"
274 ], 223 ],
275 "cwd": "[BUILDER_CACHE]/linux_perf_bisect/src", 224 "cwd": "[SLAVE_BUILD]/src",
276 "name": "git diff to analyze patch", 225 "name": "git diff to analyze patch",
277 "stdout": "/path/to/tmp/", 226 "stdout": "/path/to/tmp/",
278 "~followup_annotations": [ 227 "~followup_annotations": [
279 "@@@STEP_LOG_LINE@files@tools/no_benchmark_file@@@", 228 "@@@STEP_LOG_LINE@files@foo.cc@@@",
280 "@@@STEP_LOG_END@files@@@" 229 "@@@STEP_LOG_END@files@@@"
281 ] 230 ]
282 }, 231 },
283 { 232 {
284 "cmd": [], 233 "cmd": [],
285 "cwd": "[BUILDER_CACHE]/linux_perf_bisect", 234 "cwd": "[SLAVE_BUILD]",
286 "name": "***PERF TRYJOB***" 235 "name": "***BISECT***"
236 },
237 {
238 "cmd": [
239 "git",
240 "update-ref",
241 "refs/heads/master",
242 "refs/remotes/origin/master"
243 ],
244 "cwd": "[SLAVE_BUILD]/src",
245 "name": "git update-ref"
246 },
247 {
248 "cmd": [
249 "git",
250 "checkout",
251 "master"
252 ],
253 "cwd": "[SLAVE_BUILD]/src",
254 "name": "git checkout"
287 }, 255 },
288 { 256 {
289 "cmd": [], 257 "cmd": [],
290 "cwd": "[BUILDER_CACHE]/linux_perf_bisect", 258 "cwd": "[SLAVE_BUILD]",
291 "name": "Results", 259 "name": "config",
292 "~followup_annotations": [ 260 "~followup_annotations": [
293 "@@@STEP_TEXT@There are no modifications to Telemetry benchmarks, aborting the try job.@@@" 261 "@@@STEP_LOG_LINE@Bisect job configuration@{@@@",
262 "@@@STEP_LOG_LINE@Bisect job configuration@ \"bad_revision\": \"314016\", @@@",
263 "@@@STEP_LOG_LINE@Bisect job configuration@ \"bug_id\": \"crbug.com/12312 3\", @@@",
264 "@@@STEP_LOG_LINE@Bisect job configuration@ \"bypass_stats_check\": \"Tru e\", @@@",
265 "@@@STEP_LOG_LINE@Bisect job configuration@ \"command\": \"src/tools/perf /run_benchmark -v --browser=release --output-format=valueset smoothness.tough_sc rolling_cases\", @@@",
266 "@@@STEP_LOG_LINE@Bisect job configuration@ \"dummy_builds\": \"True\", @ @@",
267 "@@@STEP_LOG_LINE@Bisect job configuration@ \"dummy_job_names\": \"True\" , @@@",
268 "@@@STEP_LOG_LINE@Bisect job configuration@ \"dummy_tests\": \"True\", @@ @",
269 "@@@STEP_LOG_LINE@Bisect job configuration@ \"good_revision\": \"314015\" , @@@",
270 "@@@STEP_LOG_LINE@Bisect job configuration@ \"gs_bucket\": \"chrome-perf\ ", @@@",
271 "@@@STEP_LOG_LINE@Bisect job configuration@ \"metric\": \"mean_input_even t_latency/mean_input_event_latency\", @@@",
272 "@@@STEP_LOG_LINE@Bisect job configuration@ \"recipe_tester_name\": \"lin ux_perf_tester\", @@@",
273 "@@@STEP_LOG_LINE@Bisect job configuration@ \"skip_gclient_ops\": \"True\ ", @@@",
274 "@@@STEP_LOG_LINE@Bisect job configuration@ \"test_type\": \"perf\"@@@",
275 "@@@STEP_LOG_LINE@Bisect job configuration@}@@@",
276 "@@@STEP_LOG_END@Bisect job configuration@@@",
277 "@@@SET_BUILD_PROPERTY@extra_result_code@[\"B4T_BAD_CONFIG\"]@@@"
278 ]
279 },
280 {
281 "cmd": [
282 "python",
283 "-u",
284 "import sys; sys.exit(1)"
285 ],
286 "cwd": "[SLAVE_BUILD]",
287 "name": "Recipe failed. Reason: Invalid value 'crbug.com/123123' for \"bug_i d\".",
288 "~followup_annotations": [
289 "@@@STEP_LOG_LINE@python.inline@import sys; sys.exit(1)@@@",
290 "@@@STEP_LOG_END@python.inline@@@"
294 ] 291 ]
295 }, 292 },
296 { 293 {
297 "name": "$result", 294 "name": "$result",
295 "reason": "Invalid value 'crbug.com/123123' for \"bug_id\".",
298 "recipe_result": null, 296 "recipe_result": null,
299 "status_code": 0 297 "status_code": 1
300 } 298 }
301 ] 299 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698