Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
109530: deps: update honnef.co/go/tools to v0.4.5 r=RaduBerinde a=RaduBerinde

Epic: none
Release notes: None

109556: roachtest: Improve feature coverage in cdc test r=miretskiy a=miretskiy

changefeedccl: Remove unused channel buffer

Cleanup PR to remove channel buffer which was only
used in tests.

Add few knobs to improve feature coverage in various
CDC tests:
  * metamorphically use mux rangefeed
  * metamorphically use schema_locked on tpcc workload

Epic: None

Release note: None

109618: tree: handle format of START/BEGIN inside of functions r=rafiss a=rafiss

If a transaction is started in a BEGIN ATOMIC block of a function or procedure, it must be formatted with START rather than BEGIN. Otherwise the function body cannot be parsed.

fixes #109561
Release note: None

Co-authored-by: Radu Berinde <[email protected]>
Co-authored-by: Yevgeniy Miretskiy <[email protected]>
Co-authored-by: Rafi Shamim <[email protected]>
  • Loading branch information
4 people committed Aug 29, 2023
4 parents c2c39fa + 5c29201 + 1c97542 + 7ae12d1 commit fa4f9ba
Show file tree
Hide file tree
Showing 14 changed files with 141 additions and 123 deletions.
6 changes: 3 additions & 3 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def go_deps():
patches = [
"@com_github_cockroachdb_cockroach//build/patches:co_honnef_go_tools.patch",
],
sha256 = "bdd216490737b6cd0fe2655f574415606136f56033cc9f95c9d077c0227aa71c",
strip_prefix = "honnef.co/go/[email protected].3",
sha256 = "3f7c266a830f3a0727ac0b85cd7cd74a765c05d337d73af20906219f1a4ec4c3",
strip_prefix = "honnef.co/go/[email protected].5",
urls = [
"https://storage.googleapis.com/cockroach-godeps/gomod/honnef.co/go/tools/co_honnef_go_tools-v0.4.3.zip",
"https://storage.googleapis.com/cockroach-godeps/gomod/honnef.co/go/tools/co_honnef_go_tools-v0.4.5.zip",
],
)
go_repository(
Expand Down
2 changes: 1 addition & 1 deletion build/bazelutil/distdir_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ DISTDIR_FILES = {
"https://storage.googleapis.com/cockroach-godeps/gomod/gorm.io/gorm/io_gorm_gorm-v1.23.5.zip": "34219a6d2ac9b9c340f811e5863a98b150db6d1fd5b8f02777299863c1628e0f",
"https://storage.googleapis.com/cockroach-godeps/gomod/gotest.tools/tools_gotest-v2.2.0+incompatible.zip": "55fab831b2660201183b54d742602563d4e17e7125ee75788a309a4f6cb7285e",
"https://storage.googleapis.com/cockroach-godeps/gomod/gotest.tools/v3/tools_gotest_v3-v3.2.0.zip": "fe238394013ebf35c313b7de60c5df5b6271f7c5f982eb8eecefe324531a0f5f",
"https://storage.googleapis.com/cockroach-godeps/gomod/honnef.co/go/tools/co_honnef_go_tools-v0.4.3.zip": "bdd216490737b6cd0fe2655f574415606136f56033cc9f95c9d077c0227aa71c",
"https://storage.googleapis.com/cockroach-godeps/gomod/honnef.co/go/tools/co_honnef_go_tools-v0.4.5.zip": "3f7c266a830f3a0727ac0b85cd7cd74a765c05d337d73af20906219f1a4ec4c3",
"https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/api/io_k8s_api-v0.22.5.zip": "18d095a1d1344a7ed43ccae0c5b77d2586e134ea9489b1821402d72f980f3564",
"https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/apiextensions-apiserver/io_k8s_apiextensions_apiserver-v0.17.3.zip": "f3be44b21eaea21dbc2655f207f838a94e4ed63b24e5ce4f1d688c329b53c9ff",
"https://storage.googleapis.com/cockroach-godeps/gomod/k8s.io/apimachinery/io_k8s_apimachinery-v0.22.5.zip": "1d624555825fb81d8bdae0c92a0aad07b3edea62dceedd49bc93a2024ed46467",
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ require (
golang.org/x/term v0.9.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
honnef.co/go/tools v0.4.3
honnef.co/go/tools v0.4.5
vitess.io/vitess v0.0.0-00010101000000-000000000000
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3180,8 +3180,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.4.3 h1:o/n5/K5gXqk8Gozvs2cnL0F2S1/g1vcGCAx2vETjITw=
honnef.co/go/tools v0.4.3/go.mod h1:36ZgoUOrqOk1GxwHhyryEkq8FQWkUO2xGuSMhUCcdvA=
honnef.co/go/tools v0.4.5 h1:YGD4H+SuIOOqsyoLOpZDWcieM28W47/zRO7f+9V3nvo=
honnef.co/go/tools v0.4.5/go.mod h1:GUV+uIBCLpdf0/v6UhHHG/yzI/z6qPskBeQCjcNB96k=
k8s.io/api v0.17.3/go.mod h1:YZ0OTkuw7ipbe305fMpIdf3GLXZKRigjtZaV5gzC2J0=
k8s.io/api v0.17.5/go.mod h1:0zV5/ungglgy2Rlm3QK8fbxkXVs+BSJWpJP/+8gUVLY=
k8s.io/api v0.20.1/go.mod h1:KqwcCVogGxQY3nBlRpwt+wpAMF/KjaCc7RpywacvqUo=
Expand Down
1 change: 0 additions & 1 deletion pkg/ccl/changefeedccl/kvevent/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ go_library(
srcs = [
"alloc.go",
"blocking_buffer.go",
"chan_buffer.go",
"chunked_event_queue.go",
"event.go",
"metrics.go",
Expand Down
66 changes: 0 additions & 66 deletions pkg/ccl/changefeedccl/kvevent/chan_buffer.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/ccl/changefeedccl/kvfeed/kv_feed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ func TestKVFeed(t *testing.T) {
st := cluster.MakeTestingClusterSettings()
runTest := func(t *testing.T, tc testCase) {
settings := cluster.MakeTestingClusterSettings()
buf := kvevent.MakeChanBuffer()
mm := mon.NewUnlimitedMonitor(
context.Background(), "test", mon.MemoryResource,
nil /* curCount */, nil /* maxHist */, math.MaxInt64, settings,
)
metrics := kvevent.MakeMetrics(time.Minute)
buf := kvevent.NewMemBuffer(mm.MakeBoundAccount(), &st.SV, &metrics)

// bufferFactory, when called, gives you a memory-monitored
// in-memory "buffer" to write to and read from.
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/roachtest/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ go_library(
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
"@org_golang_google_protobuf//proto",
"@org_golang_x_exp//rand",
"@org_golang_x_oauth2//clientcredentials",
"@org_golang_x_sync//errgroup",
],
Expand Down
Loading

0 comments on commit fa4f9ba

Please sign in to comment.