From fd84cddab0dc175d5050e2ac46f8520f632d1550 Mon Sep 17 00:00:00 2001 From: Zach Koopmans Date: Wed, 11 Mar 2020 14:44:57 -0700 Subject: Internal change PiperOrigin-RevId: 300410856 --- kokoro/benchmark_tests.cfg | 6 +++--- scripts/benchmark.sh | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/kokoro/benchmark_tests.cfg b/kokoro/benchmark_tests.cfg index c48518a05..7e2c8acad 100644 --- a/kokoro/benchmark_tests.cfg +++ b/kokoro/benchmark_tests.cfg @@ -5,7 +5,7 @@ before_action { fetch_keystore { keystore_resource { keystore_config_id : 73898 - keyname : 'kokoro-rbe-service-account' + keyname : 'gvisor-benchmarks-service-account' }, } } @@ -21,6 +21,6 @@ env_vars { } env_vars { - key : 'KOKORO_SERVICE_ACCOUNT' - value : '73898_kokoro-rbe-service-account' + key : 'GCLOUD_CREDENTIALS' + value : '73898_gvisor-benchmarks-service-account' } diff --git a/scripts/benchmark.sh b/scripts/benchmark.sh index a0317db02..79ff198d5 100644 --- a/scripts/benchmark.sh +++ b/scripts/benchmark.sh @@ -17,9 +17,10 @@ # Run in the root of the repo. cd "$(dirname "$0")" -KEY_PATH=${KEY_PATH:-"${KOKORO_KEYSTORE_DIR}/${KOKORO_SERVICE_ACCOUNT}"} +export GOOGLE_APPLICATION_CREDENTIALS="${KOKORO_KEYSTORE_DIR}/${GCLOUD_CREDENTIALS}" -gcloud auth activate-service-account --key-file "${KEY_PATH}" +gcloud auth activate-service-account --key-file "${GOOGLE_APPLICATION_CREDENTIALS}" gcloud compute instances list +bq show gvisor-benchmarks:test.test -- cgit v1.2.3