commit | 87686f6c1da41f45a3143646ac0f8f2b9d5f8964 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Tue Jan 08 01:46:59 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jan 08 01:46:59 2019 |
tree | 6950d02de80e8b6aaf5b73152ba3ddf478bdcf95 | |
parent | d3fa1b2b6f3a24c2f657c1723d53795b0ec2f91a [diff] |
[lucicfg] Add validate.int(), validate.bool() and validate.str_dict(). validate.int will be used to validate e.g. swarming priority validate.bool will be used to validate Toggle-typed buildbucket fields. validate.str_dict will be used to validate e.g. dimensions and properties. Adjust the interface of the validators slightly to allow None to be used as a value for required=False fields. It is useful to propagate None as "hasn't been specified" flag (or equivalently to represent Toggle.UNSET), instead of replacing it with some default value right away. R=tandrii@chromium.org, nodir@chromium.org BUG=833946 Change-Id: Ifbdc9a740972803e7f6d4bb707b07bcd418fb74b Reviewed-on: https://chromium-review.googlesource.com/c/1399142 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.