Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
8d41d518
Commit
8d41d518
authored
9 years ago
by
Sree Kuchibhotla
Browse files
Options
Downloads
Patches
Plain Diff
Add build_type option
parent
575f0fa2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/stress_test/configs/opt-tsan.json
+5
-3
5 additions, 3 deletions
tools/run_tests/stress_test/configs/opt-tsan.json
tools/run_tests/stress_test/run_on_gke.py
+10
-5
10 additions, 5 deletions
tools/run_tests/stress_test/run_on_gke.py
with
15 additions
and
8 deletions
tools/run_tests/stress_test/configs/opt-tsan.json
+
5
−
3
View file @
8d41d518
...
...
@@ -2,11 +2,13 @@
"dockerImages"
:
{
"grpc_stress_cxx_opt"
:
{
"buildScript"
:
"tools/jenkins/build_interop_stress_image.sh"
,
"dockerFileDir"
:
"grpc_interop_stress_cxx"
"dockerFileDir"
:
"grpc_interop_stress_cxx"
,
"buildType"
:
"opt"
},
"grpc_stress_cxx_tsan"
:
{
"buildScript"
:
"tools/jenkins/build_interop_stress_image.sh"
,
"dockerFileDir"
:
"grpc_interop_stress_cxx"
"dockerFileDir"
:
"grpc_interop_stress_cxx"
,
"buildType"
:
"tsan"
}
},
...
...
@@ -103,7 +105,7 @@
"kubernetesProxyPort"
:
8001
,
"datasetIdNamePrefix"
:
"stress_test_opt_tsan"
,
"summaryTableId"
:
"summary"
,
"qpsTableId"
:
"qps"
"qpsTableId"
:
"qps"
,
"podWarmupSecs"
:
60
}
}
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/stress_test/run_on_gke.py
+
10
−
5
View file @
8d41d518
...
...
@@ -93,7 +93,7 @@ class ServerTemplate:
class
DockerImage
:
def
__init__
(
self
,
gcp_project_id
,
image_name
,
build_script_path
,
dockerfile_dir
):
dockerfile_dir
,
build_type
):
"""
Args:
image_name: The docker image name
...
...
@@ -108,6 +108,7 @@ class DockerImage:
self
.
gcp_project_id
=
gcp_project_id
self
.
build_script_path
=
build_script_path
self
.
dockerfile_dir
=
dockerfile_dir
self
.
build_type
=
build_type
self
.
tag_name
=
self
.
make_tag_name
(
gcp_project_id
,
image_name
)
def
make_tag_name
(
self
,
project_id
,
image_name
):
...
...
@@ -118,6 +119,7 @@ class DockerImage:
os
.
environ
[
'
INTEROP_IMAGE
'
]
=
self
.
image_name
os
.
environ
[
'
INTEROP_IMAGE_REPOSITORY_TAG
'
]
=
self
.
tag_name
os
.
environ
[
'
BASE_NAME
'
]
=
self
.
dockerfile_dir
os
.
environ
[
'
BUILD_TYPE
'
]
=
self
.
build_type
if
subprocess
.
call
(
args
=
[
self
.
build_script_path
])
!=
0
:
print
'
Error in building the Docker image
'
return
False
...
...
@@ -334,12 +336,15 @@ class Config:
"""
Parses the
'
dockerImages
'
section of the config file and returns a
Dictionary of
'
DockerImage
'
objects keyed by docker image names
"""
docker_images_dict
=
{}
for
image_name
in
config_dict
[
'
dockerImages
'
].
keys
():
build_script_path
=
config_dict
[
'
dockerImages
'
][
image_name
][
'
buildScript
'
]
dockerfile_dir
=
config_dict
[
'
dockerImages
'
][
image_name
][
'
dockerFileDir
'
]
docker_config_dict
=
config_dict
[
'
dockerImages
'
]
for
image_name
in
docker_config_dict
.
keys
():
build_script_path
=
docker_config_dict
[
image_name
][
'
buildScript
'
]
dockerfile_dir
=
docker_config_dict
[
image_name
][
'
dockerFileDir
'
]
build_type
=
docker_config_dict
[
image_name
][
'
buildType
'
]
docker_images_dict
[
image_name
]
=
DockerImage
(
gcp_project_id
,
image_name
,
build_script_path
,
dockerfile_dir
)
dockerfile_dir
,
build_type
)
return
docker_images_dict
def
parse_client_templates
(
self
,
config_dict
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment