Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "cmd": [ |
| 4 | "python", |
| 5 | "-u", |
Robert Iannucci | 8cd5041 | 2017-07-07 14:36:58 -0700 | [diff] [blame] | 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 | "[CUSTOM_C:\\_B_WORK]" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 13 | ], |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 14 | "infra_step": true, |
Robert Iannucci | 8cd5041 | 2017-07-07 14:36:58 -0700 | [diff] [blame] | 15 | "name": "makedirs checkout_path" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 16 | }, |
| 17 | { |
| 18 | "cmd": [ |
| 19 | "python", |
| 20 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 21 | "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", |
| 22 | "--json-output", |
| 23 | "/path/to/tmp/json", |
| 24 | "remove", |
Eric Boren | ffb48e1 | 2017-04-19 14:39:21 -0400 | [diff] [blame] | 25 | "[CUSTOM_C:\\_B_WORK]\\.gclient_entries" |
| 26 | ], |
| 27 | "infra_step": true, |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 28 | "name": "remove [CUSTOM_C:\\_B_WORK]\\.gclient_entries" |
Eric Boren | ffb48e1 | 2017-04-19 14:39:21 -0400 | [diff] [blame] | 29 | }, |
| 30 | { |
| 31 | "cmd": [ |
| 32 | "python", |
| 33 | "-u", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 34 | "RECIPE_MODULE[depot_tools::bot_update]\\resources\\bot_update.py", |
Eric Boren | 6f67cf7 | 2017-09-22 15:43:36 -0400 | [diff] [blame] | 35 | "--spec-path", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 36 | "cache_dir = '[CUSTOM_C:\\\\_B_CACHE]'\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", |
John Budorick | 74be2f2 | 2017-04-28 18:59:04 -0700 | [diff] [blame] | 40 | "{\"got_revision\": \"skia\"}", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 41 | "--git-cache-dir", |
| 42 | "[CUSTOM_C:\\_B_CACHE]", |
recipe-roller | a6e4686 | 2017-06-08 16:13:19 -0700 | [diff] [blame] | 43 | "--cleanup-dir", |
| 44 | "[CLEANUP]\\bot_update", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 45 | "--output_json", |
| 46 | "/path/to/tmp/json", |
| 47 | "--revision", |
recipe-roller | a1c50c6 | 2017-05-03 05:32:29 -0700 | [diff] [blame] | 48 | "skia@abc123" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 49 | ], |
| 50 | "cwd": "[CUSTOM_C:\\_B_WORK]", |
Eric Boren | 6f67cf7 | 2017-09-22 15:43:36 -0400 | [diff] [blame] | 51 | "env_prefixes": { |
| 52 | "PATH": [ |
| 53 | "RECIPE_PACKAGE_REPO[depot_tools]" |
| 54 | ] |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 55 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 56 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 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\", @@@", |
recipe-roller | acf0202 | 2017-10-31 15:53:18 -0700 | [diff] [blame] | 78 | "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@", |
recipe-roller | 275d92c | 2017-12-08 05:21:04 -0800 | [diff] [blame] | 79 | "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@", |
recipe-roller | acf0202 | 2017-10-31 15:53:18 -0700 | [diff] [blame] | 80 | "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@", |
recipe-roller | 275d92c | 2017-12-08 05:21:04 -0800 | [diff] [blame] | 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@ }@@@", |
recipe-roller | acf0202 | 2017-10-31 15:53:18 -0700 | [diff] [blame] | 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@ }, @@@", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 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", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 100 | "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py", |
| 101 | "--json-output", |
| 102 | "/path/to/tmp/json", |
| 103 | "copy", |
| 104 | "[CUSTOM_C:\\_B_WORK]\\skia\\infra\\bots\\assets\\clang_win\\VERSION", |
| 105 | "/path/to/tmp/" |
| 106 | ], |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 107 | "infra_step": true, |
| 108 | "name": "Get clang_win VERSION" |
| 109 | }, |
| 110 | { |
| 111 | "cmd": [ |
| 112 | "python", |
| 113 | "-u", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 114 | "[CUSTOM_C:\\_B_WORK]\\skia\\bin\\fetch-gn" |
| 115 | ], |
| 116 | "cwd": "[CUSTOM_C:\\_B_WORK]\\skia", |
| 117 | "env": { |
Kevin Lubick | 0a51b48 | 2017-02-06 12:45:29 -0500 | [diff] [blame] | 118 | "BUILDTYPE": "Debug", |
| 119 | "CHROME_HEADLESS": "1", |
recipe-roller | e0f7e16 | 2017-05-31 16:13:27 -0700 | [diff] [blame] | 120 | "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 121 | "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-Clang-x86-Debug-Exceptions" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 122 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 123 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 124 | "name": "fetch-gn" |
| 125 | }, |
| 126 | { |
| 127 | "cmd": [ |
| 128 | "[CUSTOM_C:\\_B_WORK]\\skia\\bin\\gn.exe", |
| 129 | "gen", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 130 | "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-Clang-x86-Debug-Exceptions\\Debug", |
| 131 | "--args=cc=\"clang\" clang_win=\"[START_DIR]\\clang_win\" cxx=\"clang++\" extra_cflags=[\"-O1\", \"/EHsc\", \"-DDUMMY_clang_win_version=42\"] target_cpu=\"x86\" win_sdk=\"[START_DIR]\\t\\depot_tools\\win_toolchain\\vs_files\\a9e1098bba66d2acccc377d5ee81265910f29272/win_sdk\" win_vc=\"[START_DIR]\\t\\depot_tools\\win_toolchain\\vs_files\\a9e1098bba66d2acccc377d5ee81265910f29272/VC\"" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 132 | ], |
| 133 | "cwd": "[CUSTOM_C:\\_B_WORK]\\skia", |
| 134 | "env": { |
Kevin Lubick | 0a51b48 | 2017-02-06 12:45:29 -0500 | [diff] [blame] | 135 | "BUILDTYPE": "Debug", |
| 136 | "CHROME_HEADLESS": "1", |
recipe-roller | e0f7e16 | 2017-05-31 16:13:27 -0700 | [diff] [blame] | 137 | "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 138 | "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-Clang-x86-Debug-Exceptions" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 139 | }, |
| 140 | "name": "gn gen" |
| 141 | }, |
| 142 | { |
| 143 | "cmd": [ |
| 144 | "ninja.exe", |
Mike Klein | 7a13d87 | 2017-11-06 09:28:59 -0500 | [diff] [blame] | 145 | "-k", |
| 146 | "0", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 147 | "-C", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 148 | "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-Clang-x86-Debug-Exceptions\\Debug" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 149 | ], |
| 150 | "cwd": "[CUSTOM_C:\\_B_WORK]\\skia", |
| 151 | "env": { |
Kevin Lubick | 0a51b48 | 2017-02-06 12:45:29 -0500 | [diff] [blame] | 152 | "BUILDTYPE": "Debug", |
| 153 | "CHROME_HEADLESS": "1", |
recipe-roller | e0f7e16 | 2017-05-31 16:13:27 -0700 | [diff] [blame] | 154 | "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 155 | "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-Clang-x86-Debug-Exceptions" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 156 | }, |
| 157 | "name": "ninja" |
| 158 | }, |
| 159 | { |
| 160 | "cmd": [ |
| 161 | "python", |
| 162 | "-u", |
Stephan Altmueller | 88df8d2 | 2018-03-07 14:44:44 -0500 | [diff] [blame] | 163 | "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor pattern in build_products_whitelist:\n path = os.path.join(src, pattern)\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n", |
Ben Wagner | ed4ff9c | 2018-03-20 16:36:16 -0400 | [diff] [blame] | 164 | "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-Clang-x86-Debug-Exceptions\\Debug", |
Eric Boren | bd2e1f1 | 2018-04-17 11:28:46 +0000 | [diff] [blame^] | 165 | "[CUSTOM_[SWARM_OUT_DIR]]\\out\\Debug" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 166 | ], |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 167 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 168 | "name": "copy build products", |
| 169 | "~followup_annotations": [ |
| 170 | "@@@STEP_LOG_LINE@python.inline@import errno@@@", |
| 171 | "@@@STEP_LOG_LINE@python.inline@import glob@@@", |
| 172 | "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 173 | "@@@STEP_LOG_LINE@python.inline@import shutil@@@", |
| 174 | "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 175 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 176 | "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", |
| 177 | "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", |
Stephan Altmueller | 88df8d2 | 2018-03-07 14:44:44 -0500 | [diff] [blame] | 178 | "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 179 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 180 | "@@@STEP_LOG_LINE@python.inline@try:@@@", |
| 181 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", |
| 182 | "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", |
| 183 | "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", |
| 184 | "@@@STEP_LOG_LINE@python.inline@ raise@@@", |
| 185 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 186 | "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", |
| 187 | "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", |
| 188 | "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", |
| 189 | "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", |
| 190 | "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", |
| 191 | "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", |
| 192 | "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", |
| 193 | "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", |
| 194 | "@@@STEP_LOG_END@python.inline@@@" |
| 195 | ] |
| 196 | }, |
| 197 | { |
| 198 | "cmd": [ |
| 199 | "python", |
| 200 | "-u", |
| 201 | "import psutil\nfor p in psutil.process_iter():\n try:\n if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):\n p.kill()\n except psutil._error.AccessDenied:\n pass\n" |
| 202 | ], |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 203 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 204 | "name": "cleanup", |
| 205 | "~followup_annotations": [ |
| 206 | "@@@STEP_LOG_LINE@python.inline@import psutil@@@", |
| 207 | "@@@STEP_LOG_LINE@python.inline@for p in psutil.process_iter():@@@", |
| 208 | "@@@STEP_LOG_LINE@python.inline@ try:@@@", |
| 209 | "@@@STEP_LOG_LINE@python.inline@ if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):@@@", |
| 210 | "@@@STEP_LOG_LINE@python.inline@ p.kill()@@@", |
| 211 | "@@@STEP_LOG_LINE@python.inline@ except psutil._error.AccessDenied:@@@", |
| 212 | "@@@STEP_LOG_LINE@python.inline@ pass@@@", |
| 213 | "@@@STEP_LOG_END@python.inline@@@" |
| 214 | ] |
| 215 | }, |
| 216 | { |
| 217 | "name": "$result", |
| 218 | "recipe_result": null, |
| 219 | "status_code": 0 |
| 220 | } |
| 221 | ] |