commit | 73abe063c75c7926c68e9520154a169df4c2ad7d | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Wed Jan 09 01:14:07 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 09 01:14:07 2019 |
tree | d6a897e9d98463e2c6a9c1c2eeef266d5746836c | |
parent | 5de26901b6919052609bebea52791aa6e48855a4 [diff] |
[lucicfg] Add swarming helper module. It defines swarming.cache(...) and swarming.dimension(...) structs that will be used when defining builders. core.builder( ... caches = [ swarming.cache('path', name='cache_name'), swarming.cache('name_same_as_path'), swarming.cache('warmish', wait_for_warm_cache=5*time.minute), ], ... dimensions = { 'os': 'Linux', 'expiring': swarming.dimension('value', expiration=5*time.minute), 'many': ['val1', swarming.dimension('val2')], }, ... ) Also defines a bunch of swarmingimpl.validate_X functions that will be used by the builder rule implementation to validate parameters. The documentation is mostly copied from Buildbucket's project_config.proto. R=nodir@chromium.org, tandrii@chromium.org BUG=833946 Change-Id: Ie55c56af785ed0538fc7674c607bed0f699ec3a6 Reviewed-on: https://chromium-review.googlesource.com/c/1399992 Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Nodir Turakulov <nodir@chromium.org>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
Contributing uses the same flow as Chromium contributions.