Skip to content

Commit

Permalink
release,build: don't imply lintonbuild in ci configuration
Browse files Browse the repository at this point in the history
The `ci` configuration is overloaded and is used for a few different
things. It is used in builds to enable `lintonbuild`, and it's used in
tests to set some configurations that are useful in TeamCity (increased
verbosity, etc.)

While running lints every time we build in a paranoid, repetitive
fashion does mean that lint issues cannot go unnoticed, it does have a
performance impact (see #136626). Going forward, we will not have this
configuration imply `lintonbuild` and provide the option to disable
`nogo` for certain builds in automation. For example, `roachtest`s will
benefit from having lints disabled as well to speed up the build.

Here, we do the following:

1. Have `--config=ci` not imply enabling lints
2. Now, `--config=ci` has no specific meaning for builds (it's only
   meaningful for tests). So, I go through all the scripts and
   automation and remove it for builds specifically.
3. Disable `nogo` for release builds to reduce the likelihood of an OOM.

Part of: #136626
Epic: CRDB-41952
Release note: None
  • Loading branch information
rickystewart committed Jan 8, 2025
1 parent 164ce7c commit 2f9e00f
Show file tree
Hide file tree
Showing 44 changed files with 243 additions and 239 deletions.
8 changes: 4 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,15 @@ test:race --heavy

# CI uses a custom timeout for enormous targets.
test:use_ci_timeouts --test_timeout=60,300,900,900

# CI should always run with `--config=ci`.
build:cibase --config=lintonbuild
# Set `-test.v` in Go tests.
# Ref: https://github.com/bazelbuild/rules_go/pull/2456
test:cibase --test_env=GO_TEST_WRAP_TESTV=1
test:ci --test_env=GO_TEST_WRAP_TESTV=1
# Dump all output for failed tests to the build log.
test:ci --test_output=errors
# Put all tmp artifacts in /artifacts/tmp.
test:ci --test_tmpdir=/artifacts/tmp
build:ci --config=cibase

build:cross --stamp

Expand Down Expand Up @@ -132,7 +131,8 @@ build:engflowbase --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build:engflowbase --extra_execution_platforms=//build/toolchains:cross_linux
build:engflowbase --remote_upload_local_results=false
build:engflowbase --remote_download_toplevel
build:engflowbase --config=cibase
build:engflowbase --test_env=GO_TEST_WRAP_TESTV=1
build:engflowbase --config=lintonbuild
test:engflowbase --test_env=REMOTE_EXEC=1
test:engflowbase --test_env=GOTRACEBACK=all
build:engflow --config=engflowbase
Expand Down
6 changes: 3 additions & 3 deletions build/teamcity/cockroach/ci/builds/build_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ then
GEOS_TARGET=
fi

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)
"$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci" -- build -c opt \
--config "$CONFIG" --config ci $EXTRA_ARGS \
--config "$CONFIG" $EXTRA_ARGS \
//pkg/cmd/cockroach-short //pkg/cmd/cockroach \
//pkg/cmd/cockroach-sql $GEOS_TARGET $EXTRA_TARGETS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))"

source "$dir/teamcity-support.sh" # for 'tc_release_branch'

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci

EXTRA_PARAMS=""

Expand All @@ -21,6 +21,6 @@ if tc_bors_branch; then
EXTRA_PARAMS=" --flaky_test_attempts=2"
fi

$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci --config=use_ci_timeouts -c fastbuild \
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci --config=use_ci_timeouts -c fastbuild \
//pkg:all_tests \
--profile=/artifacts/profile.gz $EXTRA_PARAMS
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ else
fi

