From c8bc8076cee973d492d4a4d5c968d3f6d6a60e86 Mon Sep 17 00:00:00 2001 From: Stan Rosenberg Date: Thu, 21 Nov 2024 10:54:03 -0500 Subject: [PATCH] ci: fix private roachtest nightly It appears a change to TC wrapper scripts in [1] may have caused the `root` var. to become unbound. This PR adds the missing `source` statement. [1] https://github.com/cockroachdb/cockroach/pull/124592 Epic: none Release note: None --- .../internal/cockroach/nightlies/private_roachtest_impl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh b/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh index 5f97df3853f1..5caffc129618 100755 --- a/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh +++ b/build/teamcity/internal/cockroach/nightlies/private_roachtest_impl.sh @@ -10,7 +10,11 @@ set -exuo pipefail dir="$(dirname $(dirname $(dirname $(dirname $(dirname "${0}")))))" +# N.B. export variables like `root` s.t. they can be used by scripts called below. +set -a source "$dir/teamcity-support.sh" +set +a + if [[ ! -f ~/.ssh/id_rsa.pub ]]; then ssh-keygen -q -C "private-roachtest-nightly-bazel $(date)" -N "" -f ~/.ssh/id_rsa fi