Ben Wagner | 38a5601 | 2017-04-28 17:13:32 -0400 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "cmd": [ |
| 4 | "python", |
| 5 | "-u", |
| 6 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 7 | "[START_DIR]\\skia\\infra\\bots\\assets\\skp\\VERSION", |
| 8 | "/path/to/tmp/" |
| 9 | ], |
| 10 | "infra_step": true, |
| 11 | "name": "Get downloaded SKP VERSION" |
| 12 | }, |
| 13 | { |
| 14 | "cmd": [ |
| 15 | "python", |
| 16 | "-u", |
| 17 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 18 | "42", |
| 19 | "[START_DIR]\\tmp\\SKP_VERSION" |
| 20 | ], |
| 21 | "infra_step": true, |
| 22 | "name": "write SKP_VERSION" |
| 23 | }, |
| 24 | { |
| 25 | "cmd": [ |
| 26 | "python", |
| 27 | "-u", |
| 28 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 29 | "[START_DIR]\\skia\\infra\\bots\\assets\\skimage\\VERSION", |
| 30 | "/path/to/tmp/" |
| 31 | ], |
| 32 | "infra_step": true, |
| 33 | "name": "Get downloaded skimage VERSION" |
| 34 | }, |
| 35 | { |
| 36 | "cmd": [ |
| 37 | "python", |
| 38 | "-u", |
| 39 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 40 | "42", |
| 41 | "[START_DIR]\\tmp\\SK_IMAGE_VERSION" |
| 42 | ], |
| 43 | "infra_step": true, |
| 44 | "name": "write SK_IMAGE_VERSION" |
| 45 | }, |
| 46 | { |
| 47 | "cmd": [ |
| 48 | "python", |
| 49 | "-u", |
| 50 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 51 | "[START_DIR]\\skia\\infra\\bots\\assets\\svg\\VERSION", |
| 52 | "/path/to/tmp/" |
| 53 | ], |
| 54 | "infra_step": true, |
| 55 | "name": "Get downloaded SVG VERSION" |
| 56 | }, |
| 57 | { |
| 58 | "cmd": [ |
| 59 | "python", |
| 60 | "-u", |
| 61 | "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| 62 | "42", |
| 63 | "[START_DIR]\\tmp\\SVG_VERSION" |
| 64 | ], |
| 65 | "infra_step": true, |
| 66 | "name": "write SVG_VERSION" |
| 67 | }, |
| 68 | { |
| 69 | "cmd": [ |
| 70 | "python", |
| 71 | "-u", |
| 72 | "RECIPE_MODULE[build::file]\\resources\\fileutil.py", |
| 73 | "rmtree", |
| 74 | "[CUSTOM_[SWARM_OUT_DIR]]\\perfdata\\Perf-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Release-ANGLE\\data" |
| 75 | ], |
| 76 | "env": { |
| 77 | "PYTHONPATH": "[START_DIR]\\skia\\infra\\bots\\.recipe_deps\\build\\scripts" |
| 78 | }, |
| 79 | "infra_step": true, |
| 80 | "name": "rmtree data" |
| 81 | }, |
| 82 | { |
| 83 | "cmd": [ |
| 84 | "python", |
| 85 | "-u", |
| 86 | "\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", |
| 87 | "[CUSTOM_[SWARM_OUT_DIR]]\\perfdata\\Perf-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Release-ANGLE\\data", |
| 88 | "511" |
| 89 | ], |
| 90 | "infra_step": true, |
| 91 | "name": "makedirs data", |
| 92 | "~followup_annotations": [ |
| 93 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 94 | "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 95 | "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 96 | "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 97 | "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 98 | "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 99 | "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", |
| 100 | "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 101 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 102 | "@@@STEP_LOG_END@python.inline@@@" |
| 103 | ] |
| 104 | }, |
| 105 | { |
| 106 | "cmd": [ |
| 107 | "python", |
| 108 | "-u", |
| 109 | "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" |
| 110 | ], |
| 111 | "name": "get swarming bot id", |
| 112 | "stdout": "/path/to/tmp/", |
| 113 | "~followup_annotations": [ |
| 114 | "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 115 | "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", |
| 116 | "@@@STEP_LOG_END@python.inline@@@" |
| 117 | ] |
| 118 | }, |
| 119 | { |
| 120 | "cmd": [ |
| 121 | "python", |
| 122 | "-u", |
| 123 | "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n" |
| 124 | ], |
| 125 | "name": "get swarming task id", |
| 126 | "stdout": "/path/to/tmp/", |
| 127 | "~followup_annotations": [ |
| 128 | "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 129 | "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@", |
| 130 | "@@@STEP_LOG_END@python.inline@@@" |
| 131 | ] |
| 132 | }, |
| 133 | { |
| 134 | "cmd": [ |
| 135 | "[START_DIR]\\out\\Release_x64\\nanobench", |
| 136 | "--undefok", |
| 137 | "-i", |
| 138 | "[START_DIR]\\skia\\resources", |
| 139 | "--skps", |
| 140 | "[START_DIR]\\skp", |
| 141 | "--images", |
| 142 | "[START_DIR]\\skimage\\nanobench", |
| 143 | "--svgs", |
| 144 | "[START_DIR]\\svg", |
| 145 | "--nocpu", |
| 146 | "--pre_log", |
| 147 | "--images", |
| 148 | "--gpuStatsDump", |
| 149 | "true", |
| 150 | "--scales", |
| 151 | "1.0", |
| 152 | "1.1", |
| 153 | "--config", |
| 154 | "angle_d3d11_es2", |
| 155 | "angle_d3d11_es2_msaa8", |
| 156 | "--match", |
| 157 | "~native_image_to_raster_surface", |
| 158 | "~shapes_mixed_10000_32x33", |
| 159 | "~inc0.gif", |
| 160 | "~inc1.gif", |
| 161 | "~incInterlaced.gif", |
| 162 | "~inc0.jpg", |
| 163 | "~incGray.jpg", |
| 164 | "~inc0.wbmp", |
| 165 | "~inc1.wbmp", |
| 166 | "~inc0.webp", |
| 167 | "~inc1.webp", |
| 168 | "~inc0.ico", |
| 169 | "~inc1.ico", |
| 170 | "~inc0.png", |
| 171 | "~inc1.png", |
| 172 | "~inc2.png", |
| 173 | "~inc12.png", |
| 174 | "~inc13.png", |
| 175 | "~inc14.png", |
| 176 | "~inc0.webp", |
| 177 | "~inc1.webp", |
| 178 | "--outResultsFile", |
| 179 | "[CUSTOM_[SWARM_OUT_DIR]]\\perfdata\\Perf-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Release-ANGLE\\data\\nanobench_abc123_1337000001.json", |
| 180 | "--properties", |
| 181 | "gitHash", |
| 182 | "abc123", |
| 183 | "swarming_bot_id", |
Ben Wagner | 489530e | 2017-05-01 11:09:18 -0400 | [diff] [blame^] | 184 | "skia-bot-123", |
Ben Wagner | 38a5601 | 2017-04-28 17:13:32 -0400 | [diff] [blame] | 185 | "swarming_task_id", |
Ben Wagner | 489530e | 2017-05-01 11:09:18 -0400 | [diff] [blame^] | 186 | "123456", |
Ben Wagner | 38a5601 | 2017-04-28 17:13:32 -0400 | [diff] [blame] | 187 | "--key", |
| 188 | "arch", |
| 189 | "x86_64", |
| 190 | "compiler", |
| 191 | "MSVC", |
| 192 | "cpu_or_gpu", |
| 193 | "GPU", |
| 194 | "cpu_or_gpu_value", |
| 195 | "GTX960", |
| 196 | "extra_config", |
| 197 | "ANGLE", |
| 198 | "model", |
| 199 | "ShuttleC", |
| 200 | "os", |
| 201 | "Win10" |
| 202 | ], |
| 203 | "env": { |
| 204 | "BUILDTYPE": "Release_x64", |
| 205 | "CHROME_HEADLESS": "1", |
| 206 | "PATH": "%(PATH)s;RECIPE_PACKAGE_REPO[depot_tools]", |
| 207 | "SKIA_OUT": "[START_DIR]\\out" |
| 208 | }, |
| 209 | "name": "nanobench" |
| 210 | }, |
| 211 | { |
| 212 | "cmd": [ |
| 213 | "python", |
| 214 | "-u", |
| 215 | "\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", |
| 216 | "[CUSTOM_[SWARM_OUT_DIR]]\\perfdata\\Perf-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Release-ANGLE\\data", |
| 217 | "511" |
| 218 | ], |
| 219 | "name": "makedirs perf_dir", |
| 220 | "~followup_annotations": [ |
| 221 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 222 | "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 223 | "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 224 | "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 225 | "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 226 | "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 227 | "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@", |
| 228 | "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 229 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 230 | "@@@STEP_LOG_END@python.inline@@@" |
| 231 | ] |
| 232 | }, |
| 233 | { |
| 234 | "name": "$result", |
| 235 | "recipe_result": null, |
| 236 | "status_code": 0 |
| 237 | } |
| 238 | ] |