Skip to content
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

bazel: exclude _bazel from consideration by gazelle #65732

Merged
merged 1 commit into from
May 26, 2021

Conversation

rickystewart
Copy link
Collaborator

tests. Since then, we've seen gazelle occasionally time out lint jobs
in CI (see #65715). The error messages don't make a great deal of sense;
a bunch of them look like this:

gazelle: found packages exports (exports.go) and p (issue20046.go) in /go/src/github.com/cockroachdb/cockroach/_bazel/bin/pkg/testutils/lint/passes/forbiddenmethod/forbiddenmethod_test_/forbiddenmethod_test.runfiles/go_sdk/src/go/internal/gcimporter/testdata

i.e., Gazelle is looking in _bazel/bin, finding testdata for the
go/internal/gcimporter package in the go_sdk, and complaining about
the results. So we add _bazel to the list of excludes to prevent
this. This is necessary according to
bazel-contrib/bazel-gazelle#168.

Release note: None

tests. Since then, we've seen `gazelle` occasionally time out lint jobs
in CI (see cockroachdb#65715). The error messages don't make a great deal of sense;
a bunch of them look like this:

    gazelle: found packages exports (exports.go) and p (issue20046.go) in /go/src/github.com/cockroachdb/cockroach/_bazel/bin/pkg/testutils/lint/passes/forbiddenmethod/forbiddenmethod_test_/forbiddenmethod_test.runfiles/go_sdk/src/go/internal/gcimporter/testdata

i.e., Gazelle is looking in `_bazel/bin`, finding `testdata` for the
`go/internal/gcimporter` package in the `go_sdk`, and complaining about
the results. So we add `_bazel` to the list of `exclude`s to prevent
this. This is necessary according to
bazel-contrib/bazel-gazelle#168.

Release note: None
@rickystewart rickystewart requested a review from rail May 26, 2021 17:33
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rickystewart
Copy link
Collaborator Author

Not completely sure this will completely repair the problem we're seeing in #65715, but it is a start.

Copy link
Member

@rail rail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@rickystewart
Copy link
Collaborator Author

bors r=rail

@craig
Copy link
Contributor

craig bot commented May 26, 2021

Build succeeded:

@craig craig bot merged commit 3322dfc into cockroachdb:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants