blob: c8015208e4c0739bc139ad03bd8808aba03c9066 [file] [log] [blame]
Eric Boren7e97dc02017-02-02 09:02:37 -05001[
2 {
3 "cmd": [
4 "python",
5 "-u",
Robert Iannucci8cd50412017-07-07 14:36:58 -07006 "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 Boren7e97dc02017-02-02 09:02:37 -050013 ],
Eric Borena1590852017-03-20 12:48:31 -040014 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -070015 "name": "makedirs checkout_path"
Eric Boren7e97dc02017-02-02 09:02:37 -050016 },
17 {
18 "cmd": [
19 "python",
20 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -040021 "RECIPE_MODULE[recipe_engine::file]\\resources\\fileutil.py",
22 "--json-output",
23 "/path/to/tmp/json",
24 "remove",
Eric Borenffb48e12017-04-19 14:39:21 -040025 "[CUSTOM_C:\\_B_WORK]\\.gclient_entries"
26 ],
27 "infra_step": true,
Eric Boren3e2ffd72017-06-16 13:10:22 -040028 "name": "remove [CUSTOM_C:\\_B_WORK]\\.gclient_entries"
Eric Borenffb48e12017-04-19 14:39:21 -040029 },
30 {
31 "cmd": [
32 "python",
33 "-u",
Eric Boren7e97dc02017-02-02 09:02:37 -050034 "RECIPE_MODULE[depot_tools::bot_update]\\resources\\bot_update.py",
Eric Boren6f67cf72017-09-22 15:43:36 -040035 "--spec-path",
Eric Boren7e97dc02017-02-02 09:02:37 -050036 "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 Budorick74be2f22017-04-28 18:59:04 -070040 "{\"got_revision\": \"skia\"}",
Eric Boren7e97dc02017-02-02 09:02:37 -050041 "--git-cache-dir",
42 "[CUSTOM_C:\\_B_CACHE]",
recipe-rollera6e46862017-06-08 16:13:19 -070043 "--cleanup-dir",
44 "[CLEANUP]\\bot_update",
Eric Boren7e97dc02017-02-02 09:02:37 -050045 "--output_json",
46 "/path/to/tmp/json",
47 "--revision",
recipe-rollera1c50c62017-05-03 05:32:29 -070048 "skia@abc123"
Eric Boren7e97dc02017-02-02 09:02:37 -050049 ],
50 "cwd": "[CUSTOM_C:\\_B_WORK]",
Eric Boren6f67cf72017-09-22 15:43:36 -040051 "env_prefixes": {
52 "PATH": [
53 "RECIPE_PACKAGE_REPO[depot_tools]"
54 ]
Eric Boren7e97dc02017-02-02 09:02:37 -050055 },
Eric Borena1590852017-03-20 12:48:31 -040056 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -050057 "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-rolleracf02022017-10-31 15:53:18 -070078 "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@",
79 "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
80 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
81 "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/skia.git\", @@@",
82 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
83 "@@@STEP_LOG_LINE@json.output@ }@@@",
84 "@@@STEP_LOG_LINE@json.output@ }, @@@",
85 "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@",
86 "@@@STEP_LOG_LINE@json.output@ }, @@@",
Eric Boren7e97dc02017-02-02 09:02:37 -050087 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
88 "@@@STEP_LOG_LINE@json.output@}@@@",
89 "@@@STEP_LOG_END@json.output@@@",
90 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
91 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
92 ]
93 },
94 {
95 "cmd": [
96 "python",
97 "-u",
98 "[CUSTOM_C:\\_B_WORK]\\skia\\bin\\fetch-gn"
99 ],
100 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
101 "env": {
Kevin Lubick0a51b482017-02-06 12:45:29 -0500102 "BUILDTYPE": "Debug",
103 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700104 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500105 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Exceptions"
Eric Boren7e97dc02017-02-02 09:02:37 -0500106 },
Eric Borena1590852017-03-20 12:48:31 -0400107 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -0500108 "name": "fetch-gn"
109 },
110 {
111 "cmd": [
112 "[CUSTOM_C:\\_B_WORK]\\skia\\bin\\gn.exe",
113 "gen",
114 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Exceptions\\Debug",
115 "--args=extra_cflags=[\"/EHsc\"] target_cpu=\"x86\" windk=\"[START_DIR]\\t\\depot_tools\\win_toolchain\\vs_files\\d3cb0e37bdd120ad0ac4650b674b09e81be45616\""
116 ],
117 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
118 "env": {
Kevin Lubick0a51b482017-02-06 12:45:29 -0500119 "BUILDTYPE": "Debug",
120 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700121 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500122 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Exceptions"
Eric Boren7e97dc02017-02-02 09:02:37 -0500123 },
124 "name": "gn gen"
125 },
126 {
127 "cmd": [
128 "ninja.exe",
129 "-C",
130 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Exceptions\\Debug"
131 ],
132 "cwd": "[CUSTOM_C:\\_B_WORK]\\skia",
133 "env": {
Kevin Lubick0a51b482017-02-06 12:45:29 -0500134 "BUILDTYPE": "Debug",
135 "CHROME_HEADLESS": "1",
recipe-rollere0f7e162017-05-31 16:13:27 -0700136 "PATH": "<PATH>;RECIPE_PACKAGE_REPO[depot_tools]",
Kevin Lubick0a51b482017-02-06 12:45:29 -0500137 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Exceptions"
Eric Boren7e97dc02017-02-02 09:02:37 -0500138 },
139 "name": "ninja"
140 },
141 {
142 "cmd": [
143 "python",
144 "-u",
Stephan Altmuellerbabb1012017-04-05 11:45:52 -0400145 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['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', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']\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",
Eric Boren7e97dc02017-02-02 09:02:37 -0500146 "[CUSTOM_C:\\_B_WORK]\\skia\\out\\Build-Win-MSVC-x86-Debug-Exceptions\\Debug",
147 "[CUSTOM_[SWARM_OUT_DIR]]\\out\\Debug"
148 ],
Eric Borena1590852017-03-20 12:48:31 -0400149 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -0500150 "name": "copy build products",
151 "~followup_annotations": [
152 "@@@STEP_LOG_LINE@python.inline@import errno@@@",
153 "@@@STEP_LOG_LINE@python.inline@import glob@@@",
154 "@@@STEP_LOG_LINE@python.inline@import os@@@",
155 "@@@STEP_LOG_LINE@python.inline@import shutil@@@",
156 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
157 "@@@STEP_LOG_LINE@python.inline@@@@",
158 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@",
159 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@",
Stephan Altmuellerbabb1012017-04-05 11:45:52 -0400160 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['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', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']@@@",
Eric Boren7e97dc02017-02-02 09:02:37 -0500161 "@@@STEP_LOG_LINE@python.inline@@@@",
162 "@@@STEP_LOG_LINE@python.inline@try:@@@",
163 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@",
164 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@",
165 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@",
166 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
167 "@@@STEP_LOG_LINE@python.inline@@@@",
168 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@",
169 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@",
170 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@",
171 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@",
172 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@",
173 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@",
174 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@",
175 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@",
176 "@@@STEP_LOG_END@python.inline@@@"
177 ]
178 },
179 {
180 "cmd": [
181 "python",
182 "-u",
183 "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"
184 ],
Eric Borena1590852017-03-20 12:48:31 -0400185 "infra_step": true,
Eric Boren7e97dc02017-02-02 09:02:37 -0500186 "name": "cleanup",
187 "~followup_annotations": [
188 "@@@STEP_LOG_LINE@python.inline@import psutil@@@",
189 "@@@STEP_LOG_LINE@python.inline@for p in psutil.process_iter():@@@",
190 "@@@STEP_LOG_LINE@python.inline@ try:@@@",
191 "@@@STEP_LOG_LINE@python.inline@ if p.name in ('mspdbsrv.exe', 'vctip.exe', 'cl.exe', 'link.exe'):@@@",
192 "@@@STEP_LOG_LINE@python.inline@ p.kill()@@@",
193 "@@@STEP_LOG_LINE@python.inline@ except psutil._error.AccessDenied:@@@",
194 "@@@STEP_LOG_LINE@python.inline@ pass@@@",
195 "@@@STEP_LOG_END@python.inline@@@"
196 ]
197 },
198 {
199 "name": "$result",
200 "recipe_result": null,
201 "status_code": 0
202 }
203]