You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jianglk.darker
7ee447c011
|
4 months ago | |
---|---|---|
.. | ||
android_ndk_darwin | 4 months ago | |
android_ndk_linux | 4 months ago | |
android_ndk_windows | 4 months ago | |
android_sdk_linux | 4 months ago | |
armhf_sysroot | 4 months ago | |
bazel | 4 months ago | |
bloaty | 4 months ago | |
cast_toolchain | 4 months ago | |
ccache_linux | 4 months ago | |
ccache_mac | 4 months ago | |
chromebook_arm_gles | 4 months ago | |
chromebook_x86_64_gles | 4 months ago | |
clang_linux | 4 months ago | |
clang_win | 4 months ago | |
cmake_linux | 4 months ago | |
cmake_mac | 4 months ago | |
cockroachdb | 4 months ago | |
gcloud_linux | 4 months ago | |
go | 4 months ago | |
go_win | 4 months ago | |
ios-dev-image-11.4 | 4 months ago | |
ios-dev-image-12.4 | 4 months ago | |
ios-dev-image-13.3 | 4 months ago | |
ios-dev-image-13.4 | 4 months ago | |
ios-dev-image-13.5 | 4 months ago | |
ios-dev-image-13.6 | 4 months ago | |
ios-dev-image-14.4 | 4 months ago | |
linux_vulkan_sdk | 4 months ago | |
lottie-samples | 4 months ago | |
mesa_intel_driver_linux | 4 months ago | |
mockery | 4 months ago | |
mskp | 4 months ago | |
node | 4 months ago | |
opencl_headers | 4 months ago | |
opencl_intel_neo_linux | 4 months ago | |
opencl_ocl_icd_linux | 4 months ago | |
procdump_win | 4 months ago | |
protoc | 4 months ago | |
provisioning_profile_ios | 4 months ago | |
scripts | 4 months ago | |
skimage | 4 months ago | |
skp | 4 months ago | |
skparagraph | 4 months ago | |
svg | 4 months ago | |
text_blob_traces | 4 months ago | |
valgrind | 4 months ago | |
win_ninja | 4 months ago | |
win_toolchain | 4 months ago | |
xcode-11.4.1 | 4 months ago | |
README.md | 4 months ago | |
__init__.py | 4 months ago | |
asset_utils.py | 4 months ago | |
asset_utils_test.py | 4 months ago | |
assets.py | 4 months ago |
README.md
Assets
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.
Individual Assets
Each asset has its own subdirectory with the following contents:
- VERSION: The current version number of the asset.
- download.py: Convenience script for downloading the current version of the asset.
- upload.py: Convenience script for uploading a new version of the asset.
- [optional] create.py: Script which creates the asset, implemented by the user.
- [optional] create_and_upload.py: Convenience script which combines create.py with upload.py.
Examples
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