thead_admin 6aab0fd6f1 Linux_SDK_V0.9.5 | vor 1 Jahr | |
---|---|---|
.. | ||
android_ndk_darwin | vor 1 Jahr | |
android_ndk_linux | vor 1 Jahr | |
android_ndk_windows | vor 1 Jahr | |
android_sdk_linux | vor 1 Jahr | |
armhf_sysroot | vor 1 Jahr | |
bloaty | vor 1 Jahr | |
cast_toolchain | vor 1 Jahr | |
chromebook_arm_gles | vor 1 Jahr | |
chromebook_x86_64_gles | vor 1 Jahr | |
clang_linux | vor 1 Jahr | |
clang_win | vor 1 Jahr | |
cmake_linux | vor 1 Jahr | |
cmake_mac | vor 1 Jahr | |
gcloud_linux | vor 1 Jahr | |
go | vor 1 Jahr | |
go_win | vor 1 Jahr | |
linux_vulkan_sdk | vor 1 Jahr | |
lottie-samples | vor 1 Jahr | |
mesa_intel_driver_linux | vor 1 Jahr | |
mips64el_toolchain_linux | vor 1 Jahr | |
moltenvk | vor 1 Jahr | |
node | vor 1 Jahr | |
opencl_headers | vor 1 Jahr | |
opencl_intel_neo_linux | vor 1 Jahr | |
opencl_ocl_icd_linux | vor 1 Jahr | |
procdump_win | vor 1 Jahr | |
protoc | vor 1 Jahr | |
scripts | vor 1 Jahr | |
skimage | vor 1 Jahr | |
skp | vor 1 Jahr | |
skparagraph | vor 1 Jahr | |
svg | vor 1 Jahr | |
valgrind | vor 1 Jahr | |
win_ninja | vor 1 Jahr | |
win_toolchain | vor 1 Jahr | |
README.md | vor 1 Jahr | |
__init__.py | vor 1 Jahr | |
asset_utils.py | vor 1 Jahr | |
asset_utils_test.py | vor 1 Jahr | |
assets.py | vor 1 Jahr |
This directory contains tooling for managing assets used by the bots. The primary entry point is assets.py, which allows a user to add, remove, upload, and download assets.
Assets are stored in Google Storage, named for their version number.
Each asset has its own subdirectory with the following contents:
Add a new asset and upload an initial version.
$ infra/bots/assets/assets.py add myasset
Creating asset in infra/bots/assets/myasset
Creating infra/bots/assets/myasset/download.py
Creating infra/bots/assets/myasset/upload.py
Creating infra/bots/assets/myasset/common.py
Add script to automate creation of this asset? (y/n) n
$ infra/bots/assets/myasset/upload.py -t ${MY_ASSET_LOCATION}
$ git commit
Add an asset whose creation can be automated.
$ infra/bots/assets/assets.py add myasset
Add script to automate creation of this asset? (y/n) y
$ vi infra/bots/assets/myasset/create.py
(implement the create_asset function)
$ infra/bots/assets/myasset/create_and_upload.py
$ git commit