Skip to content
Snippets Groups Projects
Commit aadb9105 authored by Sree Kuchibhotla's avatar Sree Kuchibhotla
Browse files

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
parent da25fdb8
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ import time ...@@ -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
......
File moved
...@@ -79,7 +79,7 @@ CONTAINER_NAME="build_${BASE_NAME}_$(uuidgen)" ...@@ -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 ...@@ -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, ...@@ -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, ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment