Skip to content

Commit

Permalink
Merge #87218
Browse files Browse the repository at this point in the history
87218: ci: fix bazci commands for corpus generation r=fqazi a=fqazi

Before this PR got a merged there was a syntax changed
to the bazci command that was not properly applied. These,
changes fix up those commands.

Release justification: none, only fixes up a test for nightlies
Release note: None

Co-authored-by: Faizan Qazi <[email protected]>
  • Loading branch information
craig[bot] and fqazi committed Sep 1, 2022
2 parents b272795 + 43f5a1b commit 5f76149
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions build/teamcity/cockroach/nightlies/sqllogic_corpus_nightly_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ exit_status=0

# Generate a corpus for all non-mixed version variants
for config in local multiregion-9node-3region-3azs; do
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci -- --config=ci \
test //pkg/sql/logictest/tests/$config/... \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
//pkg/sql/logictest/tests/$config/... \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus \
--test_env=GO_TEST_WRAP_TESTV=1 \
--test_env=GO_TEST_WRAP=1 \
Expand All @@ -44,8 +44,8 @@ process_test_json \
done

for config in local multiregion-9node-3region-3azs multiregion-9node-3region-3azs-no-los multiregion-9node-3region-3azs-tenant multiregion-9node-3region-3azs-vec-off multiregion-15node-5region-3azs 3node-tenant 3node-tenant-multiregion; do
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci \
test //pkg/ccl/logictestccl/tests/$config/... -- \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
//pkg/ccl/logictestccl/tests/$config/... \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus \
--test_env=GO_TEST_WRAP_TESTV=1 \
--test_env=GO_TEST_WRAP=1 \
Expand All @@ -62,8 +62,8 @@ process_test_json \
done

# Generate corpuses from end-to-end-schema changer tests
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci \
test //pkg/sql/schemachanger:schemachanger_test -- \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
//pkg/sql/schemachanger:schemachanger_test \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus \
--test_filter='^TestGenerateCorpus.*$' \
--test_env=GO_TEST_WRAP_TESTV=1 \
Expand All @@ -80,8 +80,8 @@ $GO_TEST_GEN_JSON_OUTPUT_FILE \
$exit_status

# Generate corpuses from end-to-end-schema changer tests
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci \
test //pkg/ccl/schemachangerccl:schemachangerccl_test -- \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
//pkg/ccl/schemachangerccl:schemachangerccl_test \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus \
--test_filter='^TestGenerateCorpus.*$' \
--test_env=GO_TEST_WRAP_TESTV=1 \
Expand All @@ -100,8 +100,8 @@ $exit_status

# Any generated corpus should be validated on the current version first, which
# indicates we can replay it on the same version.
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci \
test //pkg/sql/schemachanger/corpus:corpus_test -- \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
//pkg/sql/schemachanger/corpus:corpus_test \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus \
--test_filter='^TestValidateCorpuses$' \
--test_env=GO_TEST_WRAP_TESTV=1 \
Expand All @@ -124,8 +124,8 @@ fi

# Generate a corpus for all mixed version variants
for config in local-mixed-22.1-22.2; do
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci \
test //pkg/sql/logictest/tests/$config/... -- \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
//pkg/sql/logictest/tests/$config/... \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus-mixed\
--test_env=GO_TEST_WRAP_TESTV=1 \
--test_env=GO_TEST_WRAP=1 \
Expand All @@ -143,8 +143,8 @@ done

# Any generated corpus should be validated on the current version first, which
# indicates we can replay it on the same version.
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci --config=ci \
test //pkg/sql/schemachanger/corpus:corpus_test -- \
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test --config=ci \
//pkg/sql/schemachanger/corpus:corpus_test \
--test_arg=--declarative-corpus=$ARTIFACTS_DIR/corpus-mixed \
--test_filter='^TestValidateCorpuses$' \
--test_env=GO_TEST_WRAP_TESTV=1 \
Expand Down

0 comments on commit 5f76149

Please sign in to comment.