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

Side by Side Diff: scripts/slave/recipes/infra/recipe_roll_tryjob.expected/three_patches.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, 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
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": "",
178 "~followup_annotations": [
179 "@@@STEP_LOG_LINE@json.output@{}@@@",
180 "@@@STEP_LOG_END@json.output@@@"
181 ]
182 },
183 {
184 "cmd": [
185 "RECIPE_PACKAGE_REPO[depot_tools]/git_cl.py",
186 "description",
187 "-d",
188 "--rietveld",
189 "https://fake.code.review/789999"
190 ],
191 "name": "git_cl description (build)",
192 "stdout": "/path/to/tmp/"
193 },
194 {
195 "cmd": [
196 "python",
197 "-u",
198 "RECIPE_PACKAGE_REPO[depot_tools]/git_footers.py",
199 "--json",
200 "/path/to/tmp/json"
201 ],
202 "name": "parse description (2)",
203 "stdin": "",
204 "~followup_annotations": [
205 "@@@STEP_LOG_LINE@json.output@{}@@@",
206 "@@@STEP_LOG_END@json.output@@@"
207 ]
208 },
209 {
210 "cmd": [
146 "python", 211 "python",
147 "-u", 212 "-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", 213 "\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", 214 "[SLAVE_BUILD]/depot_tools/depot_tools",
150 "511" 215 "511"
151 ], 216 ],
152 "name": "makedirs build directory", 217 "name": "makedirs depot_tools directory",
153 "~followup_annotations": [ 218 "~followup_annotations": [
154 "@@@STEP_LOG_LINE@python.inline@@@@", 219 "@@@STEP_LOG_LINE@python.inline@@@@",
155 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", 220 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
156 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", 221 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
157 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", 222 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
158 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", 223 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
159 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", 224 "@@@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@@@", 225 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
161 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", 226 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
162 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", 227 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
163 "@@@STEP_LOG_END@python.inline@@@" 228 "@@@STEP_LOG_END@python.inline@@@"
164 ] 229 ]
165 }, 230 },
166 { 231 {
167 "cmd": [ 232 "cmd": [
168 "python", 233 "python",
169 "-u", 234 "-u",
170 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 235 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
171 "--spec", 236 "--spec",
172 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'build', 'url': 'https://repo.repo/build'}]", 237 "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", 238 "--root",
174 "build", 239 "depot_tools",
175 "--revision_mapping_file", 240 "--revision_mapping_file",
176 "{}", 241 "{}",
177 "--git-cache-dir", 242 "--git-cache-dir",
178 "[SLAVE_BUILD]/__cache_dir", 243 "[SLAVE_BUILD]/__cache_dir",
179 "--issue", 244 "--issue",
180 "12345678", 245 "123456",
181 "--patchset", 246 "--patchset",
182 "1", 247 "1",
183 "--rietveld_server", 248 "--rietveld_server",
184 "https://fake.code.review", 249 "https://fake.code.review",
185 "--output_json", 250 "--output_json",
186 "/path/to/tmp/json", 251 "/path/to/tmp/json",
187 "--revision", 252 "--revision",
188 "build@HEAD", 253 "depot_tools@HEAD",
189 "--force", 254 "--force",
190 "--output_manifest" 255 "--output_manifest"
191 ], 256 ],
192 "cwd": "[SLAVE_BUILD]/build", 257 "cwd": "[SLAVE_BUILD]/depot_tools",
193 "env": { 258 "env": {
194 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 259 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
195 }, 260 },
196 "name": "bot_update - build", 261 "name": "bot_update - depot_tools",
197 "~followup_annotations": [ 262 "~followup_annotations": [
198 "@@@STEP_TEXT@Some step text@@@", 263 "@@@STEP_TEXT@Some step text@@@",
199 "@@@STEP_LOG_LINE@json.output@{@@@", 264 "@@@STEP_LOG_LINE@json.output@{@@@",
200 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 265 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
201 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 266 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
202 "@@@STEP_LOG_LINE@json.output@ \"build\": \"HEAD\"@@@", 267 "@@@STEP_LOG_LINE@json.output@ \"depot_tools\": \"HEAD\"@@@",
203 "@@@STEP_LOG_LINE@json.output@ }, @@@", 268 "@@@STEP_LOG_LINE@json.output@ }, @@@",
204 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {}, @@@", 269 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {}, @@@",
205 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", 270 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
206 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"build\", @@@", 271 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"depot_tools\", @@@",
207 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@", 272 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
208 "@@@STEP_LOG_LINE@json.output@ \"root\": \"build\", @@@", 273 "@@@STEP_LOG_LINE@json.output@ \"root\": \"depot_tools\", @@@",
209 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", 274 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
210 "@@@STEP_LOG_LINE@json.output@}@@@", 275 "@@@STEP_LOG_LINE@json.output@}@@@",
211 "@@@STEP_LOG_END@json.output@@@" 276 "@@@STEP_LOG_END@json.output@@@"
212 ] 277 ]
213 }, 278 },
214 { 279 {
215 "cmd": [ 280 "cmd": [
216 "python", 281 "python",
217 "-u", 282 "-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", 283 "\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", 304 "-u",
240 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 305 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
241 "--spec", 306 "--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'}]", 307 "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", 308 "--root",
244 "recipe_engine", 309 "recipe_engine",
245 "--revision_mapping_file", 310 "--revision_mapping_file",
246 "{}", 311 "{}",
247 "--git-cache-dir", 312 "--git-cache-dir",
248 "[SLAVE_BUILD]/__cache_dir", 313 "[SLAVE_BUILD]/__cache_dir",
249 "--rietveld_server",
250 "https://fake.code.review",
251 "--output_json", 314 "--output_json",
252 "/path/to/tmp/json", 315 "/path/to/tmp/json",
253 "--revision", 316 "--revision",
254 "recipe_engine@HEAD", 317 "recipe_engine@HEAD",
255 "--force", 318 "--force",
256 "--output_manifest" 319 "--output_manifest"
257 ], 320 ],
258 "cwd": "[SLAVE_BUILD]/recipe_engine", 321 "cwd": "[SLAVE_BUILD]/recipe_engine",
259 "env": { 322 "env": {
260 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" 323 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
(...skipping 11 matching lines...) Expand all
272 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"recipe_engine\", @@@", 335 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"recipe_engine\", @@@",
273 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@", 336 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
274 "@@@STEP_LOG_LINE@json.output@ \"root\": \"recipe_engine\", @@@", 337 "@@@STEP_LOG_LINE@json.output@ \"root\": \"recipe_engine\", @@@",
275 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", 338 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
276 "@@@STEP_LOG_LINE@json.output@}@@@", 339 "@@@STEP_LOG_LINE@json.output@}@@@",
277 "@@@STEP_LOG_END@json.output@@@" 340 "@@@STEP_LOG_END@json.output@@@"
278 ] 341 ]
279 }, 342 },
280 { 343 {
281 "cmd": [ 344 "cmd": [
345 "python",
346 "-u",
347 "\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",
348 "[SLAVE_BUILD]/build/build",
349 "511"
350 ],
351 "name": "makedirs build directory",
352 "~followup_annotations": [
353 "@@@STEP_LOG_LINE@python.inline@@@@",
354 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
355 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
356 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
357 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
358 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
359 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
360 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
361 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
362 "@@@STEP_LOG_END@python.inline@@@"
363 ]
364 },
365 {
366 "cmd": [
367 "python",
368 "-u",
369 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
370 "--spec",
371 "cache_dir = '[SLAVE_BUILD]/__cache_dir'\nsolutions = [{'deps_file': '.DEP S.git', 'managed': True, 'name': 'build', 'url': 'https://repo.repo/build'}]",
372 "--root",
373 "build",
374 "--revision_mapping_file",
375 "{}",
376 "--git-cache-dir",
377 "[SLAVE_BUILD]/__cache_dir",
378 "--issue",
379 "789999",
380 "--patchset",
381 "2",
382 "--rietveld_server",
383 "https://fake.code.review",
384 "--output_json",
385 "/path/to/tmp/json",
386 "--revision",
387 "build@HEAD",
388 "--force",
389 "--output_manifest"
390 ],
391 "cwd": "[SLAVE_BUILD]/build",
392 "env": {
393 "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
394 },
395 "name": "bot_update - build",
396 "~followup_annotations": [
397 "@@@STEP_TEXT@Some step text@@@",
398 "@@@STEP_LOG_LINE@json.output@{@@@",
399 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
400 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
401 "@@@STEP_LOG_LINE@json.output@ \"build\": \"HEAD\"@@@",
402 "@@@STEP_LOG_LINE@json.output@ }, @@@",
403 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {}, @@@",
404 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
405 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"build\", @@@",
406 "@@@STEP_LOG_LINE@json.output@ \"properties\": {}, @@@",
407 "@@@STEP_LOG_LINE@json.output@ \"root\": \"build\", @@@",
408 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
409 "@@@STEP_LOG_LINE@json.output@}@@@",
410 "@@@STEP_LOG_END@json.output@@@"
411 ]
412 },
413 {
414 "cmd": [
415 "[SLAVE_BUILD]/infra/ENV/bin/python",
416 "-u",
417 "[SLAVE_BUILD]/depot_tools/depot_tools/recipes.py",
418 "-O",
419 "recipe_engine=[SLAVE_BUILD]/recipe_engine/recipe_engine",
420 "--package",
421 "[SLAVE_BUILD]/depot_tools/depot_tools/infra/config/recipes.cfg",
422 "simulation_test"
423 ],
424 "name": "depot_tools tests"
425 },
426 {
427 "cmd": [
282 "[SLAVE_BUILD]/infra/ENV/bin/python", 428 "[SLAVE_BUILD]/infra/ENV/bin/python",
283 "-u", 429 "-u",
284 "[SLAVE_BUILD]/recipe_engine/recipe_engine/recipes.py", 430 "[SLAVE_BUILD]/recipe_engine/recipe_engine/recipes.py",
285 "--package", 431 "--package",
286 "[SLAVE_BUILD]/recipe_engine/recipe_engine/infra/config/recipes.cfg", 432 "[SLAVE_BUILD]/recipe_engine/recipe_engine/infra/config/recipes.cfg",
287 "simulation_test" 433 "simulation_test"
288 ], 434 ],
289 "name": "recipe_engine tests" 435 "name": "recipe_engine tests"
290 }, 436 },
291 { 437 {
292 "cmd": [ 438 "cmd": [
293 "[SLAVE_BUILD]/infra/ENV/bin/python", 439 "[SLAVE_BUILD]/infra/ENV/bin/python",
294 "-u", 440 "-u",
295 "[SLAVE_BUILD]/build/build/recipes.py", 441 "[SLAVE_BUILD]/build/build/recipes.py",
296 "-O", 442 "-O",
443 "depot_tools=[SLAVE_BUILD]/depot_tools/depot_tools",
444 "-O",
297 "recipe_engine=[SLAVE_BUILD]/recipe_engine/recipe_engine", 445 "recipe_engine=[SLAVE_BUILD]/recipe_engine/recipe_engine",
298 "--package", 446 "--package",
299 "[SLAVE_BUILD]/build/build/infra/config/recipes.cfg", 447 "[SLAVE_BUILD]/build/build/infra/config/recipes.cfg",
300 "simulation_test" 448 "simulation_test"
301 ], 449 ],
302 "name": "build tests" 450 "name": "build tests"
303 }, 451 },
304 { 452 {
305 "name": "$result", 453 "name": "$result",
306 "recipe_result": null, 454 "recipe_result": null,
307 "status_code": 0 455 "status_code": 0
308 } 456 }
309 ] 457 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698