google.golang.org/grpc@v1.62.1/test/kokoro/xds.sh (about)

     1  #!/bin/bash
     2  
     3  set -exu -o pipefail
     4  [[ -f /VERSION ]] && cat /VERSION
     5  
     6  cd github
     7  
     8  export GOPATH="${HOME}/gopath"
     9  pushd grpc-go/interop/xds/client
    10  # Install a version of Go supported by gRPC for the new features, e.g.
    11  # errors.Is()
    12  gofilename=go1.21.0.linux-amd64.tar.gz
    13  curl --retry 3 -O -L "https://go.dev/dl/${gofilename}"
    14  sudo tar -C /usr/local -xf "${gofilename}"
    15  sudo ln -s /usr/local/go/bin/go /usr/bin/go
    16  # Retry go build on errors (e.g. go get connection errors), for at most 3 times
    17  for i in 1 2 3; do go build && break || sleep 5; done
    18  popd
    19  
    20  git clone -b master --single-branch --depth=1 https://github.com/grpc/grpc.git
    21  
    22  grpc/tools/run_tests/helper_scripts/prep_xds.sh
    23  
    24  # Test cases "path_matching" and "header_matching" are not included in "all",
    25  # because not all interop clients in all languages support these new tests.
    26  #
    27  # TODO: remove "path_matching" and "header_matching" from --test_case after
    28  # they are added into "all".
    29  GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info \
    30    python3 grpc/tools/run_tests/run_xds_tests.py \
    31      --test_case="ping_pong,circuit_breaking" \
    32      --project_id=grpc-testing \
    33      --project_num=830293263384 \
    34      --source_image=projects/grpc-testing/global/images/xds-test-server-5 \
    35      --path_to_server_binary=/java_server/grpc-java/interop-testing/build/install/grpc-interop-testing/bin/xds-test-server \
    36      --gcp_suffix=$(date '+%s') \
    37      --verbose \
    38      ${XDS_V3_OPT-} \
    39      --client_cmd="grpc-go/interop/xds/client/client \
    40        --server=xds:///{server_uri} \
    41        --stats_port={stats_port} \
    42        --qps={qps} \
    43        {fail_on_failed_rpc} \
    44        {rpcs_to_send} \
    45        {metadata_to_send}"