Speed up portability tests (#27884)

* test

* cpp only

* moar cpu

* tweaks

* Update run_tests_matrix.py

* tweaks

* only-xds

* fix

* inner harmony
pull/27909/head
Craig Tiller 3 years ago committed by GitHub
parent d5971f49c4
commit 512e1ec1dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tools/internal_ci/linux/grpc_portability_build_only.cfg
  2. 2
      tools/internal_ci/linux/grpc_run_tests_matrix.sh
  3. 2
      tools/run_tests/run_tests_matrix.py

@ -26,5 +26,5 @@ action {
env_vars {
key: "RUN_TESTS_FLAGS"
value: "-f portability linux --inner_jobs 8 -j 4 --internal_ci --build_only"
value: "-f portability linux c++ --inner_jobs 8 -j 4 --internal_ci --build_only --extra_args -r xds_end2end_test"
}

@ -22,7 +22,7 @@ source tools/internal_ci/helper_scripts/prepare_build_linux_rc
# If this is a PR using RUN_TESTS_FLAGS var, then add flags to filter tests
if [ -n "$KOKORO_GITHUB_PULL_REQUEST_NUMBER" ] && [ -n "$RUN_TESTS_FLAGS" ]; then
export RUN_TESTS_FLAGS="$RUN_TESTS_FLAGS --filter_pr_tests --base_branch origin/$KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH"
export RUN_TESTS_FLAGS="--filter_pr_tests --base_branch origin/$KOKORO_GITHUB_PULL_REQUEST_TARGET_BRANCH $RUN_TESTS_FLAGS"
fi
tools/run_tests/run_tests_matrix.py $RUN_TESTS_FLAGS || FAILED="true"

@ -320,6 +320,7 @@ def _create_portability_test_jobs(extra_args=[],
labels=['portability', 'corelang'],
extra_args=extra_args,
extra_envs={'GRPC_DNS_RESOLVER': 'ares'},
inner_jobs=inner_jobs,
timeout_seconds=_CPP_RUNTESTS_TIMEOUT)
# C and C++ with no-exceptions on Linux
@ -328,6 +329,7 @@ def _create_portability_test_jobs(extra_args=[],
platforms=['linux'],
labels=['portability', 'corelang'],
extra_args=extra_args,
inner_jobs=inner_jobs,
timeout_seconds=_CPP_RUNTESTS_TIMEOUT)
test_jobs += _generate_jobs(languages=['python'],

Loading…
Cancel
Save