forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
88196: sql,copy: fix test infrastructure and update pgconn r=cucaroach a=cucaroach sql/copy: update jackc/pgconn to fix copy bug Fixes: cockroachdb#88801 Release note: None sql,copy: fix test infrastructure Previously we hacked around lack of copy protocol support in logictest by doing an in memory hack that bypassed the client connection entirely. Now that the client supports use pgx to support copy use that instead. Also move copy test stuff to its own package. Fixes: cockroachdb#84619 Release note: None Co-authored-by: Tommy Reilly <[email protected]>
- Loading branch information
Showing
24 changed files
with
459 additions
and
673 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4489,10 +4489,10 @@ def go_deps(): | |
name = "com_github_jackc_pgconn", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/jackc/pgconn", | ||
sha256 = "48d34064a1facff7766713d9224502e7376a5d90c1506f99a37c57bfceaf9636", | ||
strip_prefix = "github.com/jackc/pgconn@v1.12.1", | ||
sha256 = "4d9bf1309f5cdbd589d60a485fb5d5d7333edf9652c2dd47b7dd31b12dda887e", | ||
strip_prefix = "github.com/jackc/pgconn@v1.13.1-0.20221001150415-49cbf4659151", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgconn/com_github_jackc_pgconn-v1.12.1.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgconn/com_github_jackc_pgconn-v1.13.1-0.20221001150415-49cbf4659151.zip", | ||
], | ||
) | ||
go_repository( | ||
|
@@ -4539,10 +4539,10 @@ def go_deps(): | |
name = "com_github_jackc_pgproto3_v2", | ||
build_file_proto_mode = "disable_global", | ||
importpath = "github.com/jackc/pgproto3/v2", | ||
sha256 = "6b702c372e13520636243d3be58922968f0630b67e23ba77326ef6ee4cada463", | ||
strip_prefix = "github.com/jackc/pgproto3/[email protected].0", | ||
sha256 = "57884e299825af31fd01268659f1e671883b73b708a51230da14d6f8ee0e4e36", | ||
strip_prefix = "github.com/jackc/pgproto3/[email protected].1", | ||
urls = [ | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgproto3/v2/com_github_jackc_pgproto3_v2-v2.3.0.zip", | ||
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/jackc/pgproto3/v2/com_github_jackc_pgproto3_v2-v2.3.1.zip", | ||
], | ||
) | ||
go_repository( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
load("//build/bazelutil/unused_checker:unused.bzl", "get_x_data") | ||
load("@io_bazel_rules_go//go:def.bzl", "go_test") | ||
|
||
go_test( | ||
name = "copy_test", | ||
srcs = [ | ||
"copy_test.go", | ||
"main_test.go", | ||
], | ||
args = ["-test.timeout=295s"], | ||
data = glob(["testdata/**"]), | ||
deps = [ | ||
"//pkg/base", | ||
"//pkg/cli/clisqlclient", | ||
"//pkg/security/securityassets", | ||
"//pkg/security/securitytest", | ||
"//pkg/security/username", | ||
"//pkg/server", | ||
"//pkg/settings/cluster", | ||
"//pkg/sql", | ||
"//pkg/testutils", | ||
"//pkg/testutils/serverutils", | ||
"//pkg/testutils/sqlutils", | ||
"//pkg/testutils/testcluster", | ||
"//pkg/util/leaktest", | ||
"//pkg/util/log", | ||
"//pkg/util/randutil", | ||
"@com_github_cockroachdb_apd_v3//:apd", | ||
"@com_github_cockroachdb_datadriven//:datadriven", | ||
"@com_github_jackc_pgtype//:pgtype", | ||
"@com_github_stretchr_testify//require", | ||
], | ||
) | ||
|
||
get_x_data(name = "get_x_data") |
Oops, something went wrong.