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
v811_spc009_project
4 months ago
..
android_ndk_darwin v811_spc009_project 4 months ago
android_ndk_linux v811_spc009_project 4 months ago
android_ndk_windows v811_spc009_project 4 months ago
android_sdk_linux v811_spc009_project 4 months ago
armhf_sysroot v811_spc009_project 4 months ago
bazel v811_spc009_project 4 months ago
bloaty v811_spc009_project 4 months ago
cast_toolchain v811_spc009_project 4 months ago
ccache_linux v811_spc009_project 4 months ago
ccache_mac v811_spc009_project 4 months ago
chromebook_arm_gles v811_spc009_project 4 months ago
chromebook_x86_64_gles v811_spc009_project 4 months ago
clang_linux v811_spc009_project 4 months ago
clang_win v811_spc009_project 4 months ago
cmake_linux v811_spc009_project 4 months ago
cmake_mac v811_spc009_project 4 months ago
cockroachdb v811_spc009_project 4 months ago
gcloud_linux v811_spc009_project 4 months ago
go v811_spc009_project 4 months ago
go_win v811_spc009_project 4 months ago
ios-dev-image-11.4 v811_spc009_project 4 months ago
ios-dev-image-12.4 v811_spc009_project 4 months ago
ios-dev-image-13.3 v811_spc009_project 4 months ago
ios-dev-image-13.4 v811_spc009_project 4 months ago
ios-dev-image-13.5 v811_spc009_project 4 months ago
ios-dev-image-13.6 v811_spc009_project 4 months ago
ios-dev-image-14.4 v811_spc009_project 4 months ago
linux_vulkan_sdk v811_spc009_project 4 months ago
lottie-samples v811_spc009_project 4 months ago
mesa_intel_driver_linux v811_spc009_project 4 months ago
mockery v811_spc009_project 4 months ago
mskp v811_spc009_project 4 months ago
node v811_spc009_project 4 months ago
opencl_headers v811_spc009_project 4 months ago
opencl_intel_neo_linux v811_spc009_project 4 months ago
opencl_ocl_icd_linux v811_spc009_project 4 months ago
procdump_win v811_spc009_project 4 months ago
protoc v811_spc009_project 4 months ago
provisioning_profile_ios v811_spc009_project 4 months ago
scripts v811_spc009_project 4 months ago
skimage v811_spc009_project 4 months ago
skp v811_spc009_project 4 months ago
skparagraph v811_spc009_project 4 months ago
svg v811_spc009_project 4 months ago
text_blob_traces v811_spc009_project 4 months ago
valgrind v811_spc009_project 4 months ago
win_ninja v811_spc009_project 4 months ago
win_toolchain v811_spc009_project 4 months ago
xcode-11.4.1 v811_spc009_project 4 months ago
README.md v811_spc009_project 4 months ago
__init__.py v811_spc009_project 4 months ago
asset_utils.py v811_spc009_project 4 months ago
asset_utils_test.py v811_spc009_project 4 months ago
assets.py v811_spc009_project 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