Skip to content

Commit

Permalink
Merge branch 'cockroachdb:master' into fix_creating_excess_privileges…
Browse files Browse the repository at this point in the history
…_from_default_privileges_11022021
  • Loading branch information
RichardJCai authored Nov 4, 2021
2 parents ccc7cc0 + 651502a commit 4c7f76e
Show file tree
Hide file tree
Showing 1,199 changed files with 50,604 additions and 39,960 deletions.
15 changes: 8 additions & 7 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ query --ui_event_filters=-DEBUG

# CI should always run with `--config=ci`.
build:ci --experimental_convenience_symlinks=ignore
build:ci --stamp
build:ci --host_crosstool_top=@toolchain_cross_x86_64-unknown-linux-gnu//:suite
# Set `-test.v` in Go tests.
# Ref: https://github.com/bazelbuild/rules_go/pull/2456
test:ci --test_env=GO_TEST_WRAP_TESTV=1
Expand All @@ -20,26 +18,29 @@ test:ci --test_output=errors
# Put all tmp artifacts in /artifacts/tmp.
test:ci --test_tmpdir=/artifacts/tmp

build:cross --stamp
build:cross --host_crosstool_top=@toolchain_cross_x86_64-unknown-linux-gnu//:suite
build:cross --define cockroach_cross=y

# cross-compilation configurations. Add e.g. --config=crosslinux to turn these on
# TODO(ricky): Having to specify both the `platform` and the `crosstool_top` is
# weird, but I think `rules_foreign_cc` doesn't play too nicely with `--platforms`?
build:crosslinux --platforms=//build/toolchains:cross_linux
build:crosslinux --crosstool_top=@toolchain_cross_x86_64-unknown-linux-gnu//:suite
build:crosslinux '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-pc-linux-gnu'
build:crosslinux --config=ci --config=cross
build:crosslinux --config=cross
build:crosswindows --platforms=//build/toolchains:cross_windows
build:crosswindows --crosstool_top=@toolchain_cross_x86_64-w64-mingw32//:suite
build:crosswindows '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-w64-mingw32'
build:crosswindows --config=ci --config=cross
build:crosswindows --config=cross
build:crossmacos --platforms=//build/toolchains:cross_macos
build:crossmacos --crosstool_top=@toolchain_cross_x86_64-apple-darwin19//:suite
build:crossmacos '--workspace_status_command=./build/bazelutil/stamp.sh x86_64-apple-darwin19'
build:crossmacos --config=ci --config=cross
build:crossmacos --config=cross
build:crosslinuxarm --platforms=//build/toolchains:cross_linux_arm
build:crosslinuxarm --crosstool_top=@toolchain_cross_aarch64-unknown-linux-gnu//:suite
build:crosslinuxarm '--workspace_status_command=./build/bazelutil/stamp.sh aarch64-unknown-linux-gnu'
build:crosslinuxarm --config=ci --config=cross
build:cross --define cockroach_cross=y
build:crosslinuxarm --config=cross

