From 6c0bd0b4e5c911bd5b9d6110fd153ac038410841 Mon Sep 17 00:00:00 2001 From: Stan Rosenberg <stan.rosenberg@gmail.com> Date: Thu, 21 Nov 2024 15:54:03 +0000 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