commit | 863336c0bda88d967722d8e52b351633594239ad | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Fri Nov 05 07:17:01 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 05 07:17:01 2021 |
tree | a7f125bcaed6f6a05767d194e2e962dac0e3e56c | |
parent | c08a5ff26a8fb339498595449ae4c2c2dc436064 [diff] |
[bbagent] Teach it to run outside of Swarming bot. When given `-use-gce-account` flag, it would launch a local LUCI auth server using the GCE metadata server account and use it for all authentication (in bbagent itself and in subprocesses). Also populate `realm` section of LUCI_CONTEXT based on the build proto if it is not populated already. R=iannucci@chromium.org, tikuta@chromium.org BUG=1263899 Change-Id: I9b441e1ae137fc03286b6e7ad75953a80cf08e9e Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/3263221 Commit-Queue: Vadim Shtayura <vadimsh@chromium.org> Reviewed-by: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Robbie Iannucci <iannucci@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.