From 83ff97519452cf8d060eef52cd3b533d701e63f7 Mon Sep 17 00:00:00 2001 From: Eric Gribkoff Date: Fri, 13 Mar 2020 08:14:27 -0700 Subject: [PATCH] kokoro: add xds job (#3448) (#3457) --- test/kokoro/README.md | 1 + test/kokoro/xds.cfg | 5 +++++ test/kokoro/xds.sh | 25 +++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 test/kokoro/README.md create mode 100644 test/kokoro/xds.cfg create mode 100755 test/kokoro/xds.sh diff --git a/test/kokoro/README.md b/test/kokoro/README.md new file mode 100644 index 000000000000..1a7bd0d3cafd --- /dev/null +++ b/test/kokoro/README.md @@ -0,0 +1 @@ +The scripts in this directory are intended to be run by Kokoro CI jobs. diff --git a/test/kokoro/xds.cfg b/test/kokoro/xds.cfg new file mode 100644 index 000000000000..252cc8a31f3b --- /dev/null +++ b/test/kokoro/xds.cfg @@ -0,0 +1,5 @@ +# Config file for internal CI + +# Location of the continuous shell script in repository. +build_file: "grpc-go/test/kokoro/xds.sh" +timeout_mins: 90 diff --git a/test/kokoro/xds.sh b/test/kokoro/xds.sh new file mode 100755 index 000000000000..62e3fe2ec67a --- /dev/null +++ b/test/kokoro/xds.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -exu -o pipefail +[[ -f /VERSION ]] && cat /VERSION + +cd github + +export GOPATH="${HOME}/gopath" +pushd grpc-go/interop/xds/client +go build +popd + +git clone https://github.com/grpc/grpc.git + +grpc/tools/run_tests/helper_scripts/prep_xds.sh +GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info \ + python3 grpc/tools/run_tests/run_xds_tests.py \ + --test_case=all \ + --project_id=grpc-testing \ + --gcp_suffix=$(date '+%s') \ + --verbose \ + --client_cmd="grpc-go/interop/xds/client/client \ + --server=xds-experimental:///{server_uri} \ + --stats_port={stats_port} \ + --qps={qps}"