diff options
author | Zach Koopmans <zkoopmans@google.com> | 2020-03-11 14:44:57 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-11 14:46:17 -0700 |
commit | fd84cddab0dc175d5050e2ac46f8520f632d1550 (patch) | |
tree | 8efa031b1e4024eeb210a4d31d54efbe3a4f6417 | |
parent | 5ee9bbb15d90b5f116d9482e932e0823cffd9f6e (diff) |
Internal change
PiperOrigin-RevId: 300410856
-rw-r--r-- | kokoro/benchmark_tests.cfg | 6 | ||||
-rw-r--r-- | 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 |