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
2de47cba
Commit
2de47cba
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
enable running windows perf tests
parent
c280b568
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/performance/build_performance.sh
+10
-6
10 additions, 6 deletions
tools/run_tests/performance/build_performance.sh
tools/run_tests/performance/remote_host_prepare.sh
+11
-6
11 additions, 6 deletions
tools/run_tests/performance/remote_host_prepare.sh
with
21 additions
and
12 deletions
tools/run_tests/performance/build_performance.sh
+
10
−
6
View file @
2de47cba
...
...
@@ -37,10 +37,14 @@ CONFIG=${CONFIG:-opt}
# build C++ qps worker & driver always - we need at least the driver to
# run any of the scenarios.
# TODO(jtattermusch): not embedding OpenSSL breaks the C# build because
# grpc_csharp_ext needs OpenSSL embedded and some intermediate files from
# this build will be reused.
make
CONFIG
=
${
CONFIG
}
EMBED_OPENSSL
=
true
EMBED_ZLIB
=
true
qps_worker qps_json_driver
-j8
# TODO(jtattermusch): C++ worker and driver are not buildable on Windows yet
if
[
"
$OSTYPE
"
!=
"msys"
]
then
# TODO(jtattermusch): not embedding OpenSSL breaks the C# build because
# grpc_csharp_ext needs OpenSSL embedded and some intermediate files from
# this build will be reused.
make
CONFIG
=
${
CONFIG
}
EMBED_OPENSSL
=
true
EMBED_ZLIB
=
true
qps_worker qps_json_driver
-j8
fi
for
language
in
$@
do
...
...
@@ -55,10 +59,10 @@ do
tools/run_tests/performance/build_performance_go.sh
;;
"csharp"
)
tools/run_tests/run_tests.py
-l
$language
-c
$CONFIG
--build_only
-j
8
--compiler
coreclr
python
tools/run_tests/run_tests.py
-l
$language
-c
$CONFIG
--build_only
-j
8
--compiler
coreclr
;;
*
)
tools/run_tests/run_tests.py
-l
$language
-c
$CONFIG
--build_only
-j
8
python
tools/run_tests/run_tests.py
-l
$language
-c
$CONFIG
--build_only
-j
8
;;
esac
done
This diff is collapsed.
Click to expand it.
tools/run_tests/performance/remote_host_prepare.sh
+
11
−
6
View file @
2de47cba
...
...
@@ -32,18 +32,23 @@ set -ex
cd
$(
dirname
$0
)
/../../..
# cleanup after previous builds
ssh
"
${
USER_AT_HOST
}
"
"rm -rf ~/performance_workspace && mkdir -p ~/performance_workspace"
# TODO(jtattermusch): To be sure there are no running processes that would
# mess with the results, be rough and reboot the slave here
# and wait for it to come back online.
# could also kill jenkins.
ssh
"
${
USER_AT_HOST
}
"
"killall -9 qps_worker mono node ruby worker || true"
ssh
"
${
USER_AT_HOST
}
"
"killall -9 qps_worker dotnet mono node ruby worker || true"
# On Windows, killall is not supported & we need to kill all pending workers
# before attempting to delete the workspace
ssh
"
${
USER_AT_HOST
}
"
"ps -e | egrep 'qps_worker|dotnet' | awk '{print
$1
}' | xargs kill -9 || true"
# cleanup after previous builds
ssh
"
${
USER_AT_HOST
}
"
"rm -rf ~/performance_workspace && mkdir -p ~/performance_workspace"
# push the current sources to the slave and unpack it.
scp ../grpc.tar
"
${
USER_AT_HOST
}
:~/performance_workspace"
ssh
"
${
USER_AT_HOST
}
"
"tar -xf ~/performance_workspace/grpc.tar -C ~/performance_workspace"
# Windows workaround: attempt to untar twice, first run is going to fail
# with symlink creation error(s).
ssh
"
${
USER_AT_HOST
}
"
"tar -xf ~/performance_workspace/grpc.tar -C ~/performance_workspace || tar -xf ~/performance_workspace/grpc.tar -C ~/performance_workspace"
# For consistency with local run, invoke the kill_workers script remotely.
ssh
"
${
USER_AT_HOST
}
"
"~/performance_workspace/grpc/tools/run_tests/performance/kill_workers.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