commit | 421318bc0495da7b0c6c79d25ed38a59dc95734b | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Mon Feb 04 20:11:49 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Feb 04 20:11:49 2019 |
tree | 7788779d52156e2c9fac766151616be51ac2f3c2 | |
parent | c13fd3b06f8e101730db1012e36263f3d7e89e16 [diff] |
[starlark] Add PreExec/PostExec hooks, improve doc. They'll be used to "open" and "close" scopes for lucicfg.var() variables. Each 'exec'-ed module will get its own variables scope: all changes made to variables inside a scope are "forgotten" when exiting the scope. This will be used to define multiple configs of the same kind inside a single lucicfg workspace, for example configs for multiple different Swarming servers. They will execute in their own variables scope, not interfering with each other. R=tandrii@chromium.org BUG=833946 Change-Id: Icd4076b28df3569bb7b4322725eab95de2df6a9d Reviewed-on: https://chromium-review.googlesource.com/c/1450841 Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Andrii Shyshkalov <tandrii@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.