From bfe693678d8df3b46772d80eaa9ff298925955ae Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Wed, 20 Jan 2016 09:38:21 -0800
Subject: [PATCH] Tweak cpu costs

---
 build.yaml                 | 2 +-
 tools/run_tests/jobset.py  | 2 +-
 tools/run_tests/tests.json | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.yaml b/build.yaml
index 7229f2cd1b..08c8c656e9 100644
--- a/build.yaml
+++ b/build.yaml
@@ -1121,7 +1121,7 @@ targets:
   - gpr_test_util
   - gpr
 - name: gpr_stack_lockfree_test
-  cpu_cost: 2
+  cpu_cost: 10
   build: test
   language: c
   src:
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py
index 4c2080f656..beeb99c0ae 100755
--- a/tools/run_tests/jobset.py
+++ b/tools/run_tests/jobset.py
@@ -285,7 +285,7 @@ class Job(object):
           sys = float(m.group(3))
           if real > 0.5:
             cores = (user + sys) / real
-            measurement = '; cpu_cost=%.01f' % cores
+            measurement = '; cpu_cost=%.01f; estimated=%.01f' % (cores, self._spec.cpu_cost)
         message('PASSED', '%s [time=%.1fsec; retries=%d:%d%s]' % (
                     self._spec.shortname, elapsed, self._retries, self._timeout_retries, measurement),
             do_newline=self._newline_on_success or self._travis)
diff --git a/tools/run_tests/tests.json b/tools/run_tests/tests.json
index fd912ae94a..ce211219c4 100644
--- a/tools/run_tests/tests.json
+++ b/tools/run_tests/tests.json
@@ -539,7 +539,7 @@
       "posix", 
       "windows"
     ], 
-    "cpu_cost": 2, 
+    "cpu_cost": 10, 
     "exclude_configs": [], 
     "flaky": false, 
     "language": "c", 
-- 
GitLab