1[ 2 { 3 "cmd": [ 4 "python", 5 "-u", 6 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 7 "--json-output", 8 "/path/to/tmp/json", 9 "ensure-directory", 10 "--mode", 11 "0777", 12 "[START_DIR]/cache/work" 13 ], 14 "infra_step": true, 15 "name": "makedirs checkout_path" 16 }, 17 { 18 "cmd": [ 19 "python", 20 "-u", 21 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 22 "--json-output", 23 "/path/to/tmp/json", 24 "remove", 25 "[START_DIR]/cache/work/.gclient_entries" 26 ], 27 "infra_step": true, 28 "name": "remove [START_DIR]/cache/work/.gclient_entries" 29 }, 30 { 31 "cmd": [ 32 "python", 33 "-u", 34 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 35 "--spec-path", 36 "cache_dir = '[START_DIR]/cache/git'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]", 37 "--patch_root", 38 "skia", 39 "--revision_mapping_file", 40 "{\"got_revision\": \"skia\"}", 41 "--git-cache-dir", 42 "[START_DIR]/cache/git", 43 "--cleanup-dir", 44 "[CLEANUP]/bot_update", 45 "--output_json", 46 "/path/to/tmp/json", 47 "--revision", 48 "skia@abc123" 49 ], 50 "cwd": "[START_DIR]/cache/work", 51 "env_prefixes": { 52 "PATH": [ 53 "RECIPE_REPO[depot_tools]" 54 ] 55 }, 56 "infra_step": true, 57 "name": "bot_update", 58 "~followup_annotations": [ 59 "@@@STEP_TEXT@Some step text@@@", 60 "@@@STEP_LOG_LINE@json.output@{@@@", 61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@", 62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@", 63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@", 64 "@@@STEP_LOG_LINE@json.output@ }, @@@", 65 "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@", 66 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@", 67 "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/skia.git\", @@@", 68 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", 69 "@@@STEP_LOG_LINE@json.output@ }@@@", 70 "@@@STEP_LOG_LINE@json.output@ }, @@@", 71 "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@", 72 "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"skia\", @@@", 73 "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@", 74 "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\", @@@", 75 "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#164710}\"@@@", 76 "@@@STEP_LOG_LINE@json.output@ }, @@@", 77 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@", 78 "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@", 79 "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@", 80 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@", 81 "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@", 82 "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/skia.git\", @@@", 83 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", 84 "@@@STEP_LOG_LINE@json.output@ }@@@", 85 "@@@STEP_LOG_LINE@json.output@ }@@@", 86 "@@@STEP_LOG_LINE@json.output@ }, @@@", 87 "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@", 88 "@@@STEP_LOG_LINE@json.output@ }, @@@", 89 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@", 90 "@@@STEP_LOG_LINE@json.output@}@@@", 91 "@@@STEP_LOG_END@json.output@@@", 92 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@", 93 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@" 94 ] 95 }, 96 { 97 "cmd": [ 98 "python", 99 "-u", 100 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 101 "--json-output", 102 "/path/to/tmp/json", 103 "ensure-directory", 104 "--mode", 105 "0777", 106 "[START_DIR]/tmp" 107 ], 108 "infra_step": true, 109 "name": "makedirs tmp_dir" 110 }, 111 { 112 "cmd": [ 113 "git", 114 "diff", 115 "--no-ext-diff" 116 ], 117 "cwd": "[START_DIR]/cache/work/skia", 118 "env": { 119 "CHROME_HEADLESS": "1", 120 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 121 }, 122 "name": "git diff #1", 123 "stdout": "/path/to/tmp/" 124 }, 125 { 126 "cmd": [ 127 "python", 128 "-u", 129 "import os\nimport subprocess\n\nfor r, d, files in os.walk('[START_DIR]/cache/work/skia'):\n for f in files:\n if f.endswith('.fp'):\n path = os.path.join(r, f)\n print 'touch %s' % path\n subprocess.check_call(['touch', path])\n" 130 ], 131 "cwd": "[START_DIR]/cache/work/skia", 132 "env": { 133 "CHROME_HEADLESS": "1", 134 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 135 }, 136 "name": "touch fp files", 137 "~followup_annotations": [ 138 "@@@STEP_LOG_LINE@python.inline@import os@@@", 139 "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", 140 "@@@STEP_LOG_LINE@python.inline@@@@", 141 "@@@STEP_LOG_LINE@python.inline@for r, d, files in os.walk('[START_DIR]/cache/work/skia'):@@@", 142 "@@@STEP_LOG_LINE@python.inline@ for f in files:@@@", 143 "@@@STEP_LOG_LINE@python.inline@ if f.endswith('.fp'):@@@", 144 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(r, f)@@@", 145 "@@@STEP_LOG_LINE@python.inline@ print 'touch %s' % path@@@", 146 "@@@STEP_LOG_LINE@python.inline@ subprocess.check_call(['touch', path])@@@", 147 "@@@STEP_LOG_END@python.inline@@@" 148 ] 149 }, 150 { 151 "cmd": [ 152 "python", 153 "-u", 154 "[START_DIR]/cache/work/skia/bin/fetch-gn" 155 ], 156 "cwd": "[START_DIR]/cache/work/skia", 157 "env": { 158 "CHROME_HEADLESS": "1", 159 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 160 }, 161 "infra_step": true, 162 "name": "fetch-gn" 163 }, 164 { 165 "cmd": [ 166 "python", 167 "-u", 168 "[START_DIR]/cache/work/skia/bin/fetch-clang-format" 169 ], 170 "cwd": "[START_DIR]/cache/work/skia", 171 "env": { 172 "CHROME_HEADLESS": "1", 173 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 174 }, 175 "infra_step": true, 176 "name": "fetch-clang-format" 177 }, 178 { 179 "cmd": [ 180 "[START_DIR]/cache/work/skia/bin/gn", 181 "gen", 182 "[START_DIR]/build/out/Release", 183 "--args=is_debug=false skia_compile_processors=true skia_generate_workarounds=true" 184 ], 185 "cwd": "[START_DIR]/cache/work/skia", 186 "env": { 187 "CHROME_HEADLESS": "1", 188 "PATH": "[START_DIR]/cache/work/skia/bin:<PATH>:RECIPE_REPO[depot_tools]" 189 }, 190 "name": "gn gen" 191 }, 192 { 193 "cmd": [ 194 "ninja", 195 "-C", 196 "[START_DIR]/build/out/Release" 197 ], 198 "cwd": "[START_DIR]/cache/work/skia", 199 "env": { 200 "CHROME_HEADLESS": "1", 201 "PATH": "[START_DIR]/cache/work/skia/bin:<PATH>:RECIPE_REPO[depot_tools]" 202 }, 203 "name": "ninja" 204 }, 205 { 206 "cmd": [ 207 "git", 208 "diff", 209 "--no-ext-diff" 210 ], 211 "cwd": "[START_DIR]/cache/work/skia", 212 "env": { 213 "CHROME_HEADLESS": "1", 214 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 215 }, 216 "name": "git diff #2", 217 "stdout": "/path/to/tmp/" 218 }, 219 { 220 "cmd": [ 221 "python", 222 "-u", 223 "\ndiff1 = ''''''\n\ndiff2 = ''''''\n\nif diff1 != diff2:\n print 'Generated files have been edited!'\n exit(1)\n" 224 ], 225 "cwd": "[START_DIR]/cache/work/skia", 226 "env": { 227 "CHROME_HEADLESS": "1", 228 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 229 }, 230 "name": "compare diffs", 231 "~followup_annotations": [ 232 "@@@STEP_LOG_LINE@python.inline@@@@", 233 "@@@STEP_LOG_LINE@python.inline@diff1 = ''''''@@@", 234 "@@@STEP_LOG_LINE@python.inline@@@@", 235 "@@@STEP_LOG_LINE@python.inline@diff2 = ''''''@@@", 236 "@@@STEP_LOG_LINE@python.inline@@@@", 237 "@@@STEP_LOG_LINE@python.inline@if diff1 != diff2:@@@", 238 "@@@STEP_LOG_LINE@python.inline@ print 'Generated files have been edited!'@@@", 239 "@@@STEP_LOG_LINE@python.inline@ exit(1)@@@", 240 "@@@STEP_LOG_END@python.inline@@@" 241 ] 242 }, 243 { 244 "jsonResult": null, 245 "name": "$result" 246 } 247]