tc_start_block "Build cockroach"
build_script='bazel build --config $1 --config ci //pkg/cmd/cockroach-short && cp $(bazel info bazel-bin --config $1 --config ci)/pkg/cmd/cockroach-short/cockroach-short_/cockroach-short /artifacts/cockroach && chmod a+w /artifacts/cockroach'
build_script='bazel build --config $1 //pkg/cmd/cockroach-short && cp $(bazel info bazel-bin --config $1)/pkg/cmd/cockroach-short/cockroach-short_/cockroach-short /artifacts/cockroach && chmod a+w /artifacts/cockroach'
run_bazel /usr/bin/bash -c "$build_script" -- "$CROSSLINUX_CONFIG"
tc_end_block "Build cockroach"

Expand All @@ -29,8 +29,8 @@ mkdir -p "$ARTIFACTSDIR"
tc_start_block "Run acceptance tests"
status=0

bazel build //pkg/cmd/bazci --config=ci
BAZCI=$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci
bazel build //pkg/cmd/bazci
BAZCI=$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci

$BAZCI --artifacts_dir=$PWD/artifacts -- \
test //pkg/acceptance:acceptance_test \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

set -xeuo pipefail

bazel build //pkg/cmd/bazci --config=ci
$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci //pkg/ui:test
bazel build //pkg/cmd/bazci
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci //pkg/ui:test
6 changes: 3 additions & 3 deletions build/teamcity/cockroach/ci/tests/local_roachtest_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ else
export CROSSLINUX_CONFIG="crosslinux"
fi

BAZEL_BIN=$(bazel info bazel-bin --config=$CROSSLINUX_CONFIG --config=ci)
BAZEL_BIN=$(bazel info bazel-bin --config=$CROSSLINUX_CONFIG)

bazel build --config=$CROSSLINUX_CONFIG --config=ci //pkg/cmd/cockroach-short \
bazel build --config=$CROSSLINUX_CONFIG //pkg/cmd/cockroach-short \
//pkg/cmd/roachtest \
//pkg/cmd/roachprod \
//pkg/cmd/workload

bazel build --config=$CROSSLINUX_CONFIG --config=ci --config=force_build_cdeps //c-deps:libgeos
bazel build --config=$CROSSLINUX_CONFIG --config=force_build_cdeps //c-deps:libgeos

mkdir -p lib
cp $BAZEL_BIN/c-deps/libgeos_foreign/lib/libgeos.so lib/libgeos.so
Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/ci/tests/maybe_stress_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi

TARGET="$1"

bazel build //pkg/cmd/github-pull-request-make //pkg/cmd/bazci @com_github_cockroachdb_stress//:stress --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/github-pull-request-make //pkg/cmd/bazci @com_github_cockroachdb_stress//:stress
BAZEL_BIN=$(bazel info bazel-bin)
PATH=$PATH:$BAZEL_BIN/pkg/cmd/bazci/bazci_:$BAZEL_BIN/external/com_github_cockroachdb_stress/stress_ TARGET=$TARGET \
$BAZEL_BIN/pkg/cmd/github-pull-request-make/github-pull-request-make_/github-pull-request-make
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/ci/tests/testrace_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -xeuo pipefail
# Usage: testrace_impl.sh PKG1 [PKG2 PKG3 PKG4...]
# packages are expected to be formatted as go-style, e.g. ./pkg/cmd/bazci.

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci
size_to_timeout=("small:1200" "medium:6000" "large:18000" "enormous:72000")
for pkg in "$@"
do
Expand All @@ -35,7 +35,7 @@ do
echo "Skipping test $test"
continue
fi
$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci --config=race "$test" \
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci -- test --config=ci --config=race "$test" \
--test_env=COCKROACH_LOGIC_TESTS_SKIP=true \
--test_timeout $timeout \
--test_sharding_strategy=disabled \
Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/coverage/unit_tests_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

set -xeuo pipefail

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci

$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci -- \
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci -- \
coverage \
--config=ci --config=use_ci_timeouts -c fastbuild \
--@io_bazel_rules_go//go/config:cover_format=lcov --combined_report=lcov \
Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/create-docs-issue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source "$dir/teamcity-support.sh"
source "$dir/teamcity-bazel-support.sh"

