Eric Boren | 8b3f9e6 | 2017-04-04 09:06:16 -0400 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "cmd": [ |
| 4 | "python", |
| 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 | "[CUSTOM_/_B_WORK]", |
| 8 | "511" |
| 9 | ], |
| 10 | "infra_step": true, |
| 11 | "name": "makedirs checkout_path", |
| 12 | "~followup_annotations": [ |
| 13 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 14 | "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 15 | "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 16 | "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 17 | "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 18 | "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 19 | "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", |
| 20 | "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 21 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 22 | "@@@STEP_LOG_END@python.inline@@@" |
| 23 | ] |
| 24 | }, |
| 25 | { |
| 26 | "cmd": [ |
| 27 | "python", |
| 28 | "-u", |
| 29 | "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", |
| 30 | "--spec", |
| 31 | "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]", |
| 32 | "--patch_root", |
| 33 | "skia", |
| 34 | "--revision_mapping_file", |
| 35 | "{\"skia\": \"got_revision\"}", |
| 36 | "--git-cache-dir", |
| 37 | "[CUSTOM_/_B_CACHE]", |
Eric Boren | 43b9c6b | 2017-04-06 07:53:30 -0400 | [diff] [blame^] | 38 | "--issue", |
| 39 | "10101", |
| 40 | "--patchset", |
| 41 | "3", |
Eric Boren | 8b3f9e6 | 2017-04-04 09:06:16 -0400 | [diff] [blame] | 42 | "--output_json", |
| 43 | "/path/to/tmp/json", |
| 44 | "--revision", |
| 45 | "skia@abc123", |
| 46 | "--output_manifest" |
| 47 | ], |
| 48 | "cwd": "[CUSTOM_/_B_WORK]", |
| 49 | "env": { |
| 50 | "GIT_HTTP_LOW_SPEED_LIMIT": "1000", |
| 51 | "GIT_HTTP_LOW_SPEED_TIME": "300", |
| 52 | "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]" |
| 53 | }, |
| 54 | "infra_step": true, |
| 55 | "name": "bot_update", |
| 56 | "~followup_annotations": [ |
| 57 | "@@@STEP_TEXT@Some step text@@@", |
| 58 | "@@@STEP_LOG_LINE@json.output@{@@@", |
| 59 | "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", |
| 60 | "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", |
| 61 | "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", |
| 62 | "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 63 | "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", |
| 64 | "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@", |
| 65 | "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@", |
| 66 | "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", |
| 67 | "@@@STEP_LOG_LINE@json.output@ }@@@", |
| 68 | "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 69 | "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", |
| 70 | "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@", |
| 71 | "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", |
| 72 | "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@", |
| 73 | "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@", |
| 74 | "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 75 | "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@", |
| 76 | "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", |
| 77 | "@@@STEP_LOG_LINE@json.output@}@@@", |
| 78 | "@@@STEP_LOG_END@json.output@@@", |
| 79 | "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", |
| 80 | "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" |
| 81 | ] |
| 82 | }, |
| 83 | { |
| 84 | "cmd": [ |
Eric Boren | 43b9c6b | 2017-04-06 07:53:30 -0400 | [diff] [blame^] | 85 | "git", |
| 86 | "commit", |
| 87 | "-a", |
| 88 | "-m", |
| 89 | "Commit Patch" |
| 90 | ], |
| 91 | "cwd": "[CUSTOM_/_B_WORK]/skia", |
| 92 | "env": { |
| 93 | "BUILDTYPE": "Release", |
| 94 | "CHROME_HEADLESS": "1", |
| 95 | "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", |
| 96 | "SKIA_OUT": "[START_DIR]/out" |
| 97 | }, |
| 98 | "infra_step": true, |
| 99 | "name": "Commit Patch" |
| 100 | }, |
| 101 | { |
| 102 | "cmd": [ |
Eric Boren | 8b3f9e6 | 2017-04-04 09:06:16 -0400 | [diff] [blame] | 103 | "python", |
| 104 | "[CUSTOM_/_B_WORK]/skia/infra/bots/recipes.py", |
Eric Boren | 43b9c6b | 2017-04-06 07:53:30 -0400 | [diff] [blame^] | 105 | "bundle", |
| 106 | "--destination", |
| 107 | "[CUSTOM_[SWARM_OUT_DIR]]/recipe_bundle" |
Eric Boren | 8b3f9e6 | 2017-04-04 09:06:16 -0400 | [diff] [blame] | 108 | ], |
Eric Boren | 43b9c6b | 2017-04-06 07:53:30 -0400 | [diff] [blame^] | 109 | "cwd": "[CUSTOM_/_B_WORK]/skia", |
Eric Boren | 8b3f9e6 | 2017-04-04 09:06:16 -0400 | [diff] [blame] | 110 | "env": { |
| 111 | "BUILDTYPE": "Release", |
| 112 | "CHROME_HEADLESS": "1", |
| 113 | "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]", |
| 114 | "SKIA_OUT": "[START_DIR]/out" |
| 115 | }, |
| 116 | "infra_step": true, |
| 117 | "name": "Bundle Recipes" |
| 118 | }, |
| 119 | { |
Eric Boren | 8b3f9e6 | 2017-04-04 09:06:16 -0400 | [diff] [blame] | 120 | "name": "$result", |
| 121 | "recipe_result": null, |
| 122 | "status_code": 0 |
| 123 | } |
| 124 | ] |