diff --git a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh b/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh deleted file mode 100755 index 0ce72295a515..000000000000 --- a/build/teamcity/cockroach/ci/tests-aws-linux-arm64/bench.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2022 The Cockroach Authors. -# -# Use of this software is governed by the CockroachDB Software License -# included in the /LICENSE file. - - -set -euo pipefail - -source build/teamcity/cockroach/ci/tests/bench.sh diff --git a/build/teamcity/cockroach/ci/tests/bench.sh b/build/teamcity/cockroach/ci/tests/bench.sh deleted file mode 100755 index d018ac8752f7..000000000000 --- a/build/teamcity/cockroach/ci/tests/bench.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2021 The Cockroach Authors. -# -# Use of this software is governed by the CockroachDB Software License -# included in the /LICENSE file. - - -set -euo pipefail - -dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" - -source "$dir/teamcity-support.sh" # For $root -source "$dir/teamcity-bazel-support.sh" # For run_bazel - -tc_start_block "Run benchmark tests" -run_bazel build/teamcity/cockroach/ci/tests/bench_impl.sh -tc_end_block "Run benchmark tests" diff --git a/build/teamcity/cockroach/ci/tests/bench_impl.sh b/build/teamcity/cockroach/ci/tests/bench_impl.sh deleted file mode 100755 index 26bbbc55b2ea..000000000000 --- a/build/teamcity/cockroach/ci/tests/bench_impl.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -# Copyright 2021 The Cockroach Authors. -# -# Use of this software is governed by the CockroachDB Software License -# included in the /LICENSE file. - - -set -euo pipefail - -dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" -source "$dir/teamcity/util.sh" - -if [[ "$(uname -m)" =~ (arm64|aarch64)$ ]]; then - export CROSSLINUX_CONFIG="crosslinuxarm" -else - export CROSSLINUX_CONFIG="crosslinux" -fi - -# Enumerate test targets that have benchmarks. -all_tests=$(bazel query 'kind(go_test, //pkg/...)' --output=label) -pkgs=$(git grep -l '^func Benchmark' -- 'pkg/*_test.go' | rev | cut -d/ -f2- | rev | sort | uniq) -targets=$(for pkg in $pkgs - do - pkg=$(echo $pkg | sed 's|^|\^//|' | sed 's|$|:|') - grep $pkg <<< $all_tests || true - done | sort | uniq) - -set -x -# Run all tests serially. -for target in $targets -do - tc_start_block "Bench $target" - # We need the `test_sharding_strategy` flag or else the benchmarks will - # fail to run sharded tests like //pkg/sql/importer:importer_test. - bazel run --config=test --config=$CROSSLINUX_CONFIG --config=ci --test_sharding_strategy=disabled $target -- \ - -test.bench=. -test.benchtime=1x -test.short -test.run=- - tc_end_block "Bench $target" -done