tree: 65542aa34ed14cae37871cf7df3c5525f12762a8 [path history] [tgz]
  1. android_ndk_darwin/
  2. android_ndk_linux/
  3. android_ndk_windows/
  4. android_sdk_linux/
  5. armhf_sysroot/
  6. bazel/
  7. bazel_build_task_driver/
  8. bazelisk/
  9. bazelisk_mac_arm64/
  10. bazelisk_win_amd64/
  11. binutils_linux_x64/
  12. bloaty/
  13. cast_toolchain/
  14. ccache_linux/
  15. ccache_mac/
  16. chromebook_arm_gles/
  17. chromebook_x86_64_gles/
  18. clang_linux/
  19. clang_win/
  20. cmake_linux/
  21. cmake_mac/
  22. cockroachdb/
  23. gcloud_linux/
  24. go/
  25. go_win/
  26. gsutil/
  27. ios-dev-image-11.4/
  28. ios-dev-image-13.3/
  29. ios-dev-image-13.4/
  30. ios-dev-image-13.5/
  31. ios-dev-image-13.6/
  32. ios-dev-image-14.4/
  33. linux_vulkan_sdk/
  34. lottie-samples/
  35. mesa_intel_driver_linux/
  36. mesa_intel_driver_linux_22/
  37. mockery/
  38. mskp/
  39. node/
  40. protoc/
  41. provisioning_profile_ios/
  42. scripts/
  43. skimage/
  44. skp/
  45. skparagraph/
  46. svg/
  47. text_blob_traces/
  48. valgrind/
  49. win_ninja/
  50. win_toolchain/
  51. xcode-11.4.1/
  52. README.md
infra/bots/assets/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.
  • [optional] create.py: Script which creates the asset, implemented by the user and called by sk asset upload.
  • [optional] create_and_upload.py: User-implemented convenience script which wraps sk asset upload in whatever way makes sense for the asset.

Examples

Add a new asset and upload an initial version.

$ sk asset add myasset
Do you want to add a creation script for this asset? (y/n): n
$ sk asset upload --in ${MY_ASSET_LOCATION} myasset
$ git commit

Add an asset whose creation can be automated.

$ sk asset add myasset
Do you want to add a creation script for this asset? (y/n): y
Created infra/bots/assets/myasset/create.py; you will need to add implementation before uploading the asset.
$ vi infra/bots/assets/myasset/create.py
(implement the create_asset function)
$ sk asset upload myasset
$ git commit