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: support dev test pkg/{...} expansion #60558

Merged
merged 1 commit into from Feb 17, 2021

Conversation

irfansharif
Copy link
Contributor

Discovered these while trying to flesh out cockroachdb/dev#4.

We're doing a few things in this commit:

  • Exclude the testdata dir under pkg/testutils from gazelle/bazel
    consideration
  • Fix a few incorrect package resolutions (they were pointing to
    testdata paths previously).
  • Break a circular dependency in the uuid package. This only happened in
    the test target (pkg/util/uuid -> pkg/testutils/skip -> pkg/util/uuid)
    so flew by undetected earlier.

Combining this with cockroachdb/dev#4, now we
can use go test style "..." expansion in dev[*]:

dev test pkg/util/...

[*]: Though failing tests that are broken under Bazel.

Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@alan-mas
Copy link
Contributor

lgtm+ =)

@rickystewart
Copy link
Collaborator

Break a circular dependency in the uuid package. This only happened in
the test target (pkg/util/uuid -> pkg/testutils/skip -> pkg/util/uuid)
so flew by undetected earlier.

I think I took care of this in a commit last week (probably at around the same time as you), so this can probably be removed from the msg?

@rickystewart
Copy link
Collaborator

whoops lmao

@rickystewart rickystewart reopened this Feb 17, 2021
@irfansharif irfansharif force-pushed the 210212.bazel-fixups branch 2 times, most recently from 514bf35 to e1c0411 Compare February 17, 2021 18:16
@irfansharif
Copy link
Contributor Author

Done, TFTR!

bors r+

@irfansharif
Copy link
Contributor Author

bors r-

@craig
Copy link
Contributor

craig bot commented Feb 17, 2021

Canceled.

Discovered these while trying to flesh out cockroachdb/dev#4.

We're doing a few things in this commit:
- Exclude the testdata dir under pkg/testutils from gazelle/bazel
  consideration
- Fix a few incorrect package resolutions (they were pointing to
  testdata paths previously).

Combining this with cockroachdb/dev#4, now we
can use `go test` style "..." expansion in `dev`[*]:

  dev test pkg/util/...

[*]: Though failing tests that are broken under Bazel.

Release note: None
@irfansharif
Copy link
Contributor Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 17, 2021

Build succeeded:

@craig craig bot merged commit be115b9 into cockroachdb:master Feb 17, 2021
@irfansharif irfansharif deleted the 210212.bazel-fixups branch February 17, 2021 23:46
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.

None yet

4 participants