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

Rename the repository from vitess-tester to vt #36

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build test tidy clean vitess-tester vtbenchstat
.PHONY: all build test tidy clean

GO := go
REQUIRED_GO_VERSION := 1.23
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The `vt` binary encapsulates several utility tools for Vitess, providing a compr
You can install `vt` using the following command:

```bash
go install github.com/vitessio/vitess-tester/go/vt@latest
go install github.com/vitessio/vt/go/vt@latest
```

## Testing Methodology
Expand Down Expand Up @@ -122,4 +122,4 @@ Vitess Tester started as a fork from [pingcap/mysql-tester](https://github.com/p

---

This version includes an example workflow for `vt keys` and clarifies the role of `vt benchstat`. Let me know if anything else needs adjustment.
This version includes an example workflow for `vt keys` and clarifies the role of `vt benchstat`. Let me know if anything else needs adjustment.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vitessio/vitess-tester
module github.com/vitessio/vt

go 1.23.1

Expand Down
2 changes: 1 addition & 1 deletion go/benchstat/benchstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/olekukonko/tablewriter"
"golang.org/x/term"

"github.com/vitessio/vitess-tester/go/keys"
"github.com/vitessio/vt/go/keys"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion go/benchstat/reading.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sort"
"strconv"

"github.com/vitessio/vitess-tester/go/keys"
"github.com/vitessio/vt/go/keys"
)

func readTraceFile(fileName string) TraceFile {
Expand Down
2 changes: 1 addition & 1 deletion go/cmd/benchstat.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cmd
import (
"github.com/spf13/cobra"

vtbenchstat "github.com/vitessio/vitess-tester/go/benchstat"
vtbenchstat "github.com/vitessio/vt/go/benchstat"
)

var benchstat = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion go/cmd/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cmd
import (
"github.com/spf13/cobra"

"github.com/vitessio/vitess-tester/go/keys"
"github.com/vitessio/vt/go/keys"
)

var keysCmd = &cobra.Command{
Expand Down
4 changes: 2 additions & 2 deletions go/cmd/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package cmd
import (
"github.com/spf13/cobra"

vttester "github.com/vitessio/vitess-tester/go/tester"
vttester "github.com/vitessio/vt/go/tester"
)

func testerCmd() *cobra.Command {
Expand All @@ -36,7 +36,7 @@ func testerCmd() *cobra.Command {
},
}

cmd.Flags().StringVar(&cfg.LogLevel, "log-level", "error", "The log level of vitess-tester: info, warn, error, debug.")
cmd.Flags().StringVar(&cfg.LogLevel, "log-level", "error", "The log level of vt tester: info, warn, error, debug.")
cmd.Flags().StringVar(&cfg.TraceFile, "trace-file", "", "Do a vexplain trace on all queries and store the output in the given file.")
cmd.Flags().StringVar(&cfg.VschemaFile, "vschema", "", "Disable auto-vschema by providing your own vschema file. This cannot be used with either -vtexplain-vschema or -sharded.")
cmd.Flags().StringVar(&cfg.VtExplainVschemaFile, "vtexplain-vschema", "", "Disable auto-vschema by providing your own vtexplain vschema file. This cannot be used with either -vschema or -sharded.")
Expand Down
2 changes: 1 addition & 1 deletion go/data/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/vitessio/vitess-tester/go/typ"
"github.com/vitessio/vt/go/typ"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion go/data/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/vitessio/vitess-tester/go/typ"
"github.com/vitessio/vt/go/typ"
)

func TestParseQueries(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions go/keys/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
"vitess.io/vitess/go/vt/vtgate/planbuilder/plancontext"
"vitess.io/vitess/go/vt/vtgate/semantics"

"github.com/vitessio/vitess-tester/go/data"
"github.com/vitessio/vitess-tester/go/typ"
"github.com/vitessio/vt/go/data"
"github.com/vitessio/vt/go/typ"

querypb "vitess.io/vitess/go/vt/proto/query"
)
Expand Down
3 changes: 2 additions & 1 deletion go/tester/comparing_query_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ package tester

import (
"fmt"

log "github.com/sirupsen/logrus"
"vitess.io/vitess/go/test/endtoend/utils"
"vitess.io/vitess/go/vt/sqlparser"

"github.com/vitessio/vitess-tester/go/data"
"github.com/vitessio/vt/go/data"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions go/tester/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import (
"vitess.io/vitess/go/vt/sqlparser"
"vitess.io/vitess/go/vt/vtgate/vindexes"

"github.com/vitessio/vitess-tester/go/data"
"github.com/vitessio/vitess-tester/go/typ"
"github.com/vitessio/vt/go/data"
"github.com/vitessio/vt/go/typ"
)

type (
Expand Down
2 changes: 1 addition & 1 deletion go/tester/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"vitess.io/vitess/go/vt/sqlparser"
"vitess.io/vitess/go/vt/vterrors"

"github.com/vitessio/vitess-tester/go/data"
"github.com/vitessio/vt/go/data"
)

var _ QueryRunner = (*Tracer)(nil)
Expand Down
2 changes: 1 addition & 1 deletion go/vt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package main

import (
"github.com/vitessio/vitess-tester/go/cmd"
"github.com/vitessio/vt/go/cmd"
)

func main() {
Expand Down
Loading