commit | 83fded683ac687687d47431c6866e9f936bf87de | [log] [tgz] |
---|---|---|
author | Robert Iannucci <iannucci@chromium.org> | Thu Sep 12 19:05:43 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Sep 12 19:05:43 2024 |
tree | 7ff0b1e48be3a6a702d0d967836dcf3757ea8646 | |
parent | 532de774de6a45aacbac6407a7181620d4a53bec [diff] |
[cv/internal/buildbucket] Convert tests to ftt/truth. These required a couple manual changes: * Some post-test checks had to be made into an explicit function * Some type strictness improvements (notably there were some err ShouldBeNil checks where `err` had the concrete type of *implementsErr and the intent of the check was `*implementsErr == nil` and not `error == nil`.) * Some helper functions needed to be updated to take testing.TB. R=ddoman, gregorynisbet@google.com, yiwzhang Bug: 319730573 Change-Id: Ic051d4b6821c119f4bd4667a1da9f75711386b88 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5855645 Reviewed-by: Yiwei Zhang <yiwzhang@google.com> Commit-Queue: Robbie Iannucci <iannucci@chromium.org> Auto-Submit: Robbie Iannucci <iannucci@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.