Skip to content

Commit

Permalink
[CI,CI-Examples] Increase timeout for spawning SGX server apps
Browse files Browse the repository at this point in the history
SGX workloads are currently 2-5x slower when executed with EDMM than
without EDMM, thus startups of SGX server workloads require larger
timeouts.

Signed-off-by: Anjali Rai <[email protected]>
  • Loading branch information
anjalirai-intel authored and Dmitrii Kuvaiskii committed Jan 23, 2023
1 parent d820bf9 commit 7c34915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .ci/lib/stage-test-sgx.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stage('test-sgx') {
cd CI-Examples/memcached
make ${MAKEOPTS}
make SGX=1 start-gramine-server &
../../scripts/wait_for_server 60 127.0.0.1 11211
../../scripts/wait_for_server 300 127.0.0.1 11211
# memcslap populates server but doesn't report errors, use
# memcached-tool for this (must return two lines of stats)
memcslap --servers=127.0.0.1 --concurrency=8
Expand All @@ -64,7 +64,7 @@ stage('test-sgx') {
cd CI-Examples/redis
make ${MAKEOPTS}
make ${MAKEOPTS} start-gramine-server &
../../scripts/wait_for_server 60 127.0.0.1 6379
../../scripts/wait_for_server 300 127.0.0.1 6379
./src/src/redis-benchmark
'''
}
Expand All @@ -73,7 +73,7 @@ stage('test-sgx') {
cd CI-Examples/lighttpd
make ${MAKEOPTS}
make ${MAKEOPTS} start-gramine-server &
../../scripts/wait_for_server 60 127.0.0.1 8003
../../scripts/wait_for_server 300 127.0.0.1 8003
LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh http://127.0.0.1:8003
'''
}
Expand All @@ -82,7 +82,7 @@ stage('test-sgx') {
cd CI-Examples/nginx
make ${MAKEOPTS}
make ${MAKEOPTS} start-gramine-server &
../../scripts/wait_for_server 60 127.0.0.1 8002
../../scripts/wait_for_server 300 127.0.0.1 8002
LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh http://127.0.0.1:8002
'''
}
Expand All @@ -91,7 +91,7 @@ stage('test-sgx') {
cd CI-Examples/rust
make ${MAKEOPTS}
make ${MAKEOPTS} start-gramine-server &
../../scripts/wait_for_server 60 127.0.0.1 3000
../../scripts/wait_for_server 300 127.0.0.1 3000
LOOP=1 CONCURRENCY_LIST="1 32" ../common_tools/benchmark-http.sh http://127.0.0.1:3000
'''
}
Expand Down
2 changes: 1 addition & 1 deletion CI-Examples/python/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rm OUTPUT
# === web server and client (on port 8005) ===
echo -e "\n\nRunning HTTP server dummy-web-server.py in the background:"
$GRAMINE ./python scripts/dummy-web-server.py 8005 & echo $! > server.PID
../../scripts/wait_for_server 60 127.0.0.1 8005
../../scripts/wait_for_server 300 127.0.0.1 8005

echo -e "\n\nRunning HTTP client test-http.py:"
$GRAMINE ./python scripts/test-http.py 127.0.0.1 8005 > OUTPUT1
Expand Down

0 comments on commit 7c34915

Please sign in to comment.