BAZEL_SUPPORT_EXTRA_DOCKER_ARGS="-e GITHUB_API_TOKEN -e JIRA_API_TOKEN -e DOCS_ISSUE_GEN_END_TIME -e DOCS_ISSUE_GEN_START_TIME -e DRY_RUN_DOCS_ISSUE_GEN" run_bazel << 'EOF'
bazel build --config ci //pkg/cmd/docs-issue-generation
BAZEL_BIN=$(bazel info bazel-bin --config ci)
bazel build //pkg/cmd/docs-issue-generation
BAZEL_BIN=$(bazel info bazel-bin)
$BAZEL_BIN/pkg/cmd/docs-issue-generation/docs-issue-generation_/docs-issue-generation
EOF
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/nightlies/cloud_unit_tests_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set -xeuo pipefail
dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))"
source "$dir/teamcity-support.sh" # For log_into_gcloud

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)

ARTIFACTS_DIR=/artifacts

Expand Down
10 changes: 5 additions & 5 deletions build/teamcity/cockroach/nightlies/compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ source "$dir/teamcity-bazel-support.sh"

tc_start_block "Run compose tests"

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)
BAZCI=$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci

bazel build //pkg/cmd/cockroach //pkg/compose/compare/compare:compare_test //c-deps:libgeos --config=ci --config=crosslinux --config=test
CROSSBIN=$(bazel info bazel-bin --config=ci --config=crosslinux --config=test)
bazel build //pkg/cmd/cockroach //pkg/compose/compare/compare:compare_test //c-deps:libgeos --config=crosslinux --config=test
CROSSBIN=$(bazel info bazel-bin --config=crosslinux --config=test)
COCKROACH=$CROSSBIN/pkg/cmd/cockroach/cockroach_/cockroach
COMPAREBIN=$CROSSBIN/pkg/compose/compare/compare/compare_test_/compare_test
LIBGEOSDIR=$(bazel info execution_root --config=crosslinux --config=ci --config=test)/external/archived_cdep_libgeos_linux/lib/
LIBGEOSDIR=$(bazel info execution_root --config=crosslinux --config=test)/external/archived_cdep_libgeos_linux/lib/
ARTIFACTS_DIR=$PWD/artifacts
mkdir -p $ARTIFACTS_DIR

Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/nightlies/lint_urls_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ bazel run //pkg/gen:code
bazel run //pkg/cmd/generate-cgo:generate-cgo --run_under="cd $root && "
# generated files requirements -- end

bazel build //pkg/cmd/bazci --config=ci
$(bazel info bazel-bin --config=ci)/pkg/cmd/bazci/bazci_/bazci -- \
bazel build //pkg/cmd/bazci
$(bazel info bazel-bin)/pkg/cmd/bazci/bazci_/bazci -- \
test //pkg/testutils/lint:lint_test \
--config=ci --define gotags=bazel,gss,nightly,lint \
--test_filter=TestNightlyLint \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function build_and_upload_binaries() {
return
fi

config_args="--config=crosslinux --config=ci --crdb_test_off"
config_args="--config=crosslinux --crdb_test_off"
bazel clean
go_test_targets=$(bazel query kind\(go_test, //$BENCH_PACKAGE:all\))
bazel build $config_args $go_test_targets
Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/nightlies/microbenchmark_weekly.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export SANITIZED_BENCH_PACKAGE=${SANITIZED_BENCH_PACKAGE/.../all}

# Build rochprod and roachprod-microbench
run_bazel <<'EOF'
bazel build --config ci --config crosslinux //pkg/cmd/roachprod //pkg/cmd/roachprod-microbench
BAZEL_BIN=$(bazel info bazel-bin --config ci --config crosslinux)
bazel build --config crosslinux //pkg/cmd/roachprod //pkg/cmd/roachprod-microbench
BAZEL_BIN=$(bazel info bazel-bin --config crosslinux)
mkdir -p bin
cp $BAZEL_BIN/pkg/cmd/roachprod/roachprod_/roachprod bin
cp $BAZEL_BIN/pkg/cmd/roachprod-microbench/roachprod-microbench_/roachprod-microbench bin
Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/nightlies/optimizer_tests_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set -xeuo pipefail
dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))"
source "$dir/teamcity/util.sh"

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)

