[pypy-svn] r65206 - pypy/build/bot2/pypybuildbot

pedronis at codespeak.net pedronis at codespeak.net
Sun May 10 19:05:13 CEST 2009


Author: pedronis
Date: Sun May 10 19:05:12 2009
New Revision: 65206

Modified:
   pypy/build/bot2/pypybuildbot/master.py
Log:
compromise, not beatiful but not sure more work on this is worth it, the main issue is really how much memory
we can spend for the cache on codespeak



Modified: pypy/build/bot2/pypybuildbot/master.py
==============================================================================
--- pypy/build/bot2/pypybuildbot/master.py	(original)
+++ pypy/build/bot2/pypybuildbot/master.py	Sun May 10 19:05:12 2009
@@ -128,6 +128,13 @@
     'projectURL': 'http://codespeak.net/pypy/',
     'projectName': 'PyPy'}
 
-summary.outcome_set_cache = summary.RevisionOutcomeSetCache(
-    sum([len(_sched.listBuilderNames())
+CACHESIZE = 80 # cache size for build outcomes
+
+estimated = (sum([len(_sched.listBuilderNames())
              for _sched in BuildmasterConfig['schedulers']]) * 6)
+
+if estimated > CACHESIZE:
+    raise ValueError("master.py CACHESIZE (%d) is too small considered"
+                     " a builder*scheduler combinations based estimate (%d)"
+                     % (CACHESIZE, estimated))
+summary.outcome_set_cache.cachesize = CACHESIZE



More information about the Pypy-commit mailing list