blob: dd6788d66c7d9568bae63962ed3d87b0590488b2 [file] [log] [blame]
borenet1ed2ae42016-07-26 11:52:17 -07001[
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",
Eric Boren5cb5c742018-04-27 13:14:38 -040012 "[START_DIR]/cache/work"
borenet1ed2ae42016-07-26 11:52:17 -070013 ],
Eric Borena1590852017-03-20 12:48:31 -040014 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -070015 "name": "makedirs checkout_path"
borenet1ed2ae42016-07-26 11:52:17 -070016 },
17 {
18 "cmd": [
Eric Borenffb48e12017-04-19 14:39:21 -040019 "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 Boren5cb5c742018-04-27 13:14:38 -040025 "[START_DIR]/cache/work/.gclient_entries"
Eric Borenffb48e12017-04-19 14:39:21 -040026 ],
27 "infra_step": true,
Eric Boren5cb5c742018-04-27 13:14:38 -040028 "name": "remove [START_DIR]/cache/work/.gclient_entries"
Eric Borenffb48e12017-04-19 14:39:21 -040029 },
30 {
31 "cmd": [
borenet1ed2ae42016-07-26 11:52:17 -070032 "python",
33 "-u",
Eric Boren5c2ed722018-04-23 09:16:23 -040034 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
Eric Boren6f67cf72017-09-22 15:43:36 -040035 "--spec-path",
Eric Borenea290802018-06-20 08:19:24 -040036 "cache_dir = '[START_DIR]/cache/git'\nsolutions = [{'custom_vars': {'checkout_chromium': True}, 'deps_file': '.DEPS.git', 'managed': False, 'name': 'skia', 'url': 'https://skia.googlesource.com/skia.git'}]",
borenet8fa74702016-10-25 05:26:14 -070037 "--patch_root",
38 "skia",
39 "--revision_mapping_file",
John Budorick74be2f22017-04-28 18:59:04 -070040 "{\"got_revision\": \"skia\"}",
borenet8fa74702016-10-25 05:26:14 -070041 "--git-cache-dir",
Eric Boren5cb5c742018-04-27 13:14:38 -040042 "[START_DIR]/cache/git",
recipe-rollera6e46862017-06-08 16:13:19 -070043 "--cleanup-dir",
44 "[CLEANUP]/bot_update",
borenet8fa74702016-10-25 05:26:14 -070045 "--output_json",
46 "/path/to/tmp/json",
47 "--revision",
Eric Borenea290802018-06-20 08:19:24 -040048 "skia@abc123"
borenet1ed2ae42016-07-26 11:52:17 -070049 ],
Eric Boren5cb5c742018-04-27 13:14:38 -040050 "cwd": "[START_DIR]/cache/work",
Eric Boren6f67cf72017-09-22 15:43:36 -040051 "env_prefixes": {
52 "PATH": [
53 "RECIPE_PACKAGE_REPO[depot_tools]"
54 ]
borenet1ed2ae42016-07-26 11:52:17 -070055 },
Eric Borena1590852017-03-20 12:48:31 -040056 "infra_step": true,
borenet8fa74702016-10-25 05:26:14 -070057 "name": "bot_update",
borenet1ed2ae42016-07-26 11:52:17 -070058 "~followup_annotations": [
borenet8fa74702016-10-25 05:26:14 -070059 "@@@STEP_TEXT@Some step text@@@",
borenet1ed2ae42016-07-26 11:52:17 -070060 "@@@STEP_LOG_LINE@json.output@{@@@",
borenet8fa74702016-10-25 05:26:14 -070061 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
Eric Borenea290802018-06-20 08:19:24 -040063 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
borenet8fa74702016-10-25 05:26:14 -070064 "@@@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\", @@@",
rmistry90d0bfa2016-09-15 04:52:20 -070068 "@@@STEP_LOG_LINE@json.output@ \"revision\": \"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
borenet1ed2ae42016-07-26 11:52:17 -070069 "@@@STEP_LOG_LINE@json.output@ }@@@",
borenet8fa74702016-10-25 05:26:14 -070070 "@@@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@ }, @@@",
Eric Borenea290802018-06-20 08:19:24 -040077 "@@@STEP_LOG_LINE@json.output@ \"root\": \"skia\", @@@",
recipe-rolleracf02022017-10-31 15:53:18 -070078 "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@",
recipe-roller275d92c2017-12-08 05:21:04 -080079 "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@",
recipe-rolleracf02022017-10-31 15:53:18 -070080 "@@@STEP_LOG_LINE@json.output@ \"skia\": {@@@",
recipe-roller275d92c2017-12-08 05:21:04 -080081 "@@@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-rolleracf02022017-10-31 15:53:18 -070085 "@@@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@ }, @@@",
borenet8fa74702016-10-25 05:26:14 -070089 "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
borenet1ed2ae42016-07-26 11:52:17 -070090 "@@@STEP_LOG_LINE@json.output@}@@@",
91 "@@@STEP_LOG_END@json.output@@@",
borenet8fa74702016-10-25 05:26:14 -070092 "@@@SET_BUILD_PROPERTY@got_revision@\"9046e2e693bb92a76e972b694580e5d17ad10748\"@@@",
93 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#164710}\"@@@"
borenet1ed2ae42016-07-26 11:52:17 -070094 ]
95 },
96 {
97 "cmd": [
Eric Boren5c2ed722018-04-23 09:16:23 -040098 "python",
99 "-u",
100 "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
borenet1ed2ae42016-07-26 11:52:17 -0700101 "runhooks"
102 ],
Eric Boren5cb5c742018-04-27 13:14:38 -0400103 "cwd": "[START_DIR]/cache/work",
borenet1ed2ae42016-07-26 11:52:17 -0700104 "env": {
borenetb6aafe62016-08-02 07:02:52 -0700105 "CPPFLAGS": "-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1",
Eric Boren9599b0f2018-04-17 15:55:57 -0400106 "DEPOT_TOOLS_UPDATE": "0",
recipe-roller2c8bc682018-06-13 16:48:50 -0700107 "GYP_CHROMIUM_NO_ACTION": "0"
108 },
109 "env_suffixes": {
110 "PATH": [
111 "RECIPE_PACKAGE_REPO[depot_tools]"
112 ]
borenet1ed2ae42016-07-26 11:52:17 -0700113 },
114 "name": "gclient runhooks"
115 },
116 {
117 "cmd": [
118 "python",
119 "-u",
Robert Iannucci8cd50412017-07-07 14:36:58 -0700120 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
121 "--json-output",
122 "/path/to/tmp/json",
123 "ensure-directory",
124 "--mode",
125 "0777",
126 "[START_DIR]/tmp"
borenet1ed2ae42016-07-26 11:52:17 -0700127 ],
Eric Borena1590852017-03-20 12:48:31 -0400128 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -0700129 "name": "makedirs tmp_dir"
borenet1ed2ae42016-07-26 11:52:17 -0700130 },
131 {
132 "cmd": [
Eric Boren5cb5c742018-04-27 13:14:38 -0400133 "[START_DIR]/cache/work/src/buildtools/linux64/gn",
borenetb6aafe62016-08-02 07:02:52 -0700134 "gen",
Eric Boren5cb5c742018-04-27 13:14:38 -0400135 "[START_DIR]/cache/work/src/out/Release"
borenet1ed2ae42016-07-26 11:52:17 -0700136 ],
Eric Boren5cb5c742018-04-27 13:14:38 -0400137 "cwd": "[START_DIR]/cache/work/src",
borenet1ed2ae42016-07-26 11:52:17 -0700138 "env": {
Eric Boren81340c62017-04-17 10:29:04 -0400139 "CHROME_HEADLESS": "1",
borenet1ed2ae42016-07-26 11:52:17 -0700140 "CPPFLAGS": "-DSK_ALLOW_CROSSPROCESS_PICTUREIMAGEFILTERS=1",
Eric Boren81340c62017-04-17 10:29:04 -0400141 "GYP_GENERATORS": "ninja",
Eric Boren0f690102018-05-15 15:04:58 -0400142 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
borenet1ed2ae42016-07-26 11:52:17 -0700143 },
borenetb6aafe62016-08-02 07:02:52 -0700144 "name": "GN"
borenet1ed2ae42016-07-26 11:52:17 -0700145 },
146 {
147 "cmd": [
148 "ninja",
149 "-C",
Eric Boren5cb5c742018-04-27 13:14:38 -0400150 "[START_DIR]/cache/work/src/out/Release",
borenet1ed2ae42016-07-26 11:52:17 -0700151 "chrome"
152 ],
Eric Boren5cb5c742018-04-27 13:14:38 -0400153 "cwd": "[START_DIR]/cache/work/src",
Eric Boren81340c62017-04-17 10:29:04 -0400154 "env": {
Eric Boren81340c62017-04-17 10:29:04 -0400155 "CHROME_HEADLESS": "1",
Eric Boren0f690102018-05-15 15:04:58 -0400156 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
Eric Boren81340c62017-04-17 10:29:04 -0400157 },
borenet1ed2ae42016-07-26 11:52:17 -0700158 "name": "Build Chrome"
159 },
160 {
161 "cmd": [
162 "python",
163 "-u",
Eric Boren3e2ffd72017-06-16 13:10:22 -0400164 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
165 "--json-output",
166 "/path/to/tmp/json",
Eric Boren78179312018-04-23 08:35:45 -0400167 "rmtree",
168 "[START_DIR]/skp_output"
169 ],
170 "infra_step": true,
171 "name": "rmtree skp_output"
172 },
173 {
174 "cmd": [
175 "python",
176 "-u",
177 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
178 "--json-output",
179 "/path/to/tmp/json",
Robert Iannucci8cd50412017-07-07 14:36:58 -0700180 "ensure-directory",
181 "--mode",
182 "0777",
183 "[START_DIR]/skp_output"
borenet1ed2ae42016-07-26 11:52:17 -0700184 ],
Eric Boren3e2ffd72017-06-16 13:10:22 -0400185 "infra_step": true,
Robert Iannucci8cd50412017-07-07 14:36:58 -0700186 "name": "makedirs skp_output"
borenet1ed2ae42016-07-26 11:52:17 -0700187 },
188 {
189 "cmd": [
190 "python",
Eric Boren5cb5c742018-04-27 13:14:38 -0400191 "[START_DIR]/cache/work/skia/infra/bots/assets/skp/create.py",
borenet1ed2ae42016-07-26 11:52:17 -0700192 "--chrome_src_path",
Eric Boren5cb5c742018-04-27 13:14:38 -0400193 "[START_DIR]/cache/work/src",
borenet1ed2ae42016-07-26 11:52:17 -0700194 "--browser_executable",
Eric Boren5cb5c742018-04-27 13:14:38 -0400195 "[START_DIR]/cache/work/src/out/Release/chrome",
borenet1ed2ae42016-07-26 11:52:17 -0700196 "--target_dir",
Ravi Mistry50cd9e92017-07-13 20:46:21 +0000197 "[START_DIR]/skp_output"
borenet1ed2ae42016-07-26 11:52:17 -0700198 ],
Eric Boren5cb5c742018-04-27 13:14:38 -0400199 "cwd": "[START_DIR]/cache/work/skia",
borenet1ed2ae42016-07-26 11:52:17 -0700200 "env": {
borenet1ed2ae42016-07-26 11:52:17 -0700201 "CHROME_HEADLESS": "1",
Eric Boren0f690102018-05-15 15:04:58 -0400202 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
borenet1ed2ae42016-07-26 11:52:17 -0700203 },
204 "name": "Recreate SKPs"
205 },
206 {
207 "cmd": [
Eric Borenade69202017-04-13 10:00:43 -0400208 "[START_DIR]/go/go/bin/go",
209 "version"
210 ],
211 "env": {
Eric Borenade69202017-04-13 10:00:43 -0400212 "CHROME_HEADLESS": "1",
213 "GOPATH": "[START_DIR]/gopath",
214 "GOROOT": "[START_DIR]/go/go",
Eric Boren0f690102018-05-15 15:04:58 -0400215 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/gopath:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
Eric Borenade69202017-04-13 10:00:43 -0400216 },
217 "name": "go version"
218 },
219 {
220 "cmd": [
borenet09732a62016-10-24 06:36:30 -0700221 "go",
Eric Borenade69202017-04-13 10:00:43 -0400222 "version"
223 ],
224 "env": {
Eric Borenade69202017-04-13 10:00:43 -0400225 "CHROME_HEADLESS": "1",
226 "GOPATH": "[START_DIR]/gopath",
227 "GOROOT": "[START_DIR]/go/go",
Eric Boren0f690102018-05-15 15:04:58 -0400228 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/gopath:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
Eric Borenade69202017-04-13 10:00:43 -0400229 },
230 "name": "env go version"
231 },
232 {
233 "cmd": [
234 "[START_DIR]/go/go/bin/go",
borenet09732a62016-10-24 06:36:30 -0700235 "get",
236 "-u",
Eric Boren58bf6932016-11-16 10:49:52 -0500237 "-t",
borenet09732a62016-10-24 06:36:30 -0700238 "go.skia.org/infra/..."
239 ],
240 "env": {
Eric Borenbbb24f22017-03-21 08:20:33 -0400241 "CHROME_HEADLESS": "1",
Eric Borenade69202017-04-13 10:00:43 -0400242 "GOPATH": "[START_DIR]/gopath",
243 "GOROOT": "[START_DIR]/go/go",
Eric Boren0f690102018-05-15 15:04:58 -0400244 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/gopath:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
borenet09732a62016-10-24 06:36:30 -0700245 },
246 "name": "update go pkgs"
247 },
248 {
249 "cmd": [
borenet1ed2ae42016-07-26 11:52:17 -0700250 "python",
Eric Boren5cb5c742018-04-27 13:14:38 -0400251 "[START_DIR]/cache/work/skia/infra/bots/upload_skps.py",
borenet1ed2ae42016-07-26 11:52:17 -0700252 "--target_dir",
Eric Boren78179312018-04-23 08:35:45 -0400253 "[START_DIR]/skp_output"
borenet1ed2ae42016-07-26 11:52:17 -0700254 ],
Eric Boren5cb5c742018-04-27 13:14:38 -0400255 "cwd": "[START_DIR]/cache/work/skia",
borenet1ed2ae42016-07-26 11:52:17 -0700256 "env": {
257 "CHROME_HEADLESS": "1",
Eric Borenade69202017-04-13 10:00:43 -0400258 "GOPATH": "[START_DIR]/gopath",
259 "GOROOT": "[START_DIR]/go/go",
Eric Boren0f690102018-05-15 15:04:58 -0400260 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/gopath:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
borenet1ed2ae42016-07-26 11:52:17 -0700261 },
262 "name": "Upload SKPs"
263 },
264 {
borenet1ed2ae42016-07-26 11:52:17 -0700265 "name": "$result",
266 "recipe_result": null,
267 "status_code": 0
268 }
269]