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]/tmp" 13 ], 14 "infra_step": true, 15 "name": "makedirs tmp_dir" 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 "copy", 25 "[START_DIR]/skia/infra/bots/assets/lottie-samples/VERSION", 26 "/path/to/tmp/" 27 ], 28 "infra_step": true, 29 "name": "Get lottie-samples VERSION" 30 }, 31 { 32 "cmd": [ 33 "python", 34 "-u", 35 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 36 "--json-output", 37 "/path/to/tmp/json", 38 "copy", 39 "42", 40 "[START_DIR]/tmp/LOTTIE_VERSION" 41 ], 42 "infra_step": true, 43 "name": "write LOTTIE_VERSION" 44 }, 45 { 46 "cmd": [ 47 "python", 48 "-u", 49 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 50 "--json-output", 51 "/path/to/tmp/json", 52 "rmtree", 53 "[START_DIR]/test" 54 ], 55 "infra_step": true, 56 "name": "rmtree test" 57 }, 58 { 59 "cmd": [ 60 "python", 61 "-u", 62 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 63 "--json-output", 64 "/path/to/tmp/json", 65 "ensure-directory", 66 "--mode", 67 "0777", 68 "[START_DIR]/test" 69 ], 70 "infra_step": true, 71 "name": "makedirs test" 72 }, 73 { 74 "cmd": [ 75 "python", 76 "-u", 77 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = sys.argv[1]\nRETRIES = 5\nTIMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in range(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys.argv[2], 'w') as f:\n f.write(hashes)\n break\n except Exception as e:\n print 'Failed to get uninteresting hashes from %s:' % HASHES_URL\n print e\n if retry == RETRIES:\n raise\n waittime = WAIT_BASE * math.pow(2, retry)\n print 'Retry in %d seconds.' % waittime\n time.sleep(waittime)\n", 78 "https://example.com/hashes.txt", 79 "[START_DIR]/tmp/uninteresting_hashes.txt" 80 ], 81 "env": { 82 "CHROME_HEADLESS": "1", 83 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 84 }, 85 "infra_step": true, 86 "name": "get uninteresting hashes", 87 "~followup_annotations": [ 88 "@@@STEP_LOG_LINE (a] python.inline@@@@", 89 "@@@STEP_LOG_LINE (a] python.inline@import contextlib@@@", 90 "@@@STEP_LOG_LINE (a] python.inline@import math@@@", 91 "@@@STEP_LOG_LINE (a] python.inline@import socket@@@", 92 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 93 "@@@STEP_LOG_LINE (a] python.inline@import time@@@", 94 "@@@STEP_LOG_LINE (a] python.inline@import urllib2@@@", 95 "@@@STEP_LOG_LINE (a] python.inline@@@@", 96 "@@@STEP_LOG_LINE (a] python.inline@HASHES_URL = sys.argv[1]@@@", 97 "@@@STEP_LOG_LINE (a] python.inline@RETRIES = 5@@@", 98 "@@@STEP_LOG_LINE (a] python.inline@TIMEOUT = 60@@@", 99 "@@@STEP_LOG_LINE (a] python.inline@WAIT_BASE = 15@@@", 100 "@@@STEP_LOG_LINE (a] python.inline@@@@", 101 "@@@STEP_LOG_LINE (a] python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", 102 "@@@STEP_LOG_LINE (a] python.inline@for retry in range(RETRIES):@@@", 103 "@@@STEP_LOG_LINE (a] python.inline@ try:@@@", 104 "@@@STEP_LOG_LINE (a] python.inline@ with contextlib.closing(@@@", 105 "@@@STEP_LOG_LINE (a] python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@", 106 "@@@STEP_LOG_LINE (a] python.inline@ hashes = w.read()@@@", 107 "@@@STEP_LOG_LINE (a] python.inline@ with open(sys.argv[2], 'w') as f:@@@", 108 "@@@STEP_LOG_LINE (a] python.inline@ f.write(hashes)@@@", 109 "@@@STEP_LOG_LINE (a] python.inline@ break@@@", 110 "@@@STEP_LOG_LINE (a] python.inline@ except Exception as e:@@@", 111 "@@@STEP_LOG_LINE (a] python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@", 112 "@@@STEP_LOG_LINE (a] python.inline@ print e@@@", 113 "@@@STEP_LOG_LINE (a] python.inline@ if retry == RETRIES:@@@", 114 "@@@STEP_LOG_LINE (a] python.inline@ raise@@@", 115 "@@@STEP_LOG_LINE (a] python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@", 116 "@@@STEP_LOG_LINE (a] python.inline@ print 'Retry in %d seconds.' % waittime@@@", 117 "@@@STEP_LOG_LINE (a] python.inline@ time.sleep(waittime)@@@", 118 "@@@STEP_LOG_END (a] python.inline@@@" 119 ] 120 }, 121 { 122 "cmd": [ 123 "python", 124 "-u", 125 "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" 126 ], 127 "name": "get swarming bot id", 128 "stdout": "/path/to/tmp/", 129 "~followup_annotations": [ 130 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 131 "@@@STEP_LOG_LINE (a] python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", 132 "@@@STEP_LOG_END (a] python.inline@@@" 133 ] 134 }, 135 { 136 "cmd": [ 137 "python", 138 "-u", 139 "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n" 140 ], 141 "name": "get swarming task id", 142 "stdout": "/path/to/tmp/", 143 "~followup_annotations": [ 144 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 145 "@@@STEP_LOG_LINE (a] python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@", 146 "@@@STEP_LOG_END (a] python.inline@@@" 147 ] 148 }, 149 { 150 "cmd": [ 151 "python", 152 "-u", 153 "RECIPE_MODULE[skia::flavor]/resources/symbolize_stack_trace.py", 154 "[START_DIR]", 155 "catchsegv", 156 "[START_DIR]/build/dm", 157 "--resourcePath", 158 "[START_DIR]/skia/resources", 159 "--skps", 160 "[START_DIR]/skp", 161 "--images", 162 "[START_DIR]/skimage/dm", 163 "--colorImages", 164 "[START_DIR]/skimage/colorspace", 165 "--nameByHash", 166 "--properties", 167 "gitHash", 168 "abc123", 169 "builder", 170 "Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-Lottie", 171 "buildbucket_build_id", 172 "123454321", 173 "swarming_bot_id", 174 "skia-bot-123", 175 "swarming_task_id", 176 "123456", 177 "--svgs", 178 "[START_DIR]/svg", 179 "--lotties", 180 "[START_DIR]/lottie-samples", 181 "--key", 182 "arch", 183 "x86_64", 184 "compiler", 185 "Clang", 186 "configuration", 187 "Release", 188 "cpu_or_gpu", 189 "CPU", 190 "cpu_or_gpu_value", 191 "AVX2", 192 "extra_config", 193 "Lottie", 194 "model", 195 "GCE", 196 "os", 197 "Debian9", 198 "renderer", 199 "skottie", 200 "--uninterestingHashesFile", 201 "[START_DIR]/tmp/uninteresting_hashes.txt", 202 "--writePath", 203 "[START_DIR]/[SWARM_OUT_DIR]", 204 "--dont_write", 205 "pdf", 206 "--randomProcessorTest", 207 "--nogpu", 208 "--config", 209 "8888", 210 "--src", 211 "lottie", 212 "--blacklist", 213 "_", 214 "image", 215 "gen_platf", 216 "error", 217 "--nonativeFonts", 218 "--verbose" 219 ], 220 "cwd": "[START_DIR]/skia", 221 "env": { 222 "CHROME_HEADLESS": "1", 223 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 224 }, 225 "name": "symbolized dm" 226 }, 227 { 228 "jsonResult": null, 229 "name": "$result" 230 } 231 ]