commit | b8ef59907859b65a973b2b8a096250381f074812 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Wed Jan 15 22:20:09 2025 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 15 22:20:09 2025 |
tree | 5103c734441764021bad6d56257a2fe600775d5b | |
parent | fcdf45c92e13c13bccb55aed9b6f2d7a0abede81 [diff] |
[swarming] Add a helper library to work with bot state JSON dict. It deserializes JSON lazily and allows to read only specific keys: Swarming server reads very few keys from the state, deserializing all of it all the time is a waste of time. This is used in the bot scanner cron to avoid deserializing the state multiple times and it will also be used in /bot/handshake handler when parsing the state dict received from the bot. R=chanli@chromium.org BUG=b/355013282 Change-Id: I2f9c21ac2855dc7a3e9838ce4b21076ff56d6ef9 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/6174305 Reviewed-by: Chan Li <chanli@chromium.org> Commit-Queue: Vadim Shtayura <vadimsh@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
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.