Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: scripts/common/chromium_utils.py

Issue 2091643002: Set changeHorizon to put an upper-bound on database size, otherwise the database will never stop gr… (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/common/chromium_utils.py
diff --git a/scripts/common/chromium_utils.py b/scripts/common/chromium_utils.py
index 89bee7a154060c32dca5725109bb8ff01f004618..b4d30834c6b8853aa6b26d078d71ea4f39e540dd 100644
--- a/scripts/common/chromium_utils.py
+++ b/scripts/common/chromium_utils.py
@@ -1899,7 +1899,14 @@ def FileExclusions():
def DatabaseSetup(buildmaster_config, require_dbconfig=False):
- """Read database credentials in the master directory."""
+ """Configure the database settings for the buildbot master."""
+
+ # By default nothing is ever deleted from the database. We set a
+ # changeHorizon here to put an upper bound on the database size.
+ if 'changeHorizon' not in buildmaster_config:
+ buildmaster_config['changeHorizon'] = 3000
+
+ # Read database credentials in the master directory.
if os.path.isfile('.dbconfig'):
values = {}
execfile('.dbconfig', values)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698