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

As with all uses of sk asset, the following will only work if you have a google.com account and have authenticated with gcloud auth application-default login.

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

Update an asset.

(update the create.py script)
$ sk asset upload myasset
(assuming infra/bots/assets/myasset/VERSION has been updated by the previous
 command, regenerate tasks.json per infra/bots/README:)
$ make -C infra/bots train
$ git commit