Update templates for php7 and php7_protobuf_c examples (#26578)

* Update templates for php7 and php7_protobuf_c examples
* Update templates and loadtest_examples.sh
pull/26584/head
Wanlin Du 4 years ago committed by GitHub
parent b19344dc64
commit 82871fe497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      tools/run_tests/performance/loadtest_examples.sh
  2. 26
      tools/run_tests/performance/templates/loadtest_template_basic_all_languages.yaml
  3. 19
      tools/run_tests/performance/templates/loadtest_template_prebuilt_all_languages.yaml

@ -42,6 +42,10 @@ example_file() {
echo "python_asyncio${suffix}"
return
fi
if [[ "${scenario#php7_protobuf_c_}" != "${scenario}" ]]; then
echo "php7_protobuf_c${suffix}"
return
fi
echo "${scenario%%_*}${suffix}"
}
@ -55,6 +59,10 @@ example_language() {
echo "python_asyncio"
return
fi
if [[ "${filename#php7_protobuf_c_}" != "${filename}" ]]; then
echo "php7_protobuf_c"
return
fi
echo "${filename%%_*}"
}
@ -65,6 +73,7 @@ scenarios=(
"java_generic_async_streaming_ping_pong_secure"
"node_to_node_generic_async_streaming_ping_pong_secure"
"php7_protobuf_php_extension_to_cpp_protobuf_sync_unary_ping_pong"
"php7_protobuf_c_extension_to_cpp_protobuf_sync_unary_ping_pong"
"python_generic_sync_streaming_ping_pong"
"python_asyncio_generic_async_streaming_ping_pong"
"ruby_protobuf_sync_streaming_ping_pong"

@ -121,9 +121,30 @@ spec:
language: php7
pool: ${client_pool}
run:
args:
- -c
- |
timeout --kill-after="${KILL_AFTER}" "${POD_TIMEOUT}" \
/run_scripts/run_worker.sh
command:
- bash
- build:
command:
- bash
- /build_scripts/build_qps_worker.sh
clone:
gitRef: master
repo: https://github.com/grpc/grpc.git
language: php7_protobuf_c
pool: ${client_pool}
run:
args:
- -c
- |
timeout --kill-after="${KILL_AFTER}" "${POD_TIMEOUT}" \
/run_scripts/run_protobuf_c_worker.sh
command:
- bash
- /run_scripts/run_worker.sh
- build:
args:
- build
@ -181,6 +202,9 @@ spec:
src/ruby/qps/worker.rb --driver_port="${DRIVER_PORT}"
command:
- bash
driver:
language: cxx
run: {}
results:
bigQueryTable: ${big_query_table}
servers:

@ -77,10 +77,25 @@ spec:
- language: php7
pool: ${client_pool}
run:
args:
- -c
- |
timeout --kill-after="${KILL_AFTER}" "${POD_TIMEOUT}" \
/run_scripts/run_worker.sh
command:
- bash
image: ${prebuilt_image_prefix}/php7:${prebuilt_image_tag}
- language: php7_protobuf_c
pool: ${client_pool}
run:
args:
- -c
- |
timeout --kill-after="${KILL_AFTER}" "${POD_TIMEOUT}" \
/run_scripts/run_protobuf_c_worker.sh
command:
- bash
- /run_scripts/run_worker.sh
image: ${prebuilt_image_prefix}/php:${prebuilt_image_tag}
image: ${prebuilt_image_prefix}/php7:${prebuilt_image_tag}
- language: python
pool: ${client_pool}
run:

Loading…
Cancel
Save