# developer configurations. Add e.g. --config=devdarwinx86_64 to turn these on.
build:devdarwinx86_64 --crosstool_top=@toolchain_dev_darwin_x86-64//:suite
Expand Down
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
/pkg/internal/rsg/ @cockroachdb/sql-queries
/pkg/internal/sqlsmith/ @cockroachdb/sql-queries
/pkg/internal/team/ @cockroachdb/test-eng
/pkg/jobs/ @cockroachdb/sql-schema
/pkg/jobs/ @cockroachdb/cdc-prs
/pkg/keys/ @cockroachdb/kv-prs
# Don't ping KV on updates to reserved descriptor IDs and such.
/pkg/keys/constants.go @cockroachdb/kv-prs-noreview
Expand Down Expand Up @@ -236,6 +236,7 @@
/pkg/roachpb/string_test.go @cockroachdb/kv-prs
/pkg/roachpb/tenant* @cockroachdb/kv-prs
/pkg/roachpb/version* @cockroachdb/server
/pkg/roachprod/ @cockroachdb/dev-inf
/pkg/rpc/ @cockroachdb/server-prs
/pkg/scheduledjobs/ @cockroachdb/bulk-prs
/pkg/security/ @cockroachdb/server-prs @cockroachdb/prodsec
Expand Down
6 changes: 6 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Aaron Zinger <[email protected]>
Aayush Shah <[email protected]> <@cockroachlabs.com>
Abby Hersh <[email protected]>
Abbey Russell <[email protected]> Abigail Russell <[email protected]> <[email protected]>
Abhinav Garg <[email protected]>
Abhishek Madan <[email protected]> <[email protected]> <[email protected]> Abhemailk [email protected] <[email protected]>
Abhishek Soni <[email protected]>
Abhishek Saha <[email protected]> AbhishekSaha <[email protected]>
Expand Down Expand Up @@ -101,8 +102,10 @@ Celia La <[email protected]>
Céline O'Neil <[email protected]> <[email protected]>
Charlie Vieth <[email protected]>
chengwei <[email protected]>
Chengxiong Ruan <[email protected]> <[email protected]>
Chris Seto <[email protected]> <@cockroachlabs.com>
Christian Meunier <[email protected]>
Christopher Fitzner <[email protected]> <[email protected]>
Christopher Routh <[email protected]> christopherrouth <[email protected]>
Christopher Ye <[email protected]> yecs1999 <[email protected]>
Chervine Majeri <[email protected]> CMajeri <[email protected]>
Expand Down Expand Up @@ -156,6 +159,7 @@ fangwens <[email protected]>
Francis Bergin <[email protected]>
funkygao <[email protected]>
Garvit Juniwal <[email protected]>
Gary Lau <[email protected]>
George Buckerfield <[email protected]> georgebuckerfield <[email protected]>
George Papadrosou <[email protected]>
George Utsin <[email protected]>
Expand Down Expand Up @@ -244,6 +248,7 @@ Lasantha Pambagoda <[email protected]>
Lauren Hirata <[email protected]> Lauren <[email protected]> lhirata <[email protected]>
Lee Reilly <[email protected]>
Levon Lloyd <[email protected]>
Lidor Carmel <[email protected]>
Lindsey Jin <[email protected]> <[email protected]>
Liv Lobo <[email protected]>
liyanan <[email protected]>
Expand Down Expand Up @@ -429,6 +434,7 @@ YZ Chin <[email protected]>
Rafael Yim <[email protected]> yznming <[email protected]>
Ryan Kuo <[email protected]> taroface <[email protected]> <[email protected]>
Zach Brock <[email protected]> <[email protected]>
Zach Lite <[email protected]>
Zachary Smith <[email protected]> Zachary.smith <[email protected]>
Zane Teh <[email protected]>
何羿宏 <[email protected]>
Expand Down
22 changes: 4 additions & 18 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ load("@bazel_gazelle//:def.bzl", "gazelle")
# tell gazelle to resolve to this second target instead. See
# pkg/kv/kvclient/rangefeed/BUILD.bazel for an annotated example.
#
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/cmd/roachtest/prometheus //pkg/cmd/roachtest/prometheus:with-mocks
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests //pkg/cmd/roachtest/tests:with-mocks
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/roachpb //pkg/roachpb:with-mocks
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/kv/kvclient/kvcoord //pkg/kv/kvclient/kvcoord:with-mocks
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangefeed //pkg/kv/kvclient/rangefeed:with-mocks
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/kv/kvclient/rangecache //pkg/kv/kvclient/rangecache:with-mocks

# See pkg/roachpb/gen/BUILD.bazel for more details.
#
# gazelle:resolve go github.com/cockroachdb/cockroach/pkg/roachpb //pkg/roachpb:with-mocks
# gazelle:resolve proto go roachpb/api.proto //pkg/roachpb:with-mocks
# gazelle:resolve proto go roachpb/app_stats.proto //pkg/roachpb:with-mocks
# gazelle:resolve proto go roachpb/data.proto //pkg/roachpb:with-mocks
Expand All @@ -68,7 +69,6 @@ load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:resolve proto go roachpb/io-formats.proto //pkg/roachpb:with-mocks
# gazelle:resolve proto go roachpb/metadata.proto //pkg/roachpb:with-mocks
# gazelle:resolve proto go roachpb/span_config.proto //pkg/roachpb:with-mocks
# gazelle:exclude pkg/roachpb/batch_generated.go
# gazelle:exclude pkg/roachpb/batch_generated-gen.go

# See pkg/sql/opt/optgen/cmd/langgen/BUILD.bazel for more details.
Expand Down Expand Up @@ -106,7 +106,7 @@ load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:exclude **/*.pb.gw.go
# gazelle:exclude **/*_interval_btree.go
# gazelle:exclude **/*_interval_btree_test.go
# gazelle:exclude **/mocks_generated.go
# gazelle:exclude **/*_generated.go
# gazelle:exclude pkg/sql/parser/sql.go
# gazelle:exclude pkg/sql/parser/helpmap_test.go
# gazelle:exclude pkg/sql/parser/help_messages.go
Expand All @@ -116,24 +116,10 @@ load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:exclude pkg/cmd/prereqs/testdata
# gazelle:exclude pkg/testutils/**/testdata/**
# gazelle:exclude pkg/security/securitytest/embedded.go
# gazelle:exclude pkg/cmd/roachprod/vm/aws/embedded.go
# gazelle:exclude pkg/roachprod/vm/aws/embedded.go
# gazelle:exclude pkg/**/*_string.go
# gazelle:exclude pkg/geo/wkt/wkt_generated.go
# gazelle:exclude pkg/sql/schemachanger/scop/backfill_visitor_generated.go
# gazelle:exclude pkg/sql/schemachanger/scop/mutation_visitor_generated.go
# gazelle:exclude pkg/sql/schemachanger/scop/validation_visitor_generated.go
# gazelle:exclude pkg/sql/schemachanger/scpb/elements_generated.go
# gazelle:exclude pkg/ui/distccl/distccl_no_bazel.go
# gazelle:exclude pkg/ui/distoss/distoss_no_bazel.go
# gazelle:exclude pkg/util/log/channel/channel_generated.go
# gazelle:exclude pkg/util/log/eventpb/eventlog_channels_generated.go
# gazelle:exclude pkg/util/log/eventpb/json_encode_generated.go
# gazelle:exclude pkg/util/log/log_channels_generated.go
# gazelle:exclude pkg/util/log/severity/severity_generated.go
# gazelle:exclude pkg/util/timeutil/lowercase_timezones_generated.go
#
# TODO(irfansharif): Hand excluding these _generated.go/_stringer.go files is
# silly, we should glob exclude everything once we have full coverage.
#
# Generally useful references:
#
Expand Down
16 changes: 12 additions & 4 deletions DEPS.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,8 @@ def go_deps():
name = "com_github_elastic_gosigar",
build_file_proto_mode = "disable_global",
importpath = "github.com/elastic/gosigar",
sum = "h1:bPIzW1Qkut7n9uwvPAXbnLDVEd45TV5ZwxYZAVX/zEQ=",
version = "v0.10.0",
sum = "h1:T0aQ7n/n2ZA9W7DmAnj60v+qzqKERdBgJBO1CG2W6rc=",
version = "v0.14.1",
)

