From 3b6a8c70cdfd561ae73a0647b16ea91bf4fd74e3 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Mon, 21 Mar 2022 12:17:26 -0700 Subject: [PATCH 1/3] Add more xds_lb test cases (#8998) This test suite is only fully enabled for C++ and Python at this moment. This commit enables the rest of the test suite for grpc-java. * change_backend_service_test * failover_test * remove_neg_test * round_robin_test * affinity_test --- buildscripts/kokoro/xds_k8s_lb.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/buildscripts/kokoro/xds_k8s_lb.sh b/buildscripts/kokoro/xds_k8s_lb.sh index 22f1e383440..890cc995741 100755 --- a/buildscripts/kokoro/xds_k8s_lb.sh +++ b/buildscripts/kokoro/xds_k8s_lb.sh @@ -166,7 +166,15 @@ main() { build_docker_images_if_needed # Run tests cd "${TEST_DRIVER_FULL_DIR}" - run_test api_listener_test + local failed_tests=0 + test_suites=("api_listener_test" "change_backend_service_test" "failover_test" "remove_neg_test" "round_robin_test" "affinity_test") + for test in "${test_suites[@]}"; do + run_test $test || (( failed_tests++ )) + done + echo "Failed test suites: ${failed_tests}" + if (( failed_tests > 0 )); then + exit 1 + fi } main "$@" From 086391c85afa14aeff527883ace6585518243874 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Thu, 17 Mar 2022 09:55:41 -0700 Subject: [PATCH 2/3] Redirect xDS tests to use grpc/grpc's master branch (#8982) We are solving the issue of grpc/grpc delaying the release, causing GCE tests to fail. Updating the master branch prevents similar cases from happening. Tested: [prod:grpc/java/master/branch/xds_v3](http://sponge/010f5353-e65e-4b1a-b6d3-f5a84e31546b) --- buildscripts/kokoro/xds.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/buildscripts/kokoro/xds.sh b/buildscripts/kokoro/xds.sh index 83ba7fc864f..d67117644c1 100755 --- a/buildscripts/kokoro/xds.sh +++ b/buildscripts/kokoro/xds.sh @@ -8,16 +8,10 @@ fi cd github pushd grpc-java/interop-testing -branch=$(git branch --all --no-color --contains "${KOKORO_GITHUB_COMMIT}" \ - | grep -v HEAD | head -1) -shopt -s extglob -branch="${branch//[[:space:]]}" -branch="${branch##remotes/origin/}" -shopt -u extglob ../gradlew installDist -x test -PskipCodegen=true -PskipAndroid=true popd -git clone -b "${branch}" --single-branch --depth=1 https://github.com/grpc/grpc.git +git clone -b master --single-branch --depth=1 https://github.com/grpc/grpc.git grpc/tools/run_tests/helper_scripts/prep_xds.sh From 0fac611ce50f167ed186b76b7689d07a854599b8 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Tue, 24 May 2022 11:16:28 -0700 Subject: [PATCH 3/3] interop-test: Remove duplicated GCE tests --- buildscripts/kokoro/xds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/kokoro/xds.sh b/buildscripts/kokoro/xds.sh index d67117644c1..153d40b68e9 100755 --- a/buildscripts/kokoro/xds.sh +++ b/buildscripts/kokoro/xds.sh @@ -22,7 +22,7 @@ grpc/tools/run_tests/helper_scripts/prep_xds.sh # --test_case after they are added into "all". JAVA_OPTS=-Djava.util.logging.config.file=grpc-java/buildscripts/xds_logging.properties \ python3 grpc/tools/run_tests/run_xds_tests.py \ - --test_case="all,circuit_breaking,timeout,fault_injection,csds" \ + --test_case="ping_pong,circuit_breaking" \ --project_id=grpc-testing \ --project_num=830293263384 \ --source_image=projects/grpc-testing/global/images/xds-test-server-5 \