Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Implement ... expansion for dev test #4

Merged

Conversation

irfansharif
Copy link
Contributor

And isolate dev-internal debug logging (introducing a mechanism to
toggle it), refactor out shared flags, and add some extra validation
code for --remote-cache.


First commit is from #3, ignore here.

@@ -47,9 +49,38 @@ func mustGetFlagDuration(cmd *cobra.Command, name string) time.Duration {
return val
}

func parseAddr(addr string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: seems like this stuff isn't really related to the other stuff (namely the dev test pkg/... thing), so you could put it in its own commit.

@rickystewart
Copy link
Contributor

(Approved for the new changes in the new commit, not the stuff in #3.)

And isolate dev-internal debug logging (introducing a mechanism to
toggle it), refactor out shared flags, and add some extra validation
code for --remote-cache.
@irfansharif irfansharif merged commit 42423c4 into cockroachdb:master Feb 17, 2021
@irfansharif irfansharif deleted the 210212.dot-dot-dot-expansion branch February 17, 2021 19:00
irfansharif added a commit to irfansharif/cockroach that referenced this pull request Feb 17, 2021
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
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request Feb 17, 2021
60554: jobs: remove WithTxn r=lucy-zhang a=lucy-zhang

This commit removes the `Job`'s `WithTxn` method and its `txn` field,
which were used to set the next transaction used by a job, and have been
a source of many bugs due to setting an incorrect or nil transaction.
Now there is an explicit `*kv.Txn` argument on all the `Job` methods
that read from the store, where a nil argument still indicates that a
new txn should be created.

Closes #57534.

Release note: None

60558: *,bazel: support `dev test pkg/{...}` expansion r=irfansharif a=irfansharif

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

60568: docs/tech-notes: update "Statement Execution" and "Building execution plans"  sections of "Life of a query" r=raduberinde,yuzefovich a=mneverov

docs/tech-notes: update "Statement Execution" and "Building execution plans"  sections of "Life of a query"

Release note: None

Co-authored-by: Lucy Zhang <lucy@cockroachlabs.com>
Co-authored-by: irfan sharif <irfanmahmoudsharif@gmail.com>
Co-authored-by: Max Neverov <neverov.max@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants