-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
72281: sql: add new BACKFILLING mutation state r=postamar a=stevendanna This adds a BACKFILLING mutation state. When an index is in this state, it is ignored for the purposes of INSERT, UPDATE, and DELETE. Currently, this state is unused in the actual code. This new state will eventually be used in the new index backfiller. In the new backfiller, the bulk-backfill using AddSSTable will occur when the index is in this state, with concurrent updates being captured by a temporary index. See docs/RFCS/20211004_incremental_index_backfiller.md for more details. Indexes in this state are returned by `(TableDescriptor).AllIndexes`, `(TableDescriptor).NonDropIndexes`, and `(TableDescriptor).Partial`. Release note: None 75471: scripts/gceworker.sh: remove extra s in sleep command r=rail a=mufeez-amjad Release note: None 75472: ci: add script for compose nightly, dev support r=rail a=rickystewart Closes #67151. Closes #70893. Release note: None 75553: distsql: bump size of test r=rail a=rickystewart This has timed out in CI. Release note: None Co-authored-by: Steven Danna <[email protected]> Co-authored-by: Mufeez Amjad <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
22 changed files
with
288 additions
and
39 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xeuo pipefail | ||
|
||
dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))" | ||
source "$dir/teamcity-support.sh" | ||
|
||
tc_start_block "Run compose tests" | ||
|
||
bazel build //pkg/cmd/bazci --config=ci | ||
BAZCI=$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci | ||
|
||
$BAZCI run --config=crosslinux --config=test --config=with_ui --artifacts_dir=$PWD/artifacts \ | ||
//pkg/compose:compose_test -- \ | ||
--test_env=GO_TEST_WRAP_TESTV=1 \ | ||
--test_timeout=1800 | ||
|
||
tc_end_block "Run compose tests" |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ go_library( | |
"bench.go", | ||
"build.go", | ||
"builder.go", | ||
"compose.go", | ||
"dev.go", | ||
"doctor.go", | ||
"generate.go", | ||
|
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,59 @@ | ||
// Copyright 2022 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
package main | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
func makeComposeCmd(runE func(cmd *cobra.Command, args []string) error) *cobra.Command { | ||
composeCmd := &cobra.Command{ | ||
Use: "compose", | ||
Short: "Run compose tests", | ||
Long: "Run compose tests.", | ||
Example: "dev compose", | ||
Args: cobra.ExactArgs(0), | ||
RunE: runE, | ||
} | ||
addCommonBuildFlags(composeCmd) | ||
addCommonTestFlags(composeCmd) | ||
return composeCmd | ||
} | ||
|
||
func (d *dev) compose(cmd *cobra.Command, _ []string) error { | ||
ctx := cmd.Context() | ||
var ( | ||
filter = mustGetFlagString(cmd, filterFlag) | ||
short = mustGetFlagBool(cmd, shortFlag) | ||
timeout = mustGetFlagDuration(cmd, timeoutFlag) | ||
) | ||
|
||
var args []string | ||
args = append(args, "run", "//pkg/compose:compose_test", "--config=test") | ||
args = append(args, mustGetRemoteCacheArgs(remoteCacheAddr)...) | ||
if numCPUs != 0 { | ||
args = append(args, fmt.Sprintf("--local_cpu_resources=%d", numCPUs)) | ||
} | ||
if filter != "" { | ||
args = append(args, fmt.Sprintf("--test_filter=%s", filter)) | ||
} | ||
if short { | ||
args = append(args, "--test_arg", "-test.short") | ||
} | ||
if timeout > 0 { | ||
args = append(args, fmt.Sprintf("--test_timeout=%d", int(timeout.Seconds()))) | ||
} | ||
|
||
logCommand("bazel", args...) | ||
return d.exec.CommandContextInheritingStdStreams(ctx, "bazel", args...) | ||
} |
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
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
Oops, something went wrong.