Debian Codegraph @

infra/bots/README.recipes.md

raw
1 <!--- AUTOGENERATED BY `./recipes.py test train` -->
2 # Repo documentation for [skia]()
3 ## Table of Contents
4
5 **[Recipe Modules](#Recipe-Modules)**
6 * [build](#recipe_modules-build) &mdash; Build Skia for various platforms.
7 * [builder_name_schema](#recipe_modules-builder_name_schema)
8 * [checkout](#recipe_modules-checkout)
9 * [docker](#recipe_modules-docker)
10 * [doxygen](#recipe_modules-doxygen)
11 * [env](#recipe_modules-env)
12 * [flavor](#recipe_modules-flavor)
13 * [git](#recipe_modules-git)
14 * [gold_upload](#recipe_modules-gold_upload)
15 * [gsutil](#recipe_modules-gsutil)
16 * [infra](#recipe_modules-infra)
17 * [run](#recipe_modules-run)
18 * [vars](#recipe_modules-vars)
19 * [xcode](#recipe_modules-xcode)
20
21 **[Recipes](#Recipes)**
22 * [build:examples/full](#recipes-build_examples_full)
23 * [builder_name_schema:examples/full](#recipes-builder_name_schema_examples_full)
24 * [checkout:examples/full](#recipes-checkout_examples_full)
25 * [compile](#recipes-compile)
26 * [compute_buildstats](#recipes-compute_buildstats)
27 * [docker:examples/full](#recipes-docker_examples_full)
28 * [doxygen:examples/full](#recipes-doxygen_examples_full)
29 * [env:examples/full](#recipes-env_examples_full)
30 * [flavor:examples/full](#recipes-flavor_examples_full)
31 * [git:examples/full](#recipes-git_examples_full)
32 * [gold_upload:examples/full](#recipes-gold_upload_examples_full)
33 * [gsutil:examples/full](#recipes-gsutil_examples_full)
34 * [housekeeper](#recipes-housekeeper)
35 * [infra](#recipes-infra)
36 * [infra:examples/full](#recipes-infra_examples_full)
37 * [perf](#recipes-perf)
38 * [perf_skottietrace](#recipes-perf_skottietrace)
39 * [perf_skottiewasm_lottieweb](#recipes-perf_skottiewasm_lottieweb)
40 * [run:examples/full](#recipes-run_examples_full)
41 * [sync_and_compile](#recipes-sync_and_compile)
42 * [test](#recipes-test)
43 * [test_canvaskit](#recipes-test_canvaskit)
44 * [test_lottie_web](#recipes-test_lottie_web)
45 * [upload_buildstats_results](#recipes-upload_buildstats_results)
46 * [upload_dm_results](#recipes-upload_dm_results)
47 * [upload_nano_results](#recipes-upload_nano_results)
48 * [vars:examples/full](#recipes-vars_examples_full)
49 * [xcode:examples/full](#recipes-xcode_examples_full)
50 ## Recipe Modules
51
52 ### *recipe_modules* / [build](/infra/bots/recipe_modules/build)
53
54 [DEPS](/infra/bots/recipe_modules/build/__init__.py#8): [depot\_tools/gclient][depot_tools/recipe_modules/gclient], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/step][recipe_engine/recipe_modules/step], [docker](#recipe_modules-docker), [env](#recipe_modules-env), [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars), [xcode](#recipe_modules-xcode)
55
56
57 Build Skia for various platforms.
58
59 #### **class [BuildApi](/infra/bots/recipe_modules/build/api.py#19)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
60
61 &mdash; **def [\_\_call\_\_](/infra/bots/recipe_modules/build/api.py#42)(self, checkout_root, out_dir):**
62
63 Compile the code.
64
65 &mdash; **def [copy\_build\_products](/infra/bots/recipe_modules/build/api.py#46)(self, out_dir, dst):**
66
67 Copy selected build products to dst.
68 ### *recipe_modules* / [builder\_name\_schema](/infra/bots/recipe_modules/builder_name_schema)
69
70
71 #### **class [BuilderNameSchemaApi](/infra/bots/recipe_modules/builder_name_schema/api.py#14)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
72
73 &mdash; **def [DictForBuilderName](/infra/bots/recipe_modules/builder_name_schema/api.py#32)(self, \*args, \*\*kwargs):**
74
75 &mdash; **def [MakeBuilderName](/infra/bots/recipe_modules/builder_name_schema/api.py#29)(self, \*\*kwargs):**
76 ### *recipe_modules* / [checkout](/infra/bots/recipe_modules/checkout)
77
78 [DEPS](/infra/bots/recipe_modules/checkout/__init__.py#8): [depot\_tools/bot\_update][depot_tools/recipe_modules/bot_update], [depot\_tools/gclient][depot_tools/recipe_modules/gclient], [depot\_tools/git][depot_tools/recipe_modules/git], [depot\_tools/tryserver][depot_tools/recipe_modules/tryserver], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [run](#recipe_modules-run), [vars](#recipe_modules-vars)
79
80
81 #### **class [CheckoutApi](/infra/bots/recipe_modules/checkout/api.py#13)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
82
83 &mdash; **def [assert\_git\_is\_from\_cipd](/infra/bots/recipe_modules/checkout/api.py#20)(self):**
84
85 Fail if git is not obtained from CIPD.
86
87 &mdash; **def [bot\_update](/infra/bots/recipe_modules/checkout/api.py#39)(self, checkout_root, gclient_cache=None, skip_patch=False, override_revision=None):**
88
89 Run the steps to obtain a checkout using bot_update.
90
91 Args:
92 checkout_root: Root directory where the code will be synced.
93 gclient_cache: Optional, directory of the gclient cache.
94 skip_patch: Ignore changelist/patchset when syncing the Skia repo.
95
96 &emsp; **@property**<br>&mdash; **def [default\_checkout\_root](/infra/bots/recipe_modules/checkout/api.py#15)(self):**
97
98 The default location for cached persistent checkouts.
99
100 &mdash; **def [git](/infra/bots/recipe_modules/checkout/api.py#26)(self, checkout_root):**
101
102 Run the steps to perform a pure-git checkout without DEPS.
103 ### *recipe_modules* / [docker](/infra/bots/recipe_modules/docker)
104
105 [DEPS](/infra/bots/recipe_modules/docker/__init__.py#9): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [env](#recipe_modules-env), [run](#recipe_modules-run)
106
107
108 #### **class [DockerApi](/infra/bots/recipe_modules/docker/api.py#15)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
109
110 &mdash; **def [mount\_out](/infra/bots/recipe_modules/docker/api.py#27)(self):**
111
112 &mdash; **def [mount\_src](/infra/bots/recipe_modules/docker/api.py#24)(self):**
113
114 &mdash; **def [run](/infra/bots/recipe_modules/docker/api.py#32)(self, name, docker_image, src_dir, out_dir, script, args=None, docker_args=None, copies=None, recursive_read=None, attempts=1, match_directory_structure=False, env=None):**
115 ### *recipe_modules* / [doxygen](/infra/bots/recipe_modules/doxygen)
116
117 [DEPS](/infra/bots/recipe_modules/doxygen/__init__.py#8): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/step][recipe_engine/recipe_modules/step], [run](#recipe_modules-run)
118
119
120 #### **class [DoxygenApi](/infra/bots/recipe_modules/doxygen/api.py#9)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
121
122 &mdash; **def [generate\_and\_upload](/infra/bots/recipe_modules/doxygen/api.py#10)(self, skia_dir):**
123 ### *recipe_modules* / [env](/infra/bots/recipe_modules/env)
124
125 [DEPS](/infra/bots/recipe_modules/env/__init__.py#8): [recipe\_engine/context][recipe_engine/recipe_modules/context]
126
127
128 #### **class [EnvApi](/infra/bots/recipe_modules/env/api.py#9)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
129 ### *recipe_modules* / [flavor](/infra/bots/recipe_modules/flavor)
130
131 [DEPS](/infra/bots/recipe_modules/flavor/__init__.py#8): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [env](#recipe_modules-env), [run](#recipe_modules-run), [vars](#recipe_modules-vars), [xcode](#recipe_modules-xcode)
132
133
134 #### **class [SkiaFlavorApi](/infra/bots/recipe_modules/flavor/api.py#49)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
135
136 &mdash; **def [cleanup\_steps](/infra/bots/recipe_modules/flavor/api.py#115)(self):**
137
138 &mdash; **def [copy\_directory\_contents\_to\_device](/infra/bots/recipe_modules/flavor/api.py#73)(self, host_dir, device_dir):**
139
140 &mdash; **def [copy\_directory\_contents\_to\_host](/infra/bots/recipe_modules/flavor/api.py#76)(self, device_dir, host_dir):**
141
142 &mdash; **def [copy\_file\_to\_device](/infra/bots/recipe_modules/flavor/api.py#79)(self, host_path, device_path):**
143
144 &mdash; **def [create\_clean\_device\_dir](/infra/bots/recipe_modules/flavor/api.py#85)(self, path):**
145
146 &mdash; **def [create\_clean\_host\_dir](/infra/bots/recipe_modules/flavor/api.py#82)(self, path):**
147
148 &mdash; **def [device\_path\_join](/infra/bots/recipe_modules/flavor/api.py#70)(self, \*args):**
149
150 &mdash; **def [get\_flavor](/infra/bots/recipe_modules/flavor/api.py#50)(self, vars_api, app_name):**
151
152 Return a flavor utils object specific to the given builder.
153
154 &mdash; **def [install](/infra/bots/recipe_modules/flavor/api.py#94)(self, skps=False, images=False, lotties=False, svgs=False, resources=False, texttraces=False):**
155
156 &mdash; **def [read\_file\_on\_device](/infra/bots/recipe_modules/flavor/api.py#88)(self, path, \*\*kwargs):**
157
158 &mdash; **def [remove\_file\_on\_device](/infra/bots/recipe_modules/flavor/api.py#91)(self, path):**
159
160 &mdash; **def [setup](/infra/bots/recipe_modules/flavor/api.py#61)(self, app_name):**
161
162 &mdash; **def [step](/infra/bots/recipe_modules/flavor/api.py#67)(self, name, cmd, \*\*kwargs):**
163 ### *recipe_modules* / [git](/infra/bots/recipe_modules/git)
164
165 [DEPS](/infra/bots/recipe_modules/git/__init__.py#8): [recipe\_engine/path][recipe_engine/recipe_modules/path], [env](#recipe_modules-env)
166
167
168 #### **class [GitApi](/infra/bots/recipe_modules/git/api.py#9)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
169
170 &mdash; **def [env](/infra/bots/recipe_modules/git/api.py#10)(self):**
171
172 Add Git to PATH
173
174 Requires the infra/git and infra/tools/git CIPD packages to be installed
175 in the 'git' relative path.
176 ### *recipe_modules* / [gold\_upload](/infra/bots/recipe_modules/gold_upload)
177
178 [DEPS](/infra/bots/recipe_modules/gold_upload/__init__.py#8): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [flavor](#recipe_modules-flavor), [gsutil](#recipe_modules-gsutil), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
179
180
181 #### **class [GoldUploadApi](/infra/bots/recipe_modules/gold_upload/api.py#11)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
182
183 &mdash; **def [upload](/infra/bots/recipe_modules/gold_upload/api.py#12)(self):**
184
185 Attempt to upload files to Gold.
186 This module assumes setup has occurred for the vars and flavor modules.
187 ### *recipe_modules* / [gsutil](/infra/bots/recipe_modules/gsutil)
188
189 [DEPS](/infra/bots/recipe_modules/gsutil/__init__.py#8): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/step][recipe_engine/recipe_modules/step], [run](#recipe_modules-run), [vars](#recipe_modules-vars)
190
191
192 #### **class [GSUtilApi](/infra/bots/recipe_modules/gsutil/api.py#10)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
193
194 &mdash; **def [\_\_call\_\_](/infra/bots/recipe_modules/gsutil/api.py#11)(self, step_name, \*args):**
195
196 Run gsutil with the given args.
197
198 This assumes there exists an executable called gsutil on the PATH.
199 This probably only works for Linux/Mac, but those are the only
200 hosts that we try to upload to GCS from anyway.
201
202 &mdash; **def [cp](/infra/bots/recipe_modules/gsutil/api.py#20)(self, name, src, dst, extra_gsutil_args=None, extra_args=None, multithread=False):**
203
204 Attempt to upload or download files to/from Google Cloud Storage (GCS).
205
206 Args:
207 name: string. Will be used to fill out the step name.
208 src: string. Absolute path for a local file or gcs file (e.g. gs://...)
209 dst: string. Same as src.
210 extra_gsutil_args: optional list of args to be passed to gsutil before the
211 cp command.
212 extra_args: optional list of args to be passed to gsutil cp. e.g. [-Z]
213 asks all files be compressed with gzip after upload and before download.
214 multi_thread: if the -m argument should be used to copy multiple items
215 at once (e.g. gsutil -m cp foo* gs://bar/dir)
216
217 If the operation fails, it will be retried multiple times.
218 ### *recipe_modules* / [infra](/infra/bots/recipe_modules/infra)
219
220 [DEPS](/infra/bots/recipe_modules/infra/__init__.py#8): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [run](#recipe_modules-run), [vars](#recipe_modules-vars)
221
222
223 #### **class [InfraApi](/infra/bots/recipe_modules/infra/api.py#14)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
224
225 &emsp; **@property**<br>&mdash; **def [go\_bin](/infra/bots/recipe_modules/infra/api.py#46)(self):**
226
227 &emsp; **@property**<br>&mdash; **def [go\_env](/infra/bots/recipe_modules/infra/api.py#50)(self):**
228
229 &emsp; **@property**<br>&mdash; **def [gopath](/infra/bots/recipe_modules/infra/api.py#60)(self):**
230
231 &emsp; **@property**<br>&mdash; **def [goroot](/infra/bots/recipe_modules/infra/api.py#15)(self):**
232 ### *recipe_modules* / [run](/infra/bots/recipe_modules/run)
233
234 [DEPS](/infra/bots/recipe_modules/run/__init__.py#8): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [env](#recipe_modules-env), [vars](#recipe_modules-vars)
235
236
237 #### **class [SkiaStepApi](/infra/bots/recipe_modules/run/api.py#14)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
238
239 &mdash; **def [\_\_call\_\_](/infra/bots/recipe_modules/run/api.py#69)(self, steptype, name, abort_on_failure=True, fail_build_on_failure=True, \*\*kwargs):**
240
241 Run a step. If it fails, keep going but mark the build status failed.
242
243 &mdash; **def [\_\_init\_\_](/infra/bots/recipe_modules/run/api.py#16)(self, \*args, \*\*kwargs):**
244
245 Initialize the recipe module.
246
247 &mdash; **def [asset\_version](/infra/bots/recipe_modules/run/api.py#54)(self, asset_name, skia_dir, test_data=None):**
248
249 Return the contents of VERSION for the given asset as a string.
250
251 If test_data is not specified, reads the property
252 'test_<asset_name>_version' or if not present, uses
253 TEST_DEFAULT_ASSET_VERSION.
254
255 &mdash; **def [check\_failure](/infra/bots/recipe_modules/run/api.py#25)(self):**
256
257 Raise an exception if any step failed.
258
259 &emsp; **@property**<br>&mdash; **def [failed\_steps](/infra/bots/recipe_modules/run/api.py#31)(self):**
260
261 &mdash; **def [readfile](/infra/bots/recipe_modules/run/api.py#40)(self, filename, \*args, \*\*kwargs):**
262
263 Convenience function for reading files.
264
265 &mdash; **def [rmtree](/infra/bots/recipe_modules/run/api.py#50)(self, path):**
266
267 Wrapper around api.file.rmtree.
268
269 &mdash; **def [run\_once](/infra/bots/recipe_modules/run/api.py#35)(self, fn, \*args, \*\*kwargs):**
270
271 &mdash; **def [with\_retry](/infra/bots/recipe_modules/run/api.py#81)(self, steptype, name, attempts, between_attempts_fn=None, abort_on_failure=True, fail_build_on_failure=True, \*\*kwargs):**
272
273 &mdash; **def [writefile](/infra/bots/recipe_modules/run/api.py#45)(self, filename, contents):**
274
275 Convenience function for writing files.
276 ### *recipe_modules* / [vars](/infra/bots/recipe_modules/vars)
277
278 [DEPS](/infra/bots/recipe_modules/vars/__init__.py#8): [depot\_tools/bot\_update][depot_tools/recipe_modules/bot_update], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [builder\_name\_schema](#recipe_modules-builder_name_schema)
279
280
281 #### **class [SkiaVarsApi](/infra/bots/recipe_modules/vars/api.py#16)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
282
283 &mdash; **def [getenv](/infra/bots/recipe_modules/vars/api.py#107)(self, name, var):**
284
285 &emsp; **@property**<br>&mdash; **def [is\_linux](/infra/bots/recipe_modules/vars/api.py#87)(self):**
286
287 &mdash; **def [setup](/infra/bots/recipe_modules/vars/api.py#18)(self):**
288
289 Prepare the variables.
290
291 &emsp; **@property**<br>&mdash; **def [swarming\_bot\_id](/infra/bots/recipe_modules/vars/api.py#95)(self):**
292
293 &emsp; **@property**<br>&mdash; **def [swarming\_task\_id](/infra/bots/recipe_modules/vars/api.py#101)(self):**
294 ### *recipe_modules* / [xcode](/infra/bots/recipe_modules/xcode)
295
296 [DEPS](/infra/bots/recipe_modules/xcode/__init__.py#9): [recipe\_engine/cipd][recipe_engine/recipe_modules/cipd], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/step][recipe_engine/recipe_modules/step], [vars](#recipe_modules-vars)
297
298
299 #### **class [SkiaXCodeApi](/infra/bots/recipe_modules/xcode/api.py#10)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
300
301 &mdash; **def [install](/infra/bots/recipe_modules/xcode/api.py#21)(self):**
302
303 &emsp; **@property**<br>&mdash; **def [path](/infra/bots/recipe_modules/xcode/api.py#17)(self):**
304
305 &emsp; **@property**<br>&mdash; **def [version](/infra/bots/recipe_modules/xcode/api.py#13)(self):**
306 ## Recipes
307
308 ### *recipes* / [build:examples/full](/infra/bots/recipe_modules/build/examples/full.py)
309
310 [DEPS](/infra/bots/recipe_modules/build/examples/full.py#6): [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [build](#recipe_modules-build), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
311
312
313 &mdash; **def [RunSteps](/infra/bots/recipe_modules/build/examples/full.py#17)(api):**
314 ### *recipes* / [builder\_name\_schema:examples/full](/infra/bots/recipe_modules/builder_name_schema/examples/full.py)
315
316 [DEPS](/infra/bots/recipe_modules/builder_name_schema/examples/full.py#6): [builder\_name\_schema](#recipe_modules-builder_name_schema)
317
318
319 &mdash; **def [RunSteps](/infra/bots/recipe_modules/builder_name_schema/examples/full.py#11)(api):**
320 ### *recipes* / [checkout:examples/full](/infra/bots/recipe_modules/checkout/examples/full.py)
321
322 [DEPS](/infra/bots/recipe_modules/checkout/examples/full.py#6): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [checkout](#recipe_modules-checkout), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
323
324
325 &mdash; **def [RunSteps](/infra/bots/recipe_modules/checkout/examples/full.py#17)(api):**
326 ### *recipes* / [compile](/infra/bots/recipes/compile.py)
327
328 [DEPS](/infra/bots/recipes/compile.py#10): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [build](#recipe_modules-build), [checkout](#recipe_modules-checkout), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
329
330
331 &mdash; **def [RunSteps](/infra/bots/recipes/compile.py#26)(api):**
332 ### *recipes* / [compute\_buildstats](/infra/bots/recipes/compute_buildstats.py)
333
334 [DEPS](/infra/bots/recipes/compute_buildstats.py#11): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [checkout](#recipe_modules-checkout), [env](#recipe_modules-env), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
335
336
337 &mdash; **def [RunSteps](/infra/bots/recipes/compute_buildstats.py#33)(api):**
338
339 &mdash; **def [add\_binary\_size\_output\_property](/infra/bots/recipes/compute_buildstats.py#29)(result, source, binary_size):**
340
341 &mdash; **def [analyze\_cpp\_lib](/infra/bots/recipes/compute_buildstats.py#103)(api, checkout_root, out_dir, files):**
342
343 &mdash; **def [keys\_and\_props](/infra/bots/recipes/compute_buildstats.py#79)(api):**
344
345 &mdash; **def [make\_treemap](/infra/bots/recipes/compute_buildstats.py#131)(api, checkout_root, out_dir, files):**
346 ### *recipes* / [docker:examples/full](/infra/bots/recipe_modules/docker/examples/full.py)
347
348 [DEPS](/infra/bots/recipe_modules/docker/examples/full.py#6): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [docker](#recipe_modules-docker), [vars](#recipe_modules-vars)
349
350
351 &mdash; **def [RunSteps](/infra/bots/recipe_modules/docker/examples/full.py#15)(api):**
352 ### *recipes* / [doxygen:examples/full](/infra/bots/recipe_modules/doxygen/examples/full.py)
353
354 [DEPS](/infra/bots/recipe_modules/doxygen/examples/full.py#6): [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [doxygen](#recipe_modules-doxygen), [vars](#recipe_modules-vars)
355
356
357 &mdash; **def [RunSteps](/infra/bots/recipe_modules/doxygen/examples/full.py#14)(api):**
358 ### *recipes* / [env:examples/full](/infra/bots/recipe_modules/env/examples/full.py)
359
360 [DEPS](/infra/bots/recipe_modules/env/examples/full.py#6): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/step][recipe_engine/recipe_modules/step], [env](#recipe_modules-env)
361
362
363 &mdash; **def [RunSteps](/infra/bots/recipe_modules/env/examples/full.py#13)(api):**
364 ### *recipes* / [flavor:examples/full](/infra/bots/recipe_modules/flavor/examples/full.py)
365
366 [DEPS](/infra/bots/recipe_modules/flavor/examples/full.py#6): [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [flavor](#recipe_modules-flavor), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
367
368
369 &mdash; **def [RunSteps](/infra/bots/recipe_modules/flavor/examples/full.py#31)(api):**
370
371 &mdash; **def [test\_exceptions](/infra/bots/recipe_modules/flavor/examples/full.py#16)(api):**
372 ### *recipes* / [git:examples/full](/infra/bots/recipe_modules/git/examples/full.py)
373
374 [DEPS](/infra/bots/recipe_modules/git/examples/full.py#6): [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/step][recipe_engine/recipe_modules/step], [git](#recipe_modules-git)
375
376
377 &mdash; **def [RunSteps](/infra/bots/recipe_modules/git/examples/full.py#13)(api):**
378 ### *recipes* / [gold\_upload:examples/full](/infra/bots/recipe_modules/gold_upload/examples/full.py)
379
380 [DEPS](/infra/bots/recipe_modules/gold_upload/examples/full.py#9): [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [flavor](#recipe_modules-flavor), [gold\_upload](#recipe_modules-gold_upload), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
381
382
383 &mdash; **def [RunSteps](/infra/bots/recipe_modules/gold_upload/examples/full.py#21)(api):**
384 ### *recipes* / [gsutil:examples/full](/infra/bots/recipe_modules/gsutil/examples/full.py)
385
386 [DEPS](/infra/bots/recipe_modules/gsutil/examples/full.py#9): [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [gsutil](#recipe_modules-gsutil), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
387
388
389 &mdash; **def [RunSteps](/infra/bots/recipe_modules/gsutil/examples/full.py#19)(api):**
390 ### *recipes* / [housekeeper](/infra/bots/recipes/housekeeper.py)
391
392 [DEPS](/infra/bots/recipes/housekeeper.py#12): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [checkout](#recipe_modules-checkout), [doxygen](#recipe_modules-doxygen), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
393
394
395 &mdash; **def [RunSteps](/infra/bots/recipes/housekeeper.py#23)(api):**
396 ### *recipes* / [infra](/infra/bots/recipes/infra.py)
397
398 [DEPS](/infra/bots/recipes/infra.py#9): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [infra](#recipe_modules-infra), [vars](#recipe_modules-vars)
399
400
401 &mdash; **def [RunSteps](/infra/bots/recipes/infra.py#27)(api):**
402
403 &mdash; **def [git\_init](/infra/bots/recipes/infra.py#19)(api, repo_root, env):**
404 ### *recipes* / [infra:examples/full](/infra/bots/recipe_modules/infra/examples/full.py)
405
406 [DEPS](/infra/bots/recipe_modules/infra/examples/full.py#9): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
407
408
409 &mdash; **def [RunSteps](/infra/bots/recipe_modules/infra/examples/full.py#21)(api):**
410 ### *recipes* / [perf](/infra/bots/recipes/perf.py)
411
412 [DEPS](/infra/bots/recipes/perf.py#14): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [env](#recipe_modules-env), [flavor](#recipe_modules-flavor), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
413
414
415 &mdash; **def [RunSteps](/infra/bots/recipes/perf.py#103)(api):**
416
417 &mdash; **def [perf\_steps](/infra/bots/recipes/perf.py#30)(api):**
418
419 Run Skia benchmarks.
420 ### *recipes* / [perf\_skottietrace](/infra/bots/recipes/perf_skottietrace.py)
421
422 [DEPS](/infra/bots/recipes/perf_skottietrace.py#16): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [flavor](#recipe_modules-flavor), [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
423
424
425 &mdash; **def [RunSteps](/infra/bots/recipes/perf_skottietrace.py#190)(api):**
426
427 &mdash; **def [get\_trace\_match](/infra/bots/recipes/perf_skottietrace.py#146)(lottie_filename, is_android):**
428
429 Returns the DM regex to match the specified lottie file name.
430
431 &mdash; **def [parse\_trace](/infra/bots/recipes/perf_skottietrace.py#161)(trace_json, lottie_filename, api):**
432
433 parse_trace parses the specified trace JSON.
434
435 Parses the trace JSON and calculates the time of a single frame. Frame time is
436 considered the same as seek time + render time.
437 Note: The first seek is ignored because it is a constructor call.
438
439 A dictionary is returned that has the following structure:
440 {
441 'frame_max_us': 100,
442 'frame_min_us': 90,
443 'frame_avg_us': 95,
444 }
445
446 &mdash; **def [perf\_steps](/infra/bots/recipes/perf_skottietrace.py#36)(api):**
447
448 Run DM on lottie files with tracing turned on and then parse the output.
449 ### *recipes* / [perf\_skottiewasm\_lottieweb](/infra/bots/recipes/perf_skottiewasm_lottieweb.py)
450
451 [DEPS](/infra/bots/recipes/perf_skottiewasm_lottieweb.py#13): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [checkout](#recipe_modules-checkout), [env](#recipe_modules-env), [flavor](#recipe_modules-flavor), [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
452
453
454 &mdash; **def [RunSteps](/infra/bots/recipes/perf_skottiewasm_lottieweb.py#86)(api):**
455
456 &mdash; **def [parse\_trace](/infra/bots/recipes/perf_skottiewasm_lottieweb.py#207)(trace_json, lottie_filename, api, renderer):**
457
458 parse_trace parses the specified trace JSON.
459
460 Parses the trace JSON and calculates the time of a single frame.
461 A dictionary is returned that has the following structure:
462 {
463 'frame_max_us': 100,
464 'frame_min_us': 90,
465 'frame_avg_us': 95,
466 }
467 ### *recipes* / [run:examples/full](/infra/bots/recipe_modules/run/examples/full.py)
468
469 [DEPS](/infra/bots/recipe_modules/run/examples/full.py#6): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [run](#recipe_modules-run), [vars](#recipe_modules-vars)
470
471
472 &mdash; **def [RunSteps](/infra/bots/recipe_modules/run/examples/full.py#21)(api):**
473
474 &mdash; **def [myfunc](/infra/bots/recipe_modules/run/examples/full.py#17)(api, i):**
475 ### *recipes* / [sync\_and\_compile](/infra/bots/recipes/sync_and_compile.py)
476
477 [DEPS](/infra/bots/recipes/sync_and_compile.py#9): [depot\_tools/gitiles][depot_tools/recipe_modules/gitiles], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [build](#recipe_modules-build), [checkout](#recipe_modules-checkout), [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
478
479
480 &mdash; **def [RunSteps](/infra/bots/recipes/sync_and_compile.py#26)(api):**
481 ### *recipes* / [test](/infra/bots/recipes/test.py)
482
483 [DEPS](/infra/bots/recipes/test.py#12): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step], [env](#recipe_modules-env), [flavor](#recipe_modules-flavor), [gold\_upload](#recipe_modules-gold_upload), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
484
485
486 &mdash; **def [RunSteps](/infra/bots/recipes/test.py#135)(api):**
487
488 &mdash; **def [test\_steps](/infra/bots/recipes/test.py#29)(api):**
489
490 Run the DM test.
491 ### *recipes* / [test\_canvaskit](/infra/bots/recipes/test_canvaskit.py)
492
493 [DEPS](/infra/bots/recipes/test_canvaskit.py#8): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [checkout](#recipe_modules-checkout), [docker](#recipe_modules-docker), [env](#recipe_modules-env), [flavor](#recipe_modules-flavor), [gold\_upload](#recipe_modules-gold_upload), [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
494
495
496 &mdash; **def [RunSteps](/infra/bots/recipes/test_canvaskit.py#27)(api):**
497 ### *recipes* / [test\_lottie\_web](/infra/bots/recipes/test_lottie_web.py)
498
499 [DEPS](/infra/bots/recipes/test_lottie_web.py#8): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [checkout](#recipe_modules-checkout), [docker](#recipe_modules-docker), [env](#recipe_modules-env), [flavor](#recipe_modules-flavor), [gold\_upload](#recipe_modules-gold_upload), [infra](#recipe_modules-infra), [run](#recipe_modules-run), [vars](#recipe_modules-vars)
500
501
502 &mdash; **def [RunSteps](/infra/bots/recipes/test_lottie_web.py#28)(api):**
503 ### *recipes* / [upload\_buildstats\_results](/infra/bots/recipes/upload_buildstats_results.py)
504
505 [DEPS](/infra/bots/recipes/upload_buildstats_results.py#9): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [vars](#recipe_modules-vars)
506
507
508 &mdash; **def [RunSteps](/infra/bots/recipes/upload_buildstats_results.py#20)(api):**
509 ### *recipes* / [upload\_dm\_results](/infra/bots/recipes/upload_dm_results.py)
510
511 [DEPS](/infra/bots/recipes/upload_dm_results.py#12): [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [gsutil](#recipe_modules-gsutil), [vars](#recipe_modules-vars)
512
513
514 &mdash; **def [RunSteps](/infra/bots/recipes/upload_dm_results.py#28)(api):**
515 ### *recipes* / [upload\_nano\_results](/infra/bots/recipes/upload_nano_results.py)
516
517 [DEPS](/infra/bots/recipes/upload_nano_results.py#9): [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/file][recipe_engine/recipe_modules/file], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [recipe\_engine/time][recipe_engine/recipe_modules/time], [vars](#recipe_modules-vars)
518
519
520 &mdash; **def [RunSteps](/infra/bots/recipes/upload_nano_results.py#20)(api):**
521 ### *recipes* / [vars:examples/full](/infra/bots/recipe_modules/vars/examples/full.py)
522
523 [DEPS](/infra/bots/recipe_modules/vars/examples/full.py#6): [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/step][recipe_engine/recipe_modules/step], [vars](#recipe_modules-vars)
524
525
526 &mdash; **def [RunSteps](/infra/bots/recipe_modules/vars/examples/full.py#15)(api):**
527 ### *recipes* / [xcode:examples/full](/infra/bots/recipe_modules/xcode/examples/full.py)
528
529 [DEPS](/infra/bots/recipe_modules/xcode/examples/full.py#7): [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [vars](#recipe_modules-vars), [xcode](#recipe_modules-xcode)
530
531
532 &mdash; **def [RunSteps](/infra/bots/recipe_modules/xcode/examples/full.py#14)(api):**
533
534 [depot_tools/recipe_modules/bot_update]: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/b91fef0eafcd09647ab7913c91e70d9138b6e392/recipes/README.recipes.md#recipe_modules-bot_update
535 [depot_tools/recipe_modules/gclient]: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/b91fef0eafcd09647ab7913c91e70d9138b6e392/recipes/README.recipes.md#recipe_modules-gclient
536 [depot_tools/recipe_modules/git]: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/b91fef0eafcd09647ab7913c91e70d9138b6e392/recipes/README.recipes.md#recipe_modules-git
537 [depot_tools/recipe_modules/gitiles]: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/b91fef0eafcd09647ab7913c91e70d9138b6e392/recipes/README.recipes.md#recipe_modules-gitiles
538 [depot_tools/recipe_modules/tryserver]: https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/b91fef0eafcd09647ab7913c91e70d9138b6e392/recipes/README.recipes.md#recipe_modules-tryserver
539 [recipe_engine/recipe_modules/cipd]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-cipd
540 [recipe_engine/recipe_modules/context]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-context
541 [recipe_engine/recipe_modules/file]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-file
542 [recipe_engine/recipe_modules/json]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-json
543 [recipe_engine/recipe_modules/path]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-path
544 [recipe_engine/recipe_modules/platform]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-platform
545 [recipe_engine/recipe_modules/properties]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-properties
546 [recipe_engine/recipe_modules/raw_io]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-raw_io
547 [recipe_engine/recipe_modules/step]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-step
548 [recipe_engine/recipe_modules/time]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/README.recipes.md#recipe_modules-time
549 [recipe_engine/wkt/RecipeApi]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/5718f3dcfc4c069ed0da8a08fc6fa334671739ab/recipe_engine/recipe_api.py#439