summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--kokoro/benchmark_tests.cfg6
-rw-r--r--scripts/benchmark.sh5
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