commit | a0a60a6227edad1b679cc6cdb47b8a6845bfe3fb | [log] [tgz] |
---|---|---|
author | Yuanjun Huang <yuanjunh@google.com> | Fri Dec 09 00:07:36 2022 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Dec 09 00:07:36 2022 |
tree | 4b640cceb491d5a9918671618fc36e783a3f676e | |
parent | 4c92f338900b1a46b28cda7a7e9fbc33e9a0a2f7 [diff] |
[buildbucket] Publish to the external topic 1. add a new `topic` field in NotifyPubSubGo task proto to indicate that it should be publish to an external or internal topic. 2. Add code in NotifyPubSubGo task handler to make it be able to publish msg to a given external topic. 3. Extract ValidatePubSubTopicName func to pubsub.go so it can be reused. Bug:1381210 Change-Id: I2e66fdd437c98cf5a6e92163f4a7e3c8f79b32eb Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/4086906 Reviewed-by: Chan Li <chanli@chromium.org> Commit-Queue: Yuanjun Huang <yuanjunh@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.