• Home
Name Date Size #Lines LOC

..--

android_ndk_darwin/03-May-2024-14467

android_ndk_linux/03-May-2024-14467

android_ndk_windows/03-May-2024-14969

android_sdk_linux/03-May-2024-14970

armhf_sysroot/03-May-2024-196102

bloaty/03-May-2024-14767

cast_toolchain/03-May-2024-6220

chromebook_arm_gles/03-May-2024-189101

chromebook_x86_64_gles/03-May-2024-189101

clang_linux/03-May-2024-187102

clang_win/03-May-2024-15069

cmake_linux/03-May-2024-14466

cmake_mac/03-May-2024-14466

gcloud_linux/03-May-2024-16885

go/03-May-2024-13861

go_deps/03-May-2024-15171

linux_vulkan_sdk/03-May-2024-15978

lottie-samples/03-May-2024-13356

mesa_intel_driver_linux/03-May-2024-282150

mips64el_toolchain_linux/03-May-2024-196102

moltenvk/03-May-2024-7327

node/03-May-2024-14467

opencl_headers/03-May-2024-15369

opencl_intel_neo_linux/03-May-2024-17792

opencl_ocl_icd_linux/03-May-2024-15271

procdump_win/03-May-2024-14362

protoc/03-May-2024-14061

scripts/03-May-2024-13356

skimage/03-May-2024-14362

skp/03-May-2024-206115

svg/03-May-2024-17688

valgrind/03-May-2024-209118

win_ninja/03-May-2024-13761

win_toolchain/03-May-2024-17696

win_toolchain_2015/03-May-2024-4415

README.mdD03-May-20241.4 KiB4836

__init__.pyD03-May-2024157 70

asset_utils.pyD03-May-202411.5 KiB347277

asset_utils_test.pyD03-May-20247 KiB242140

assets.pyD03-May-20242.7 KiB9161

README.md

1Assets
2======
3
4This directory contains tooling for managing assets used by the bots.  The
5primary entry point is assets.py, which allows a user to add, remove, upload,
6and download assets.
7
8Assets are stored in Google Storage, named for their version number.
9
10
11Individual Assets
12-----------------
13
14Each asset has its own subdirectory with the following contents:
15* VERSION:  The current version number of the asset.
16* download.py:  Convenience script for downloading the current version of the asset.
17* upload.py:  Convenience script for uploading a new version of the asset.
18* [optional] create.py:  Script which creates the asset, implemented by the user.
19* [optional] create\_and\_upload.py:  Convenience script which combines create.py with upload.py.
20
21
22Examples
23-------
24
25Add a new asset and upload an initial version.
26
27```
28$ infra/bots/assets/assets.py add myasset
29Creating asset in infra/bots/assets/myasset
30Creating infra/bots/assets/myasset/download.py
31Creating infra/bots/assets/myasset/upload.py
32Creating infra/bots/assets/myasset/common.py
33Add script to automate creation of this asset? (y/n) n
34$ infra/bots/assets/myasset/upload.py -t ${MY_ASSET_LOCATION}
35$ git commit
36```
37
38Add an asset whose creation can be automated.
39
40```
41$ infra/bots/assets/assets.py add myasset
42Add script to automate creation of this asset? (y/n) y
43$ vi infra/bots/assets/myasset/create.py
44(implement the create_asset function)
45$ infra/bots/assets/myasset/create_and_upload.py
46$ git commit
47```
48