Skip to content

Commit

Permalink
Merge branch 'bug2439' of git://github.com/orvant/buildbot
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Mar 19, 2013
2 parents c6f1f05 + a6f82ca commit 9048a0a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
34 changes: 34 additions & 0 deletions master/buildbot/test/integration/test_upgrade.py
Expand Up @@ -597,6 +597,40 @@ def check_pickles(_):
return d


class UpgradeTestV087p1(UpgradeTestMixin, unittest.TestCase):

source_tarball = "v087p1.tgz"

def verify_thd(self, conn):
"partially verify the contents of the db - run in a thread"
model = self.db.model

tbl = model.buildrequests
r = conn.execute(tbl.select(order_by=tbl.c.id))
buildreqs = [ (br.id, br.buildsetid,
br.complete, br.results)
for br in r.fetchall() ]
self.assertEqual(buildreqs, [(1, 1, 1, 0), (2, 2, 1, 0)]) # two successful builds

br_claims = model.buildrequest_claims
objects = model.objects
r = conn.execute(sa.select([ br_claims.outerjoin(objects,
br_claims.c.objectid == objects.c.id)]))
buildreqs = [ (brc.brid, int(brc.claimed_at), brc.name, brc.class_name)
for brc in r.fetchall() ]
self.assertEqual(buildreqs, [
(1, 1363642117, u'Eriks-MacBook-Air.local:/Users/erik/buildbot-work/master',
u'buildbot.master.BuildMaster'),
(2, 1363642156, u'Eriks-MacBook-Air.local:/Users/erik/buildbot-work/master',
u'buildbot.master.BuildMaster'),
])

def test_upgrade(self):
# we no longer need a builder pickle since the builder can be
# re-created without one
return self.do_test_upgrade()


class TestWeirdChanges(change_import.ChangeImportMixin, unittest.TestCase):
def setUp(self):
d = self.setUpChangeImport()
Expand Down
5 changes: 5 additions & 0 deletions master/buildbot/test/integration/v087p1-README.txt
@@ -0,0 +1,5 @@
-- Basic v0.8.7p1 tarball --

This tarball is the result of a couple of runs from a single
incarnation of a master that was running Buildbot-0.8.7p1. Both
builds were successful.
Binary file added master/buildbot/test/integration/v087p1.tgz
Binary file not shown.

0 comments on commit 9048a0a

Please sign in to comment.