• Home
Name Date Size #Lines LOC

..--

android_ndk_darwin/03-May-2024-4223

android_ndk_linux/03-May-2024-4223

android_ndk_windows/03-May-2024-4223

android_sdk_linux/03-May-2024-10355

armhf_sysroot/03-May-2024-7948

bazel/03-May-2024-4426

bazel_build_task_driver/03-May-2024-4729

bazelisk/03-May-2024-3818

bazelisk_linux_arm64/03-May-2024-3818

bazelisk_mac_arm64/03-May-2024-3818

bazelisk_win_amd64/03-May-2024-4423

binutils_linux_x64/03-May-2024-6134

bloaty/03-May-2024-5027

cast_toolchain/03-May-2024-11

ccache_linux/03-May-2024-5128

ccache_mac/03-May-2024-5228

chromebook_arm_gles/03-May-2024-14582

chromebook_x86_64_gles/03-May-2024-14582

clang_linux/03-May-2024-160119

clang_win/03-May-2024-5328

cmake_linux/03-May-2024-4626

cmake_mac/03-May-2024-4626

cockroachdb/03-May-2024-4526

gcloud_linux/03-May-2024-7343

go/03-May-2024-4727

go_win/03-May-2024-4524

gsutil/03-May-2024-5030

ios-dev-image-11.4/03-May-2024-86

ios-dev-image-13.3/03-May-2024-96

ios-dev-image-13.4/03-May-2024-96

ios-dev-image-13.5/03-May-2024-96

ios-dev-image-13.6/03-May-2024-96

ios-dev-image-14.4/03-May-2024-96

jq/03-May-2024-3515

kubectl/03-May-2024-4929

kubeval/03-May-2024-4121

linux_vulkan_sdk/03-May-2024-5534

lottie-samples/03-May-2024-2912

mesa_intel_driver_linux/03-May-2024-178106

mesa_intel_driver_linux_22/03-May-2024-172105

mockery/03-May-2024-7735

mskp/03-May-2024-

node/03-May-2024-4223

protoc/03-May-2024-3617

provisioning_profile_ios/03-May-2024-

scripts/03-May-2024-13659

skimage/03-May-2024-4524

skp/03-May-2024-284201

skparagraph/03-May-2024-

svg/03-May-2024-8150

text_blob_traces/03-May-2024-4226

valgrind/03-May-2024-10977

win_ninja/03-May-2024-3617

win_toolchain/03-May-2024-13677

xcode-11.4.1/03-May-2024-

yq/03-May-2024-3515

README.mdD03-May-20241.7 KiB5843

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* [optional] create.py:  Script which creates the asset, implemented by the user and called by `sk asset upload`.
17* [optional] create\_and\_upload.py:  User-implemented convenience script which wraps `sk asset upload` in whatever way makes sense for the asset.
18
19
20Examples
21-------
22
23As with all uses of `sk asset`, the following will only work if you have a
24google.com account and have authenticated with
25`gcloud auth application-default login`.
26
27Add a new asset and upload an initial version.
28
29```
30$ sk asset add myasset
31Do you want to add a creation script for this asset? (y/n): n
32$ sk asset upload --in ${MY_ASSET_LOCATION} myasset
33$ git commit
34```
35
36Add an asset whose creation can be automated.
37
38```
39$ sk asset add myasset
40Do you want to add a creation script for this asset? (y/n): y
41Created infra/bots/assets/myasset/create.py; you will need to add implementation before uploading the asset.
42$ vi infra/bots/assets/myasset/create.py
43(implement the create_asset function)
44$ sk asset upload myasset
45$ git commit
46```
47
48Update an asset.
49
50```
51(update the create.py script)
52$ sk asset upload myasset
53(assuming infra/bots/assets/myasset/VERSION has been updated by the previous
54 command, regenerate tasks.json per infra/bots/README:)
55$ make -C infra/bots train
56$ git commit
57```
58