commit | 74b67e89b29f18d2f9d6f826a55d03073609cb42 | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Tue Feb 21 21:47:19 2023 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 21 21:47:19 2023 |
tree | 2b9b7cc3ea14508dabc9b88fd3950089edf6d7d4 | |
parent | c0851c8f9a86c75184f9cd8364e349b4363f11b1 [diff] |
[server] Add an option to expose a gRPC serving port. It will serve APIs registered in server.Server using real gRPC protocol. The API handlers will run in the exact same environment as if they were called via pRPC (i.e. authentication, logging, other features). There are two gRPC-specific services exposed by default: * Reflection to make tools like `grpcurl` work. * Health checking (unless installed into server.Server already). The port is disabled by default since all our current hosting environments need more configuration to make gRPC port useful there. Refactor tests a bit to avoid using somewhat confusing Reset(...) construct in favor of simple defers. R=iannucci@chromium.org Change-Id: I95105563d28187559b03ca619cd309d2093d7e7c Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/4242244 Reviewed-by: Robbie Iannucci <iannucci@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.