Home | History | Annotate | only in /external/skqp/infra/bots/assets
Up to higher level directory
NameDateSize
__init__.py22-Oct-2020157
android_ndk_darwin/22-Oct-2020
android_ndk_linux/22-Oct-2020
android_ndk_windows/22-Oct-2020
android_sdk_linux/22-Oct-2020
armhf_sysroot/22-Oct-2020
asset_utils.py22-Oct-202011.5K
asset_utils_test.py22-Oct-20207K
assets.py22-Oct-20202.7K
bloaty/22-Oct-2020
cast_toolchain/22-Oct-2020
chromebook_arm_gles/22-Oct-2020
chromebook_x86_64_gles/22-Oct-2020
clang_linux/22-Oct-2020
clang_win/22-Oct-2020
cmake_linux/22-Oct-2020
gcloud_linux/22-Oct-2020
go/22-Oct-2020
go_deps/22-Oct-2020
linux_vulkan_sdk/22-Oct-2020
lottie-samples/22-Oct-2020
mesa_intel_driver_linux/22-Oct-2020
mips64el_toolchain_linux/22-Oct-2020
moltenvk/22-Oct-2020
node/22-Oct-2020
opencl_headers/22-Oct-2020
opencl_intel_neo_linux/22-Oct-2020
opencl_ocl_icd_linux/22-Oct-2020
procdump_win/22-Oct-2020
protoc/22-Oct-2020
README.md22-Oct-20201.4K
scripts/22-Oct-2020
skimage/22-Oct-2020
skp/22-Oct-2020
svg/22-Oct-2020
valgrind/22-Oct-2020
win_ninja/22-Oct-2020
win_toolchain/22-Oct-2020
win_toolchain_2015/22-Oct-2020

README.md

      1 Assets
      2 ======
      3 
      4 This directory contains tooling for managing assets used by the bots.  The
      5 primary entry point is assets.py, which allows a user to add, remove, upload,
      6 and download assets.
      7 
      8 Assets are stored in Google Storage, named for their version number.
      9 
     10 
     11 Individual Assets
     12 -----------------
     13 
     14 Each 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 
     22 Examples
     23 -------
     24 
     25 Add a new asset and upload an initial version.
     26 
     27 ```
     28 $ infra/bots/assets/assets.py add myasset
     29 Creating asset in infra/bots/assets/myasset
     30 Creating infra/bots/assets/myasset/download.py
     31 Creating infra/bots/assets/myasset/upload.py
     32 Creating infra/bots/assets/myasset/common.py
     33 Add 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 
     38 Add an asset whose creation can be automated.
     39 
     40 ```
     41 $ infra/bots/assets/assets.py add myasset
     42 Add 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