go_repository(
Expand Down Expand Up @@ -1686,6 +1686,14 @@ def go_deps():
sum = "h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY=",
version = "v1.11.3",
)
go_repository(
name = "com_github_fraugster_parquet_go",
build_file_proto_mode = "disable_global",
importpath = "github.com/fraugster/parquet-go",
sum = "h1:1VjhmRJTlHR2vM3qXiPjsYbTYEtwIxmQZZ7AvVKAcQQ=",
version = "v0.4.0",
)

go_repository(
name = "com_github_fsnotify_fsnotify",
build_file_proto_mode = "disable_global",
Expand Down Expand Up @@ -6239,8 +6247,8 @@ def go_deps():
name = "org_golang_x_sys",
build_file_proto_mode = "disable_global",
importpath = "golang.org/x/sys",
sum = "h1:KzbpndAYEM+4oHRp9JmB2ewj0NHHxO3Z0g7Gus2O1kk=",
version = "v0.0.0-20211015200801-69063c4bb744",
sum = "h1:2B5p2L5IfGiD7+b9BOoRMC6DgObAVZV+Fsp050NqXik=",
version = "v0.0.0-20211025201205-69cdffdb9359",
)
go_repository(
name = "org_golang_x_term",
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,8 @@ OPTGEN_TARGETS = \
pkg/sql/opt/rule_name.og.go \
pkg/sql/opt/rule_name_string.go \
pkg/sql/opt/exec/factory.og.go \
pkg/sql/opt/exec/explain/explain_factory.og.go
pkg/sql/opt/exec/explain/explain_factory.og.go \
pkg/sql/opt/exec/explain/plan_gist_factory.og.go \

# removed-files is a list of files that used to exist in the
# repository that need to be explicitly cleaned up to prevent build
Expand Down Expand Up @@ -1654,6 +1655,9 @@ pkg/sql/opt/exec/factory.og.go: $(optgen-defs) $(optgen-exec-defs) bin/optgen
pkg/sql/opt/exec/explain/explain_factory.og.go: $(optgen-defs) $(optgen-exec-defs) bin/optgen
optgen -out $@ execexplain $(optgen-exec-defs)

pkg/sql/opt/exec/explain/plan_gist_factory.og.go: $(optgen-defs) $(optgen-exec-defs) bin/optgen
optgen -out $@ execplangist $(optgen-exec-defs)

.PHONY: clean-c-deps
clean-c-deps:
rm -rf $(JEMALLOC_DIR)
Expand Down Expand Up @@ -1754,13 +1758,13 @@ optgen-package = ./pkg/sql/opt/optgen/cmd/optgen
logictest-package = ./pkg/sql/logictest
logictestccl-package = ./pkg/ccl/logictestccl
logictestopt-package = ./pkg/sql/opt/exec/execbuilder
terraformgen-package = ./pkg/cmd/roachprod/vm/aws/terraformgen
terraformgen-package = ./pkg/roachprod/vm/aws/terraformgen
logictest-bins := bin/logictest bin/logictestopt bin/logictestccl

# Additional dependencies for binaries that depend on generated code.
#
# TODO(benesch): Derive this automatically. This is getting out of hand.
bin/workload bin/docgen bin/execgen bin/roachtest $(logictest-bins): $(SQLPARSER_TARGETS) $(LOG_TARGETS) $(PROTOBUF_TARGETS)
bin/workload bin/docgen bin/execgen bin/roachtest bin/roachvet $(logictest-bins): $(SQLPARSER_TARGETS) $(LOG_TARGETS) $(PROTOBUF_TARGETS)
bin/workload bin/docgen bin/roachtest $(logictest-bins): $(LIBPROJ) $(CGO_FLAGS_FILES)
bin/roachtest $(logictest-bins): $(C_LIBS_CCL) $(CGO_FLAGS_FILES) $(OPTGEN_TARGETS) | $(C_LIBS_DYNAMIC)

Expand Down
Loading

0 comments on commit 4c7f76e

Please sign in to comment.