tc_start_block "Run opt tests with fast_int_set_large"
ARTIFACTS_DIR=/artifacts/fast_int_set_large
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RESTORE_COMMIT=$(git rev-parse HEAD)
git fetch origin "$CRDB_BRANCH"
git checkout "origin/$CRDB_BRANCH"

BAZEL_BIN=$(bazel info bazel-bin --config ci)
BAZEL_BIN=$(bazel info bazel-bin)

bazel run @go_sdk//:bin/go get "github.com/cockroachdb/pebble@$PEBBLE_BRANCH"

Expand Down
12 changes: 6 additions & 6 deletions build/teamcity/cockroach/nightlies/pebble_nightly_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ mkdir -p "$PWD/bin"
chmod o+rwx "$PWD/bin"

# Build the roachtest binary.
bazel build //pkg/cmd/roachtest --config ci -c opt
BAZEL_BIN=$(bazel info bazel-bin --config ci -c opt)
bazel build //pkg/cmd/roachtest -c opt
BAZEL_BIN=$(bazel info bazel-bin -c opt)
cp $BAZEL_BIN/pkg/cmd/roachtest/roachtest_/roachtest bin
chmod a+w bin/roachtest

Expand All @@ -45,8 +45,8 @@ chmod a+w bin/roachtest
bazel run @go_sdk//:bin/go get github.com/cockroachdb/pebble@master
NEW_DEPS_BZL_CONTENT=$(bazel run //pkg/cmd/mirror/go:mirror)
echo "$NEW_DEPS_BZL_CONTENT" > DEPS.bzl
bazel build @com_github_cockroachdb_pebble//cmd/pebble --config ci -c opt
BAZEL_BIN=$(bazel info bazel-bin --config ci -c opt)
bazel build @com_github_cockroachdb_pebble//cmd/pebble -c opt
BAZEL_BIN=$(bazel info bazel-bin -c opt)
cp $BAZEL_BIN/external/com_github_cockroachdb_pebble/cmd/pebble/pebble_/pebble ./pebble.linux
chmod a+w ./pebble.linux

Expand All @@ -73,8 +73,8 @@ function prepare_datadir() {
# Build the mkbench tool from within the Pebble repo. This is used to parse
# the benchmark data.
function build_mkbench() {
bazel build @com_github_cockroachdb_pebble//internal/mkbench --config ci -c opt
BAZEL_BIN=$(bazel info bazel-bin --config ci -c opt)
bazel build @com_github_cockroachdb_pebble//internal/mkbench -c opt
BAZEL_BIN=$(bazel info bazel-bin -c opt)
cp $BAZEL_BIN/external/com_github_cockroachdb_pebble/internal/mkbench/mkbench_/mkbench .
chmod a+w mkbench
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ ls -l "/test-bin"

echo "TC_SERVER_URL is $TC_SERVER_URL"

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci

BAZEL_BIN=$(bazel info bazel-bin --config ci)
BAZEL_BIN=$(bazel info bazel-bin)

# The script accepts the arguments accepted by TestMetaCrossVersion. It should
# look like:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ mkdir -p $ARTIFACTS_DIR

echo "TC_SERVER_URL is $TC_SERVER_URL"

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci

BAZEL_BIN=$(bazel info bazel-bin --config ci)
BAZEL_BIN=$(bazel info bazel-bin)

exit_status=0
# NB: If adjusting the metamorphic test flags below, be sure to also update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ mkdir -p $ARTIFACTS_DIR

echo "TC_SERVER_URL is $TC_SERVER_URL"

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci

BAZEL_BIN=$(bazel info bazel-bin --config ci)
BAZEL_BIN=$(bazel info bazel-bin)

exit_status=0
# NB: If adjusting the metamorphic test flags below, be sure to also update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ mkdir -p $ARTIFACTS_DIR

echo "TC_SERVER_URL is $TC_SERVER_URL"

bazel build //pkg/cmd/bazci --config=ci
bazel build //pkg/cmd/bazci

BAZEL_BIN=$(bazel info bazel-bin --config ci)
BAZEL_BIN=$(bazel info bazel-bin)

exit_status=0
# NB: If adjusting the metamorphic test flags below, be sure to also update
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ mkdir -p "$PWD/bin"
chmod o+rwx "$PWD/bin"

# Build the roachtest binary.
bazel build //pkg/cmd/roachtest --config ci -c opt
BAZEL_BIN=$(bazel info bazel-bin --config ci -c opt)
bazel build //pkg/cmd/roachtest -c opt
BAZEL_BIN=$(bazel info bazel-bin -c opt)
cp $BAZEL_BIN/pkg/cmd/roachtest/roachtest_/roachtest bin
chmod a+w bin/roachtest

Expand All @@ -45,8 +45,8 @@ chmod a+w bin/roachtest
bazel run @go_sdk//:bin/go get github.com/cockroachdb/pebble@master
NEW_DEPS_BZL_CONTENT=$(bazel run //pkg/cmd/mirror/go:mirror)
echo "$NEW_DEPS_BZL_CONTENT" > DEPS.bzl
bazel build @com_github_cockroachdb_pebble//cmd/pebble --config race --config ci -c opt
BAZEL_BIN=$(bazel info bazel-bin --config race --config ci -c opt)
bazel build @com_github_cockroachdb_pebble//cmd/pebble --config race -c opt
BAZEL_BIN=$(bazel info bazel-bin --config race -c opt)
cp $BAZEL_BIN/external/com_github_cockroachdb_pebble/cmd/pebble/pebble_/pebble ./pebble.linux
chmod a+w ./pebble.linux

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -xeuo pipefail

dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))"

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)
exit_status=0
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci -- test --config=ci \
//pkg/sql/tests:tests_test \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ esac

echo "Building $os/$arch/$component..."

bazel build --config $config --config ci -c opt "${bazel_args[@]}"
BAZEL_BIN=$(bazel info bazel-bin --config $config --config ci -c opt)
bazel build --config $config -c opt "${bazel_args[@]}"
BAZEL_BIN=$(bazel info bazel-bin --config $config -c opt)
for artifact in "${artifacts[@]}"; do
src=${artifact%%:*}
dst=${artifact#*:}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ source "$dir/teamcity-support.sh"
exit_status=0


bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)

# Run schema changer comparator test.
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci test -- --config=ci \
Expand Down
4 changes: 2 additions & 2 deletions build/teamcity/cockroach/nightlies/sqlite_logic_test_impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ set -xeuo pipefail

dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))"

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)
exit_status=0
$BAZEL_BIN/pkg/cmd/bazci/bazci_/bazci -- test --config=ci \
//pkg/sql/sqlitelogictest/tests/... \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ dir="$(dirname $(dirname $(dirname $(dirname "${0}"))))"
source "$dir/teamcity-bazel-support.sh" # For process_test_json
source "$dir/teamcity-support.sh"

bazel build //pkg/cmd/bazci --config=ci
BAZEL_BIN=$(bazel info bazel-bin --config=ci)
bazel build //pkg/cmd/bazci
BAZEL_BIN=$(bazel info bazel-bin)
google_credentials="$GOOGLE_EPHEMERAL_CREDENTIALS"

log_into_gcloud
Expand Down
Loading

0 comments on commit 2f9e00f

Please sign in to comment.