Merge pull request #4930 from ctiller/things_be_slow

Tweaks to improve Jenkins CPU utilization
pull/4925/head
Craig Tiller 9 years ago
commit 4130e152f7
  1. 2
      Makefile
  2. 2
      build.yaml
  3. 2
      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

@ -49,7 +49,7 @@ fi
unset platform # variable named 'platform' breaks the windows build unset platform # variable named 'platform' breaks the windows build
python tools/run_tests/run_tests.py $USE_DOCKER_MAYBE -t -l $language -c $config -x report.xml -j 3 $@ || TESTS_FAILED="true" python tools/run_tests/run_tests.py $USE_DOCKER_MAYBE -t -l $language -c $config -x report.xml -j 2 $@ || TESTS_FAILED="true"
if [ ! -e reports/index.html ] if [ ! -e reports/index.html ]
then then

@ -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