Skip to content

Commit

Permalink
Merge #88075 #88152
Browse files Browse the repository at this point in the history
88075: codeowners, roachtest, team: rename bulk-io to disaster-recovery r=celiala a=celiala

Reflecting `bulk-io` to `disaster-recovery` team rename in:
- github CODEOWNERS
- pkg/cmd/roachtest owners
- pkg/internal/team team
- TEAMS.yaml

Release note: None

Partially fixes: DEVINFHD-652

88152: opt: mark FoldInEmpty and FoldNotInEmpty as essential r=mgartner a=mgartner

These normalization rules are essential for costfuzz and unoptimized-query-oracle tests until #88141 is fixed.

Release note: None

Co-authored-by: Celia La <celia@cockroachlabs.com>
Co-authored-by: Marcus Gartner <marcus@cockroachlabs.com>
  • Loading branch information
3 people committed Sep 19, 2022
3 parents 821a746 + f17b03e + 7dcc513 commit 9ac6fea
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 47 deletions.
26 changes: 13 additions & 13 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@

/pkg/cli/ @cockroachdb/cli-prs
# last-rule-wins so bulk i/o takes userfile.go even though cli-prs takes pkg/cli
/pkg/cli/userfile.go @cockroachdb/bulk-io
/pkg/cli/userfile.go @cockroachdb/disaster-recovery
/pkg/cli/auth.go @cockroachdb/unowned @cockroachdb/prodsec @cockroachdb/cli-prs
/pkg/cli/cert*.go @cockroachdb/cli-prs @cockroachdb/prodsec
/pkg/cli/demo*.go @cockroachdb/sql-experience @cockroachdb/server-prs @cockroachdb/cli-prs
/pkg/cli/democluster @cockroachdb/sql-experience @cockroachdb/server-prs @cockroachdb/cli-prs
/pkg/cli/debug*.go @cockroachdb/kv-prs @cockroachdb/cli-prs
/pkg/cli/debug_job_trace*.go @cockroachdb/jobs-prs
/pkg/cli/doctor*.go @cockroachdb/sql-schema @cockroachdb/cli-prs
/pkg/cli/import_test.go @cockroachdb/bulk-io @cockroachdb/cli-prs
/pkg/cli/import_test.go @cockroachdb/disaster-recovery @cockroachdb/cli-prs
/pkg/cli/sql*.go @cockroachdb/sql-experience @cockroachdb/cli-prs
/pkg/cli/clisqlshell/ @cockroachdb/sql-experience @cockroachdb/cli-prs
/pkg/cli/clisqlclient/ @cockroachdb/sql-experience @cockroachdb/cli-prs
Expand Down Expand Up @@ -160,15 +160,15 @@
/pkg/ccl/changefeedccl/ @cockroachdb/cdc-prs
/pkg/ccl/streamingccl/ @cockroachdb/tenant-streaming

