Gopher Robot submitted the change
Change information
Commit message:
cmd/relui: initialize Mastodon, Swarming, Buildbucket clients on demand
The relui README says it should be possible to run it for development
by providing a Postgres database and by setting a single -listen-http
flag to some value. This has regressed.
Fix it by making some of the newer task dependencies initialize their
clients only when requested. This will still be the case in production,
but it becomes optional when running relui locally.
Change-Id: Ib3d3b20d4c0c9686febeab0a6eab8182f0d08e42
Files:
- M cmd/relui/deployment-prod.yaml
- M cmd/relui/main.go
Change size: M
Delta: 2 files changed, 40 insertions(+), 28 deletions(-)
Branch: refs/heads/master
Submit Requirements:
- Code-Review: +2 by Hongxiang Jiang, +1 by Dmitri Shuralyov
- TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: build
Gerrit-Branch: master
Gerrit-Change-Id: Ib3d3b20d4c0c9686febeab0a6eab8182f0d08e42
Gerrit-Change-Number: 599735
Gerrit-PatchSet: 2