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

Side by Side Diff: scripts/slave/recipes/infra/recipe_roll_tryjob.expected/three_patches_fail_ok.json

Issue 1971983002: recipe_tryjob: Allow test bypass. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebase Created 4 years, 7 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 "/opt/infra-tools/authutil", 4 "/opt/infra-tools/authutil",
5 "token" 5 "token"
6 ], 6 ],
7 "name": "Get auth token", 7 "name": "Get auth token",
8 "stdout": "/path/to/tmp/" 8 "stdout": "/path/to/tmp/"
9 }, 9 },
10 { 10 {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 "--headers-json", 113 "--headers-json",
114 "{\"Authorization\": \"Bearer ya29.foobar\"}" 114 "{\"Authorization\": \"Bearer ya29.foobar\"}"
115 ], 115 ],
116 "name": "Get luci-config projects" 116 "name": "Get luci-config projects"
117 }, 117 },
118 { 118 {
119 "cmd": [ 119 "cmd": [
120 "python", 120 "python",
121 "-u", 121 "-u",
122 "RECIPE_PACKAGE_REPO[build]/scripts/tools/pycurl.py", 122 "RECIPE_PACKAGE_REPO[build]/scripts/tools/pycurl.py",
123 "https://luci-config.appspot.com//_ah/api/config/v1/config_sets/projects%2 Fdepot_tools%2Frefs%2Fheads%2Fmaster/config/recipes.cfg",
124 "--outfile",
125 "/path/to/tmp/",
126 "--headers-json",
127 "{\"Authorization\": \"Bearer ya29.foobar\"}"
128 ],
129 "name": "Get project 'depot_tools' config 'recipes.cfg'"
130 },
131 {
132 "cmd": [
133 "python",
134 "-u",
135 "RECIPE_PACKAGE_REPO[build]/scripts/tools/pycurl.py",
123 "https://luci-config.appspot.com//_ah/api/config/v1/config_sets/projects%2 Frecipe_engine%2Frefs%2Fheads%2Fmaster/config/recipes.cfg", 136 "https://luci-config.appspot.com//_ah/api/config/v1/config_sets/projects%2 Frecipe_engine%2Frefs%2Fheads%2Fmaster/config/recipes.cfg",
124 "--outfile", 137 "--outfile",
125 "/path/to/tmp/", 138 "/path/to/tmp/",
126 "--headers-json", 139 "--headers-json",
127 "{\"Authorization\": \"Bearer ya29.foobar\"}" 140 "{\"Authorization\": \"Bearer ya29.foobar\"}"
128 ], 141 ],
129 "name": "Get project 'recipe_engine' config 'recipes.cfg'" 142 "name": "Get project 'recipe_engine' config 'recipes.cfg'"
130 }, 143 },
131 { 144 {
132 "cmd": [ 145 "cmd": [
133 "python", 146 "python",
134 "-u", 147 "-u",
135 "RECIPE_PACKAGE_REPO[build]/scripts/tools/pycurl.py", 148 "RECIPE_PACKAGE_REPO[build]/scripts/tools/pycurl.py",
136 "https://luci-config.appspot.com//_ah/api/config/v1/config_sets/projects%2 Fbuild%2Frefs%2Fheads%2Fmaster/config/recipes.cfg", 149 "https://luci-config.appspot.com//_ah/api/config/v1/config_sets/projects%2 Fbuild%2Frefs%2Fheads%2Fmaster/config/recipes.cfg",
137 "--outfile", 150 "--outfile",
138 "/path/to/tmp/", 151 "/path/to/tmp/",
139 "--headers-json", 152 "--headers-json",
140 "{\"Authorization\": \"Bearer ya29.foobar\"}" 153 "{\"Authorization\": \"Bearer ya29.foobar\"}"
141 ], 154 ],
142 "name": "Get project 'build' config 'recipes.cfg'" 155 "name": "Get project 'build' config 'recipes.cfg'"
143 }, 156 },
144 { 157 {
145 "cmd": [ 158 "cmd": [
159 "RECIPE_PACKAGE_REPO[depot_tools]/git_cl.py",
160 "description",
161 "-d",
162 "--rietveld",
163 "https://fake.code.review/123456"
164 ],
165 "name": "git_cl description (depot_tools)",
166 "stdout": "/path/to/tmp/"
167 },
168 {
169 "cmd": [
170 "python",
171 "-u",
172 "RECIPE_PACKAGE_REPO[depot_tools]/git_footers.py",
173 "--json",
174 "/path/to/tmp/json"
175 ],
176 "name": "parse description",
177 "stdin": "Recipe-Tryjob-Bypass-Reason: best reason",
178 "~followup_annotations": [
179 "@@@STEP_LOG_LINE@json.output@{@@@",
180 "@@@STEP_LOG_LINE@json.output@ \"Recipe-Tryjob-Bypass-Reason\": [@@@",
181 "@@@STEP_LOG_LINE@json.output@ \"Best Reason\"@@@",
182 "@@@STEP_LOG_LINE@json.output@ ]@@@",
183 "@@@STEP_LOG_LINE@json.output@}@@@",
184 "@@@STEP_LOG_END@json.output@@@"
185 ]
186 },
187 {
188 "cmd": [
189 "RECIPE_PACKAGE_REPO[depot_tools]/git_cl.py",
190 "description",
191 "-d",
192 "--rietveld",
193 "https://fake.code.review/789999"
194 ],
195 "name": "git_cl description (build)",
196 "stdout": "/path/to/tmp/"
197 },
198 {
199 "cmd": [
200 "python",
201 "-u",
202 "RECIPE_PACKAGE_REPO[depot_tools]/git_footers.py",
203 "--json",
204 "/path/to/tmp/json"
205 ],
206 "name": "parse description (2)",
207 "stdin": "foo",
208 "~followup_annotations": [
209 "@@@STEP_LOG_LINE@json.output@{@@@",
210 "@@@STEP_LOG_LINE@json.output@ \"Recipe-Tryjob-Bypass-Reason\": []@@@",
211 "@@@STEP_LOG_LINE@json.output@}@@@",
212 "@@@STEP_LOG_END@json.output@@@"
213 ]
214 },
215 {
216 "cmd": [
146 "python", 217 "python",
147 "-u", 218 "-u",
148 "\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", 219 "\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",
149 "[SLAVE_BUILD]/build/build", 220 "[SLAVE_BUILD]/depot_tools/depot_tools",
150 "511" 221 "511"
151 ], 222 ],
152 "name": "makedirs build directory", 223 "name": "makedirs depot_tools directory",
153 "~followup_annotations": [ 224 "~followup_annotations": [
154 "@@@STEP_LOG_LINE@python.inline@@@@", 225 "@@@STEP_LOG_LINE@python.inline@@@@",
155 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 226 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
156 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 227 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
157 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 228 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
158 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 229 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
159 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 230 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
160 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", 231 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
161 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 232 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
162 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 233 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
163 "@@@STEP_LOG_END@python.inline@@@" 234 "@@@STEP_LOG_END@python.inline@@@"
164 ] 235 ]
165 }, 236 },
166 { 237 {
167 "cmd": [ 238 "cmd": [
168 "python", 239 "python",
169 "-u", 240 "-u",
170 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 241 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
171 "--spec", 242 "--spec",
172 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'build', 'url': 'https://repo.repo/build'}]", 243 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'depot_tools', 'url': 'https://repo.repo/depot_ tools'}]",
173 "--root", 244 "--root",
174 "build", 245 "depot_tools",
175 "--revision_mapping_file", 246 "--revision_mapping_file",
176 "{}", 247 "{}",
177 "--git-cache-dir", 248 "--git-cache-dir",
178 "[SLAVE_BUILD]/__cache_dir", 249 "[SLAVE_BUILD]/__cache_dir",
179 "--issue", 250 "--issue",
180 "12345678", 251 "123456",
181 "--patchset", 252 "--patchset",
182 "1", 253 "1",
183 "--rietveld_server", 254 "--rietveld_server",
184 "https://fake.code.review", 255 "https://fake.code.review",
185 "--output_json", 256 "--output_json",
186 "/path/to/tmp/json", 257 "/path/to/tmp/json",
187 "--revision", 258 "--revision",
188 "build@HEAD", 259 "depot_tools@HEAD",
189 "--force", 260 "--force",
190 "--output_manifest" 261 "--output_manifest"
191 ], 262 ],
192 "cwd": "[SLAVE_BUILD]/build", 263 "cwd": "[SLAVE_BUILD]/depot_tools",
193 "env": { 264 "env": {
194 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 265 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
195 }, 266 },
196 "name": "bot_update - build", 267 "name": "bot_update - depot_tools",
197 "~followup_annotations": [ 268 "~followup_annotations": [
198 "@@@STEP_TEXT@Some step text@@@", 269 "@@@STEP_TEXT@Some step text@@@",
199 "@@@STEP_LOG_LINE@json.output@{@@@", 270 "@@@STEP_LOG_LINE@json.output@{@@@",
200 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 271 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
201 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 272 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
202 "@@@STEP_LOG_LINE@json.output@ \"build\": \"HEAD\"@@@", 273 "@@@STEP_LOG_LINE@json.output@ \"depot_tools\": \"HEAD\"@@@",
203 "@@@STEP_LOG_LINE@json.output@ }, @@@", 274 "@@@STEP_LOG_LINE@json.output@ }, @@@",
204 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {}, @@@", 275 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {}, @@@",
205 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", 276 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
206 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"build\", @@@", 277 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"depot_tools\", @@@",
207 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@", 278 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
208 "@@@STEP_LOG_LINE@json.output@ \"root\": \"build\", @@@", 279 "@@@STEP_LOG_LINE@json.output@ \"root\": \"depot_tools\", @@@",
209 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", 280 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
210 "@@@STEP_LOG_LINE@json.output@}@@@", 281 "@@@STEP_LOG_LINE@json.output@}@@@",
211 "@@@STEP_LOG_END@json.output@@@" 282 "@@@STEP_LOG_END@json.output@@@"
212 ] 283 ]
213 }, 284 },
214 { 285 {
215 "cmd": [ 286 "cmd": [
216 "python", 287 "python",
217 "-u", 288 "-u",
218 "\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", 289 "\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",
(...skipping 20 matching lines...) Expand all
239 "-u", 310 "-u",
240 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 311 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
241 "--spec", 312 "--spec",
242 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'recipe_engine', 'url': 'https://repo.repo/reci pe_engine'}]", 313 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'recipe_engine', 'url': 'https://repo.repo/reci pe_engine'}]",
243 "--root", 314 "--root",
244 "recipe_engine", 315 "recipe_engine",
245 "--revision_mapping_file", 316 "--revision_mapping_file",
246 "{}", 317 "{}",
247 "--git-cache-dir", 318 "--git-cache-dir",
248 "[SLAVE_BUILD]/__cache_dir", 319 "[SLAVE_BUILD]/__cache_dir",
249 "--rietveld_server",
250 "https://fake.code.review",
251 "--output_json", 320 "--output_json",
252 "/path/to/tmp/json", 321 "/path/to/tmp/json",
253 "--revision", 322 "--revision",
254 "recipe_engine@HEAD", 323 "recipe_engine@HEAD",
255 "--force", 324 "--force",
256 "--output_manifest" 325 "--output_manifest"
257 ], 326 ],
258 "cwd": "[SLAVE_BUILD]/recipe_engine", 327 "cwd": "[SLAVE_BUILD]/recipe_engine",
259 "env": { 328 "env": {
260 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 329 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
(...skipping 11 matching lines...) Expand all
272 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"recipe_engine\", @@@", 341 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"recipe_engine\", @@@",
273 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@", 342 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
274 "@@@STEP_LOG_LINE@json.output@ \"root\": \"recipe_engine\", @@@", 343 "@@@STEP_LOG_LINE@json.output@ \"root\": \"recipe_engine\", @@@",
275 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", 344 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
276 "@@@STEP_LOG_LINE@json.output@}@@@", 345 "@@@STEP_LOG_LINE@json.output@}@@@",
277 "@@@STEP_LOG_END@json.output@@@" 346 "@@@STEP_LOG_END@json.output@@@"
278 ] 347 ]
279 }, 348 },
280 { 349 {
281 "cmd": [ 350 "cmd": [
351 "python",
352 "-u",
353 "\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",
354 "[SLAVE_BUILD]/build/build",
355 "511"
356 ],
357 "name": "makedirs build directory",
358 "~followup_annotations": [
359 "@@@STEP_LOG_LINE@python.inline@@@@",
360 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
361 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
362 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
363 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
364 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
365 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
366 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
367 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
368 "@@@STEP_LOG_END@python.inline@@@"
369 ]
370 },
371 {
372 "cmd": [
373 "python",
374 "-u",
375 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
376 "--spec",
377 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'build', 'url': 'https://repo.repo/build'}]",
378 "--root",
379 "build",
380 "--revision_mapping_file",
381 "{}",
382 "--git-cache-dir",
383 "[SLAVE_BUILD]/__cache_dir",
384 "--issue",
385 "789999",
386 "--patchset",
387 "2",
388 "--rietveld_server",
389 "https://fake.code.review",
390 "--output_json",
391 "/path/to/tmp/json",
392 "--revision",
393 "build@HEAD",
394 "--force",
395 "--output_manifest"
396 ],
397 "cwd": "[SLAVE_BUILD]/build",
398 "env": {
399 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
400 },
401 "name": "bot_update - build",
402 "~followup_annotations": [
403 "@@@STEP_TEXT@Some step text@@@",
404 "@@@STEP_LOG_LINE@json.output@{@@@",
405 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
406 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
407 "@@@STEP_LOG_LINE@json.output@ \"build\": \"HEAD\"@@@",
408 "@@@STEP_LOG_LINE@json.output@ }, @@@",
409 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {}, @@@",
410 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
411 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"build\", @@@",
412 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
413 "@@@STEP_LOG_LINE@json.output@ \"root\": \"build\", @@@",
414 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
415 "@@@STEP_LOG_LINE@json.output@}@@@",
416 "@@@STEP_LOG_END@json.output@@@"
417 ]
418 },
419 {
420 "cmd": [
421 "[SLAVE_BUILD]/infra/ENV/bin/python",
422 "-u",
423 "[SLAVE_BUILD]/depot_tools/depot_tools/recipes.py",
424 "-O",
425 "recipe_engine=[SLAVE_BUILD]/recipe_engine/recipe_engine",
426 "--package",
427 "[SLAVE_BUILD]/depot_tools/depot_tools/infra/config/recipes.cfg",
428 "simulation_test"
429 ],
430 "name": "depot_tools tests"
431 },
432 {
433 "cmd": [
282 "[SLAVE_BUILD]/infra/ENV/bin/python", 434 "[SLAVE_BUILD]/infra/ENV/bin/python",
283 "-u", 435 "-u",
284 "[SLAVE_BUILD]/recipe_engine/recipe_engine/recipes.py", 436 "[SLAVE_BUILD]/recipe_engine/recipe_engine/recipes.py",
285 "--package", 437 "--package",
286 "[SLAVE_BUILD]/recipe_engine/recipe_engine/infra/config/recipes.cfg", 438 "[SLAVE_BUILD]/recipe_engine/recipe_engine/infra/config/recipes.cfg",
287 "simulation_test" 439 "simulation_test"
288 ], 440 ],
289 "name": "recipe_engine tests" 441 "name": "recipe_engine tests"
290 }, 442 },
291 { 443 {
292 "cmd": [ 444 "cmd": [
293 "[SLAVE_BUILD]/infra/ENV/bin/python", 445 "[SLAVE_BUILD]/infra/ENV/bin/python",
294 "-u", 446 "-u",
295 "[SLAVE_BUILD]/build/build/recipes.py", 447 "[SLAVE_BUILD]/build/build/recipes.py",
296 "-O", 448 "-O",
449 "depot_tools=[SLAVE_BUILD]/depot_tools/depot_tools",
450 "-O",
297 "recipe_engine=[SLAVE_BUILD]/recipe_engine/recipe_engine", 451 "recipe_engine=[SLAVE_BUILD]/recipe_engine/recipe_engine",
298 "--package", 452 "--package",
299 "[SLAVE_BUILD]/build/build/infra/config/recipes.cfg", 453 "[SLAVE_BUILD]/build/build/infra/config/recipes.cfg",
300 "simulation_test" 454 "simulation_test"
301 ], 455 ],
302 "name": "build tests" 456 "name": "build tests",
457 "~followup_annotations": [
458 "step returned non-zero exit code: 1",
459 "@@@STEP_FAILURE@@@"
460 ]
303 }, 461 },
304 { 462 {
305 "name": "$result", 463 "name": "$result",
306 "recipe_result": null, 464 "recipe_result": null,
307 "status_code": 0 465 "status_code": 0
308 } 466 }
309 ] 467 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698