/pkg/ccl/backupccl/ @cockroachdb/bulk-io
/pkg/ccl/backupccl/*_job.go @cockroachdb/bulk-io @cockroachdb/jobs-prs
/pkg/sql/importer/ @cockroachdb/bulk-io
/pkg/ccl/importerccl/ @cockroachdb/bulk-io
/pkg/ccl/backupccl/ @cockroachdb/disaster-recovery
/pkg/ccl/backupccl/*_job.go @cockroachdb/disaster-recovery @cockroachdb/jobs-prs
/pkg/sql/importer/ @cockroachdb/disaster-recovery
/pkg/ccl/importerccl/ @cockroachdb/disaster-recovery
/pkg/ccl/spanconfigccl/ @cockroachdb/kv-prs
/pkg/ccl/storageccl/ @cockroachdb/bulk-io
/pkg/ccl/cloudccl/ @cockroachdb/bulk-io
/pkg/cloud/ @cockroachdb/bulk-io
/pkg/sql/distsql_plan_csv.go @cockroachdb/bulk-io
/pkg/ccl/storageccl/ @cockroachdb/disaster-recovery
/pkg/ccl/cloudccl/ @cockroachdb/disaster-recovery
/pkg/cloud/ @cockroachdb/disaster-recovery
/pkg/sql/distsql_plan_csv.go @cockroachdb/disaster-recovery

/pkg/geo/ @cockroachdb/geospatial

Expand All @@ -195,7 +195,7 @@
/pkg/base/ @cockroachdb/unowned @cockroachdb/kv-prs @cockroachdb/server-prs
/pkg/bench/ @cockroachdb/sql-queries-noreview
/pkg/bench/rttanalysis @cockroachdb/sql-schema
/pkg/blobs/ @cockroachdb/bulk-io
/pkg/blobs/ @cockroachdb/disaster-recovery
/pkg/build/ @cockroachdb/dev-inf
/pkg/ccl/baseccl/ @cockroachdb/cli-prs
/pkg/ccl/buildccl/ @cockroachdb/dev-inf
Expand Down Expand Up @@ -320,7 +320,7 @@
/pkg/roachpb/app* @cockroachdb/sql-observability
/pkg/roachpb/index* @cockroachdb/sql-observability
/pkg/roachpb/internal* @cockroachdb/kv-prs
/pkg/roachpb/io-formats* @cockroachdb/bulk-io
/pkg/roachpb/io-formats* @cockroachdb/disaster-recovery
/pkg/roachpb/main_test.go @cockroachdb/kv-prs-noreview
/pkg/roachpb/merge_spans* @cockroachdb/kv-prs
/pkg/roachpb/metadata* @cockroachdb/kv-prs
Expand All @@ -342,7 +342,7 @@
/pkg/settings/ @cockroachdb/unowned
/pkg/spanconfig/ @cockroachdb/kv-prs
/pkg/startupmigrations/ @cockroachdb/unowned @cockroachdb/sql-schema
/pkg/streaming/ @cockroachdb/bulk-io
/pkg/streaming/ @cockroachdb/disaster-recovery
/pkg/testutils/ @cockroachdb/test-eng-noreview
/pkg/testutils/reduce/ @cockroachdb/sql-queries
/pkg/testutils/sqlutils/ @cockroachdb/sql-queries
Expand Down
2 changes: 1 addition & 1 deletion TEAMS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ cockroachdb/security:
triage_column_id: 0 # TODO
cockroachdb/prodsec:
triage_column_id: 0 # TODO as well
cockroachdb/bulk-io:
cockroachdb/disaster-recovery:
triage_column_id: 3097123
cockroachdb/cdc:
aliases:
Expand Down
26 changes: 13 additions & 13 deletions pkg/cmd/roachtest/registry/owners.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ type Owner string

// The allowable values of Owner.
const (
OwnerSQLExperience Owner = `sql-experience`
OwnerBulkIO Owner = `bulk-io`
OwnerCDC Owner = `cdc`
OwnerKV Owner = `kv`
OwnerMultiRegion Owner = `multiregion`
OwnerObsInf Owner = `obs-inf-prs`
OwnerServer Owner = `server` // not currently staffed
OwnerSQLQueries Owner = `sql-queries`
OwnerSQLSchema Owner = `sql-schema`
OwnerStorage Owner = `storage`
OwnerTestEng Owner = `test-eng`
OwnerDevInf Owner = `dev-inf`
OwnerMultiTenant Owner = `multi-tenant`
OwnerSQLExperience Owner = `sql-experience`
OwnerDisasterRecovery Owner = `disaster-recovery`
OwnerCDC Owner = `cdc`
OwnerKV Owner = `kv`
OwnerMultiRegion Owner = `multiregion`
OwnerObsInf Owner = `obs-inf-prs`
OwnerServer Owner = `server` // not currently staffed
OwnerSQLQueries Owner = `sql-queries`
OwnerSQLSchema Owner = `sql-schema`
OwnerStorage Owner = `storage`
OwnerTestEng Owner = `test-eng`
OwnerDevInf Owner = `dev-inf`
OwnerMultiTenant Owner = `multi-tenant`
)
14 changes: 7 additions & 7 deletions pkg/cmd/roachtest/tests/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func registerBackupNodeShutdown(r registry.Registry) {

r.Add(registry.TestSpec{
Name: fmt.Sprintf("backup/nodeShutdown/worker/%s", backupNodeRestartSpec),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: backupNodeRestartSpec,
EncryptionSupport: registry.EncryptionMetamorphic,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
Expand All @@ -159,7 +159,7 @@ func registerBackupNodeShutdown(r registry.Registry) {
})
r.Add(registry.TestSpec{
Name: fmt.Sprintf("backup/nodeShutdown/coordinator/%s", backupNodeRestartSpec),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: backupNodeRestartSpec,
EncryptionSupport: registry.EncryptionMetamorphic,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
Expand Down Expand Up @@ -439,7 +439,7 @@ func registerBackupMixedVersion(r registry.Registry) {
// that require careful consideration of mixed version states.
r.Add(registry.TestSpec{
Name: "backup/mixed-version-basic",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(4),
EncryptionSupport: registry.EncryptionMetamorphic,
RequiresLicense: true,
Expand Down Expand Up @@ -612,7 +612,7 @@ func registerBackup(r registry.Registry) {
backup2TBSpec := r.MakeClusterSpec(10)
r.Add(registry.TestSpec{
Name: fmt.Sprintf("backup/2TB/%s", backup2TBSpec),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: backup2TBSpec,
EncryptionSupport: registry.EncryptionMetamorphic,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
Expand Down Expand Up @@ -659,7 +659,7 @@ func registerBackup(r registry.Registry) {
item := item
r.Add(registry.TestSpec{
Name: fmt.Sprintf("backup/assume-role/%s", item.cloudProvider),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(3),
EncryptionSupport: registry.EncryptionMetamorphic,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
Expand Down Expand Up @@ -764,7 +764,7 @@ func registerBackup(r registry.Registry) {
item := item
r.Add(registry.TestSpec{
Name: fmt.Sprintf("backup/KMS/%s/%s", item.kmsProvider, KMSSpec.String()),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: KMSSpec,
EncryptionSupport: registry.EncryptionMetamorphic,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
Expand Down Expand Up @@ -897,7 +897,7 @@ func registerBackup(r registry.Registry) {
// verifies them with a fingerprint.
r.Add(registry.TestSpec{
Name: `backupTPCC`,
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(3),
Timeout: 1 * time.Hour,
EncryptionSupport: registry.EncryptionMetamorphic,
Expand Down
14 changes: 7 additions & 7 deletions pkg/cmd/roachtest/tests/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func registerImportNodeShutdown(r registry.Registry) {

r.Add(registry.TestSpec{
Name: "import/nodeShutdown/worker",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(4),
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
c.Put(ctx, t.Cockroach(), "./cockroach")
Expand All @@ -97,7 +97,7 @@ func registerImportNodeShutdown(r registry.Registry) {
})
r.Add(registry.TestSpec{
Name: "import/nodeShutdown/coordinator",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(4),
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
c.Put(ctx, t.Cockroach(), "./cockroach")
Expand Down Expand Up @@ -160,7 +160,7 @@ func registerImportTPCC(r registry.Registry) {
timeout := 5 * time.Hour
r.Add(registry.TestSpec{
Name: testName,
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(numNodes),
Timeout: timeout,
EncryptionSupport: registry.EncryptionMetamorphic,
Expand All @@ -173,7 +173,7 @@ func registerImportTPCC(r registry.Registry) {
const geoZones = "europe-west2-b,europe-west4-b,asia-northeast1-b,us-west1-b"
r.Add(registry.TestSpec{
Name: fmt.Sprintf("import/tpcc/warehouses=%d/geo", geoWarehouses),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(8, spec.CPU(16), spec.Geo(), spec.Zones(geoZones)),
Timeout: 5 * time.Hour,
EncryptionSupport: registry.EncryptionMetamorphic,
Expand Down Expand Up @@ -205,7 +205,7 @@ func registerImportTPCH(r registry.Registry) {
item := item
r.Add(registry.TestSpec{
Name: fmt.Sprintf(`import/tpch/nodes=%d`, item.nodes),
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(item.nodes),
Timeout: item.timeout,
EncryptionSupport: registry.EncryptionMetamorphic,
Expand Down Expand Up @@ -348,7 +348,7 @@ func runImportMixedVersion(
func registerImportMixedVersion(r registry.Registry) {
r.Add(registry.TestSpec{
Name: "import/mixed-versions",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
// Mixed-version support was added in 21.1.
Cluster: r.MakeClusterSpec(4),
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
Expand Down Expand Up @@ -392,7 +392,7 @@ func registerImportDecommissioned(r registry.Registry) {

r.Add(registry.TestSpec{
Name: "import/decommissioned",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(4),
Run: runImportDecommissioned,
})
Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/tests/mixed_version_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func runJobsMixedVersions(
func registerJobsMixedVersions(r registry.Registry) {
r.Add(registry.TestSpec{
Name: "jobs/mixed-versions",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Skip: "#67587",
// Jobs infrastructure was unstable prior to 20.1 in terms of the behavior
// of `PAUSE/CANCEL JOB` commands which were best effort and relied on the
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/roachtest/tests/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func registerRestoreNodeShutdown(r registry.Registry) {

r.Add(registry.TestSpec{
Name: "restore/nodeShutdown/worker",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(4),
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
gatewayNode := 2
Expand All @@ -307,7 +307,7 @@ func registerRestoreNodeShutdown(r registry.Registry) {

r.Add(registry.TestSpec{
Name: "restore/nodeShutdown/coordinator",
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(4),
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
gatewayNode := 2
Expand Down Expand Up @@ -410,7 +410,7 @@ func registerRestore(r registry.Registry) {

r.Add(registry.TestSpec{
Name: testName,
Owner: registry.OwnerBulkIO,
Owner: registry.OwnerDisasterRecovery,
Cluster: r.MakeClusterSpec(item.nodes, clusterOpts...),
Timeout: item.timeout,
EncryptionSupport: registry.EncryptionMetamorphic,
Expand Down
4 changes: 2 additions & 2 deletions pkg/internal/team/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ type Team struct {
// Aliases is a map from additional team name to purpose for which to use
// them. The purpose "other" indicates a team that exists but which has no
// particular purpose as far as `teams` is concerned (for example, teams like
// the @cockroachdb/bulk-prs team which exists primarily to route, via
// CODEOWNERS, code reviews for the @cockroachdb/bulk-io team). This map
// the @cockroachdb/kv-prs team which exists primarily to route, via
// CODEOWNERS, code reviews for the @cockroachdb/kv team). This map
// does not contain TeamName.
Aliases map[Alias]Purpose `yaml:"aliases"`
// TriageColumnID is the GitHub Column ID to assign issues to.
Expand Down
3 changes: 3 additions & 0 deletions pkg/sql/opt/xform/optimizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,9 @@ func (o *Optimizer) disableRulesRandom(probability float64) {
// Needed to make sure that dummy columns are pruned so that the
// database name is retrieved correctly.
int(opt.PruneScanCols),
// TODO(#88141): Needed until a bug in the vectorized engine is fixed.
int(opt.FoldInEmpty),
int(opt.FoldNotInEmpty),
)

var disabledRules RuleSet
Expand Down

0 comments on commit 9ac6fea

Please sign in to comment.