commit | 77ac621e3cf92198736a9f4e18ecaf38e38b8637 | [log] [tgz] |
---|---|---|
author | Yiwei Zhang <yiwzhang@google.com> | Wed Jan 31 00:32:15 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 31 00:32:15 2024 |
tree | da4f1126cef30136b8031d8723a9aae7be00934b | |
parent | a5291c2c6404e27972a0fdcf8842d92a87ece465 [diff] |
cv: fix the flaky TestScheduleWipeoutRuns datastore lib will truncate any timestamp field to micro second precision which has caused surprising behavior to this test (i.e. runs created after the cutoff time would be counted towards creating before the cutoff time after the trunction). Fix the flakiness by truncate the timestamp to millisecond before saving to the datastore. Verified the fix works by running `go test ./... -count 1000 -failfast`. R=ddoman, gregorynisbet@google.com Change-Id: I4c7aa948fb89a77478a130cc6fc1837b5e305fe9 Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/luci-go/+/5249979 Auto-Submit: Yiwei Zhang <yiwzhang@google.com> Reviewed-by: Scott Lee <ddoman@chromium.org> Commit-Queue: Scott Lee <ddoman@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.