commit | dff1b7462e5f739cb29999fefddf4c30beaa2a94 | [log] [tgz] |
---|---|---|
author | Robert Iannucci <iannucci@chromium.org> | Sat Oct 05 22:05:20 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Sat Oct 05 22:05:20 2024 |
tree | cb2e8143106352990b1fd8910b935b19b01c0114 | |
parent | b90417e5efe67626f5a7cad195e65a52735d98b7 [diff] |
[bisection] Convert all tests to ftt/truth. This CL is part of the GoConvey -> Truth/FTT migration (go/noconvey-psa). For more information see: 1. go/noconvey-psa 2. go/noconvey-migration 3. go/noconvey-proposal This was almost entirely automatic except for: * Some use of should.Equal on pointer types/time.Time changed to should.Match. * Some type errors (comparison of int to float) * Many helper functions needed plumbing through of testing.TB * Some mock usage corrected (e.g. TestProcessTestFailureTask). ftt gives direct access to a compatible `testing.TB` for sub-tests which was previously unavailable in goconvey. R=nqmtuan@google.com Change-Id: I52b476922b7b60b130b27aafcce9a4d5d59f33b3 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5907657 Commit-Queue: Tuan Nguyen <nqmtuan@google.com> Reviewed-by: Tuan Nguyen <nqmtuan@google.com> 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.