OLD | NEW |
(Empty) | |
| 1 [ |
| 2 { |
| 3 "cmd": [ |
| 4 "python", |
| 5 "-u", |
| 6 "[SLAVE_BUILD]/skia/tools/buildbot_spec.py", |
| 7 "/path/to/tmp/json", |
| 8 "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug" |
| 9 ], |
| 10 "cwd": "[SLAVE_BUILD]/skia", |
| 11 "name": "exec buildbot_spec.py", |
| 12 "~followup_annotations": [ |
| 13 "@@@STEP_LOG_LINE@json.output@{@@@", |
| 14 "@@@STEP_LOG_LINE@json.output@ \"build_targets\": [@@@", |
| 15 "@@@STEP_LOG_LINE@json.output@ \"dm\", @@@", |
| 16 "@@@STEP_LOG_LINE@json.output@ \"nanobench\"@@@", |
| 17 "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| 18 "@@@STEP_LOG_LINE@json.output@ \"builder_cfg\": {@@@", |
| 19 "@@@STEP_LOG_LINE@json.output@ \"arch\": \"x86_64\", @@@", |
| 20 "@@@STEP_LOG_LINE@json.output@ \"compiler\": \"GCC\", @@@", |
| 21 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Debug\", @@@", |
| 22 "@@@STEP_LOG_LINE@json.output@ \"cpu_or_gpu\": \"CPU\", @@@", |
| 23 "@@@STEP_LOG_LINE@json.output@ \"cpu_or_gpu_value\": \"AVX2\", @@@", |
| 24 "@@@STEP_LOG_LINE@json.output@ \"is_trybot\": false, @@@", |
| 25 "@@@STEP_LOG_LINE@json.output@ \"model\": \"GCE\", @@@", |
| 26 "@@@STEP_LOG_LINE@json.output@ \"os\": \"Ubuntu\", @@@", |
| 27 "@@@STEP_LOG_LINE@json.output@ \"role\": \"Test\"@@@", |
| 28 "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 29 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Debug\", @@@", |
| 30 "@@@STEP_LOG_LINE@json.output@ \"dm_flags\": [@@@", |
| 31 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@", |
| 32 "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| 33 "@@@STEP_LOG_LINE@json.output@ \"do_perf_steps\": true, @@@", |
| 34 "@@@STEP_LOG_LINE@json.output@ \"do_test_steps\": true, @@@", |
| 35 "@@@STEP_LOG_LINE@json.output@ \"env\": {@@@", |
| 36 "@@@STEP_LOG_LINE@json.output@ \"GYP_DEFINES\": \"skia_arch_type=x86_64
skia_gpu=0 skia_warnings_as_errors=0\"@@@", |
| 37 "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| 38 "@@@STEP_LOG_LINE@json.output@ \"nanobench_flags\": [@@@", |
| 39 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@", |
| 40 "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| 41 "@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@", |
| 42 "@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@", |
| 43 "@@@STEP_LOG_LINE@json.output@}@@@", |
| 44 "@@@STEP_LOG_END@json.output@@@" |
| 45 ] |
| 46 }, |
| 47 { |
| 48 "cmd": [ |
| 49 "python", |
| 50 "-u", |
| 51 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 52 "[SLAVE_BUILD]/tmp/SKP_VERSION", |
| 53 "/path/to/tmp/" |
| 54 ], |
| 55 "name": "Get downloaded SKP_VERSION" |
| 56 }, |
| 57 { |
| 58 "cmd": [ |
| 59 "python", |
| 60 "-u", |
| 61 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 62 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION", |
| 63 "/path/to/tmp/" |
| 64 ], |
| 65 "name": "Get downloaded skimage VERSION" |
| 66 }, |
| 67 { |
| 68 "cmd": [ |
| 69 "python", |
| 70 "-u", |
| 71 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 72 "42", |
| 73 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION" |
| 74 ], |
| 75 "name": "write SK_IMAGE_VERSION" |
| 76 }, |
| 77 { |
| 78 "cmd": [ |
| 79 "python", |
| 80 "-u", |
| 81 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD
irectory(sys.argv[1])\n", |
| 82 "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
| 83 ], |
| 84 "env": { |
| 85 "PYTHONPATH": "[SLAVE_BUILD]/skia/infra/bots/.recipe_deps/build/scripts" |
| 86 }, |
| 87 "name": "rmtree dm", |
| 88 "~followup_annotations": [ |
| 89 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 90 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
| 91 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
| 92 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 93 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 94 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
| 95 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
| 96 "@@@STEP_LOG_END@python.inline@@@" |
| 97 ] |
| 98 }, |
| 99 { |
| 100 "cmd": [ |
| 101 "python", |
| 102 "-u", |
| 103 "\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", |
| 104 "[CUSTOM_[SWARM_OUT_DIR]]/dm", |
| 105 "511" |
| 106 ], |
| 107 "name": "makedirs dm", |
| 108 "~followup_annotations": [ |
| 109 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 110 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 111 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 112 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 113 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 114 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 115 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 116 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 117 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 118 "@@@STEP_LOG_END@python.inline@@@" |
| 119 ] |
| 120 }, |
| 121 { |
| 122 "cmd": [ |
| 123 "python", |
| 124 "-u", |
| 125 "\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", |
| 126 "[SLAVE_BUILD]/tmp", |
| 127 "511" |
| 128 ], |
| 129 "name": "makedirs tmp_dir", |
| 130 "~followup_annotations": [ |
| 131 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 132 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 133 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 134 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 135 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 136 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 137 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 138 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 139 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 140 "@@@STEP_LOG_END@python.inline@@@" |
| 141 ] |
| 142 }, |
| 143 { |
| 144 "cmd": [ |
| 145 "python", |
| 146 "-u", |
| 147 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\
nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nT
IMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in r
ange(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HA
SHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys.
argv[1], '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(wait
time)\n", |
| 148 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt" |
| 149 ], |
| 150 "cwd": "[SLAVE_BUILD]/skia", |
| 151 "env": { |
| 152 "BUILDTYPE": "Debug", |
| 153 "CHROME_HEADLESS": "1", |
| 154 "GYP_DEFINES": "skia_arch_type=x86_64 skia_gpu=0 skia_warnings_as_errors=0
", |
| 155 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 156 }, |
| 157 "name": "get uninteresting hashes", |
| 158 "~followup_annotations": [ |
| 159 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 160 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", |
| 161 "@@@STEP_LOG_LINE@python.inline@import math@@@", |
| 162 "@@@STEP_LOG_LINE@python.inline@import socket@@@", |
| 163 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 164 "@@@STEP_LOG_LINE@python.inline@import time@@@", |
| 165 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", |
| 166 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 167 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://gold.skia.org/_/hash
es'@@@", |
| 168 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@", |
| 169 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@", |
| 170 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@", |
| 171 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 172 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", |
| 173 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@", |
| 174 "@@@STEP_LOG_LINE@python.inline@ try:@@@", |
| 175 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@", |
| 176 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeou
t=TIMEOUT)) as w:@@@", |
| 177 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@", |
| 178 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@
", |
| 179 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@", |
| 180 "@@@STEP_LOG_LINE@python.inline@ break@@@", |
| 181 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@", |
| 182 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting has
hes from %s:' % HASHES_URL@@@", |
| 183 "@@@STEP_LOG_LINE@python.inline@ print e@@@", |
| 184 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@", |
| 185 "@@@STEP_LOG_LINE@python.inline@ raise@@@", |
| 186 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, ret
ry)@@@", |
| 187 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittim
e@@@", |
| 188 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@", |
| 189 "@@@STEP_LOG_END@python.inline@@@" |
| 190 ] |
| 191 }, |
| 192 { |
| 193 "cmd": [ |
| 194 "catchsegv", |
| 195 "[SLAVE_BUILD]/out/Debug/dm", |
| 196 "--undefok", |
| 197 "--resourcePath", |
| 198 "[SLAVE_BUILD]/skia/resources", |
| 199 "--skps", |
| 200 "[SLAVE_BUILD]/skps", |
| 201 "--images", |
| 202 "[SLAVE_BUILD]/skimage/dm", |
| 203 "--colorImages", |
| 204 "[SLAVE_BUILD]/skimage/colorspace", |
| 205 "--nameByHash", |
| 206 "--properties", |
| 207 "gitHash", |
| 208 "abc123", |
| 209 "master", |
| 210 "client.skia", |
| 211 "builder", |
| 212 "Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug", |
| 213 "build_number", |
| 214 "6", |
| 215 "--key", |
| 216 "arch", |
| 217 "x86_64", |
| 218 "compiler", |
| 219 "GCC", |
| 220 "configuration", |
| 221 "Debug", |
| 222 "cpu_or_gpu", |
| 223 "CPU", |
| 224 "cpu_or_gpu_value", |
| 225 "AVX2", |
| 226 "model", |
| 227 "GCE", |
| 228 "os", |
| 229 "Ubuntu", |
| 230 "--uninterestingHashesFile", |
| 231 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt", |
| 232 "--writePath", |
| 233 "[CUSTOM_[SWARM_OUT_DIR]]/dm", |
| 234 "--nogpu", |
| 235 "--dummy-flags" |
| 236 ], |
| 237 "env": { |
| 238 "BUILDTYPE": "Debug", |
| 239 "CHROME_HEADLESS": "1", |
| 240 "GYP_DEFINES": "skia_arch_type=x86_64 skia_gpu=0 skia_warnings_as_errors=0
", |
| 241 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 242 }, |
| 243 "name": "dm" |
| 244 }, |
| 245 { |
| 246 "name": "$result", |
| 247 "recipe_result": null, |
| 248 "status_code": 0 |
| 249 } |
| 250 ] |
OLD | NEW |