-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
roachtest: fix up mockgen
usage w/ Bazel
#72098
Conversation
a7e2a7c
to
11711f1
Compare
I would review this, but have very little experience with bazel, and so my approval wouldn't amount to much. |
11711f1
to
a641cde
Compare
51bde41
to
1ffe6b5
Compare
importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/prometheus", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@com_github_golang_mock//gomock", # keep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Is the keep necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not :)
We were pointing to the checked-in generated files in the Bazel build here; instead, use `gomock`. Also clean up the `EXISTING_GO_GENERATE_COMMENTS` in `build/bazelutil/check.sh`. Release note: None
1ffe6b5
to
a45418f
Compare
bors r=irfansharif |
Build succeeded: |
72099: bazel: glob-exclude all *_generated.go files from Gazelle r=rail a=rickystewart This review is only for the second commit in the stack; the other is from #72098. This will help ensure that Gazelle doesn't accidentally reference checked-in generated code. The generated code in `pkg/col/colserde/arrowserde` is made by `flatc`, the FlatBuffers compiler -- I tried to make a `genrule` to generate this code but the code that `flatc` generates now doesn't match up to what's checked in (maybe we used a different version of `flatc` for the original version of the code?) Closes #72096. Release note: None 72125: dev: pad internal timeouts when under --stress --timeout r=irfansharif a=irfansharif I was seeing the earlier one second buffer being insufficient. Release note: None 72264: Move metric scope library r=miretskiy a=miretskiy This is move only PR which moves metrics scope library from cdcutils directly under changefeedccl. It is structured as add/remove PR so that the "add" portion can be easily backported. Release Notes: None Co-authored-by: Ricky Stewart <[email protected]> Co-authored-by: irfan sharif <[email protected]> Co-authored-by: Yevgeniy Miretskiy <[email protected]>
We were pointing to the checked-in generated files in the Bazel build
here; instead, use
gomock
.Also clean up the
EXISTING_GO_GENERATE_COMMENTS
inbuild/bazelutil/check.sh
.Release note: None