diff options
author | Matt Kwong <matt-kwong@users.noreply.github.com> | 2017-09-15 16:14:58 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 16:14:58 -0700 |
commit | c9d38573721a0ba74eb2fd238876e0a58b1a3c6b (patch) | |
tree | 1282a542bd4bb840d5cf58f1251e4b0c0d4ce030 /tools/internal_ci/helper_scripts | |
parent | e63cdce8b6c1fc2e7acb766adbd306beebfd0332 (diff) | |
parent | f68858464afd15402e09f480938e5efc6c7ff02f (diff) |
Merge pull request #12562 from matt-kwong/kokoro_perfpr1
Add Kokoro perf PR jobs
Diffstat (limited to 'tools/internal_ci/helper_scripts')
-rw-r--r-- | tools/internal_ci/helper_scripts/prepare_build_linux_perf_rc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_linux_perf_rc b/tools/internal_ci/helper_scripts/prepare_build_linux_perf_rc index 1b7779caa8..dc3c75a6a1 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_linux_perf_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_linux_perf_rc @@ -19,4 +19,19 @@ ulimit -n 32768 ulimit -c unlimited +# Performance PR testing needs GH API key and PR metadata to comment results +if [ -n "$KOKORO_GITHUB_PULL_REQUEST_NUMBER" ]; then + set +x + sudo apt-get install -y jq + export ghprbTargetBranch=$(curl -s https://api.github.com/repos/grpc/grpc/pulls/$KOKORO_GITHUB_PULL_REQUEST_NUMBER | jq -r .base.ref) + + gsutil cp gs://grpc-testing-secrets/github_credentials/oauth_token.txt ~/ + # TODO(matt-kwong): rename this to GITHUB_OAUTH_TOKEN after Jenkins deprecation + export JENKINS_OAUTH_TOKEN=$(cat ~/oauth_token.txt) + export ghprbPullId=$KOKORO_GITHUB_PULL_REQUEST_NUMBER + set -x +fi + +sudo pip install tabulate + git submodule update --init |