commit | 3d0599513fec79dd09ecb289e4f700911c9073b6 | [log] [tgz] |
---|---|---|
author | JB Tamas-Leloup <jtamasleloup@google.com> | Wed Nov 20 18:41:17 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Nov 20 18:41:17 2024 |
tree | 62bb5fb7d6b9f99d3f78f72b6480ea54058ac937 | |
parent | 840ee66a516399b42aeee8bb656fec76adaeea8b [diff] |
[swarming] Implement BotVisitor interface for update_named_caches. This is the base implementation of update_named_caches to satisfy the BotVisitor interface. Unfortunately, the current json representation of 'named_cache' cannot be defined with a go struct. To bypass this limitation we use json.Decoder instead of json.Unmarshal. This coupled with Decoder.UseNumber, allows us to extract the size without losing precision. BUG:b/355013356 Change-Id: I14dd2fa74d88d198ef7791ec9ee14255c05df25d Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/6011278 Reviewed-by: Chan Li <chanli@chromium.org> Commit-Queue: JB Tamas-Leloup <jtamasleloup@google.com>
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
It is now possible to directly install tools with go install:
go install go.chromium.org/luci/auth/client/cmd/...@latest go install go.chromium.org/luci/buildbucket/cmd/...@latest go install go.chromium.org/luci/cipd/client/cmd/...@latest go install go.chromium.org/luci/client/cmd/...@latest go install go.chromium.org/luci/cv/cmd/...@latest go install go.chromium.org/luci/gce/cmd/...@latest go install go.chromium.org/luci/grpc/cmd/...@latest go install go.chromium.org/luci/logdog/client/cmd/...@latest go install go.chromium.org/luci/luci_notify/cmd/...@latest go install go.chromium.org/luci/lucicfg/cmd/...@latest go install go.chromium.org/luci/luciexe/legacy/cmd/...@latest go install go.chromium.org/luci/mailer/cmd/...@latest go install go.chromium.org/luci/mmutex/cmd/...@latest go install go.chromium.org/luci/resultdb/cmd/...@latest go install go.chromium.org/luci/server/cmd/...@latest go install go.chromium.org/luci/swarming/cmd/...@latest go install go.chromium.org/luci/tokenserver/cmd/...@latest go install go.chromium.org/luci/tools/cmd/...@latest
Contributing uses the same flow as Chromium contributions.