tree: 4d5d9645b8a87da3d921ac0f5ad7400e46ad0c8b [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_linux_arm64/
  10. bazelisk_mac_arm64/
  11. bazelisk_win_amd64/
  12. binutils_linux_x64/
  13. bloaty/
  14. cast_toolchain/
  15. ccache_linux/
  16. ccache_mac/
  17. chromebook_arm_gles/
  18. chromebook_x86_64_gles/
  19. clang_linux/
  20. clang_win/
  21. cmake_linux/
  22. cmake_mac/
  23. cockroachdb/
  24. gcloud_linux/
  25. go/
  26. go_win/
  27. gsutil/
  28. ios-dev-image-11.4/
  29. ios-dev-image-13.3/
  30. ios-dev-image-13.4/
  31. ios-dev-image-13.5/
  32. ios-dev-image-13.6/
  33. ios-dev-image-14.4/
  34. jq/
  35. kubectl/
  36. kubeval/
  37. linux_vulkan_sdk/
  38. lottie-samples/
  39. mesa_intel_driver_linux/
  40. mesa_intel_driver_linux_22/
  41. mockery/
  42. mskp/
  43. node/
  44. protoc/
  45. provisioning_profile_ios/
  46. scripts/
  47. skimage/
  48. skp/
  49. skparagraph/
  50. svg/
  51. text_blob_traces/
  52. valgrind/
  53. win_ninja/
  54. win_toolchain/
  55. xcode-11.4.1/
  56. yq/
  57. 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