Change directory structure for the scripts (remove tools/big_query and

tools/gke directies and instead create tools/gcp). Move scripts around
in to the appropriate directories
pull/5402/head
Sree Kuchibhotla 9 years ago
parent da25fdb882
commit 8ed902e6f7
  1. 0
      tools/gcp/stress_test/run_client.py
  2. 0
      tools/gcp/stress_test/run_server.py
  3. 2
      tools/gcp/stress_test/stress_test_utils.py
  4. 0
      tools/gcp/utils/big_query_utils.py
  5. 0
      tools/gcp/utils/kubernetes_api.py
  6. 2
      tools/jenkins/build_interop_stress_image.sh
  7. 16
      tools/run_tests/stress_test/run_stress_tests_on_gke.py

@ -39,7 +39,7 @@ import time
# Import big_query_utils module # Import big_query_utils module
bq_utils_dir = os.path.abspath(os.path.join( bq_utils_dir = os.path.abspath(os.path.join(
os.path.dirname(__file__), '../../big_query')) os.path.dirname(__file__), '../utils'))
sys.path.append(bq_utils_dir) sys.path.append(bq_utils_dir)
import big_query_utils as bq_utils import big_query_utils as bq_utils

@ -79,7 +79,7 @@ CONTAINER_NAME="build_${BASE_NAME}_$(uuidgen)"
$BASE_IMAGE \ $BASE_IMAGE \
bash -l /var/local/jenkins/grpc/tools/dockerfile/$BASE_NAME/build_interop_stress.sh \ bash -l /var/local/jenkins/grpc/tools/dockerfile/$BASE_NAME/build_interop_stress.sh \
&& docker commit $CONTAINER_NAME $INTEROP_IMAGE \ && docker commit $CONTAINER_NAME $INTEROP_IMAGE \
&& ( if [ -n $INTEROP_IMAGE_REPOSITORY_TAG ]; then docker tag $INTEROP_IMAGE $INTEROP_IMAGE_REPOSITORY_TAG ; fi ) \ && ( if [ -n $INTEROP_IMAGE_REPOSITORY_TAG ]; then docker tag -f $INTEROP_IMAGE $INTEROP_IMAGE_REPOSITORY_TAG ; fi ) \
&& echo "Successfully built image $INTEROP_IMAGE") && echo "Successfully built image $INTEROP_IMAGE")
EXITCODE=$? EXITCODE=$?

@ -35,14 +35,18 @@ import sys
import time import time
stress_test_utils_dir = os.path.abspath(os.path.join( stress_test_utils_dir = os.path.abspath(os.path.join(
os.path.dirname(__file__), '../run_tests/stress_test')) os.path.dirname(__file__), '../../gcp/stress_test'))
sys.path.append(stress_test_utils_dir) sys.path.append(stress_test_utils_dir)
from stress_test_utils import BigQueryHelper from stress_test_utils import BigQueryHelper
kubernetes_api_dir = os.path.abspath(os.path.join(
os.path.dirname(__file__), '../../gcp/utils'))
sys.path.append(kubernetes_api_dir)
import kubernetes_api import kubernetes_api
_GRPC_ROOT = os.path.abspath(os.path.join( _GRPC_ROOT = os.path.abspath(os.path.join(
os.path.dirname(sys.argv[0]), '../..')) os.path.dirname(sys.argv[0]), '../../..'))
os.chdir(_GRPC_ROOT) os.chdir(_GRPC_ROOT)
# num of seconds to wait for the GKE image to start and warmup # num of seconds to wait for the GKE image to start and warmup
@ -214,9 +218,7 @@ def _launch_server(gke_settings, stress_server_settings, bq_settings,
# This is the wrapper script that is run in the container. This script runs # This is the wrapper script that is run in the container. This script runs
# the actual stress test server # the actual stress test server
server_cmd_list = [ server_cmd_list = ['/var/local/git/grpc/tools/gcp/stress_test/run_server.py']
'/var/local/git/grpc/tools/run_tests/stress_test/run_server.py'
]
# run_server.py does not take any args from the command line. The args are # run_server.py does not take any args from the command line. The args are
# instead passed via environment variables (see server_env below) # instead passed via environment variables (see server_env below)
@ -269,9 +271,7 @@ def _launch_client(gke_settings, stress_server_settings, stress_client_settings,
# This is the wrapper script that is run in the container. This script runs # This is the wrapper script that is run in the container. This script runs
# the actual stress client # the actual stress client
client_cmd_list = [ client_cmd_list = ['/var/local/git/grpc/tools/gcp/stress_test/run_client.py']
'/var/local/git/grpc/tools/run_tests/stress_test/run_client.py'
]
# run_client.py takes no args. All args are passed as env variables (see # run_client.py takes no args. All args are passed as env variables (see
# client_env) # client_env)
Loading…
Cancel
Save