[PSM Interop] Rename GAMMA tests to CSM tests (#34452)

Notes:
- GAMMA tests are now a subset of a wider CSM scope
- Some "gamma" files to ensure graceful renames
- Should be safe to merge as is
pull/34456/head
Sergii Tkachenko 1 year ago committed by GitHub
parent cb24606117
commit c76730114a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      tools/internal_ci/linux/grpc_xds_k8s_install_test_driver.sh
  2. 26
      tools/internal_ci/linux/psm-csm.cfg
  3. 7
      tools/internal_ci/linux/psm-csm.sh
  4. 3
      tools/internal_ci/linux/psm-gamma.cfg
  5. 3
      tools/run_tests/xds_k8s_test_driver/config/common-csm.cfg
  6. 2
      tools/run_tests/xds_k8s_test_driver/config/gamma.cfg

@ -50,6 +50,10 @@ activate_gke_cluster() {
GKE_CLUSTER_NAME="psm-interop-security"
GKE_CLUSTER_ZONE="us-central1-a"
;;
GKE_CLUSTER_PSM_CSM)
GKE_CLUSTER_NAME="psm-interop-csm"
GKE_CLUSTER_ZONE="us-east7-c"
;;
GKE_CLUSTER_PSM_GAMMA)
GKE_CLUSTER_NAME="psm-interop-gamma"
GKE_CLUSTER_ZONE="us-central1-a"

@ -0,0 +1,26 @@
# Copyright 2023 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 the internal CI (in protobuf text format)
# Location of the continuous shell script in repository.
build_file: "grpc/tools/internal_ci/linux/psm-csm.sh"
timeout_mins: 60
action {
define_artifacts {
regex: "artifacts/**/*sponge_log.xml"
regex: "artifacts/**/*.log"
strip_prefix: "artifacts"
}
}

@ -106,7 +106,7 @@ run_test() {
set -x
python3 -m "tests.${test_name}" \
--flagfile="${TEST_DRIVER_FLAGFILE}" \
--flagfile="config/gamma.cfg" \
--flagfile="config/common-csm.cfg" \
--kube_context="${KUBE_CONTEXT}" \
--server_image="${SERVER_IMAGE_NAME}:${GIT_COMMIT}" \
--client_image="${CLIENT_IMAGE_NAME}:${GIT_COMMIT}" \
@ -146,7 +146,7 @@ main() {
echo "Sourcing test driver install script from: ${TEST_DRIVER_INSTALL_SCRIPT_URL}"
source /dev/stdin <<< "$(curl -s "${TEST_DRIVER_INSTALL_SCRIPT_URL}")"
activate_gke_cluster GKE_CLUSTER_PSM_GAMMA
activate_gke_cluster GKE_CLUSTER_PSM_CSM
set -x
if [[ -n "${KOKORO_ARTIFACTS_DIR}" ]]; then
@ -160,7 +160,8 @@ main() {
local failed_tests=0
test_suites=(
"gamma.gamma_baseline_test"
# "gamma.session_affinity_test"
"gamma.affinity_test"
"app_net_ssa_test"
)
for test in "${test_suites[@]}"; do
run_test $test || (( ++failed_tests ))

@ -15,7 +15,8 @@
# Config file for the internal CI (in protobuf text format)
# Location of the continuous shell script in repository.
build_file: "grpc/tools/internal_ci/linux/psm-gamma.sh"
# TODO(sergiitk): delete when the job is renamed
build_file: "grpc/tools/internal_ci/linux/psm-csm.sh"
timeout_mins: 60
action {
define_artifacts {

@ -0,0 +1,3 @@
# Common config file for PSM CSM tests.
--resource_prefix=psm-csm
--noenable_workload_identity

@ -1,2 +1,4 @@
# Common config file for GAMMA PSM tests.
# TODO(sergiitk): delete when confirmed it's not used
--resource_prefix=psm-gamma
--noenable_workload_identity

Loading…
Cancel
Save