Craig Tiller 2e37d001a3 Review feedback 8 yıl önce
..
artifacts d996379030 Reset OWNERS state 8 yıl önce
build_stats 5c79a3199c cleanup tools/run_tests directory 9 yıl önce
dockerize 44360ab64f Modify image names to match the one in dockerhub. 8 yıl önce
generated 2e37d001a3 Review feedback 8 yıl önce
helper_scripts d996379030 Reset OWNERS state 8 yıl önce
interop e5de5e5ffa Run Android interops on Firebase 8 yıl önce
performance 1cb30c2764 Merge github.com:grpc/grpc into min_stack 8 yıl önce
python_utils 7e813a2bc4 Remove bazel warning (we have owners now), set noparent on bazel/OWNERS 8 yıl önce
sanity bdc6f70a55 Smarter regex, blander algo 8 yıl önce
README.md ccf2a6a707 Merge branch 'master' into xiaohaoliang-patch-1 8 yıl önce
run_build_statistics.py 7897ae9308 auto-fix most of licenses 8 yıl önce
run_interop_tests.py b867c06088 Add config and script for cloud-to-prod for internal ci. 8 yıl önce
run_microbenchmark.py 0ff7384f6d Merge branch 'master' of https://github.com/grpc/grpc into faster-bm-diff 8 yıl önce
run_performance_tests.py c15d32bbe8 Don't clear alarm in jobset when running performance tests 8 yıl önce
run_tests.py fa5c6215be Merge github.com:grpc/grpc into grpc_millis 8 yıl önce
run_tests_matrix.py a3899426fe shard basictests 8 yıl önce
start_port_server.py 7897ae9308 auto-fix most of licenses 8 yıl önce
task_runner.py 7897ae9308 auto-fix most of licenses 8 yıl önce

README.md

Overview

This directory contains scripts that facilitate building and running tests. We are using python scripts as entrypoint for our tests because that gives us the opportunity to run tests using the same commandline regardless of the platform you are using.

Unit tests (run_tests.py)

Builds gRPC in given language and runs unit tests. Use tools/run_tests/run_tests.py --help for more help.

Example

tools/run_tests/run_tests.py -l csharp -c dbg

Useful options (among many others)
  • --use_docker Builds a docker container containing all the prerequisites for given language and runs the tests under that container.
  • --build_only Only build, do not run the tests.

Interop tests (run_interop_tests.py)

Runs tests for cross-platform/cross-language interoperability. For more details, see Interop tests descriptions The script is also capable of running interop tests for grpc-java and grpc-go, using sources checked out alongside the ones of the grpc repository.

Example

tools/run_tests/run_interop_tests.py -l csharp -s c++ --use_docker (run interop tests with C# client and C++ server)

Note: if you see an error like no space left on device when running the interop tests using Docker, make sure that Docker is building the image files in a location with sufficient disk space.

Performance benchmarks (run_performance_tests.py)

Runs predefined benchmark scenarios for given languages. Besides the simple configuration of running all the scenarios locally, the script also supports orchestrating test runs with client and server running on different machines and uploading the results to BigQuery.

Example

tools/run_tests/run_performance_tests.py -l c++ node

Useful options
  • --regex use regex to select particular scenarios to run.

Stress tests (run_stress_tests.py)

Runs modified interop tests clients and servers under heavy load for an extended period of time to discover potential stability issues. The tests are internally using Kubernetes to run the client and server on GKE and upload statistics to BigQuery.

tools/run_tests/stress_test/run_on_gke.py --gcp_project_id=<google-cloud-platform-project-id> --config_file=<path-to-config-file>

The directory tools/run_tests/stress_test/configs/ contains the config files for several scenarios

Artifacts & Packages (task_runner.py)

A generalized framework for running predefined tasks based on their labels. We use this to building binary artifacts & distrib packages and testing them)

Example

tools/run_tests/task_runner.py -f python artifact linux x64 (build tasks with labels python, artifact, linux, and x64)