Reduce CPU, increase MSAN timeouts

pull/4930/head
Craig Tiller 9 years ago
parent 7c43f49092
commit 3e301a37bc
  1. 2
      Makefile
  2. 2
      build.yaml
  3. 11
      tools/jenkins/run_jenkins.sh
  4. 2
      tools/run_tests/configs.json
  5. 2
      tools/run_tests/jobset.py

@ -208,7 +208,7 @@ CFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-fr
CXXFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument -fPIE -pie CXXFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument -fPIE -pie
LDFLAGS_msan = -fsanitize=memory -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,) LDFLAGS_msan = -fsanitize=memory -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
DEFINES_msan = NDEBUG DEFINES_msan = NDEBUG
DEFINES_msan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=1.5 DEFINES_msan += GRPC_TEST_SLOWDOWN_BUILD_FACTOR=2
VALID_CONFIG_mutrace = 1 VALID_CONFIG_mutrace = 1
CC_mutrace = $(DEFAULT_CC) CC_mutrace = $(DEFAULT_CC)

@ -2561,7 +2561,7 @@ configs:
-fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,) -fPIE -pie $(if $(JENKINS_BUILD),-Wl$(comma)-Ttext-segment=0x7e0000000000,)
LDXX: clang++ LDXX: clang++
compile_the_world: true compile_the_world: true
timeout_multiplier: 1.5 timeout_multiplier: 2
mutrace: mutrace:
CPPFLAGS: -O0 CPPFLAGS: -O0
DEFINES: _DEBUG DEBUG DEFINES: _DEBUG DEBUG

@ -42,6 +42,9 @@ set -ex -o igncr || set -ex
# Grabbing the machine's architecture # Grabbing the machine's architecture
arch=`uname -m` arch=`uname -m`
# Number of concurrent cores each executor should try and schedule
EXECUTOR_CORES=2
case $platform in case $platform in
i386) i386)
arch="i386" arch="i386"
@ -54,7 +57,7 @@ if [ "$platform" == "linux" ]
then then
echo "building $language on Linux" echo "building $language on Linux"
./tools/run_tests/run_tests.py --use_docker -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true" ./tools/run_tests/run_tests.py --use_docker -t -l $language -c $config -x report.xml -j $EXECUTOR_CORES $@ || TESTS_FAILED="true"
elif [ "$platform" == "windows" ] elif [ "$platform" == "windows" ]
then then
@ -63,7 +66,7 @@ then
# Prevent msbuild from picking up "platform" env variable, which would break the build # Prevent msbuild from picking up "platform" env variable, which would break the build
unset platform unset platform
python tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true" python tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j $EXECUTOR_CORES $@ || TESTS_FAILED="true"
elif [ "$platform" == "macos" ] elif [ "$platform" == "macos" ]
then then
@ -72,13 +75,13 @@ then
# Prevent msbuild from picking up "platform" env variable, which would break the build # Prevent msbuild from picking up "platform" env variable, which would break the build
unset platform unset platform
./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true" ./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j $EXECUTOR_CORES $@ || TESTS_FAILED="true"
elif [ "$platform" == "freebsd" ] elif [ "$platform" == "freebsd" ]
then then
echo "building $language on FreeBSD" echo "building $language on FreeBSD"
MAKE=gmake ./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true" MAKE=gmake ./tools/run_tests/run_tests.py -t -l $language -c $config -x report.xml -j $EXECUTOR_CORES $@ || TESTS_FAILED="true"
else else
echo "Unknown platform $platform" echo "Unknown platform $platform"

@ -59,7 +59,7 @@
}, },
{ {
"config": "msan", "config": "msan",
"timeout_multiplier": 1.5 "timeout_multiplier": 2
}, },
{ {
"config": "mutrace" "config": "mutrace"

@ -360,7 +360,7 @@ class Jobset(object):
if self.cancelled(): return False if self.cancelled(): return False
current_cpu_cost = self.cpu_cost() current_cpu_cost = self.cpu_cost()
if current_cpu_cost == 0: break if current_cpu_cost == 0: break
if current_cpu_cost + spec.cpu_cost < self._maxjobs: break if current_cpu_cost + spec.cpu_cost <= self._maxjobs: break
self.reap() self.reap()
if self.cancelled(): return False if self.cancelled(): return False
if spec.hash_targets: if spec.hash_targets:

Loading…
Cancel
Save