[Buildbot-commits] [djmitche/buildbot] 5c6b3d: separate dbspec, connector, and schema; add schema...

noreply at github.com noreply at github.com
Mon Mar 1 06:27:59 UTC 2010


Branch: refs/heads/master
Home:   http://github.com/djmitche/buildbot

Commit: 5c6b3df1ea32c6b6b66854f3ede137d734807989
    http://github.com/djmitche/buildbot/commit/5c6b3df1ea32c6b6b66854f3ede137d734807989
Author: Dustin J. Mitchell <dustin at zmanda.com>
Date:   2010-02-28 (Sun, 28 Feb 2010)

Changed paths:
  M buildbot/broken_test/runs/test_db.py
  M buildbot/broken_test/runs/test_web.py
  M buildbot/broken_test/runutils.py
  M buildbot/broken_test/unit/test_changes.py
  M buildbot/broken_test/unit/test_config.py
  M buildbot/broken_test/vc/test_vc.py
  M buildbot/db/connector.py
  M buildbot/db/dbspec.py
  M buildbot/db/schema/__init__.py
  A buildbot/db/schema/manager.py
  A buildbot/db/schema/tables.sql
  M buildbot/db/schema/v1.py
  A buildbot/db/util.py
  M buildbot/master.py
  M buildbot/scripts/runner.py
  A buildbot/test/fake/fakedb.py
  M buildbot/test/unit/test_db_dbspec.py
  A buildbot/test/unit/test_db_schema_master.py
  A buildbot/test/unit/test_db_util.py
  M setup.py

Log Message:
-----------
separate dbspec, connector, and schema; add schema upgrade mechanism

Breaks apart management of *specifying* a database (dbspec.DBSpec),
management of a database schema (schema.DBSchemaManager), and the
connection between the buildmaster and the database itself
(connector.DBConnector).

Adds a simple, linear database upgrade mechanism, but importantly
considers the "old", pickle-based schema to be "version 0", so all
upgrades from pickles to database will be handled with this method.






More information about the Commits mailing list