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
1dd609b3
Commit
1dd609b3
authored
7 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
fix C++ distribtests
parent
7e0e18d2
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
test/distrib/cpp/run_distrib_test.sh
+2
-7
2 additions, 7 deletions
test/distrib/cpp/run_distrib_test.sh
tools/run_tests/artifacts/distribtest_targets.py
+15
-7
15 additions, 7 deletions
tools/run_tests/artifacts/distribtest_targets.py
with
17 additions
and
14 deletions
test/distrib/cpp/run_distrib_test.sh
+
2
−
7
View file @
1dd609b3
...
@@ -30,13 +30,8 @@
...
@@ -30,13 +30,8 @@
set
-ex
set
-ex
git clone
$EXTERNAL_GIT_ROOT
# change to grpc repo root
# clone gRPC submodules, use data from locally cloned submodules where possible
cd
$(
dirname
$0
)
/../../..
(
cd
${
EXTERNAL_GIT_ROOT
}
&&
git submodule foreach
'cd /var/local/git/grpc \
&& git submodule update --init --reference ${EXTERNAL_GIT_ROOT}/${name} \
${name}'
)
cd
grpc
cd
third_party/protobuf
&&
./autogen.sh
&&
\
cd
third_party/protobuf
&&
./autogen.sh
&&
\
./configure
&&
make
-j4
&&
make check
&&
make
install
&&
ldconfig
./configure
&&
make
-j4
&&
make check
&&
make
install
&&
ldconfig
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/artifacts/distribtest_targets.py
+
15
−
7
View file @
1dd609b3
...
@@ -38,11 +38,14 @@ import python_utils.jobset as jobset
...
@@ -38,11 +38,14 @@ import python_utils.jobset as jobset
def
create_docker_jobspec
(
name
,
dockerfile_dir
,
shell_command
,
environ
=
{},
def
create_docker_jobspec
(
name
,
dockerfile_dir
,
shell_command
,
environ
=
{},
flake_retries
=
0
,
timeout_retries
=
0
):
flake_retries
=
0
,
timeout_retries
=
0
,
copy_rel_path
=
None
):
"""
Creates jobspec for a task running under docker.
"""
"""
Creates jobspec for a task running under docker.
"""
environ
=
environ
.
copy
()
environ
=
environ
.
copy
()
environ
[
'
RUN_COMMAND
'
]
=
shell_command
environ
[
'
RUN_COMMAND
'
]
=
shell_command
environ
[
'
RELATIVE_COPY_PATH
'
]
=
'
test/distrib
'
# the entire repo will be cloned if copy_rel_path is not set.
if
copy_rel_path
:
environ
[
'
RELATIVE_COPY_PATH
'
]
=
copy_rel_path
docker_args
=
[]
docker_args
=
[]
for
k
,
v
in
environ
.
items
():
for
k
,
v
in
environ
.
items
():
...
@@ -102,7 +105,8 @@ class CSharpDistribTest(object):
...
@@ -102,7 +105,8 @@ class CSharpDistribTest(object):
'
tools/dockerfile/distribtest/csharp_%s_%s
'
%
(
'
tools/dockerfile/distribtest/csharp_%s_%s
'
%
(
self
.
docker_suffix
,
self
.
docker_suffix
,
self
.
arch
),
self
.
arch
),
'
test/distrib/csharp/run_distrib_test%s.sh
'
%
self
.
script_suffix
)
'
test/distrib/csharp/run_distrib_test%s.sh
'
%
self
.
script_suffix
,
copy_rel_path
=
'
test/distrib
'
)
elif
self
.
platform
==
'
macos
'
:
elif
self
.
platform
==
'
macos
'
:
return
create_jobspec
(
self
.
name
,
return
create_jobspec
(
self
.
name
,
[
'
test/distrib/csharp/run_distrib_test%s.sh
'
%
self
.
script_suffix
],
[
'
test/distrib/csharp/run_distrib_test%s.sh
'
%
self
.
script_suffix
],
...
@@ -151,7 +155,8 @@ class NodeDistribTest(object):
...
@@ -151,7 +155,8 @@ class NodeDistribTest(object):
self
.
arch
),
self
.
arch
),
'
%s test/distrib/node/run_distrib_test.sh %s
'
%
(
'
%s test/distrib/node/run_distrib_test.sh %s
'
%
(
linux32
,
linux32
,
self
.
node_version
))
self
.
node_version
),
copy_rel_path
=
'
test/distrib
'
)
elif
self
.
platform
==
'
macos
'
:
elif
self
.
platform
==
'
macos
'
:
return
create_jobspec
(
self
.
name
,
return
create_jobspec
(
self
.
name
,
[
'
test/distrib/node/run_distrib_test.sh
'
,
[
'
test/distrib/node/run_distrib_test.sh
'
,
...
@@ -185,7 +190,8 @@ class PythonDistribTest(object):
...
@@ -185,7 +190,8 @@ class PythonDistribTest(object):
'
tools/dockerfile/distribtest/python_%s_%s
'
%
(
'
tools/dockerfile/distribtest/python_%s_%s
'
%
(
self
.
docker_suffix
,
self
.
docker_suffix
,
self
.
arch
),
self
.
arch
),
'
test/distrib/python/run_distrib_test.sh
'
)
'
test/distrib/python/run_distrib_test.sh
'
,
copy_rel_path
=
'
test/distrib
'
)
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
name
return
self
.
name
...
@@ -212,7 +218,8 @@ class RubyDistribTest(object):
...
@@ -212,7 +218,8 @@ class RubyDistribTest(object):
'
tools/dockerfile/distribtest/ruby_%s_%s
'
%
(
'
tools/dockerfile/distribtest/ruby_%s_%s
'
%
(
self
.
docker_suffix
,
self
.
docker_suffix
,
self
.
arch
),
self
.
arch
),
'
test/distrib/ruby/run_distrib_test.sh
'
)
'
test/distrib/ruby/run_distrib_test.sh
'
,
copy_rel_path
=
'
test/distrib
'
)
def
__str__
(
self
):
def
__str__
(
self
):
return
self
.
name
return
self
.
name
...
@@ -237,7 +244,8 @@ class PHPDistribTest(object):
...
@@ -237,7 +244,8 @@ class PHPDistribTest(object):
'
tools/dockerfile/distribtest/php_%s_%s
'
%
(
'
tools/dockerfile/distribtest/php_%s_%s
'
%
(
self
.
docker_suffix
,
self
.
docker_suffix
,
self
.
arch
),
self
.
arch
),
'
test/distrib/php/run_distrib_test.sh
'
)
'
test/distrib/php/run_distrib_test.sh
'
,
copy_rel_path
=
'
test/distrib
'
)
elif
self
.
platform
==
'
macos
'
:
elif
self
.
platform
==
'
macos
'
:
return
create_jobspec
(
self
.
name
,
return
create_jobspec
(
self
.
name
,
[
'
test/distrib/php/run_distrib_test.sh
'
],
[
'
test/distrib/php/run_distrib_test.sh
'
],
...
...
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