mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Add xds kokoro config and update the test script
This commit is contained in:
parent
2c98a3d3f9
commit
2d4ab786da
@ -1,10 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install NVM
|
||||
cd ~
|
||||
export NVM_DIR=`pwd`/.nvm
|
||||
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh | bash
|
||||
|
||||
# Load NVM
|
||||
. $NVM_DIR/nvm.sh
|
||||
|
||||
nvm install 12
|
||||
|
||||
set -exu -o pipefail
|
||||
[[ -f /VERSION ]] && cat /VERSION
|
||||
|
||||
cd $(dirname $0)
|
||||
cd ..
|
||||
cd $(dirname $0)/..
|
||||
base=$(pwd)
|
||||
npm run compile
|
||||
|
||||
@ -14,14 +23,9 @@ git clone -b master --single-branch --depth=1 https://github.com/grpc/grpc.git
|
||||
|
||||
grpc/tools/run_tests/helper_scripts/prep_xds.sh
|
||||
|
||||
# Test cases "path_matching" and "header_matching" are not included in "all",
|
||||
# because not all interop clients in all languages support these new tests.
|
||||
#
|
||||
# TODO: remove "path_matching" and "header_matching" from --test_case after
|
||||
# they are added into "all".
|
||||
GRPC_NODE_TRACE=all GRPC_NODE_VERBOSITY=DEBUG \
|
||||
GRPC_NODE_TRACE=xds_client,xds_resolver,cds_balancer,eds_balancer,priority,weighted_target,round_robin,resolving_load_balancer,subchannel,keepalive,dns_resolver GRPC_NODE_VERBOSITY=DEBUG \
|
||||
python3 grpc/tools/run_tests/run_xds_tests.py \
|
||||
--test_case="all" \
|
||||
--test_case="backends_restart,change_backend_service,gentle_failover,ping_pong,remove_instance_group,round_robin,secondary_locality_gets_no_requests_on_partial_primary_failure,secondary_locality_gets_requests_on_primary_failure" \
|
||||
--project_id=grpc-testing \
|
||||
--source_image=projects/grpc-testing/global/images/xds-test-server-2 \
|
||||
--path_to_server_binary=/java_server/grpc-java/interop-testing/build/install/grpc-interop-testing/bin/xds-test-server \
|
||||
|
||||
@ -20,6 +20,5 @@ timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc-node/reports/**/sponge_log.xml"
|
||||
regex: "github/grpc/reports/**"
|
||||
}
|
||||
}
|
||||
|
||||
24
test/kokoro/xds-interop.cfg
Normal file
24
test/kokoro/xds-interop.cfg
Normal file
@ -0,0 +1,24 @@
|
||||
# Copyright 2017 gRPC authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Config file for Kokoro (in protobuf text format)
|
||||
|
||||
# Location of the continuous shell script in repository.
|
||||
build_file: "grpc-node/packages/grpc-js/scripts/xds.sh"
|
||||
timeout_mins: 60
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "github/grpc/reports/**"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user