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
210a0ea5
Commit
210a0ea5
authored
9 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
tweaking of run_interop_tests.py
parent
28bf559e
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/dockerjob.py
+4
-1
4 additions, 1 deletion
tools/run_tests/dockerjob.py
tools/run_tests/run_interop_tests.py
+7
-4
7 additions, 4 deletions
tools/run_tests/run_interop_tests.py
with
11 additions
and
5 deletions
tools/run_tests/dockerjob.py
+
4
−
1
View file @
210a0ea5
...
...
@@ -44,7 +44,10 @@ def wait_for_file(filepath, timeout_seconds=15):
while
time
.
time
()
-
started
<
timeout_seconds
:
if
os
.
path
.
isfile
(
filepath
):
with
open
(
filepath
,
'
r
'
)
as
f
:
return
f
.
read
()
content
=
f
.
read
()
# make sure we don't return empty content
if
content
:
return
content
time
.
sleep
(
1
)
raise
Exception
(
'
Failed to read file %s.
'
%
filepath
)
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/run_interop_tests.py
+
7
−
4
View file @
210a0ea5
...
...
@@ -35,6 +35,7 @@ import dockerjob
import
itertools
import
xml.etree.cElementTree
as
ET
import
jobset
import
multiprocessing
import
os
import
subprocess
import
sys
...
...
@@ -224,10 +225,11 @@ _LANGUAGES = {
# TODO(jtattermusch): enable other languages as servers as well
_SERVERS
=
[
'
c++
'
,
'
node
'
,
'
csharp
'
,
'
java
'
]
# TODO(jtattermusch): add empty_stream once PHP starts supporting it.
# TODO(jtattermusch): add timeout_on_sleeping_server once java starts supporting it.
# TODO(jtattermusch): add support for auth tests.
_TEST_CASES
=
[
'
large_unary
'
,
'
empty_unary
'
,
'
ping_pong
'
,
'
empty_stream
'
,
'
client_streaming
'
,
'
server_streaming
'
,
'
client_streaming
'
,
'
server_streaming
'
,
'
cancel_after_begin
'
,
'
cancel_after_first_response
'
]
...
...
@@ -274,7 +276,7 @@ def cloud_to_prod_jobspec(language, test_case, docker_image=None):
cwd
=
cwd
,
environ
=
environ
,
shortname
=
"
cloud_to_prod:%s:%s
"
%
(
language
,
test_case
),
timeout_seconds
=
60
,
timeout_seconds
=
2
*
60
,
flake_retries
=
5
if
args
.
allow_flakes
else
0
,
timeout_retries
=
2
if
args
.
allow_flakes
else
0
)
return
test_job
...
...
@@ -299,7 +301,7 @@ def cloud_to_cloud_jobspec(language, test_case, server_name, server_host,
cwd
=
cwd
,
shortname
=
"
cloud_to_cloud:%s:%s_server:%s
"
%
(
language
,
server_name
,
test_case
),
timeout_seconds
=
60
,
timeout_seconds
=
2
*
60
,
flake_retries
=
5
if
args
.
allow_flakes
else
0
,
timeout_retries
=
2
if
args
.
allow_flakes
else
0
)
return
test_job
...
...
@@ -346,7 +348,7 @@ argp.add_argument('-l', '--language',
nargs
=
'
+
'
,
default
=
[
'
all
'
],
help
=
'
Clients to run.
'
)
argp
.
add_argument
(
'
-j
'
,
'
--jobs
'
,
default
=
24
,
type
=
int
)
argp
.
add_argument
(
'
-j
'
,
'
--jobs
'
,
default
=
multiprocessing
.
cpu_count
()
,
type
=
int
)
argp
.
add_argument
(
'
--cloud_to_prod
'
,
default
=
False
,
action
=
'
store_const
'
,
...
...
@@ -437,6 +439,7 @@ try:
server_jobs
[
lang
]
=
job
server_addresses
[
lang
]
=
(
'
localhost
'
,
job
.
mapped_port
(
_DEFAULT_SERVER_PORT
))
jobs
=
[]
if
args
.
cloud_to_prod
:
for
language
in
languages
:
...
...
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