tree: 755ad6b1cb359aad97c2de8b019190e1de62d561 [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. dwritecore/
  28. gcloud_linux/
  29. go/
  30. go_win/
  31. gsutil/
  32. ios-dev-image-11.4/
  33. ios-dev-image-13.3/
  34. ios-dev-image-13.4/
  35. ios-dev-image-13.5/
  36. ios-dev-image-13.6/
  37. ios-dev-image-14.4/
  38. jq/
  39. kubectl/
  40. kubeval/
  41. linux_vulkan_sdk/
  42. lottie-samples/
  43. mesa_intel_driver_linux/
  44. mesa_intel_driver_linux_22/
  45. mockery/
  46. mskp/
  47. node/
  48. protoc/
  49. provisioning_profile_ios/
  50. scripts/
  51. skimage/
  52. skp/
  53. skparagraph/
  54. svg/
  55. text_blob_traces/
  56. valgrind/
  57. win_ninja/
  58. win_toolchain/
  59. xcode-11.4.1/
  60. yq/
  61. 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