commit | 4bda5c7e56cf9d9873750c9a718d3b6187af2dde | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Thu Feb 29 20:25:12 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Feb 29 20:25:12 2024 |
tree | 971072dc32a5b2ecb379560ee9d25996b353260c | |
parent | a0051c023d0474a23b6cd86e766a97d6429f316a [diff] |
[swarming] Emit task's result ASAP in `collect`. Do not buffer them all before writing them to stdout or to the JSON output. This causes OOMs. Note that it means the order in which we output tasks is no longer preserved (whatever finishes first ends up in the stdout and JSON first). For JSON output it should not be a problem at all, since results are represented by a dict {taskID: <result>}, which is already unordered. For stdout, we'll see if anyone notices... There are prons and cons. There's a caveat: when using `-task-summary-python` legacy flag, we need to buffer JSON results, since the order of outputs is important in that case (it must match the order of `taskIDs`). R=chanli@chromium.org, randymaldonado@google.com BUG=40276579 Change-Id: I25f6724ab46c8dbda904cdd908610e1390ad312d Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5331989 Reviewed-by: Randy Maldonado <randymaldonado@google.com> 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.